New: uClibc: undefined reference to `__GI___errno_location'
https://bugs.busybox.net/show_bug.cgi?id=4021
Host: x86
Target: sparc
Summary: uClibc: undefined reference to `__GI___errno_location'
Product: buildroot
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Keywords: link-failure
Severity: critical
Priority: P5
Component: Other
AssignedTo: unassigned at buildroot.uclibc.org
ReportedBy: belousov.oleg at gmail.com
CC: buildroot at uclibc.org
Estimated Hours: 0.0
Created attachment 3517
--> https://bugs.busybox.net/attachment.cgi?id=3517
.config
Buildroot version 2011.05:
AR cr lib/libc.a
STRIP -x -R .note -R .comment lib/libc.a
AR cr lib/uclibc_nonshared.a
STRIP -x -R .note -R .comment lib/uclibc_nonshared.a AR cr libc/libc_so.a
STRIP -x -R .note -R .comment libc/libc_so.a
LD libuClibc-0.9.31.1.so
libc/libc_so.a(fork.os): In function `__GI_fork':
(.text+0x14): undefined reference to `__GI___errno_location'
collect2: ld returned 1 exit status
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 4021] uClibc: undefined reference to `__GI___errno_location'
https://bugs.busybox.net/show_bug.cgi?id=4021
--- Comment #1 from Oleg <[email protected]> --- Version 2011.02 build properly
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 4021] uClibc: undefined reference to `__GI___errno_location'
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=4021
Peter Korsgaard <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
--- Comment #2 from Peter Korsgaard <[email protected]> --- (In reply to comment #1)
Quoted 1 line
Version 2011.02 build properly
And latest git? I'm almost ready to release 2011.08-rc1.
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 4021] uClibc: undefined reference to `__GI___errno_location'
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=4021
--- Comment #3 from Oleg <[email protected]> --- (In reply to comment #2)
Quoted 1 line
And latest git? I'm almost ready to release 2011.08-rc1.
Daily snapshot doesn't compile too
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 4021] uClibc: undefined reference to `__GI___errno_location'
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=4021
--- Comment #4 from Kevin Robbins <[email protected]> 2011-11-07 23:53:13 UTC --- I can confirm that this bug remains in both current head and 2011.08. I, too, am building for a LEON3 SPARC v8 processor with a hardware FPU. uLibc fails in just the same way for versions 0.9.31, 0.9.32, and today's daily snapshot.
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 4021] uClibc: undefined reference to `__GI___errno_location'
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=4021
--- Comment #5 from ke <[email protected]> 2011-11-16 12:11:59 UTC --- Created attachment 3752
--> https://bugs.busybox.net/attachment.cgi?id=3752
get rid of errno_location error
Unhide __errno_location to avoid undefined symbol errror
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 4021] uClibc: undefined reference to `__GI___errno_location'
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=4021
Peter Korsgaard <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED--- Comment #6 from Peter Korsgaard <[email protected]> 2011-11-17 05:57:54 UTC --- Fixed by Gustavos in git (8c38a0a44), thanks
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 4021] uClibc: undefined reference to `__GI___errno_location'
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=4021
Peter Korsgaard <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |CLOSED
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 4021] uClibc: undefined reference to `__GI___errno_location'
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=4021
Mike Frysinger <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|CLOSED |REOPENED
CC| |uclibc-cvs at uclibc.org
Component|Other |Other
Resolution|FIXED |
AssignedTo|unassigned at buildroot.uclibc |unassigned at uclibc.org
|.org |
Product|buildroot |uClibc--- Comment #7 from Mike Frysinger <[email protected]> 2011-11-20 08:02:11 UTC --- uClibc master branch is still using HIDDEN_JUMPTARGET (like it should be). the proposed patch is wrong imo and really shouldn't be in buildroot, but i'll let the BR guys worry about that.
why is your libc/misc/internals/__errno_location.c not being compiled with this symbol ? it should look like:
$ readelf -sW libc/misc/internals/__errno_location.os | grep FUNC
8: 0000000000000000 8 FUNC WEAK HIDDEN 1
__GI___errno_location
11: 0000000000000000 8 FUNC WEAK DEFAULT 1 __errno_locationSignature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 4021] uClibc: undefined reference to `__GI___errno_location'
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=4021
Bernhard Reutner-Fischer <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |FIXED--- Comment #8 from Bernhard Reutner-Fischer <[email protected]> 2014-07-24 19:04:58 UTC --- hidden weak handling is unfortunately pretty broken in recent gcc. Since (IIRC) c++ and/or TLS handling elsewhere started to rely on this broken behaviour chances are low that it will be fixed (as in behaviour of previous gcc reinstated). An alternative was applied as 00f425b39b9258a78df47cebdd0d2c779753392f and the earlier acfc107a50344b100b9ea492678928acc047c6ae
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 4021] uClibc: undefined reference to `__GI___errno_location'
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=4021
mail at waldemar-brodkorb.de changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |--- Comment #9 from mail at waldemar-brodkorb.de 2014-07-26 08:51:42 UTC --- Hi,
tried with current master and the problem still exist.
Can you share your working environment data? (build system, gcc version, binutils version)
Removing HIDDEN_JUMPTARGET still make it work.
best regards
Waldemar
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 4021] uClibc: undefined reference to `__GI___errno_location'
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=4021
cory42080 at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P5 |P1
Status|REOPENED |NEW
Version|unspecified |1.22.x
Component|Other |Other
CC| |busybox-cvs at busybox.net
AssignedTo|unassigned at uclibc.org |unassigned at busybox.net
Product|uClibc |Busybox
Severity|critical |normalSignature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 4021] uClibc: undefined reference to `__GI___errno_location'
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=4021
Bernhard Reutner-Fischer <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|Other |Other
Version|1.22.x |unspecified
AssignedTo|unassigned at busybox.net |unassigned at uclibc.org
Product|Busybox |uClibcSignature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 4021] uClibc: undefined reference to `__GI___errno_location'
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=4021
Bernhard Reutner-Fischer <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P1 |P5
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 4021] uClibc: undefined reference to `__GI___errno_location'
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=4021
Mike Frysinger <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Build| |x86
Target|sparc |
Host|x86 |sparcSignature · 5 lines
You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20151202/427b46c3/attachment.html>