mmap64: use INLINE_SYSCALL() helper fails for ppc

Mike Frysinger vapier at gentoo.org
Thu Apr 12 23:43:44 UTC 2012


On Thursday 12 April 2012 19:38:08 Khem Raj wrote:
> I am seeing build failure on ppc
> 
> | libc/libc_so.a(mmap64.os): In function `mmap64':
> 
> | /home/kraj/work/openembedded-core/build/tmp-uclibc/work/ppc603e-oe-linux-
uclibc/uclibc-0.9.33+gitra7c4e889e9c36fc19198654ada229aaa11955ee6-
r6.0/git/libc/sysdeps/linux/common/mmap64.c:60:
> undefined reference to `__illegally_sized_syscall_arg6'
> 
> | collect2: error: ld returned 1 exit status
> 
> It could be related to
> 
> Author: Mike Frysinger <vapier at gentoo.org>
> Date:   Wed Apr 11 16:05:08 2012 -0400
> 
>     mmap64: use INLINE_SYSCALL() helper

i was assuming INLINE_SYSCALL() would implicitly cast down the sizes, but i 
guess this is kind of better ... it forces you to add casts when you know it's 
ok, but errors out when you missed something.

i'll commit a fix shortly (just to case it down to 32bits).
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.busybox.net/pipermail/uclibc/attachments/20120412/3e4c7c22/attachment.asc>


More information about the uClibc mailing list