[Clfs-dev] Clfs-dev Digest, Vol 15, Issue 1

Binghoo Dang dangbinghoo at gmail.com
Fri Jan 2 00:02:39 PST 2009


clfs-dev-request at lists.cross-lfs.org 写道:
> Send Clfs-dev mailing list submissions to
> 	clfs-dev at lists.cross-lfs.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://lists.cross-lfs.org/listinfo.cgi/clfs-dev-cross-lfs.org
> or, via email, send a message with subject or body 'help' to
> 	clfs-dev-request at lists.cross-lfs.org
>
> You can reach the person managing the list at
> 	clfs-dev-owner at lists.cross-lfs.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Clfs-dev digest..."
>
>
> Today's Topics:
>
>    1. Cross-Compiled Linux From Scratch - Embedded:unable to build
>       uClibc-0.9.30 (giuseppe marchi)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 31 Dec 2008 23:44:26 +0100
> From: giuseppe marchi <joshua777 at live.it>
> Subject: [Clfs-dev] Cross-Compiled Linux From Scratch -
> 	Embedded:unable to build uClibc-0.9.30
> To: <clfs-dev at lists.cross-lfs.org>
> Message-ID: <BLU122-W294835CA38BA21ED9922AE2E40 at phx.gbl>
> Content-Type: text/plain; charset="iso-8859-1"
>
>
>
> 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.cross-lfs.org/pipermail/clfs-dev-cross-lfs.org/attachments/20081231/11d5cfde/attachment.html>
>
> ------------------------------
>
> _______________________________________________
> Clfs-dev mailing list
> Clfs-dev at lists.cross-lfs.org
> http://lists.cross-lfs.org/listinfo.cgi/clfs-dev-cross-lfs.org
>
>
> End of Clfs-dev Digest, Vol 15, Issue 1
> ***************************************
>   
Check your $CLFS-TARGET settings, don't use the host CC to compile the 
target program.




More information about the Clfs-dev mailing list