All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [Bug 3817] New: Failed to compile binutils-2.21
@ 2011-06-04  5:14 bugzilla at busybox.net
  2011-06-04  5:15 ` [Buildroot] [Bug 3817] " bugzilla at busybox.net
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: bugzilla at busybox.net @ 2011-06-04  5:14 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=3817

           Summary: Failed to compile binutils-2.21
           Product: buildroot
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Other
        AssignedTo: unassigned at buildroot.uclibc.org
        ReportedBy: fhbxl at hotmail.com
                CC: buildroot at uclibc.org
   Estimated Hours: 0.0


Enviornment: Fedora 15 
I downloaded buildroot-20110603.tar.bz2, unzipped it, only saved directly to
use the default values in menuconfig. Then do a simple "make". I got a compile
error when compiling binutils-2.21, the error is:

# gcc >= 4.3.0 have to also build all-target-libgcc
/usr/bin/make -j2 -C
/home/haibo/learn/buildroot/output/toolchain/gcc-4.3.5-intermediate all-gcc
all-target-libgcc
make[3]: Nothing to be done for `all'.
make[4]: Nothing to be done for `all'.
make[4]: Nothing to be done for `all'.
make[3]: Nothing to be done for `all'.
make[3]: Nothing to be done for `all'.
make[3]: Nothing to be done for `all'.
test -f config.h || (rm -f stamp-h1 && /usr/bin/make stamp-h1)
Checking multilib configuration for libgcc...
/bin/sh: error while loading shared libraries: /usr/lib/libc.so: invalid ELF
header
# If this is the top-level multilib, build all the other
/bin/sh: error while loading shared libraries: /usr/lib/libc.so: invalid ELF
header
make[3]: *** [all-multi] Error 127
make[2]: *** [all-target-libgcc] Error 2
make[1]: ***
[/home/haibo/learn/buildroot/output/toolchain/gcc-4.3.5-intermediate/.compiled]
Error 2
make: *** [all] Error 2

I could work around this problem by doing the following:
$cd /usr/lib
$rm libc.so
$ln -s /lib/libc.so.6 libc.so

But this is not the best way, because ASCII file /usr/lib/libc.so's missing
incurs other problems, fox example "make menuconfig" fails to launch

-- 
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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [Bug 3817] Failed to compile binutils-2.21
  2011-06-04  5:14 [Buildroot] [Bug 3817] New: Failed to compile binutils-2.21 bugzilla at busybox.net
@ 2011-06-04  5:15 ` bugzilla at busybox.net
  2011-08-26  7:29 ` bugzilla at busybox.net
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: bugzilla at busybox.net @ 2011-06-04  5:15 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=3817

Feng Haibo <fhbxl@hotmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
               Host|                            |i386
             Target|                            |i386

-- 
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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [Bug 3817] Failed to compile binutils-2.21
  2011-06-04  5:14 [Buildroot] [Bug 3817] New: Failed to compile binutils-2.21 bugzilla at busybox.net
  2011-06-04  5:15 ` [Buildroot] [Bug 3817] " bugzilla at busybox.net
@ 2011-08-26  7:29 ` bugzilla at busybox.net
  2011-09-02 14:50 ` bugzilla at busybox.net
  2012-01-31 22:57 ` bugzilla at busybox.net
  3 siblings, 0 replies; 5+ messages in thread
From: bugzilla at busybox.net @ 2011-08-26  7:29 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=3817

Peter Korsgaard <jacmet@uclibc.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED

--- Comment #1 from Peter Korsgaard <jacmet@uclibc.org>  ---
(In reply to comment #0)
> /bin/sh: error while loading shared libraries: /usr/lib/libc.so: invalid ELF
> header

> I could work around this problem by doing the following:
> $cd /usr/lib
> $rm libc.so
> $ln -s /lib/libc.so.6 libc.so
> 
> But this is not the best way, because ASCII file /usr/lib/libc.so's missing
> incurs other problems, fox example "make menuconfig" fails to launch

Huh, is your system libc corrupt? Are you building as root?

-- 
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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [Bug 3817] Failed to compile binutils-2.21
  2011-06-04  5:14 [Buildroot] [Bug 3817] New: Failed to compile binutils-2.21 bugzilla at busybox.net
  2011-06-04  5:15 ` [Buildroot] [Bug 3817] " bugzilla at busybox.net
  2011-08-26  7:29 ` bugzilla at busybox.net
@ 2011-09-02 14:50 ` bugzilla at busybox.net
  2012-01-31 22:57 ` bugzilla at busybox.net
  3 siblings, 0 replies; 5+ messages in thread
From: bugzilla at busybox.net @ 2011-09-02 14:50 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=3817

--- Comment #2 from S?rgio <sergio@serjux.com>  ---
(In reply to comment #0)

> I could work around this problem by doing the following:
> $cd /usr/lib
> $rm libc.so
> $ln -s /lib/libc.so.6 libc.so
> 
> But this is not the best way, because ASCII file /usr/lib/libc.so's missing
> incurs other problems, fox example "make menuconfig" fails to launch

I notice this workaround , is wrong , no,  /usr/lib/libc.so is not missing  ,
/usr/lib/libc.so, is in glibc-devel package.
Sometimes, also, some people do this wrong workaround when need the static
libraries which normally are in a package glibc-static

-- 
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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [Bug 3817] Failed to compile binutils-2.21
  2011-06-04  5:14 [Buildroot] [Bug 3817] New: Failed to compile binutils-2.21 bugzilla at busybox.net
                   ` (2 preceding siblings ...)
  2011-09-02 14:50 ` bugzilla at busybox.net
@ 2012-01-31 22:57 ` bugzilla at busybox.net
  3 siblings, 0 replies; 5+ messages in thread
From: bugzilla at busybox.net @ 2012-01-31 22:57 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=3817

Thomas Petazzoni <thomas.petazzoni@free-electrons.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |WORKSFORME

--- Comment #3 from Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 2012-01-31 22:57:59 UTC ---
Many people routinely build toolchains with Buildroot without seeing this
problem, and we haven't had further details from the initial bug reporter since
several months. I'm therefore closing this bug. Anyone seeing the issue is
invited to reopen the bug with more details.

-- 
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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-01-31 22:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-04  5:14 [Buildroot] [Bug 3817] New: Failed to compile binutils-2.21 bugzilla at busybox.net
2011-06-04  5:15 ` [Buildroot] [Bug 3817] " bugzilla at busybox.net
2011-08-26  7:29 ` bugzilla at busybox.net
2011-09-02 14:50 ` bugzilla at busybox.net
2012-01-31 22:57 ` bugzilla at busybox.net

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.