Skip to contentSkip to conversation

Unable to build x86_64 on x86_64

Buildroot Peter Korsgaard 2 participants 2 messages May 10, 2012 3 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Piotr" == Piotr Karbowski <[email protected]> writes:

Hi,

Buildroot questions belong on the buildroot list, rather than the uclibc one.

Piotr> /usr/bin/gcc -c -I. -W -Wall -Wstrict-prototypes
Piotr> -Wmissing-prototypes -Wshadow -O2
Piotr> -I/home/piotr/src/buildroot-2012.02/output/host/include Piotr> -I/home/piotr/src/buildroot-2012.02/output/host/usr/include sysinfo.c

Piotr> /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../x86_64-pc-linux-gnu/bin/as:
Piotr> error while loading shared libraries: libc.so.0: cannot open shared Piotr> object file: No such file or directory
Piotr> make[3]: *** [sysinfo.o] Error 1

Your host assembler apparently has a problem finding libc. Strangely enough it wants libc.so.0 which is a soname used by uClibc and not glibc. Do you have LD_LIBRARY_PATH set in your environment?

x86-64 to x86-64 works fine here with buildroot git.

Signature · 1 line
Bye, Peter Korsgaard
#4 lore raw
Quoted 17 lines · Peter Korsgaard
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Piotr" == Piotr Karbowski<[email protected]> writes:

Hi,

Buildroot questions belong on the buildroot list, rather than the uclibc one.

Piotr> /usr/bin/gcc -c -I. -W -Wall -Wstrict-prototypes

  Piotr>  -Wmissing-prototypes -Wshadow -O2
  Piotr>  -I/home/piotr/src/buildroot-2012.02/output/host/include
  Piotr>  -I/home/piotr/src/buildroot-2012.02/output/host/usr/include  sysinfo.c
  Piotr>  /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../x86_64-pc-linux-gnu/bin/as:
  Piotr>  error while loading shared libraries: libc.so.0: cannot open shared
  Piotr>  object file: No such file or directory
  Piotr>  make[3]: *** [sysinfo.o] Error 1
Quoted 6 lines

Your host assembler apparently has a problem finding libc. Strangely enough it wants libc.so.0 which is a soname used by uClibc and not glibc. Do you have LD_LIBRARY_PATH set in your environment?

x86-64 to x86-64 works fine here with buildroot git.

Nope, I don't. I cloned fresh buildroot from git and to ensure that any weird variables is not passed by I did:

env -i PATH=$PATH TERM=$TERM HOME=$HOME make

The result is the same.

/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../x86_64-pc-linux-gnu/bin/as:
error while loading shared libraries: libc.so.0: cannot open shared object file: No such file or directory

However after changing binutinls from 2.21.1 which is selected by default to 2.22 it does compile.

-- Piotr.