boildroot compilation problems

Javier Martinez Marti jmartinezm at backd00r.com
Wed Nov 23 12:48:37 UTC 2005


Hello,

I'm trying to compile the last toolchain, but I'm not able to do that.

*** SOURCE HOST FOR COMPILING: ***
Red Hat Enterprise Linux ES release 4 (Nahant) - Red Hat Enterprise Linux ES
(2.6.9-5.ELsmp)
Linux mon.domain.es 2.6.9-5.ELsmp #1 SMP Wed Jan 5 19:30:39 EST 2005 i686
i686 i386 GNU/Linux

I have followed the instrutions:

1. Downloaded buildroot-snapshot.tar.bz2
2. make menuconfig
	- Target Architecture (i386)
	- Target Architecture Variant (i586)
	- Toolchain Options
		- Kernel Headers (Linux 2.6.12 kernel headers)
		- Binutils Version (binutils 2.16.1)
		- GCC compiler Version (gcc 3.4.2)
  The other options as default

3. make

..starts downloading the software and compiling..and after that shows this
error message: 

--- BEGIN ---

make -C /opt/buildroot/toolchain_build_i586/uClibc \
PREFIX= \
DEVEL_PREFIX=/ \
RUNTIME_PREFIX=/ \
HOSTCC="gcc" \
        all
make[1]: Entering directory `/opt/buildroot/toolchain_build_i586/uClibc'
cd ./; make lib/ld-uClibc.so
make[2]: Entering directory `/opt/buildroot/toolchain_build_i586/uClibc'
  CC ldso/ldso/ldso.os
In file included from ./ldso/include/ldso.h:34,
                 from ldso/ldso/ldso.c:33:
./ldso/include/dl-syscall.h: In function `_dl_exit':
./ldso/include/dl-syscall.h:69: error: `__NR_exit' undeclared (first use in
this function)
./ldso/include/dl-syscall.h:69: error: (Each undeclared identifier is
reported only once
./ldso/include/dl-syscall.h:69: error: for each function it appears in.)
./ldso/include/dl-syscall.h: In function `_dl_close':
./ldso/include/dl-syscall.h:72: error: `__NR_close' undeclared (first use in
this function)
./ldso/include/dl-syscall.h: In function `_dl_open':
./ldso/include/dl-syscall.h:75: error: `__NR_open' undeclared (first use in
this function)
./ldso/include/dl-syscall.h: In function `_dl_write':
./ldso/include/dl-syscall.h:78: error: `__NR_write' undeclared (first use in
this function)
./ldso/include/dl-syscall.h: In function `_dl_read':
./ldso/include/dl-syscall.h:82: error: `__NR_read' undeclared (first use in
this function)
./ldso/include/dl-syscall.h: In function `_dl_mprotect':
./ldso/include/dl-syscall.h:86: error: `__NR_mprotect' undeclared (first use
in this function)
./ldso/include/dl-syscall.h: In function `_dl_stat':
./ldso/include/dl-syscall.h:89: error: `__NR_stat' undeclared (first use in
this function)
./ldso/include/dl-syscall.h: In function `_dl_fstat':
./ldso/include/dl-syscall.h:92: error: `__NR_fstat' undeclared (first use in
this function)
./ldso/include/dl-syscall.h: In function `_dl_munmap':
./ldso/include/dl-syscall.h:95: error: `__NR_munmap' undeclared (first use
in this function)
./ldso/include/dl-syscall.h: In function `_dl_getuid':
./ldso/include/dl-syscall.h:98: error: `__NR_getuid' undeclared (first use
in this function)
./ldso/include/dl-syscall.h: In function `_dl_geteuid':
./ldso/include/dl-syscall.h:101: error: `__NR_geteuid' undeclared (first use
in this function)
./ldso/include/dl-syscall.h: In function `_dl_getgid':
./ldso/include/dl-syscall.h:104: error: `__NR_getgid' undeclared (first use
in this function)
./ldso/include/dl-syscall.h: In function `_dl_getegid':
./ldso/include/dl-syscall.h:107: error: `__NR_getegid' undeclared (first use
in this function)
./ldso/include/dl-syscall.h: In function `_dl_getpid':
./ldso/include/dl-syscall.h:110: error: `__NR_getpid' undeclared (first use
in this function)
./ldso/include/dl-syscall.h: In function `_dl_readlink':
./ldso/include/dl-syscall.h:113: error: `__NR_readlink' undeclared (first
use in this function)
In file included from ./ldso/include/ldso.h:34,
                 from ldso/ldso/ldso.c:33:
./ldso/include/dl-syscall.h:159:2: #error "Your architecture doesn't seem to
provide mmap() !?"
ldso/ldso/ldso.c: In function `_dl_malloc':
ldso/ldso/ldso.c:857: warning: implicit declaration of function `_dl_mmap'
ldso/ldso/ldso.c:858: warning: assignment makes pointer from integer without
a cast
In file included from ldso/ldso/ldso.c:876:
ldso/ldso/dl-elf.c: In function `_dl_load_elf_shared_library':
ldso/ldso/dl-elf.c:372: warning: assignment makes pointer from integer
without a cast
ldso/ldso/dl-elf.c: In function `_dl_dprintf':
ldso/ldso/dl-elf.c:702: warning: assignment makes pointer from integer
without a cast
make[2]: *** [ldso/ldso/ldso.os] Error 1
make[2]: Leaving directory `/opt/buildroot/toolchain_build_i586/uClibc'
make[1]: *** [lib/ld-uClibc.so.0] Error 2
make[1]: Leaving directory `/opt/buildroot/toolchain_build_i586/uClibc'
make: *** [/opt/buildroot/toolchain_build_i586/uClibc/lib/libc.a] Error 2

--- END ---

Regards,
Javier



More information about the uClibc mailing list