From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1514A3851521; Thu, 27 Oct 2022 14:04:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1514A3851521 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666879468; bh=d8+m0R/ev663KwBAQwVO+NzpOwPn22sNFPv5ZRCaIDM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=JIOI7TrXty00uTTmoyOxxyqLqv7TJAAO84ImFyaKl9tMniaoZzajehlUIIp8DYFqw 53F0QSe/ryDvghdcIVzQcFbKHOrYGRpEpiML/zyAmPfR2IHByzlWEFXzXqWypQEO1i PgXllYSd8QZnjelsd1RmqqKv0wok3OF0ZmwE8iVA= From: "adhemerval.zanella at linaro dot org" 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 14:04:23 +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: adhemerval.zanella at linaro dot org 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 #7 from Adhemerval Zanella --- (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 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 t= he libc for unwinding (thus why ld.so link is failing). I mimic what build-many-glibcs.py [1] does (which is canonical way to build complete toolchain for glibc) and build a stage1 on buildroot system with: --- ./configure \ --prefix=3D/tmp/buildroot/output/host \ --build=3Dx86_64-pc-linux-gnu \ --host=3Dx86_64-pc-linux-gnu \ --target=3Dmips64el-glibc-linux-gnu \ --sysconfdir=3D/tmp/buildroot/output/host/etc \ --localstatedir=3D/tmp/buildroot/output/host/var \ --target=3Dmipsel-buildroot-linux-gnu \ --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 --- And with this stage1 gcc I could finish the glibc build. I am afraid you wi= ll need to sort this out on buildroot stage1 configuration flags used on gcc. [1] https://sourceware.org/git/?p=3Dglibc.git;a=3Dblob;f=3Dscripts/build-many-g= libcs.py;h=3D5af6f369ae04027911b3407c64716dd1571eae6a;hb=3DHEAD --=20 You are receiving this mail because: You are on the CC list for the bug.=