From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 70DD4385152D; Fri, 28 Oct 2022 13:36:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 70DD4385152D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666964164; bh=0RBwhDVWp6IsCeEPM6illB90CPQg6rfMh6wlazcOI7k=; h=From:To:Subject:Date:In-Reply-To:References:From; b=lxkhx+BhhqCDEN8AuEM0gL+6AzcAvbkTQttI4RM6cg7J4yllO1WU1TjuyaKNbSnuR SXJTB+04VlzbtYrWcBkOfzSBj2x0WDKrsU+MtHSPsizYSGA0HkbRxyTmRI7K2D4i57 Rrwf4T0GXDaVgReBUrN53NPxDLy/hZ2Sn+1SMAFA= 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: Fri, 28 Oct 2022 13:36:03 +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 #13 from Adhemerval Zanella --- And I just hacked build-many-glibcs.py to generate a mipsel-linux-gnu toolc= hain to mimic buildroot configuration: diff --git a/scripts/build-many-glibcs.py b/scripts/build-many-glibcs.py index da9b905900..ae55183568 100755 --- a/scripts/build-many-glibcs.py +++ b/scripts/build-many-glibcs.py @@ -283,12 +283,14 @@ class Context(object): 'ccopts': '-mabi=3D32'}, {'variant': 'n64-nan2008-soft', 'ccopts': '-mabi=3D64'}]) + self.add_config(arch=3D'mipsel', + os_name=3D'linux-gnu', + gcc_cfg=3D['--with-mips-plt', '--with-arch=3Dmips3= 2r3', '--with-abi=3D32', + '--with-nan=3Dlegacy', '--with-fp-32=3Dxx= ', '--disable-multilib']) self.add_config(arch=3D'mips64el', os_name=3D'linux-gnu', gcc_cfg=3D['--with-mips-plt'], glibcs=3D[{'variant': 'n32'}, - {'arch': 'mipsel', - 'ccopts': '-mabi=3D32'}, {'variant': 'n64', 'ccopts': '-mabi=3D64'}]) self.add_config(arch=3D'mips64el', And the bootstrap finished without any issue using gcc11 release branch, binutils 2.39, and glibc 2.36. Checking the generated stage1 gcc, the libg= cc.a does not have any __register_frame: $ build/compilers/mipsel-linux-gnu$ ./binutils/binutils/objdump -t ./gcc/mipsel-glibc-linux-gnu/libgcc/libgcc.a | grep __register_frame $ $ ./binutils/binutils/objdump -t ./gcc/mipsel-glibc-linux-gnu/libgcc/libgcc_eh.a | grep __register_frame 00001f9c g F .text 000000e0 .hidden __register_frame_info_bases 0000207c g F .text 000000e0 .hidden __register_frame_info 0000215c g F .text 00000068 .hidden __register_frame 000021c4 g F .text 000000c0 .hidden __register_frame_info_table_bases 00002284 g F .text 000000c0 .hidden __register_frame_info_table 00002344 g F .text 000000e0 .hidden __register_frame_table So now I even more confident it is something on buildroot environment that = is generating a wrong stage1 gcc build. --=20 You are receiving this mail because: You are on the CC list for the bug.=