Relocatable linking with relocations from format elf64-x86-64-freebsd (crt1_s.o) to format elf32-i386-freebsd (gcrt1.o) is not supported

Dimitry Andric dim at FreeBSD.org
Thu Aug 18 06:47:55 UTC 2011


On 2011-08-18 07:01, Alexander Best wrote:
> i'm getting this error, when trying to make target buildwork with clang.

You mean with "make target buildwork", that you are running "make
buildworld TARGET=whatever", right?

...
> this is the error i'm getting:
>
> ===>  lib/csu/i386-elf (obj,depend,all,install)
...
> clang -O2 -pipe -fno-strict-aliasing -fno-omit-frame-pointer -frename-registers -I/usr/git-freebsd-head/lib/csu/i386-elf/../common  -I/usr/git-freebsd-head/lib/csu/i386-elf/../../libc/include -DSTRIP_FBSDID -std=gnu99  -Wsystem-headers -Wall -Wno-format-y2k -Wextra -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign  -c /usr/git-freebsd-head/lib/csu/i386-elf/crt1_s.S
> clang: warning: argument unused during compilation: '-frename-registers'
> ld -m elf_i386_fbsd -Y P,/usr/obj/usr/git-freebsd-head/lib32/usr/lib32  -o gcrt1.o -r crt1_s.o gcrt1_c.o
> ld: Relocatable linking with relocations from format elf64-x86-64-freebsd (crt1_s.o) to format elf32-i386-freebsd (gcrt1.o) is not supported

Most likely, this is because you are forcing CC=clang, which does not
work as expected.  Can you please post your /etc/make.conf and
/etc/src.conf files, and show us any environment variables related to
buildworld?  Also, how exactly are you running make buildworld?


More information about the freebsd-toolchain mailing list