From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1VhJgo-0006Bb-BV for mharc-grub-devel@gnu.org; Fri, 15 Nov 2013 08:44:02 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46056) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VhJgh-0006AG-FN for grub-devel@gnu.org; Fri, 15 Nov 2013 08:44:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VhJgb-000813-S3 for grub-devel@gnu.org; Fri, 15 Nov 2013 08:43:55 -0500 Received: from mail-la0-x233.google.com ([2a00:1450:4010:c03::233]:41413) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VhJgb-00080u-FZ for grub-devel@gnu.org; Fri, 15 Nov 2013 08:43:49 -0500 Received: by mail-la0-f51.google.com with SMTP id ec20so2752305lab.38 for ; Fri, 15 Nov 2013 05:43:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:in-reply-to:references:mime-version :content-type; bh=S48jSc6TbUvZe35WnH1FyJ3A9pexU0U7bxIDfajbd8I=; b=U3Ew9Is+ysfcdiedjtNXfNGjQHyA/W95NQOHFnlrc/QNOAT7q0+J1hXC4NKYS161Bd lEmXh+PBykD7AtACOgfDpJs3PWmhrNS7K6oa/Q3+8mmh8PP8wA+IaYMmE0BR473+OOQU f/w05IuN9++o1twVlJmLTo0rp/tKB686fGcizXBGT54g4pavoJJSdmfzWI54KmCCcNzt tKFQ7cC5jvPTRjcz10l9VmRr1azktWoyHxLZiBn/M49J2jmLrVrTmeDgzLBDiiYxLJBv Q3V835MQqXObbQNYdgANH6T4xpvCliIvIYOQnz98LW55VJ0+s0hZHfdy4ug+hnwVHwLf 4dDA== X-Received: by 10.152.116.46 with SMTP id jt14mr1659082lab.31.1384523028167; Fri, 15 Nov 2013 05:43:48 -0800 (PST) Received: from opensuse.site (ppp91-76-174-89.pppoe.mtu-net.ru. [91.76.174.89]) by mx.google.com with ESMTPSA id vz9sm2197235lbb.17.2013.11.15.05.43.47 for (version=SSLv3 cipher=RC4-SHA bits=128/128); Fri, 15 Nov 2013 05:43:47 -0800 (PST) Date: Fri, 15 Nov 2013 17:43:46 +0400 From: Andrey Borzenkov To: grub-devel@gnu.org Subject: Re: PPC build failure with undefined symbols __ashldi3, _restgpr_14_x, ... Message-ID: <20131115174346.3360ac1e@opensuse.site> In-Reply-To: <52861483.70807@gmail.com> References: <20131115091954.2b642e0b@opensuse.site> <5285FEE1.3030601@gmail.com> <20131115162200.2c18d0d0@opensuse.site> <52861483.70807@gmail.com> X-Mailer: Claws Mail 3.9.2 (GTK+ 2.24.18; x86_64-suse-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/Sy5951Gh2E60NqpdmK_QLqM"; protocol="application/pgp-signature" X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::233 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Nov 2013 13:44:01 -0000 --Sig_/Sy5951Gh2E60NqpdmK_QLqM Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable =D0=92 Fri, 15 Nov 2013 13:33:07 +0100 Vladimir '=CF=86-coder/phcoder' Serbinenko =D0=BF=D0=B8= =D1=88=D0=B5=D1=82: > On 15.11.2013 13:22, Andrey Borzenkov wrote: > > =D0=92 Fri, 15 Nov 2013 12:00:49 +0100 > > Vladimir '=CF=86-coder/phcoder' Serbinenko =D0=BF= =D0=B8=D1=88=D0=B5=D1=82: > >=20 > >> On 15.11.2013 06:19, Andrey Borzenkov wrote: > >>> Sources at 6fcec439545c817fbc8e2f51c667a70037a34a76 > >>> > >>> Building RPM for PPC (32 or 64 bits) I get > >>> > >>> [ 187s] cat syminfo.lst | sort | gawk -f ../../grub-core/genmoddep.a= wk > moddep.lst || (rm -f moddep.lst; exit 1) > >>> [ 187s] __ashldi3 in affs is not defined > >>> [ 187s] _restgpr_14_x in affs is not defined > >>> [ 187s] _restgpr_20_x in affs is not defined > >>> [ 187s] _restgpr_25_x in affs is not defined > >>> [ 187s] _restgpr_27_x in affs is not defined > >>> [ 187s] _restgpr_28_x in affs is not defined > >>> [ 187s] _restgpr_30_x in affs is not defined > >>> ... > >>> > >>> for a long list of them. > >>> > >>> Full build logs are available as > >>> https://build.opensuse.org/build/home:arvidjaar:grub2-next/openSUSE_F= actory_PowerPC/ppc/grub2/_log > >>> https://build.opensuse.org/build/home:arvidjaar:grub2-next/openSUSE_F= actory_PowerPC/ppc64/grub2/_log > >>> > >>> I do not myself have access to any PPC system nor any experience with > >>> them. > >>> > >> You don't have multilib installed. > >=20 > > Could you elaborate? This is native build on PPC system. It has both 64 > > and 32 bit of gcc and libgcc installed: > >=20 > > [ 12s] libgcc_s1-32bit-4.8.1_20130909-5.1 ########################= ################ > > [ 10s] libgcc_s1-4.8.1_20130909-5.1 ########################= ################ > > [ 17s] gcc48-4.8.1_20130909-5.1 ########################= ################ > > [ 17s] gcc48-32bit-4.8.1_20130909-5.1 ########################= ################ > >=20 > > This did build successfully until some recent changes (grub2 *is* part > > of openSUSE for PPC). I compared logs for x86 and ppc and both say > >=20 > > [ 119s] checking for __bswapsi2... no > > [ 119s] checking for __bswapdi2... no > > [ 119s] checking for __ashldi3... no > > [ 120s] checking for __ashrdi3... no > > [ 120s] checking for __lshrdi3... no > > [ 120s] checking for __ucmpdi2... no > > [ 120s] checking for _restgpr_14_x... no > >=20 > > unfortunately I'm stuck here. For all I can tell it should either fail > > or succeed in both cases. > >=20 > It should say all "no" on x86 and almost all "yes" on ppc. This output > indicates that link with libgcc failed. You can look how exactly the > test failed in config.log. Can you send me config.log ? Initially it failed due to missing -lc. After adding glibc-devel-static to buildrequires it now fails due to redefined abort: [ 121s] configure:25260: checking for __bswapsi2 [ 121s] configure:25260: gcc -o conftest -Os -Wall -W -Wshadow -Wold-styl= e-definition -Wpointer-arith -Wundef -Wextra -Wattributes -Wchar-subscripts= -Wcomment -Wdeprecated-declarations -Wdisabled-optimization -Wdiv-by-zero = -Wendif-labels -Wfloat-equal -Wformat-extra-args -Wformat-security -Wformat= -y2k -Wimplicit -Wimplicit-function-declaration -Wimplicit-int -Winit-self = -Wint-to-pointer-cast -Winvalid-pch -Wmain -Wmissing-braces -Wmissing-field= -initializers -Wmissing-format-attribute -Wmultichar -Wnonnull -Woverflow -= Wparentheses -Wpointer-arith -Wpointer-to-int-cast -Wreturn-type -Wsequence= -point -Wshadow -Wsign-compare -Wstrict-aliasing -Wswitch -Wtrigraphs -Wund= ef -Wunknown-pragmas -Wunused -Wunused-function -Wunused-label -Wunused-par= ameter -Wunused-value -Wunused-variable -Wvariadic-macros -Wvolatile-regis= ter-var -Wwrite-strings -Wnested-externs -Wstrict-prototypes -Wpointer-sign= -g -Wredundant-decls -Wmissing-prototypes -Wmissing-declarations -Wcast-al= ign -m32 -freg-struct-return -fno-dwarf2-cfi-asm -fno-asynchronous-unwind-t= ables -fno-stack-protector -Wl,--defsym,abort=3Dmain -Wall -W -I$(top_srcd= ir)/include -I$(top_builddir)/include -DGRUB_MACHINE_IEEE1275=3D1 -DGRUB_M= ACHINE=3DPOWERPC_IEEE1275 -DGRUB_TARGET_CPU_POWERPC=3D1 -m32 -static -m32 c= onftest.c -lgcc >&5 [ 121s] conftest.c:385:1: warning: function declaration isn't a prototype = [-Wstrict-prototypes] [ 121s] char __bswapsi2 (); [ 121s] conftest.c:385:1: warning: function declaration isn't a prototype = [-Wstrict-prototypes] [ 121s] char __bswapsi2 (); [ 121s] ^ [ 121s] /usr/lib/gcc/powerpc64-suse-linux/4.8/../../../../lib/libc.a(abort= .o): In function `abort': [ 121s] /home/abuild/rpmbuild/BUILD/glibc-2.18/stdlib/abort.c:51: multiple= definition of `abort' [ 121s] collect2: error: ld returned 1 exit status -static is added by grub2.spec. I'm not sure, why - is it really needed? --Sig_/Sy5951Gh2E60NqpdmK_QLqM Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iEYEARECAAYFAlKGJRIACgkQR6LMutpd94wuZACgwfoAeJTn7RoCpIqC7DJnAdmy lqkAoMlqxaeFDnUuDuKEjEsVClJCJUnl =rxML -----END PGP SIGNATURE----- --Sig_/Sy5951Gh2E60NqpdmK_QLqM--