[uClibc] mipsel build failure

Samium Gromoff deepfire at elvees.com
Mon Aug 2 12:20:06 UTC 2004


Greetings.

here is what i get while trying to crossbuild uClibc 0.9.26 on i386 for mipsel-linux, using
kernel headers of 2.6.5 and gcc 3.2.2 (the .config of uClibc is attached):

make[2]: Entering directory `/home/deepfire/libc/uClibc-0.9.26/ldso/ldso'
mipsel-linux-gcc  -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing  -Os -D__linux__  -mno-split-addresses  -mips32 -mcpu=r4600 -fPIC -DUCLIBC_RUNTIME_PREFIX=\"/usr/mips-linux-uclibc/\" -fno-builtin -nostdinc -I../../ldso/include -I. -I../../include -I/usr/local/eltools/lib/gcc-lib/mipsel-elcore-elf32/3.2.2/include -I../libdl -c ldso.c -o ldso.o
In file included from ../../include/bits/types.h:143,
                 from ../../include/sys/types.h:30,
                 from ../../include/stdlib.h:463,
                 from ../../ldso/include/ldso.h:3,
                 from ldso.c:108:
../../include/bits/pthreadtypes.h:49: parse error before "size_t"
../../include/bits/pthreadtypes.h:49: warning: no semicolon at end of struct or union
../../include/bits/pthreadtypes.h:52: parse error before "__stacksize"
../../include/bits/pthreadtypes.h:52: warning: type defaults to `int' in declaration of `__stacksize'
../../include/bits/pthreadtypes.h:52: warning: data definition has no type or storage class
../../include/bits/pthreadthread_attr_t'
../../include/bits/pthreadtypes.h:53: warning: data definition has no type or storage class
In file included from ../../ldso/include/ldso.h:3,
                 from ldso.c:108:
../../include/stdlib.h:480: parse error before "size_t"
../../include/stdlib.h:480: warning: function declaration isn't a prototype
../../include/stdlib.h:509: parse error before "size_t"
../../include/stdlib.h:510: warning: function declaration isn't a prototype
../../include/stdlib.h:607: parse error before "__size"
../../include/stdlib.h:607: warning: function declaration isn't a prototype
../../include/stdlib.h:609: parse error before "__nmemb"
../../include/stdlib.h:610: warning: function declaration isn't a prototype
../../include/stdlib.h:618: parse error before "size_t"
../../include/stdlib.h:618: warning: function declaration isn't a prototype
In file included from ../../include/stdlib.h:629,
                 from ../../ldso/include/ldso.h:3,
                 from ldso.c:108:
../../include/alloca.h:33: parse error before "__size"
../../include/alloca.h:33: warning: function declaration isn't a prototype
In file included from ../../ldso/include/ldso.h:3,
                 from ldso.c:108:
../../include/stdlib.h:634: parse error before "__size"
../../include/stdlib.h:634: warning: function declaration isn't a prototype
../../include/stdlib.h:814: parse error before "size_t"
../../include/stdlib.h:814: warning: function declaration isn't a prototype
../../include/stdlib.h:818: parse error before "size_t"
../../include/stdlib.h:819: warning: function declaration isn't a prototype
In file included from ../../ldso/include/ldso.h:9,
                 from ldso.c:108:
../../ldso/include/ld_syscall.h: In function `_dl_exit':
../../ldso/include/ld_syscall.h:46: `__NR_exit' undeclared (first use in this function)
../../ldso/include/ld_syscall.h:46: (Each undeclared identifier is reported only once
../../ldso/include/ld_syscall.h:46: for each function it appears in.)
../../ldso/include/ld_syscall.h: In function `_dl_close':
../../ldso/include/ld_syscall.h:50: `__NR_close' undeclared (first use in this function)
../../ldso/include/ld_syscall.h: At top level:
../../ldso/include/ld_syscall.h:57: parse error before "size_t"
../../ldso/include/ld_syscall.h:57: warning: function declaration isn't a prototype
../../ldso/include/ld_syscall.h: In function `_dl_mmap':
../../ldso/include/ld_syscall.h:57: `__NR_mmap' undeclared (first use in this function)
types.h:53: warning: type defaults to `int' in declaration of `p../../ldso/include/ld_syscall.h:57: `start' undeclared (first use in this function)
../../ldso/include/ld_syscall.h:57: `length' undeclared (first use in this function)
../../ldso/include/ld_syscall.h:57: `prot' undeclared (first use in this function)
../../ldso/include/ld_syscall.h:57: `flags' undeclared (first use in this function)
../../ldso/include/ld_syscall.h:57: `fd' undeclared (first use in this function)
../../ldso/include/ld_syscall.h:57: `offset' undeclared (first use in this function)
../../ldso/include/ld_syscall.h: In function `_dl_open':
../../ldso/include/ld_syscall.h:96: `__NR_open' undeclared (first use in this function)
../../ldso/include/ld_syscall.h: In function `_dl_write':
../../ldso/include/ld_syscall.h:100: `__NR_write' undeclared (first use in this function)
../../ldso/include/ld_syscall.h: In function `_dl_read':
../../ldso/include/ld_syscall.h:105: `__NR_read' undeclared (first use in this function)
../../ldso/include/ld_syscall.h: In function `_dl_mprotect':
../../ldso/include/ld_syscall.h:108: `__NR_mprotect' undeclared (first use in this function)
../../ldso/include/ld_syscall.h: In function `_dl_stat':
../../ldso/include/ld_syscall.h:113: `__NR_stat' undeclared (first use in this function)
../../ldso/include/ld_syscall.h: In function `_dl_munmap':
../../ldso/include/ld_syscall.h:117: `__NR_munmap' undeclared (first use in this function)
../../ldso/include/ld_syscall.h: In function `_dl_getuid':
../../ldso/include/ld_syscall.h:120: `__NR_getuid' undeclared (first use in this function)
../../ldso/include/ld_syscall.h: In function `_dl_geteuid':
../../ldso/include/ld_syscall.h:123: `__NR_geteuid' undeclared (first use in this function)
../../ldso/include/ld_syscall.h: In function `_dl_getgid':
../../ldso/include/ld_syscall.h:126: `__NR_getgid' undeclared (first use in this function)
../../ldso/include/ld_syscall.h: In function `_dl_getegid':
../../ldso/include/ld_syscall.h:129: `__NR_getegid' undeclared (first use in this function)
../../ldso/include/ld_syscall.h: In function `_dl_getpid':
../../ldso/include/ld_syscall.h:132: `__NR_getpid' undeclared (first use in this function)
../../ldso/include/ld_syscall.h: At top level:
../../ldso/include/ld_syscall.h:154: parse error before "size_t"
../../ldso/include/ld_syscall.h:154: warning: function declaration isn't a prototype
../../ldso/include/ld_syscall.h: In function `_dl_readlink':
../../ldso/include/ld_syscall.h:154: `__NR_readlink' undeclared (first use in this function)
../../ldso/include/ld_syscall.h:154: `path' undeclared (first use in this function)
../../ldso/include/ld_syscall.h:154: `buf' undeclared (first use in this function)
../../ldso/include/ld_syscall.h:154: `bufsiz' undeclared (first use in this function)
In file included from ../../ldso/include/ldso.h:11,
                 from ldso.c:108:
../../ldso/include/ld_string.h: At top level:
../../ldso/include/ld_string.h:11: parse error before "_dl_strlen"
../../ldso/include/ld_string.h:11: warning: type defaults to `int' in declaration of `_dl_strlen'
../../ldso/include/ld_string.h:11: warning: data definition has no type or storage class
../../ldso/include/ld_string.h:15: parse error before "size_t"
../../ldso/include/ld_string.h:15: warning: function declaration isn't a prototype
../../ldso/include/ld_string.h:19: parse error before "size_t"
../../ldso/include/ld_string.h:19: warning: function declaration isn't a prototype
../../ldso/include/ld_string.h:20: parse error before "size_t"
../../ldso/include/ld_string.h:20: warning: function declaration isn't a prototype
../../ldso/include/ld_string.h:21: parse error before "size_t"
../../ldso/include/ld_string.h:21: warning: function declaration isn't a prototype
../../ldso/include/ld_string.h:30: parse error before "_dl_strlen"
../../ldso/include/ld_string.h:31: warning: return type defaults to `int'
../../ldso/include/ld_string.h:79: parse error before "size_t"
../../ldso/include/ld_string.h:80: warning: function declaration isn't a prototype
../../ldso/include/ld_string.h: In function `_dl_strncmp':
../../ldso/include/ld_string.h:84: `len' undeclared (first use in this function)
../../ldso/include/ld_string.h:85: `s1' undeclared (first use in this function)
../../ldso/include/ld_string.h:86: `s2' undeclared (first use in this function)
../../ldso/include/ld_string.h: At top level:
../../ldso/include/ld_string.h:147: parse error before "size_t"
../../ldso/include/ld_string.h:148: warning: function declaration isn't a prototype
../../ldso/include/ld_string.h: In function `_dl_memcpy':
../../ldso/include/ld_string.h:149: `dst' undeclared (first use in this function)
../../ldso/include/ld_string.h:150: `src' undeclared (first use in this function)
../../ldso/include/ld_string.h:152: `len' undeclared (first use in this function)
../../ldso/include/ld_string.h: At top level:
../../ldso/include/ld_string.h:159: parse error before "size_t"
../../ldso/include/ld_string.h:160: warning: function declaration isn't a prototype
../../ldso/include/ld_string.h: In function `_dl_memcmp':
../../ldso/include/ld_string.h:161: `s1' undeclared (first use in this function)
../../ldso/include/ld_string.h:162: `s2' undeclared (first use in this function)
../../ldso/include/ld_string.h:164: `len' undeclared (first use in this function)
../../ldso/include/ld_string.h: At top level:
../../ldso/include/ld_string.h:173: parse error before "size_t"
../../ldso/include/ld_string.h:174: warning: function declaration isn't a prototype
../../ldso/include/ld_string.h: In function `_dl_memset':
../../ldso/include/ld_string.h:175: `str' undeclared (first use in this function)
../../ldso/include/ld_string.h:177: `len' undeclared (first use in this function)
../../ldso/include/ld_string.h:178: `c' undeclared (first use in this function)
In file included from ../../include/asm/page.h:12,
                 from ../../ldso/include/ldso.h:13,
                 from ldso.c:108:
../../include/linux/config.h:4:28: linux/autoconf.h: No such file or directory
In file included from _dl_progname.h:2,
                 from ldso.c:156:
mips/elfinterp.c: In function `_dl_parse_relocation_information':
mips/elfinterp.c:177: warning: unused variable `old_val'
ldso.c: In function `_dl_boot2':
ldso.c:362: `PAGE_SIZE' undeclared (first use in this function)
ldso.c:454:2: warning: #warning "Debugging threads on mips won't work till someone fixes this..."
In file included from ldso.c:1343:
readelflib1.c: In function `_dl_load_elf_shared_library':
readelflib1.c:452: `PAGE_SIZE' undeclared (first use in this function)
In file included from ldso.c:1343:
readelflib1.c: In function `_dl_dprintf':
readelflib1.c:787: `PAGE_SIZE' undeclared (first use in this function)
In file included from ldso.c:1343:
readelflib1.c: At top level:
readelflib1.c:872: parse error before "size"
readelflib1.c:872: warning: function declaration isn't a prototype
readelflib1.c: In function `_dl_malloc':
readelflib1.c:886: `PAGE_SIZE' undeclared (first use in this function)
make[2]: *** [ldso.o] Error 1
make[2]: Leaving directory `/home/deepfire/libc/uClibc-0.9.26/ldso/ldso'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/deepfire/libc/uClibc-0.9.26/ldso'
make: *** [_dir_ldso] Error 2

Hope this helps...

regards, Samium Gromoff
-------------- next part --------------
#
# Automatically generated make config: don't edit
#
# TARGET_alpha is not set
# TARGET_arm is not set
# TARGET_cris is not set
# TARGET_e1 is not set
# TARGET_h8300 is not set
# TARGET_i386 is not set
# TARGET_i960 is not set
# TARGET_m68k is not set
# TARGET_microblaze is not set
TARGET_mips=y
# TARGET_powerpc is not set
# TARGET_sh is not set
# TARGET_sparc is not set
# TARGET_v850 is not set

#
# Target Architecture Features and Options
#
HAVE_ELF=y
TARGET_ARCH="mips"
ARCH_CFLAGS="-mno-split-addresses"
# CONFIG_MIPS_ISA_1 is not set
# CONFIG_MIPS_ISA_2 is not set
# CONFIG_MIPS_ISA_3 is not set
# CONFIG_MIPS_ISA_4 is not set
CONFIG_MIPS_ISA_MIPS32=y
# CONFIG_MIPS_ISA_MIPS64 is not set
ARCH_LITTLE_ENDIAN=y
# ARCH_BIG_ENDIAN is not set
# ARCH_HAS_NO_MMU is not set
UCLIBC_HAS_MMU=y
# UCLIBC_HAS_FLOATS is not set
WARNINGS="-Wall"
KERNEL_SOURCE="/home/deepfire/kernel/src"
C_SYMBOL_PREFIX=""
HAVE_DOT_CONFIG=y

#
# General Library Settings
#
# HAVE_NO_PIC is not set
DOPIC=y
# HAVE_NO_SHARED is not set
HAVE_SHARED=y
# ARCH_HAS_NO_LDSO is not set
BUILD_UCLIBC_LDSO=y
# UCLIBC_PIE_SUPPORT is not set
LDSO_LDD_SUPPORT=y
UCLIBC_CTOR_DTOR=y
# UCLIBC_PROPOLICE is not set
# UCLIBC_PROFILING is not set
# HAS_NO_THREADS is not set
UCLIBC_HAS_THREADS=y
# PTHREADS_DEBUG_SUPPORT is not set
# UCLIBC_HAS_LFS is not set
# MALLOC is not set
# MALLOC_SIMPLE is not set
MALLOC_STANDARD=y
MALLOC_GLIBC_COMPAT=y
UCLIBC_DYNAMIC_ATEXIT=y
HAS_SHADOW=y
UNIX98PTY_ONLY=y
ASSUME_DEVPTS=y
UCLIBC_HAS_TM_EXTENSIONS=y
UCLIBC_HAS_TZ_CACHING=y
UCLIBC_HAS_TZ_FILE=y
UCLIBC_HAS_TZ_FILE_READ_MANY=y
UCLIBC_TZ_FILE_PATH="/etc/TZ"

#
# Networking Support
#
# UCLIBC_HAS_IPV6 is not set
# UCLIBC_HAS_RPC is not set

#
# String and Stdio Support
#
UCLIBC_HAS_CTYPE_TABLES=y
UCLIBC_HAS_CTYPE_SIGNED=y
UCLIBC_HAS_CTYPE_UNSAFE=y
# UCLIBC_HAS_CTYPE_CHECKED is not set
# UCLIBC_HAS_CTYPE_ENFORCED is not set
# UCLIBC_HAS_WCHAR is not set
# UCLIBC_HAS_LOCALE is not set
# UCLIBC_HAS_GLIBC_CUSTOM_PRINTF is not set
# USE_OLD_VFPRINTF is not set
UCLIBC_PRINTF_SCANF_POSITIONAL_ARGS=9
# UCLIBC_HAS_SCANF_GLIBC_A_FLAG is not set
# UCLIBC_HAS_STDIO_BUFSIZ_NONE is not set
# UCLIBC_HAS_STDIO_BUFSIZ_256 is not set
# UCLIBC_HAS_STDIO_BUFSIZ_512 is not set
# UCLIBC_HAS_STDIO_BUFSIZ_1024 is not set
# UCLIBC_HAS_STDIO_BUFSIZ_2048 is not set
UCLIBC_HAS_STDIO_BUFSIZ_4096=y
# UCLIBC_HAS_STDIO_BUFSIZ_8192 is not set
UCLIBC_HAS_STDIO_BUILTIN_BUFFER_NONE=y
# UCLIBC_HAS_STDIO_BUILTIN_BUFFER_4 is not set
# UCLIBC_HAS_STDIO_BUILTIN_BUFFER_8 is not set
UCLIBC_HAS_STDIO_GETC_MACRO=y
UCLIBC_HAS_STDIO_PUTC_MACRO=y
UCLIBC_HAS_STDIO_AUTO_RW_TRANSITION=y
# UCLIBC_HAS_FOPEN_EXCLUSIVE_MODE is not set
# UCLIBC_HAS_GLIBC_CUSTOM_STREAMS is not set
# UCLIBC_HAS_PRINTF_M_SPEC is not set
UCLIBC_HAS_ERRNO_MESSAGES=y
# UCLIBC_HAS_SYS_ERRLIST is not set
UCLIBC_HAS_SIGNUM_MESSAGES=y
# UCLIBC_HAS_SYS_SIGLIST is not set
UCLIBC_HAS_GNU_GETOPT=y

#
# Big and Tall
#
UCLIBC_HAS_REGEX=y
UCLIBC_HAS_WORDEXP=y
UCLIBC_HAS_FTW=y
UCLIBC_HAS_GLOB=y

#
# Library Installation Options
#
SHARED_LIB_LOADER_PREFIX="$(DEVEL_PREFIX)/lib"
RUNTIME_PREFIX="/usr/$(TARGET_ARCH)-linux-uclibc/"
DEVEL_PREFIX="/usr/$(TARGET_ARCH)-linux-uclibc/usr/"

#
# uClibc development/debugging options
#
# DODEBUG is not set
# DOASSERTS is not set
# SUPPORT_LD_DEBUG is not set
# SUPPORT_LD_DEBUG_EARLY is not set
# UCLIBC_MJN3_ONLY is not set


More information about the uClibc mailing list