default target architecture not set

JohnT jrt@worldlinc.net
Wed Mar 11 21:33:00 GMT 2009


The error occurred again after reconfiguring with
../glibc-2.9/./configure --prefix=/usr --enable-all-warnings
--with-cpu=i686     In other words, this configure flag doesn't do the
job. It's necessary to specify the architecture by using a compiler flag
CFLAG=" -march=i686"

gcc   -shared -static-libgcc -Wl,-O1  -Wl,-z,defs
-Wl,-dynamic-linker=/lib/ld-linux.so.2  -B/home2/bild29/csu/ 
-Wl,--version-script=/home2/bild29/libc.map -Wl,-soname=libc.so.6
-Wl,-z,combreloc -Wl,-z,relro -Wl,--hash-style=both -nostdlib
-nostartfiles -e __libc_main -L/home2/bild29 -L/home2/bild29/math
-L/home2/bild29/elf -L/home2/bild29/dlfcn -L/home2/bild29/nss
-L/home2/bild29/nis -L/home2/bild29/rt -L/home2/bild29/resolv
-L/home2/bild29/crypt -L/home2/bild29/nptl
-Wl,-rpath-link=/home2/bild29:/home2/bild29/math:/home2/bild29/elf:/home2/bild29/dlfcn:/home2/bild29/nss:/home2/bild29/nis:/home2/bild29/rt:/home2/bild29/resolv:/home2/bild29/crypt:/home2/bild29/nptl
-o /home2/bild29/libc.so -T /home2/bild29/shlib.lds
/home2/bild29/csu/abi-note.o /home2/bild29/elf/soinit.os
/home2/bild29/libc_pic.os /home2/bild29/elf/sofini.os
/home2/bild29/elf/interp.os /home2/bild29/elf/ld.so -lgcc
/home2/bild29/libc_pic.os: In function `__libc_fork':
/home2/glibc-2.9/posix/../nptl/sysdeps/unix/sysv/linux/i386/../fork.c:79:
undefined reference to `__sync_bool_compare_and_swap_4'
/home2/bild29/libc_pic.os: In function `__nscd_drop_map_ref':
/home2/glibc-2.9/nscd/nscd-client.h:320: undefined reference to
`__sync_fetch_and_add_4'
/home2/bild29/libc_pic.os: In function `nscd_getpw_r':
/home2/glibc-2.9/nscd/nscd_getpw_r.c:232: undefined reference to
`__sync_fetch_and_add_4'
/home2/bild29/libc_pic.os: In function `__nscd_drop_map_ref':
/home2/glibc-2.9/nscd/nscd-client.h:320: undefined reference to
`__sync_fetch_and_add_4'
/home2/bild29/libc_pic.os: In function `nscd_getgr_r':
/home2/glibc-2.9/nscd/nscd_getgr_r.c:321: undefined reference to
`__sync_fetch_and_add_4'
/home2/bild29/libc_pic.os: In function `__nscd_drop_map_ref':
/home2/glibc-2.9/nscd/nscd-client.h:320: undefined reference to
`__sync_fetch_and_add_4'
/home2/bild29/libc_pic.os:/home2/glibc-2.9/nscd/nscd_gethst_r.c:400:
more undefined references to `__sync_fetch_and_add_4' follow
/home2/bild29/libc_pic.os: In function `__nscd_get_map_ref':
/home2/glibc-2.9/nscd/nscd_helper.c:431: undefined reference to
`__sync_val_compare_and_swap_4'
/home2/bild29/libc_pic.os: In function `*__GI___libc_freeres':
/home2/glibc-2.9/malloc/set-freeres.c:39: undefined reference to
`__sync_bool_compare_and_swap_4'
collect2: ld returned 1 exit status
make[1]: *** [/home2/bild29/libc.so] Error 1
make[1]: Leaving directory `/home2/glibc-2.9'
make: *** [all] Error 2

John T



More information about the Libc-help mailing list