From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3F3AE3846446; Thu, 27 Oct 2022 19:57:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3F3AE3846446 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666900640; bh=LnNs0SlLc0/SoCc/Czno319Xdag0Es/StGMpDFF4xR0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=RwS3WlzcXUMCltxZ2axWORdngb+tf2eTZWqVZMYHKvB7UZk4TZFEpT7zuD0YgLylM BqIL3hEh0GWkGnED3LtR2FDbrGzoJ4hCyy3Iz7qwJ6jiZui7w4Pn01ceYLG1lepuhz AO4NeKrwROnZPl5ib07aXDGoFQptOSvwcxKWj2SQ= From: "james.hilliard1 at gmail dot com" To: glibc-bugs@sourceware.org Subject: [Bug libc/29621] librtld.os: in function `__register_frame': libgcc/unwind-dw2-fde.c:136: undefined reference to `malloc' Date: Thu, 27 Oct 2022 19:57:11 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Version: 2.36 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: james.hilliard1 at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D29621 --- Comment #8 from James Hilliard --- (In reply to Adhemerval Zanella from comment #7) > (In reply to James Hilliard from comment #6) > >=20 > > Full commands: > > git clone https://github.com/buildroot/buildroot.git > > cd buildroot > > git checkout e4ecf82f99f53e55d51e6f74ae5021473aa2bb1d > > wget > > http://autobuild.buildroot.net/results/883/ > > 883b171a856a63540908976592683527fdb21cd2/config > > mv config .config > > make glibc >=20 > Ok, with this one I can see the buildroot failure. It seems that it is > misconfiguring the stage1 gcc, where the libgcc.a generated is relying on > the libc for unwinding (thus why ld.so link is failing). >=20 > I mimic what build-many-glibcs.py [1] does (which is canonical way to bui= ld > complete toolchain for glibc) and build a stage1 on buildroot system with: >=20 > --- > ./configure \ > --prefix=3D/tmp/buildroot/output/host \ > --build=3Dx86_64-pc-linux-gnu \ > --host=3Dx86_64-pc-linux-gnu \ > --target=3Dmips64el-glibc-linux-gnu \ This looks wrong, we aren't building for mips64el(which our autobuilders al= so indicate does not have this particular build failure). > --sysconfdir=3D/tmp/buildroot/output/host/etc \ > --localstatedir=3D/tmp/buildroot/output/host/var \ > --target=3Dmipsel-buildroot-linux-gnu \ Setting target a second time? >=20=20 > --with-sysroot=3D/tmp/buildroot/output/host/mipsel-buildroot-linux-gnu/sy= sroot > \ > --with-gmp=3D/tmp/buildroot/output/host \ > --with-mpc=3D/tmp/buildroot/output/host \ > --with-mpfr=3D/tmp/buildroot/output/host \ > --with-pkgversion=3D"Buildroot 2022.08-383-ge4ecf82f99-dirty" \ > --with-bugurl=3Dhttp://bugs.buildroot.net/ \ > --enable-initfini-array \ > --disable-libssp \ > --disable-shared \ > --disable-threads \ > --disable-libatomic \ > --disable-decimal-float \ > --disable-libffi \ > --disable-libgomp \ > --disable-libitm \ > --disable-libmpx \ > --disable-libquadmath \ > --disable-libsanitizer \ > --without-headers\ > --with-newlib \ > --enable-languages=3Dc, \ > --with-arch=3Dmips32r3 --with-abi=3D32 --with-nan=3Dlegacy --with-fp-32= =3Dxx > --- I've attempted to make a build using this configuration but have not been a= ble to get a working build. >=20 > And with this stage1 gcc I could finish the glibc build. I am afraid you > will need to sort this out on buildroot stage1 configuration flags used on > gcc. I've tested by patching our gcc stage1 configure(package/gcc/gcc-initial/gcc-initial.mk). Replacing HOST_GCC_INITIAL_CONF_OPTS with this for testing: HOST_GCC_INITIAL_CONF_OPTS =3D \ --build=3Dx86_64-pc-linux-gnu \ --host=3Dx86_64-pc-linux-gnu \ --target=3D$(GNU_TARGET_NAME) \ --with-sysroot=3D$(STAGING_DIR) \ --with-gmp=3D$(HOST_DIR) \ --with-mpc=3D$(HOST_DIR) \ --with-mpfr=3D$(HOST_DIR) \ --with-pkgversion=3D"Buildroot $(BR2_VERSION_FULL)" \ --with-bugurl=3Dhttp://bugs.buildroot.net/ \ --enable-initfini-array \ --disable-libssp \ --disable-shared \ --disable-threads \ --disable-libatomic \ --disable-decimal-float \ --disable-libffi \ --disable-libgomp \ --disable-libitm \ --disable-libmpx \ --disable-libquadmath \ --disable-libsanitizer \ --without-headers \ --with-newlib \ --enable-languages=3Dc, \ --with-arch=3Dmips32r3 --with-abi=3D32 --with-nan=3Dlegacy --with-f= p-32=3Dxx With this I get the same failure as before. Does this successfully build for you? After patching gcc-initial.mk to test I do: make clean make glibc >=20 > [1] > https://sourceware.org/git/?p=3Dglibc.git;a=3Dblob;f=3Dscripts/build-many= -glibcs. > py;h=3D5af6f369ae04027911b3407c64716dd1571eae6a;hb=3DHEAD --=20 You are receiving this mail because: You are on the CC list for the bug.=