[Clfs-dev] Cross-Compiled Linux From Scratch - Embedded:unable to build uClibc-0.9.30

giuseppe marchi joshua777 at live.it
Wed Dec 31 14:44:26 PST 2008



Hi,
i'm trying to build an emdedded distro for arm machine following the instruction 
inside 'Cross-Compiled Linux From Scratch - Embedded Version SVN-0.0.1-20081203-arm'
At the moment i'm not able to build uClibc-0.9.30-rc3 like explained on chapter 
'6.8. uClibc-0.9.30-rc3'.

When i type 'make CC="${CLFS_TARGET}-gcc ${BUILD}"'
i receive this error message:
clfs:/mnt/clfs/sources/uClibc-0.9.30-rc3$ make CC="${CLFS_TARGET}-gcc ${BUILD}"
  CC ldso/ldso/ldso.oS
cc1: error: unrecognized command line option "-m32"
make: *** [ldso/ldso/ldso.oS] Error 1

My host pc is a 32 bit centrino 1.7Mhz machine running a fedora 9 os, so following instruction 
in chapter '6.3. ABI Variables',i set BUILD=-m32.
The above error message imply the cross gcc compiler build at '6.7. Cross GCC-4.3.2 - Static' 
don't recognize the -m32 option.
If i compile without setting BUILD enviroment variable i have the  log below.
Any suggestion or workaround to procede?
Thanks in advance
Peppe.


In file included from ./ldso/include/ldso.h:36,
                 from ldso/ldso/ldso.c:33:
./ldso/include/dl-syscall.h: In function '_dl_exit':
./ldso/include/dl-syscall.h:62: error: '__NR_exit' undeclared (first use in this function)
./ldso/include/dl-syscall.h:62: error: (Each undeclared identifier is reported only once
./ldso/include/dl-syscall.h:62: error: for each function it appears in.)
./ldso/include/dl-syscall.h: In function '_dl_close':
./ldso/include/dl-syscall.h:65: error: '__NR_close' undeclared (first use in this function)
./ldso/include/dl-syscall.h: In function '_dl_open':
./ldso/include/dl-syscall.h:69: error: '__NR_open' undeclared (first use in this function)
./ldso/include/dl-syscall.h: In function '_dl_write':
./ldso/include/dl-syscall.h:73: error: '__NR_write' undeclared (first use in this function)
./ldso/include/dl-syscall.h: In function '_dl_read':
./ldso/include/dl-syscall.h:77: error: '__NR_read' undeclared (first use in this function)
./ldso/include/dl-syscall.h: In function '_dl_mprotect':
./ldso/include/dl-syscall.h:81: error: '__NR_mprotect' undeclared (first use in this function)
./ldso/include/dl-syscall.h: In function '_dl_stat':
./ldso/include/dl-syscall.h:85: error: '__NR_stat' undeclared (first use in this function)
./ldso/include/dl-syscall.h: In function '_dl_fstat':
./ldso/include/dl-syscall.h:88: error: '__NR_fstat' undeclared (first use in this function)
./ldso/include/dl-syscall.h: In function '_dl_munmap':
./ldso/include/dl-syscall.h:91: error: '__NR_munmap' undeclared (first use in this function)
./ldso/include/dl-syscall.h: In function '_dl_getuid':
./ldso/include/dl-syscall.h:97: error: '__NR_getuid' undeclared (first use in this function)
./ldso/include/dl-syscall.h: In function '_dl_geteuid':
./ldso/include/dl-syscall.h:103: error: '__NR_getuid' undeclared (first use in this function)
./ldso/include/dl-syscall.h: In function '_dl_getgid':
./ldso/include/dl-syscall.h:109: error: '__NR_getgid' undeclared (first use in this function)
./ldso/include/dl-syscall.h: In function '_dl_getegid':
./ldso/include/dl-syscall.h:115: error: '__NR_getgid' undeclared (first use in this function)
./ldso/include/dl-syscall.h: In function '_dl_getpid':
./ldso/include/dl-syscall.h:121: error: '__NR_getpid' undeclared (first use in this function)
./ldso/include/dl-syscall.h: In function '_dl_readlink':
./ldso/include/dl-syscall.h:125: error: '__NR_readlink' undeclared (first use in this function)
In file included from ./ldso/include/ldso.h:36,
                 from ldso/ldso/ldso.c:33:
./ldso/include/dl-syscall.h:200:3: error: #error "Your architecture doesn't seem to provide mmap() !?"
ldso/ldso/ldso.c: In function '_dl_get_ready_to_run':
ldso/ldso/ldso.c:512: warning: implicit declaration of function '_dl_mmap'
ldso/ldso/ldso.c: In function '_dl_malloc':
ldso/ldso/ldso.c:922: warning: assignment makes pointer from integer without a cast
In file included from ldso/ldso/ldso.c:947:
ldso/ldso/dl-elf.c: In function '_dl_map_cache':
ldso/ldso/dl-elf.c:60: warning: assignment makes pointer from integer without a cast
ldso/ldso/dl-elf.c: In function '_dl_load_elf_shared_library':
ldso/ldso/dl-elf.c:377: warning: assignment makes pointer from integer without a cast
ldso/ldso/dl-elf.c: In function '_dl_dprintf':
ldso/ldso/dl-elf.c:839: warning: assignment makes pointer from integer without a cast
make: *** [ldso/ldso/ldso.oS] Error 1




_________________________________________________________________
Che tipo sei? Crea la tua animoticon invernale!
http://www.messenger.it/test.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clfs.org/pipermail/clfs-dev-clfs.org/attachments/20081231/11d5cfde/attachment.html>


More information about the Clfs-dev mailing list