<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
<br>Hi,<br>i'm trying to build an emdedded distro for arm machine following the instruction <br>inside 'Cross-Compiled Linux From Scratch - Embedded Version SVN-0.0.1-20081203-arm'<br>At the moment i'm not able to build uClibc-0.9.30-rc3 like explained on chapter <br>'6.8. uClibc-0.9.30-rc3'.<br><br>When i type 'make CC="${CLFS_TARGET}-gcc ${BUILD}"'<br>i receive this error message:<br>clfs:/mnt/clfs/sources/uClibc-0.9.30-rc3$ make CC="${CLFS_TARGET}-gcc ${BUILD}"<br>  CC ldso/ldso/ldso.oS<br>cc1: error: unrecognized command line option "-m32"<br>make: *** [ldso/ldso/ldso.oS] Error 1<br><br>My host pc is a 32 bit centrino 1.7Mhz machine running a fedora 9 os, so following instruction <br>in chapter '6.3. ABI Variables',i set BUILD=-m32.<br>The above error message imply the cross gcc compiler build at '6.7. Cross GCC-4.3.2 - Static' <br>don't recognize the -m32 option.<br>If i compile without setting BUILD enviroment variable i have the  log below.<br>Any suggestion or workaround to procede?<br>Thanks in advance<br>Peppe.<br><br><br>In file included from ./ldso/include/ldso.h:36,<br>                 from ldso/ldso/ldso.c:33:<br>./ldso/include/dl-syscall.h: In function '_dl_exit':<br>./ldso/include/dl-syscall.h:62: error: '__NR_exit' undeclared (first use in this function)<br>./ldso/include/dl-syscall.h:62: error: (Each undeclared identifier is reported only once<br>./ldso/include/dl-syscall.h:62: error: for each function it appears in.)<br>./ldso/include/dl-syscall.h: In function '_dl_close':<br>./ldso/include/dl-syscall.h:65: error: '__NR_close' undeclared (first use in this function)<br>./ldso/include/dl-syscall.h: In function '_dl_open':<br>./ldso/include/dl-syscall.h:69: error: '__NR_open' undeclared (first use in this function)<br>./ldso/include/dl-syscall.h: In function '_dl_write':<br>./ldso/include/dl-syscall.h:73: error: '__NR_write' undeclared (first use in this function)<br>./ldso/include/dl-syscall.h: In function '_dl_read':<br>./ldso/include/dl-syscall.h:77: error: '__NR_read' undeclared (first use in this function)<br>./ldso/include/dl-syscall.h: In function '_dl_mprotect':<br>./ldso/include/dl-syscall.h:81: error: '__NR_mprotect' undeclared (first use in this function)<br>./ldso/include/dl-syscall.h: In function '_dl_stat':<br>./ldso/include/dl-syscall.h:85: error: '__NR_stat' undeclared (first use in this function)<br>./ldso/include/dl-syscall.h: In function '_dl_fstat':<br>./ldso/include/dl-syscall.h:88: error: '__NR_fstat' undeclared (first use in this function)<br>./ldso/include/dl-syscall.h: In function '_dl_munmap':<br>./ldso/include/dl-syscall.h:91: error: '__NR_munmap' undeclared (first use in this function)<br>./ldso/include/dl-syscall.h: In function '_dl_getuid':<br>./ldso/include/dl-syscall.h:97: error: '__NR_getuid' undeclared (first use in this function)<br>./ldso/include/dl-syscall.h: In function '_dl_geteuid':<br>./ldso/include/dl-syscall.h:103: error: '__NR_getuid' undeclared (first use in this function)<br>./ldso/include/dl-syscall.h: In function '_dl_getgid':<br>./ldso/include/dl-syscall.h:109: error: '__NR_getgid' undeclared (first use in this function)<br>./ldso/include/dl-syscall.h: In function '_dl_getegid':<br>./ldso/include/dl-syscall.h:115: error: '__NR_getgid' undeclared (first use in this function)<br>./ldso/include/dl-syscall.h: In function '_dl_getpid':<br>./ldso/include/dl-syscall.h:121: error: '__NR_getpid' undeclared (first use in this function)<br>./ldso/include/dl-syscall.h: In function '_dl_readlink':<br>./ldso/include/dl-syscall.h:125: error: '__NR_readlink' undeclared (first use in this function)<br>In file included from ./ldso/include/ldso.h:36,<br>                 from ldso/ldso/ldso.c:33:<br>./ldso/include/dl-syscall.h:200:3: error: #error "Your architecture doesn't seem to provide mmap() !?"<br>ldso/ldso/ldso.c: In function '_dl_get_ready_to_run':<br>ldso/ldso/ldso.c:512: warning: implicit declaration of function '_dl_mmap'<br>ldso/ldso/ldso.c: In function '_dl_malloc':<br>ldso/ldso/ldso.c:922: warning: assignment makes pointer from integer without a cast<br>In file included from ldso/ldso/ldso.c:947:<br>ldso/ldso/dl-elf.c: In function '_dl_map_cache':<br>ldso/ldso/dl-elf.c:60: warning: assignment makes pointer from integer without a cast<br>ldso/ldso/dl-elf.c: In function '_dl_load_elf_shared_library':<br>ldso/ldso/dl-elf.c:377: warning: assignment makes pointer from integer without a cast<br>ldso/ldso/dl-elf.c: In function '_dl_dprintf':<br>ldso/ldso/dl-elf.c:839: warning: assignment makes pointer from integer without a cast<br>make: *** [ldso/ldso/ldso.oS] Error 1<br><br><br><br><br /><hr />Visita il suo Spaces! <a href='http://doretta82live.spaces.live.com/' target='_new'>Scopri le novità di Doretta.</a></body>
</html>