Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Jun 2013 19:02:02 -0500
From:      Kevin Day <toasty@dragondata.com>
To:        "freebsd-hackers@freebsd.org Hackers" <freebsd-hackers@freebsd.org>
Subject:   Can't use gcc in a clang built world
Message-ID:  <DB5E076C-7DF1-47CD-977C-F36F7B1B1A08@dragondata.com>

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

[-- Attachment #1 --]
Are you supposed to be able to use gcc to build userland binaries if you built world with clang?

I'm on -CURRENT as of a few days ago (using armv6 but i'm not sure if that matters). If I buildworld with clang, then attempt to compile some userland binaries with gcc, I'll get missing symbols like:

  CCLD     pcretest
./.libs/libpcre.so: undefined reference to `__clear_cache'
*** [pcretest] Error code 1

If I look at /lib/libgcc that symbol isn't there:

# readelf -a /lib/libgcc_s.so.1 | grep clear
#

If I rebuild /usr/src/gnu/libgcc with gcc, then try again it works. The symbol is now there:

# readelf -a /lib/libgcc_s.so.1 | grep clear
    94: 00003b94    48 FUNC    GLOBAL DEFAULT   12 __clear_cache@@GCC_3.0
#

I can build pcre correctly. I thought one of the goals was to be able to use both interchangeably on the same system. Is this broken, or one of the casualties of making clang default now? Do we need two different versions of some libraries depending on which compiler is being used?

-- Kevin




[-- Attachment #2 --]
0	*H
010	+0	*H
/00Šq_Mtq40
	*H
0{10	UGB10UGreater Manchester10USalford10U
Comodo CA Limited1!0UAAA Certificate Services0
040101000000Z
281231235959Z010	UUS10	UUT10USalt Lake City10U
The USERTRUST Network1!0Uhttp://www.usertrust.com1604U-UTN-USERFirst-Client Authentication and Email0"0
	*H
0
9}A;bF7`u9eJGHjM5BI/|1Nd.)բdąQ5yNh{zɤ2O0nFxoY^/m/묡j.g5yiF͠v:z'[=s"HaLi.1 ,׉CZqYں
gT:
wetbh~GeMW(t40b0,'0#0U#0
#>)00Ug}ĝ&pKPH|=n}0U0U00U%0++0U 
00U 0{Ut0r08642http://crl.comodoca.com/AAACertificateServices.crl06420http://crl.comodo.net/AAACertificateServices.crl0	`HB0
	*H
<~	v9<Oૄ]Te;m|7,%T_!7OTklE`-QLf<J?VvÂOlatG@We"'gOWdZٍ/i)J /LQFĊ7N 	1hǞċ~2hD*Q`Mt:C29V:RAC3'9N&9≸])&A곛wuʵeJc>D^s00mOj3""2zq0
	*H
010	UUS10	UUT10USalt Lake City10U
The USERTRUST Network1!0Uhttp://www.usertrust.com1604U-UTN-USERFirst-Client Authentication and Email0
110428000000Z
200530104838Z010	UGB10UGreater Manchester10USalford10U
COMODO CA Limited1907U0COMODO Client Authentication and Secure Email CA0"0
	*H
0
[KW^/@ȣSX_fe2N2}UxLUB'qi2@'Vbqi c^`ʢAjHmeC*.+c8w߱ڂ2jgo \5Tq
7
PSlY1	LR@[HhJ$:q_㬿;%qh=XF<hmz!W42~JRrd&N`ohQcB}"cөΞD\[5K0G0U#0g}ĝ&pKPH|=n}0UzNt[xcd'/[y{0U0U00U 
00U 0XUQ0O0MKIGhttp://crl.usertrust.com/UTN-USERFirst-ClientAuthenticationandEmail.crl0t+h0f0=+01http://crt.usertrust.com/UTNAddTrustClient_CA.crt0%+0http://ocsp.usertrust.com0
	*H
־xWUm3DRB
JAIZҭsn>&|L0(B<%>
u=9fѡMo(ltZڱuz/yVtCr`9 G:eH<=%`I?C
3_н`j;:<I3B)93i.EMiڀ=]|Gm]W0KID~y83:]&XaU!ՙC@B0Ұun0,07Ca`)̀0
	*H
010	UGB10UGreater Manchester10USalford10U
COMODO CA Limited1907U0COMODO Client Authentication and Secure Email CA0
130616000000Z
140616235959Z0&1$0"	*H
	toasty@dragondata.com0"0
	*H
0
-`ghX/9+ˈe`?l/E^~T׀/q+5SzSrIuert`:"k_s{&
0T
kˢbWieK;2LX8w.YpI!3|M19Y2vGrAҽ5yX^0
@JbfBќ`
TZO$mx1}LN0Rw00U#0zNt[xcd'/[y{0Up=#P}L:w񹭸qX0U0U00 U%0++10	`HB 0FU ?0=0;+10+0)+https://secure.comodo.net/CPS0WUP0N0LJHFhttp://crl.comodoca.com/COMODOClientAuthenticationandSecureEmailCA.crl0+|0z0R+0Fhttp://crt.comodoca.com/COMODOClientAuthenticationandSecureEmailCA.crt0$+0http://ocsp.comodoca.com0 U0toasty@dragondata.com0
	*H
iqk4Dlse-8 uy:1:ߩ(w}tRƼHyT΀	4Y=GeKr:/ܜ1n*tښ6ڇڿ3D.~fm5Q(Yœ!@'=vn5i뷹K^#MF0=~<hGgһKR}KrBai1cvqm3RNSeEx\G4
=FwɺL4rIU100010	UGB10UGreater Manchester10USalford10U
COMODO CA Limited1907U0COMODO Client Authentication and Secure Email CA7Ca`)̀0	+0	*H
	1	*H
0	*H
	1
130627000203Z0#	*H
	1s18TA;;.*0	+710010	UGB10UGreater Manchester10USalford10U
COMODO CA Limited1907U0COMODO Client Authentication and Secure Email CA7Ca`)̀0*H
	1010	UGB10UGreater Manchester10USalford10U
COMODO CA Limited1907U0COMODO Client Authentication and Secure Email CA7Ca`)̀0
	*H
=
/LC@G֙~<Xʄ7e}&0nqIov+JͫO[
َhj?f'|6wY]]tb!\#4Vq5<1#P)l3E@$
	=Q^"Cnz`u	U屹pj%̴r6J&ę	Z6wϬaG&Iu19A$db

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?DB5E076C-7DF1-47CD-977C-F36F7B1B1A08>