[uClibc](newbie) compile uclibc on m68k platform

Kerberos Zhang kerberos at minigui.org
Mon Mar 17 02:17:55 UTC 2003


I compiled the uclibc as static library, but when I can't compile the
test program of uclibc. 
the error message is:

../../extra/gcc-uClibc/m68k-uclibc-gcc --uclibc-use-build-dir -Wall
-Wstrict-prototypes -O0 -Wa,--bitwise-or
-I/home/kerberos/devel/uClinux-dist/linux-2.4.x/include -g -c arg_test.c
-o arg_test.o
../../extra/gcc-uClibc/m68k-uclibc-gcc --uclibc-use-build-dir -g
-Wl,-warn-common arg_test.o -o arg_test
/home/kerberos/devel/uClibc-0.9.19/lib/libc.a(__uClibc_main.o): In
function '__uClibc_start_main':
__uClibc_main.o(.text+0x84): relocation truncated to fit: R_68K_PLT16
__h_errno_location
collect2: ld returned 1 extit status


My uClibc config is:
HAVE_ELF=y
ARCH_CFLAGS="-Wa,--bitwise-or -I$(KERNEL_SOURCE)/include"
ARCH_HAS_NO_MMU=y
UCLIBC_HAS_FLOATS=y
UCLIBC_HAS_SOFT_FLOAT=y
DO_C99_MATH=y
WARNINGS="-Wall"
KERNEL_SOURCE="/home/kerberos/devel/uClinux-dist/linux-2.4.x"
UCLIBC_UCLINUX_BROKEN_MUNMAP=y
EXCLUDE_BREAK=y
C_SYMBOL_PREFIX=""
HAVE_DOT_CONFIG=y

DOPIC=y
UCLIBC_HAS_THREADS=y
UCLIBC_HAS_LFS=y
MALLOC=Y
UCLIBC_DYNAMIC_ATEXIT=y
HAS_SHADOW=y
UCLIBC_HAS_REGEX=y
UNIX98PTY_ONLY=y
ASSUME_DEVPTS=y

Anybody known what's wrong?

Thanks
                  Kerberos Zhang




More information about the uClibc mailing list