> >> > >> Can you try to build uClibc manually, like: > >> > >> $ git clone -q git://git.uClibc.org/uClibc.git /tmp/uClibc > >> $ cd !$ > >> cd /tmp/uClibc > >> $ make CROSS_COMPILE=mips-linux-gnu- ARCH=mips > >> (or however your program prefix looks like) > > Yields the following: > > > > /tmp/uClibc$ make CROSS_COMPILE=mipsel-linux- ARCH=mipsel all > > MKDIR include/bits > > GEN include/bits/uClibc_config.h > > LN include/sgidefs.h > > ... [more LN following] > > LN include/sys/user.h > > GEN include/bits/sysnum.h > > MKDIR lib > > AS lib/crt1.o > > AS lib/Scrt1.o > > libc/sysdeps/linux/mips/crt1.S: Assembler messages: > > libc/sysdeps/linux/mips/crt1.S:116: Warning: No .cprestore pseudo-op > used in PIC code > > AS lib/crti.o > > AS lib/crtn.o > > CC ldso/ldso/ldso.oS > > AS ldso/ldso/mips/resolve.oS > > ldso/ldso/mips/resolve.S: Assembler messages: > > ldso/ldso/mips/resolve.S:151: Warning: No .cprestore pseudo-op used in > PIC code > > AR cr ldso/ldso/ld-uClibc_so.a > > STRIP -x -R .note -R .comment ldso/ldso/ld-uClibc_so.a > > LD ld-uClibc-0.9.34-git.so > > collect2: ld terminated with signal 11 [Segmentation fault] > > > /opt/BCM/stbgcc-4.5.3-2.4/bin/../lib/gcc/mipsel-linux-uclibc/4.5.3/../../../../mipsel-linux-uclibc/bin/ld: > ldso/ldso/ld-uClibc_so.a(ldso.oS): > compiled for a little endian system and target is big endian > > You either have to use mips for big-endian or mipsel for > little-endian. You seem to have a mix of endian configured in uClibc > and the default of your compiler. > If the latter, put either -EL or -EB into UCLIBC_EXTRA_CFLAGS of your > .config (and please show me what you set for UCLIBC_EXTRA_CFLAGS).
Now I set UCLIBC_EXTRA_CFLAGS="-EB" in .config file and used the mipsel compiler: $ make CROSS_COMPILE=mipsel-linux- ARCH=mipsel The compilation is not finished completely (please see attached log file). The file opendir.c is compiled so I could check that _FILE_OFFSET_BITS is also not defined during compilation of opendir.c although LFS is defined in .config file. BR Martin
.config
Description: Binary data
/tmp/uClibc$ make CROSS_COMPILE=mipsel-linux- ARCH=mipsel CC libc/misc/dirent/opendir.os CC libc/misc/dirent/readdir.os CC libc/misc/dirent/rewinddir.os CC libc/misc/dirent/scandir.os CC libc/misc/dirent/seekdir.os CC libc/misc/dirent/telldir.os CC libc/misc/dirent/readdir_r.os CC libc/misc/dirent/versionsort.os CC libc/misc/dirent/readdir64.os CC libc/misc/dirent/alphasort64.os CC libc/misc/dirent/scandir64.os CC libc/misc/dirent/readdir64_r.os CC libc/misc/dirent/versionsort64.os CC libc/misc/error/err.os CC libc/misc/error/error.os CC libc/misc/file/lockf64.os CC libc/misc/file/lockf.os CC libc/misc/fnmatch/fnmatch_old.os CC libc/misc/glob/glob-susv3.os CC libc/misc/glob/glob64-susv3.os CC libc/misc/gnu/obstack.os CC libc/misc/internals/tempname.os CC libc/misc/internals/errno.os CC libc/misc/internals/h_errno.os CC libc/misc/internals/__errno_location.os CC libc/misc/internals/__h_errno_location.os CC libc/misc/internals/parse_config.os CC libc/misc/locale/setlocale.os CC libc/misc/locale/localeconv.os CC libc/misc/locale/_locale_init.os CC libc/misc/locale/nl_langinfo.os CC libc/misc/mntent/mntent.os CC libc/misc/regex/regex_old.os CC libc/misc/search/hsearch.os CC libc/misc/search/tsearch.os CC libc/misc/search/tfind.os CC libc/misc/search/tdelete.os CC libc/misc/search/twalk.os CC libc/misc/search/tdestroy.os CC libc/misc/search/lfind.os CC libc/misc/search/lsearch.os CC libc/misc/search/insque.os CC libc/misc/search/remque.os CC libc/misc/search/hcreate_r.os CC libc/misc/search/hdestroy_r.os CC libc/misc/search/hsearch_r.os CC libc/misc/statfs/statvfs.os CC libc/misc/statfs/fstatvfs.os CC libc/misc/statfs/fstatfs64.os CC libc/misc/statfs/statfs64.os CC libc/misc/statfs/statvfs64.os CC libc/misc/statfs/fstatvfs64.os CC libc/misc/syslog/syslog.os CC libc/misc/sysvipc/ftok.os CC libc/misc/sysvipc/__syscall_ipc.os CC libc/misc/sysvipc/semget.os CC libc/misc/sysvipc/semctl.os CC libc/misc/sysvipc/semop.os CC libc/misc/sysvipc/semtimedop.os CC libc/misc/sysvipc/shmat.os CC libc/misc/sysvipc/shmctl.os CC libc/misc/sysvipc/shmdt.os CC libc/misc/sysvipc/shmget.os CC libc/misc/sysvipc/msgctl.os CC libc/misc/sysvipc/msgget.os CC libc/misc/sysvipc/msgrcv.os CC libc/misc/sysvipc/msgsnd.os CC libc/misc/time/adjtime.os CC libc/misc/time/asctime.os CC libc/misc/time/asctime_r.os CC libc/misc/time/clock.os CC libc/misc/time/ctime.os CC libc/misc/time/ctime_r.os CC libc/misc/time/gmtime.os CC libc/misc/time/gmtime_r.os CC libc/misc/time/localtime.os CC libc/misc/time/localtime_r.os CC libc/misc/time/mktime.os CC libc/misc/time/strftime.os CC libc/misc/time/strptime.os CC libc/misc/time/tzset.os CC libc/misc/time/_time_t2tm.os CC libc/misc/time/__time_tm.os CC libc/misc/time/_time_mktime.os CC libc/misc/time/dysize.os CC libc/misc/time/timegm.os CC libc/misc/time/_time_mktime_tzi.os CC libc/misc/time/_time_localtime_tzi.os CC libc/misc/time/difftime.os CC libc/misc/ttyent/getttyent.os CC libc/misc/utmp/utent.os CC libc/misc/utmp/wtent.os CC libc/pwd_grp/fgetgrent.os CC libc/pwd_grp/fgetgrent_r.os CC libc/pwd_grp/fgetpwent.os CC libc/pwd_grp/fgetpwent_r.os CC libc/pwd_grp/fgetspent.os CC libc/pwd_grp/fgetspent_r.os CC libc/pwd_grp/getgrent.os CC libc/pwd_grp/getgrent_r.os CC libc/pwd_grp/getgrgid.os CC libc/pwd_grp/getgrgid_r.os CC libc/pwd_grp/getgrnam.os CC libc/pwd_grp/getgrnam_r.os CC libc/pwd_grp/getgrouplist.os CC libc/pwd_grp/__getgrouplist_internal.os CC libc/pwd_grp/getpw.os CC libc/pwd_grp/getpwent.os CC libc/pwd_grp/getpwent_r.os CC libc/pwd_grp/getpwnam.os CC libc/pwd_grp/getpwnam_r.os CC libc/pwd_grp/getpwuid.os CC libc/pwd_grp/getpwuid_r.os CC libc/pwd_grp/getspent.os CC libc/pwd_grp/getspent_r.os CC libc/pwd_grp/getspnam.os CC libc/pwd_grp/getspnam_r.os CC libc/pwd_grp/initgroups.os CC libc/pwd_grp/lckpwdf.os CC libc/pwd_grp/__parsegrent.os CC libc/pwd_grp/__parsepwent.os CC libc/pwd_grp/__parsespent.os CC libc/pwd_grp/__pgsreader.os CC libc/pwd_grp/putgrent.os CC libc/pwd_grp/putpwent.os CC libc/pwd_grp/putspent.os CC libc/pwd_grp/sgetspent.os CC libc/pwd_grp/sgetspent_r.os CC libc/stdio/fclose.os CC libc/stdio/fcloseall.os CC libc/stdio/fdopen.os CC libc/stdio/fgetpos.os CC libc/stdio/fopen.os CC libc/stdio/freopen.os CC libc/stdio/fseeko.os CC libc/stdio/fsetpos.os CC libc/stdio/ftello.os CC libc/stdio/getdelim.os CC libc/stdio/getline.os CC libc/stdio/gets.os CC libc/stdio/getw.os CC libc/stdio/perror.os CC libc/stdio/puts.os CC libc/stdio/putw.os CC libc/stdio/remove.os CC libc/stdio/rewind.os CC libc/stdio/setbuf.os CC libc/stdio/setbuffer.os CC libc/stdio/setlinebuf.os CC libc/stdio/setvbuf.os CC libc/stdio/ungetc.os CC libc/stdio/printf.os CC libc/stdio/vprintf.os CC libc/stdio/vsprintf.os CC libc/stdio/fprintf.os CC libc/stdio/snprintf.os CC libc/stdio/dprintf.os CC libc/stdio/asprintf.os CC libc/stdio/sprintf.os CC libc/stdio/vasprintf.os CC libc/stdio/vdprintf.os CC libc/stdio/vsnprintf.os CC libc/stdio/tmpfile.os CC libc/stdio/popen.os libc/stdio/popen.c:127:2: warning: #warning is pclose correct wrt the new mutex semantics? CC libc/stdio/ctermid.os CC libc/stdio/fgetpos64.os CC libc/stdio/fopen64.os CC libc/stdio/freopen64.os CC libc/stdio/fseeko64.os CC libc/stdio/fsetpos64.os CC libc/stdio/ftello64.os CC libc/stdio/_READ.os CC libc/stdio/_WRITE.os CC libc/stdio/_adjust_pos.os CC libc/stdio/_fopen.os CC libc/stdio/_fwrite.os CC libc/stdio/_rfill.os CC libc/stdio/_stdio.os CC libc/stdio/_trans2r.os CC libc/stdio/_trans2w.os CC libc/stdio/_wcommit.os CC libc/stdio/_cs_funcs.os CC libc/stdio/_load_inttype.os CC libc/stdio/_store_inttype.os CC libc/stdio/_uintmaxtostr.os CC libc/stdio/_fpmaxtostr.os CC libc/stdio/__fbufsize.os CC libc/stdio/__flbf.os CC libc/stdio/__fpending.os CC libc/stdio/__fpurge.os CC libc/stdio/__freadable.os CC libc/stdio/__freading.os CC libc/stdio/__fsetlocking.os CC libc/stdio/__fwritable.os CC libc/stdio/__fwriting.os CC libc/stdio/_flushlbf.os CC libc/stdio/flockfile.os CC libc/stdio/ftrylockfile.os CC libc/stdio/funlockfile.os CC libc/stdio/vfprintf.os CC libc/stdio/_vfprintf_internal.os CC libc/stdio/_ppfs_init.os CC libc/stdio/_ppfs_prepargs.os CC libc/stdio/_ppfs_setargs.os CC libc/stdio/_ppfs_parsespec.os CC libc/stdio/register_printf_function.os CC libc/stdio/parse_printf_format.os CC libc/stdio/vfscanf.os CC libc/stdio/__scan_cookie.os CC libc/stdio/__psfs_parse_spec.os CC libc/stdio/__psfs_do_numeric.os CC libc/stdio/scanf.os CC libc/stdio/sscanf.os CC libc/stdio/fscanf.os CC libc/stdio/vscanf.os CC libc/stdio/vsscanf.os CC libc/stdio/clearerr.os CC libc/stdio/feof.os CC libc/stdio/ferror.os CC libc/stdio/fflush.os CC libc/stdio/fgetc.os CC libc/stdio/fgets.os CC libc/stdio/fileno.os CC libc/stdio/fputc.os CC libc/stdio/fputs.os CC libc/stdio/fread.os CC libc/stdio/fwrite.os CC libc/stdio/getchar.os CC libc/stdio/putchar.os CC libc/stdio/clearerr_unlocked.os CC libc/stdio/feof_unlocked.os CC libc/stdio/ferror_unlocked.os CC libc/stdio/fflush_unlocked.os In file included from libc/stdio/fflush_unlocked.c:9:0: libc/stdio/fflush.c: In function 'fflush_unlocked': libc/stdio/fflush.c:100:2: warning: #warning fix for nonatomic libc/stdio/fflush.c:101:2: warning: #warning unnecessary check if no threads CC libc/stdio/fgetc_unlocked.os CC libc/stdio/fgets_unlocked.os CC libc/stdio/fileno_unlocked.os CC libc/stdio/fputc_unlocked.os CC libc/stdio/fputs_unlocked.os CC libc/stdio/fread_unlocked.os CC libc/stdio/fwrite_unlocked.os CC libc/stdio/getchar_unlocked.os CC libc/stdio/putchar_unlocked.os AS libc/string/mips/memcpy.os AS libc/string/mips/memset.os CC libc/string/generic/memchr.os CC libc/string/generic/memcmp.os CC libc/string/generic/memmem.os CC libc/string/generic/memmove.os CC libc/string/generic/mempcpy.os CC libc/string/generic/memrchr.os CC libc/string/generic/rawmemchr.os CC libc/string/generic/strcat.os CC libc/string/generic/strchr.os CC libc/string/generic/strchrnul.os CC libc/string/generic/strcmp.os CC libc/string/generic/strcpy.os CC libc/string/generic/strcspn.os CC libc/string/generic/strlen.os CC libc/string/generic/strncat.os CC libc/string/generic/strncmp.os CC libc/string/generic/strncpy.os CC libc/string/generic/strnlen.os CC libc/string/generic/strrchr.os CC libc/string/generic/strsep.os CC libc/string/generic/strspn.os CC libc/string/generic/strstr.os CC libc/string/generic/strtok_r.os CC libc/string/basename.os CC libc/string/bcopy.os CC libc/string/bzero.os CC libc/string/dirname.os CC libc/string/ffs.os CC libc/string/ffsll.os CC libc/string/__glibc_strerror_r.os CC libc/string/memccpy.os CC libc/string/psignal.os CC libc/string/stpcpy.os CC libc/string/stpncpy.os CC libc/string/strcasecmp.os CC libc/string/strcasestr.os CC libc/string/strdup.os CC libc/string/strerror.os CC libc/string/_string_syserrmsgs.os CC libc/string/_string_syssigmsgs.os CC libc/string/strlcat.os CC libc/string/strlcpy.os CC libc/string/strncasecmp.os CC libc/string/strndup.os CC libc/string/strpbrk.os CC libc/string/strsignal.os CC libc/string/strtok.os CC libc/string/strverscmp.os CC libc/string/sys_errlist.os CC libc/string/sys_siglist.os CC libc/string/__xpg_basename.os CC libc/string/__xpg_strerror_r.os CC libc/termios/cfmakeraw.os CC libc/termios/cfsetspeed.os CC libc/termios/isatty.os CC libc/termios/speed.os CC libc/termios/tcdrain.os CC libc/termios/tcflow.os CC libc/termios/tcflush.os CC libc/termios/tcgetattr.os CC libc/termios/tcgetpgrp.os CC libc/termios/tcgetsid.os CC libc/termios/tcsendbrk.os CC libc/termios/tcsetattr.os CC libc/termios/tcsetpgrp.os CC libc/termios/ttyname.os CC libc/inet/ntohl.os CC libc/inet/getservice.os CC libc/inet/getproto.os CC libc/inet/getnet.os CC libc/inet/hostid.os CC libc/inet/inet_net.os CC libc/inet/herror.os CC libc/inet/if_index.os CC libc/inet/gai_strerror.os CC libc/inet/getaddrinfo.os CC libc/inet/ifaddrs.os CC libc/inet/ntop.os CC libc/inet/inet_aton.os CC libc/inet/inet_addr.os CC libc/inet/inet_ntoa.os CC libc/inet/inet_makeaddr.os CC libc/inet/inet_lnaof.os CC libc/inet/inet_netof.os CC libc/inet/encodeh.os CC libc/inet/decodeh.os CC libc/inet/encoded.os CC libc/inet/decoded.os CC libc/inet/encodeq.os CC libc/inet/encodea.os CC libc/inet/read_etc_hosts_r.os CC libc/inet/dnslookup.os CC libc/inet/opennameservers.os CC libc/inet/closenameservers.os CC libc/inet/getnameinfo.os CC libc/inet/gethostent.os CC libc/inet/gethostent_r.os CC libc/inet/get_hosts_byaddr_r.os CC libc/inet/get_hosts_byname_r.os CC libc/inet/gethostbyaddr_r.os CC libc/inet/gethostbyname_r.os CC libc/inet/gethostbyname2_r.os CC libc/inet/gethostbyaddr.os CC libc/inet/gethostbyname.os CC libc/inet/gethostbyname2.os CC libc/inet/accept.os CC libc/inet/bind.os CC libc/inet/connect.os CC libc/inet/getpeername.os CC libc/inet/getsockname.os CC libc/inet/getsockopt.os CC libc/inet/listen.os CC libc/inet/recv.os CC libc/inet/recvfrom.os CC libc/inet/recvmsg.os CC libc/inet/send.os CC libc/inet/sendmsg.os CC libc/inet/sendto.os CC libc/inet/setsockopt.os CC libc/inet/shutdown.os CC libc/inet/socket.os CC libc/inet/socketpair.os CC libc/inet/accept4.os CC libc/inet/opensock.os CC libc/inet/ethers.os In file included from /usr/include/asm/posix_types.h:4:0, from /usr/include/linux/posix_types.h:47, from /usr/include/linux/types.h:8, from /usr/include/linux/if_ether.h:24, from ./include/netinet/if_ether.h:25, from ./include/netinet/ether.h:25, from libc/inet/ethers.c:14: /usr/include/asm/posix_types_64.h:10:23: error: redefinition of typedef '__kernel_ino_t' ./include/bits/kernel_types.h:40:23: note: previous declaration of '__kernel_ino_t' was here /usr/include/asm/posix_types_64.h:11:22: error: redefinition of typedef '__kernel_mode_t' ./include/bits/kernel_types.h:41:22: note: previous declaration of '__kernel_mode_t' was here /usr/include/asm/posix_types_64.h:12:23: error: redefinition of typedef '__kernel_nlink_t' ./include/bits/kernel_types.h:50:24: note: previous declaration of '__kernel_nlink_t' was here /usr/include/asm/posix_types_64.h:13:15: error: redefinition of typedef '__kernel_off_t' ./include/bits/kernel_types.h:53:15: note: previous declaration of '__kernel_off_t' was here /usr/include/asm/posix_types_64.h:14:14: error: redefinition of typedef '__kernel_pid_t' ./include/bits/kernel_types.h:54:14: note: previous declaration of '__kernel_pid_t' was here /usr/include/asm/posix_types_64.h:15:14: error: conflicting types for '__kernel_ipc_pid_t' ./include/bits/kernel_types.h:55:19: note: previous declaration of '__kernel_ipc_pid_t' was here /usr/include/asm/posix_types_64.h:16:22: error: conflicting types for '__kernel_uid_t' ./include/bits/kernel_types.h:56:14: note: previous declaration of '__kernel_uid_t' was here /usr/include/asm/posix_types_64.h:17:22: error: conflicting types for '__kernel_gid_t' ./include/bits/kernel_types.h:57:14: note: previous declaration of '__kernel_gid_t' was here /usr/include/asm/posix_types_64.h:18:23: error: conflicting types for '__kernel_size_t' ./include/bits/kernel_types.h:58:22: note: previous declaration of '__kernel_size_t' was here /usr/include/asm/posix_types_64.h:19:15: error: conflicting types for '__kernel_ssize_t' ./include/bits/kernel_types.h:59:14: note: previous declaration of '__kernel_ssize_t' was here /usr/include/asm/posix_types_64.h:20:15: error: conflicting types for '__kernel_ptrdiff_t' ./include/bits/kernel_types.h:60:14: note: previous declaration of '__kernel_ptrdiff_t' was here /usr/include/asm/posix_types_64.h:21:15: error: redefinition of typedef '__kernel_time_t' ./include/bits/kernel_types.h:61:15: note: previous declaration of '__kernel_time_t' was here /usr/include/asm/posix_types_64.h:22:15: error: redefinition of typedef '__kernel_suseconds_t' ./include/bits/kernel_types.h:62:15: note: previous declaration of '__kernel_suseconds_t' was here /usr/include/asm/posix_types_64.h:23:15: error: redefinition of typedef '__kernel_clock_t' ./include/bits/kernel_types.h:63:15: note: previous declaration of '__kernel_clock_t' was here /usr/include/asm/posix_types_64.h:26:14: error: conflicting types for '__kernel_daddr_t' ./include/bits/kernel_types.h:64:15: note: previous declaration of '__kernel_daddr_t' was here /usr/include/asm/posix_types_64.h:27:17: error: redefinition of typedef '__kernel_caddr_t' ./include/bits/kernel_types.h:65:17: note: previous declaration of '__kernel_caddr_t' was here /usr/include/asm/posix_types_64.h:28:24: error: redefinition of typedef '__kernel_uid16_t' ./include/bits/kernel_types.h:66:24: note: previous declaration of '__kernel_uid16_t' was here /usr/include/asm/posix_types_64.h:29:24: error: redefinition of typedef '__kernel_gid16_t' ./include/bits/kernel_types.h:67:24: note: previous declaration of '__kernel_gid16_t' was here /usr/include/asm/posix_types_64.h:32:19: error: redefinition of typedef '__kernel_loff_t' ./include/bits/kernel_types.h:75:24: note: previous declaration of '__kernel_loff_t' was here /usr/include/asm/posix_types_64.h:37:3: error: conflicting types for '__kernel_fsid_t' ./include/bits/kernel_types.h:81:3: note: previous declaration of '__kernel_fsid_t' was here /usr/include/asm/posix_types_64.h:39:24: error: conflicting types for '__kernel_old_uid_t' ./include/bits/kernel_types.h:70:24: note: previous declaration of '__kernel_old_uid_t' was here /usr/include/asm/posix_types_64.h:40:24: error: conflicting types for '__kernel_old_gid_t' ./include/bits/kernel_types.h:71:24: note: previous declaration of '__kernel_old_gid_t' was here /usr/include/asm/posix_types_64.h:41:24: error: conflicting types for '__kernel_uid32_t' ./include/bits/kernel_types.h:68:14: note: previous declaration of '__kernel_uid32_t' was here /usr/include/asm/posix_types_64.h:42:24: error: conflicting types for '__kernel_gid32_t' ./include/bits/kernel_types.h:69:14: note: previous declaration of '__kernel_gid32_t' was here /usr/include/asm/posix_types_64.h:44:23: error: conflicting types for '__kernel_old_dev_t' ./include/bits/kernel_types.h:72:24: note: previous declaration of '__kernel_old_dev_t' was here make: *** [libc/inet/ethers.os] Fehler 1
_______________________________________________ uClibc mailing list uClibc@uclibc.org http://lists.busybox.net/mailman/listinfo/uclibc