Received: from list by lists.gnu.org with archive (Exim 4.71) id 1cCIdV-000432-Oh for mharc-grub-devel@gnu.org; Wed, 30 Nov 2016 23:06:17 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57569) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cCIdS-00041D-9B for grub-devel@gnu.org; Wed, 30 Nov 2016 23:06:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cCIdP-00072s-1A for grub-devel@gnu.org; Wed, 30 Nov 2016 23:06:14 -0500 Received: from mail-lf0-x236.google.com ([2a00:1450:4010:c07::236]:36762) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cCIdO-00072i-P5 for grub-devel@gnu.org; Wed, 30 Nov 2016 23:06:10 -0500 Received: by mail-lf0-x236.google.com with SMTP id t196so162398069lff.3 for ; Wed, 30 Nov 2016 20:06:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to; bh=Pn0hrsPLuxNe7E8XZjQjzWpTL6kt3lSeXLOHeZxzHUc=; b=sbl+FrIzMpgFIDfeliHSjUjQ2LSXOr4p5bcLpEHYH5Q3whMhpPrw+Hy9beA6GfMzJK xtz+bv0C5KUifCSN6tdlRahF/DmdWodzPFaOOA4RXYSHW50lMewjt7+v1kqjkeA4iphE yJVh3/7LKxY2yhp8mNLDYJL8X80pHnhM2A8SVwrj/N+x6eTkRH6/2TDhihlKUclQpTc6 LqgiJ5KdR3DXKeX1TpGThfKhdvsFAJpTdumM4tfBaHsxtm/h+j0mjNN+qzUc6W19FFQJ +TLdyMOECbfaFZ53ZeD1PLlhlWcBlcNFi1ye02aSzEr8K0SMNvS9bTtNawJLO0KLQACp tHKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to; bh=Pn0hrsPLuxNe7E8XZjQjzWpTL6kt3lSeXLOHeZxzHUc=; b=e+SOTbFIOnusJyolGaDvqovynPmcsIdCjQ2qFazMR2BqFhVkqQIZqhOo2Ac12oboBJ VRVV3hDnqU8YlYljc9Aa81PHpYoHjpbaip0nZycci21ZmFFz+hQTdXO8Vun9wnzz7o/R L4hni5TqGNkM6/db3Mc19XHTQCeXf2Byew6D1xe61V6lF1RP42b01OervfoTSdUkbIuX f8DDkndSFexi7fbLgdwKhQqynDoWVVL615Vuy+T/UlFvfyBcgnMyiFNNeXpTDI23kTCC so+FFrc8TMBtjcrYNtrxaue1o8TsLmJSGtNfpuA7X5dKv/NeTANZRS6Cg/7swiQvfG7m W73Q== X-Gm-Message-State: AKaTC03nclq/xNWQ3xt4myrmkof++ZFU+GM+aMsz1KGJ4WDNHAqJBkUCGBO2RF7pS5GGKg== X-Received: by 10.25.215.102 with SMTP id o99mr11021880lfg.57.1480565168984; Wed, 30 Nov 2016 20:06:08 -0800 (PST) Received: from [192.168.1.44] (ppp109-252-90-110.pppoe.spdop.ru. [109.252.90.110]) by smtp.gmail.com with ESMTPSA id a79sm14927863lfe.48.2016.11.30.20.06.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 Nov 2016 20:06:08 -0800 (PST) Subject: Re: Fails to build with GCC from Debian Sid/unstable: `/usr/bin/ld: -r and -pie may not be used together` To: Paul Menzel References: <1480178885.8833.147.camel@users.sourceforge.net> Cc: The development of GNU GRUB From: Andrei Borzenkov Message-ID: <43f4ed0c-fa5e-ac05-a7d1-2724bcd4d3d1@gmail.com> Date: Thu, 1 Dec 2016 07:06:06 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="tGktIfHCheMQwGt8LfsIQWiTKJ8KR5lRl" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:4010:c07::236 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Dec 2016 04:06:15 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --tGktIfHCheMQwGt8LfsIQWiTKJ8KR5lRl Content-Type: multipart/mixed; boundary="xRGxR3UfjsotVdqFj2cn8qgC0PvFrsBbs" From: Andrei Borzenkov To: Paul Menzel Cc: The development of GNU GRUB Message-ID: <43f4ed0c-fa5e-ac05-a7d1-2724bcd4d3d1@gmail.com> Subject: Re: Fails to build with GCC from Debian Sid/unstable: `/usr/bin/ld: -r and -pie may not be used together` References: <1480178885.8833.147.camel@users.sourceforge.net> In-Reply-To: --xRGxR3UfjsotVdqFj2cn8qgC0PvFrsBbs Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ping. Does proposed patch work for you? 26.11.2016 20:07, Andrei Borzenkov =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > 26.11.2016 19:48, Paul Menzel =D0=BF=D0=B8=D1=88=D0=B5=D1=82: >> Dear GRUB folks, >> >> >> Using Debian Sid/unstable with GCC 6.2, which has PIE enabled by >> default *in Debian* since some time [1], building GRUB for the platfor= m >> *coreboot* fails. >> >> ``` >> $ gcc --version >> gcc (Debian 6.2.1-5) 6.2.1 20161124 >> [=E2=80=A6] >> $ ld --version >> GNU ld (GNU Binutils for Debian) 2.27.51.20161124 >> [=E2=80=A6] >> $ git log --oneline | head -1 >> 0d23457 efi: Move fdt helper into own file >> $ ./autogen.sh >> [=E2=80=A6] >> $ mkdir build >> $ cd build >> $ ../configure --with-platform=3Dcoreboot >> [=E2=80=A6] >> $ make -j >> [=E2=80=A6] >> gcc -DHAVE_CONFIG_H -I. -I../../grub-core -I.. -Wall -W -DGRUB_MACHI= NE_COREBOOT=3D1 -DGRUB_MACHINE=3DI386_COREBOOT -m32 -nostdinc -isystem /u= sr/lib/gcc/i686-linux-gnu/6/include -I../../include -I../include -DGRUB_F= ILE=3D\"bus/usb/serial/common.c\" -I. -I../../grub-core -I.. -I../.. -I..= /../include -I../include -I../../grub-core/lib/libgcrypt-grub/src/ -D_= FILE_OFFSET_BITS=3D64 -Os -Wall -W -Wshadow -Wpointer-arith -Wundef -Wcha= r-subscripts -Wcomment -Wdeprecated-declarations -Wdisabled-optimization = -Wdiv-by-zero -Wfloat-equal -Wformat-extra-args -Wformat-security -Wforma= t-y2k -Wimplicit -Wimplicit-function-declaration -Wimplicit-int -Wmain -W= missing-braces -Wmissing-format-attribute -Wmultichar -Wparentheses -Wret= urn-type -Wsequence-point -Wshadow -Wsign-compare -Wswitch -Wtrigraphs -W= unknown-pragmas -Wunused -Wunused-function -Wunused-label -Wunused-parame= ter -Wunused-value -Wunused-variable -Wwrite-strings -Wnested-externs -W= strict-prototypes -g -Wredundant-decls -Wmissing-prototypes -Wmissing-dec= larations -Wextra -Wattributes -Wendif-labels -Winit-self -Wint-to-point= er-cast -Winvalid-pch -Wmissing-field-initializers -Wnonnull -Woverflow -= Wvla -Wpointer-to-int-cast -Wstrict-aliasing -Wvariadic-macros -Wvolatile= -register-var -Wpointer-sign -Wmissing-include-dirs -Wmissing-prototypes = -Wmissing-declarations -Wformat=3D2 -march=3Di386 -m32 -mrtd -mregparm=3D= 3 -falign-jumps=3D1 -falign-loops=3D1 -falign-functions=3D1 -freg-struct-= return -mno-mmx -mno-sse -mno-sse2 -mno-sse3 -mno-3dnow -msoft-float -fno= -dwarf2-cfi-asm -mno-stack-arg-probe -fno-asynchronous-unwind-tables -fno= -unwind-tables -Qn -fno-PIE -fno-pie -fno-stack-protector -Wtrampolines -= Werror -ffreestanding -MT bus/usb/serial/usbserial_common_module-comm= on.o -MD -MP -MF bus/usb/serial/.deps-core/usbserial_common_module-common= =2ETpo -c -o bus/usb/serial/usbserial_common_module-common.o `test -f 'bu= s/usb/serial/common.c' || echo '../../grub-core/'`bus/usb/serial/common.c= >> /usr/bin/ld: -r and -pie may not be used together >> collect2: error: ld returned 1 exit status >> Makefile:27010: die Regel f=C3=BCr Ziel =E2=80=9Etrig.module=E2=80=9C = scheiterte >> make[3]: *** [trig.module] Fehler 1 >> make[3]: *** Es wird auf noch nicht beendete Prozesse gewartet... >> [=E2=80=A6] >> ``` >> >> Should PIE be disabled explicitly? >> >> >=20 > Does patch in this message work for you? >=20 > http://lists.gnu.org/archive/html/bug-grub/2016-11/msg00011.html >=20 >=20 --xRGxR3UfjsotVdqFj2cn8qgC0PvFrsBbs-- --tGktIfHCheMQwGt8LfsIQWiTKJ8KR5lRl Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlg/oa8ACgkQR6LMutpd94xnHQCdH2pfw6DmwMfhlt5TCE884wOS Q0wAoKJfjo9/zqJ/+JBJOYGzhicEh6Nq =F1EC -----END PGP SIGNATURE----- --tGktIfHCheMQwGt8LfsIQWiTKJ8KR5lRl--