Hi Steve, Steve Ellcey wrote, > Waldemar, > > I have been building uclibc on 32 bit mips for a while but I only looked > at the MIPS64 uclibc build after I saw your email. I haven't been > able to build for MIPS64 N32 or N64 ABI's yet and I was wondering if you > have run into either of the problems I am seeing. > > I am using the latest sources with your patch included. > > > For MIPS64 and the N32 ABI my build dies with: > > libc/sysdeps/linux/mips/pread_write.c:23:32: error: '__NR_pwrite' undeclared > (first use in this function) > # define __NR___syscall_pwrite __NR_pwrite > ^ > /local/home/sellcey/gcc/uclibc/obj-mips-mti-linux-uclibc/uclibc/obj_mips64/include/bits/syscalls.h:157:4: > note: in definition of macro 'internal_syscall4' > : input, "r" (__a0), "r" (__a1), "r" (__a2) \ > ^ > /local/home/sellcey/gcc/uclibc/obj-mips-mti-linux-uclibc/uclibc/obj_mips64/include/bits/syscalls-common.h:15:33: > note: in expansion of macro '__NR___syscall_pwrite' > # define SYS_ify(syscall_name) (__NR_##syscall_name)
Same here. I just changed __NR_pwrite/__NR_pread to __NR_pread64/__NR_pwrite64 to get beyond this. I already sent an email to the list last year: http://lists.uclibc.org/pipermail/uclibc/2013-November/048100.html Bernhard told me in a private mail he wants to verify this, but he didn't get back to me since then. > . > . > > > On MIPS64 with the N64 ABI it dies with: > > /local/home/sellcey/gcc/uclibc/obj-mips-mti-linux-uclibc/uclibc/obj_mips64_64/libc/libc_so.a(lockf64.os): > In function `lockf64': > lockf64.c:(.text+0x88): undefined reference to `fcntl64' > collect2: error: ld returned 1 exit status > make: *** > [/local/home/sellcey/gcc/uclibc/obj-mips-mti-linux-uclibc/uclibc/obj_mips64_64/lib/libc.so] > Error 1 > > > Have you seen either of these errors in any of your builds? I do not see this second error in my build. Just verified a few minutes ago with latest uclibc git master. How does your configuration looks like? Mine is here: http://www.openadk.org/uclibc-mips64.config > Steve Ellcey > [email protected] Nice to see others are using uclibc on mips64 (n32/n64). There is still another issue I found with mips64 n64 and setjmp/longjmp. Reproducible with executing $(pwd) in ash, which exits with a failure and a segmentation fault. I have found a solution, but it breaks mips32 support and triggers the same issue. May be you want to have a look on my patch? best regards Waldemar _______________________________________________ uClibc mailing list [email protected] http://lists.busybox.net/mailman/listinfo/uclibc
