Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Aug 2011 17:35:08 +0000
From:      Alexander Best <arundel@freebsd.org>
To:        Dimitry Andric <dim@FreeBSD.org>
Cc:        freebsd-toolchain@freebsd.org
Subject:   Re: Relocatable linking with relocations from format elf64-x86-64-freebsd (crt1_s.o) to format elf32-i386-freebsd (gcrt1.o) is not supported
Message-ID:  <20110818173508.GA92360@freebsd.org>
In-Reply-To: <4E4CB59B.3000005@FreeBSD.org>
References:  <20110818050142.GA96873@freebsd.org> <4E4CB59B.3000005@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--gKMricLos+KVdGMg
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Thu Aug 18 11, Dimitry Andric wrote:
> 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?

i've attached my src.conf, my make.conf and the output of 'env'. nothing
special, i'm using a simple 'make buildworld'.

i'm now trying to reproduce the issue with a fresh src snapshot

cheers.
alex

--gKMricLos+KVdGMg
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="make.conf"

# WORLD/KERNEL options
KERNCONF = ARUNDEL
#KERNCONF = GENERIC
#MODULES_OVERRIDE = \
#netgraph/netgraph netgraph/socket netgraph/bluetooth/bluetooth \
#netgraph/bluetooth/hci netgraph/bluetooth/l2cap netgraph/bluetooth/socket \
#netgraph/bluetooth/ubt tmpfs sound/sound sound/driver/hda usb/uhid \
#procfs pseudofs linux linprocfs linsysfs lindev usb/quirk geom \

#MODULES_OVERRIDE =
MODULES_WITH_WORLD = yes
#opensolaris dtrace cyclic nfsclient krpc nfs_common nfslock usb/quirk geom

#CC = /usr/local/bin/clang# -B/usr/bin
CC = clang
#CC = /usr/bin/clang
#CC= /usr/local/bin/pcc
#CXX = /usr/local/bin/clang++# -B/usr/bin
CXX = clang++
#CC=/usr/bin/cc
#CXX=/usr/bin/c++
#CPP=/usr/bin/cpp

# compiler flags
CPUTYPE ?= core2
#COPTFLAGS = -O2 -pipe -fno-builtin -frename-registers -fno-strict-aliasing
#COPTFLAGS = -O3 -pipe -fno-inline-functions# -frename-registers# -fno-builtin -fno-strict-aliasing
CFLAGS = -O2 -pipe -fno-strict-aliasing -fno-omit-frame-pointer -frename-registers# -fno-builtin
#CFLAGS = -O3 -pipe -fno-inline-functions -fno-omit-frame-pointer -fno-strict-aliasing -fno-builtin -frename-registers

# SENDMAIL options
SENDMAIL_MC = /etc/mail/freebsd.mc
SENDMAIL_SUBMIT_MC = /etc/mail/freebsd.submit.mc

# PORTS options
OVERRIDE_LINUX_BASE_PORT = f10
OVERRIDE_LINUX_NONBASE_PORTS = f10
DA4 = yes
WITH_BSDEL = yes
WITH_256_COLOR = yes
WITH_LCD_FILTERING = yes
GENTOO_OPTIMIZED = i686

# added by use.perl 2011-08-15 19:48:33
PERL_VERSION=5.12.4

--gKMricLos+KVdGMg
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="src.conf"

# Don't die on warnings
NO_WERROR=
WERROR=
# Don't forget this when using Jails!
#NO_FSCHG=

#CWARNFLAGS?=	-Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes\
#		-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual\
#		-Wundef -Wmissing-include-dirs

# Enable debugging symbols for world
CFLAGS += -DSTRIP_FBSDID
BURN_BRIDGES=yes

# BUILDWORLD options
BOOT2_UFS=UFS2_ONLY		# don't need UFS1 support anymore
GPTBOOT_UFS=UFS2_ONLY		# don't need UFS1 support anymore
WITHOUT_ACCT=true
#WITHOUT_ACPI=true		# needed by VirtualBox
WITHOUT_AMD=true
WITHOUT_APM=true
#WITHOUT_ASSERT_DEBUG=true	# broken
WITHOUT_AT=true
WITHOUT_ATM=true
WITHOUT_AUDIT=true
WITHOUT_BIND=true
WITHOUT_GPIO=true
WITH_BSD_GREP=true
WITHOUT_BSNMP=true
WITHOUT_CALENDAR=true
#WITHOUT_CDDL=true		# needed for dtrace
WITHOUT_CTM=true
WITHOUT_CVS=true
WITHOUT_FLOPPY=true
#WITHOUT_FORTH=true		# needed for bootloader
WITHOUT_FREEBSD_UPDATE=true
WITHOUT_GAMES=true
#WITHOUT_GNU=true		# no effect
WITHOUT_GPIB=true
#WITHOUT_GSSAPI=true		# needed for md2()
WITHOUT_HTML=true
WITH_IDEA=true
WITHOUT_INET6=true
#WITHOUT_INFO=true		# needed by ports (`install-info`)
#WITHOUT_INSTALLLIB=yes		# DON'T USE
WITHOUT_IPFILTER=true
WITHOUT_IPFW=true
WITHOUT_IPX=true
WITHOUT_JAIL=true
WITHOUT_KERBEROS=true		# possible?
WITHOUT_KERBEROS_SUPPORT=true
WITHOUT_LPR=true
WITHOUT_NDIS=true
WITHOUT_NETCAT=true
WITHOUT_NIS=true
WITHOUT_NLS=true
WITHOUT_NLS_CATALOGS=true
WITHOUT_NS_CACHING=true
WITHOUT_PAM_SUPPORT=true
WITHOUT_PF=true
WITHOUT_PMC=true
WITHOUT_PPP=true
WITHOUT_PROFILE=true		# for using gprof(1)
WITHOUT_QUOTAS=true
WITHOUT_RCMDS=true
WITHOUT_RCS=true
WITHOUT_ROUTED=true
WITHOUT_SHAREDOCS=true
WITHOUT_SYSINSTALL=true
WITHOUT_TCSH=true
WITHOUT_TELNET=true
WITHOUT_ZFS=true

--gKMricLos+KVdGMg
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=env

LC_MESSAGES=en_GB.ISO8859-15
BLOCKSIZE=1M
MM_CHARSET=de_DE.ISO8859-15
GOROOT=/usr/local/lib/go
LANG=en_GB.ISO8859-15
DISPLAY=:0
PWD=/home/arundel
LOGNAME=arundel
LC_CTYPE=de_DE.ISO8859-15
CLICOLOR=true
GOOS=freebsd
XAUTHORITY=/home/arundel/.Xauthority
SDL_CONFIG=/usr/local/bin/sdl-config
SHLVL=2
TOP=-s1 -au
CLASSPATH=.:/usr/local/jdk1.6.0/lib
LC_NUMERIC=de_DE.ISO8859-15
WINDOWPATH=9
LC_MONETARY=de_DE.ISO8859-15
MAIL=/var/mail/arundel
_=/usr/bin/env
FTP_PASSIVE_MODE=YES
CDROM=/dev/cd0
JDK_HOME=/usr/local/jdk1.6.0/
GOARCH=amd64
PCICONF_VENDOR_DATABASE=/usr/local/share/pciids/pci.ids
OLDPWD=/home/arundel
LC_TIME=de_DE.ISO8859-15
X11BASE=/usr/local
TERM=xterm
SHELL=/usr/local/bin/zsh
PAGER=more
SSH_AUTH_SOCK=/tmp/ssh-udtWZI0a4P6K/agent.1686
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/local/diablo-jre1.6.0/bin
EDITOR=ee
LC_COLLATE=en_GB.ISO8859-15
HOME=/home/arundel
USER=arundel
PACKAGESITE=ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-current/Latest/
_JAVA_AWT_WM_NONREPARENTING=1
SSH_AGENT_PID=1687

--gKMricLos+KVdGMg--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110818173508.GA92360>