[ANNOUNCE]: clang compiling ports

Baptiste Daroussin bapt at FreeBSD.org
Tue Jun 21 09:25:08 UTC 2011


On Mon, 20 Jun 2011 17:37:53 +0200, Roman Divacky wrote:
> Hi!
>
>
> Flz@ just run an exp-build with CC=clang and CXX=clang++. The results 
> can be
> seen here:
>
>
>         http://pointyhat.freebsd.org/errorlogs/amd64-9-exp-latest/
>
>
> A lot of these failures are trivial to fix (ie. not respecting CC
> setting, etc.)
> and prevent a lot of other ports from building.
>
> It would be great if you could skim over the list to see if some of 
> the ports
> you maintain are broken and possibly try to fix them. A small
> introduction into
> the Clang+Ports can be read at: 
> http://wiki.freebsd.org/PortsAndClang.
>
> Please focus on the biggest offenders (ie. ports that prevent the 
> most other
> ports from building).
>
> Thank you for helping us!
>
> Roman Divacky

I have tried to fix most of my ports, I now have a problem which seem 
to appear quite often :

local symbol 5: discarded in section 
`.text._ZN6icu_4815MaybeStackArrayIcLi40EE13orphanOrCloneEiRi' from 
udata.o
local symbol 6: discarded in section 
`.text._ZNK6icu_4813UnicodeStringeqERKS0_' from messagepattern.o
local symbol 7: discarded in section 
`.text._ZN6icu_4815MaybeStackArrayIcLi40EED1Ev' from locutil.o
[...]
local symbol 96: discarded in section 
`.text._ZN6icu_4815MaybeStackArrayIcLi40EE12releaseArrayEv' from 
servrbf.o
local symbol 97: discarded in section 
`.text._ZN6icu_4815MaybeStackArrayIcLi40EE12aliasInsteadEPci' from 
servrbf.o
local symbol 98: discarded in section 
`.text._ZN6icu_4815MaybeStackArrayIcLi40EE6resizeEii' from servrbf.o
local symbol 99: discarded in section 
`.text._ZN6icu_4815MaybeStackArrayIcLi40EE13orphanOrCloneEiRi' from 
servrbf.o
clang++: error: linker command failed with exit code 1 (use -v to see 
invocation)

To test I'm using CC=clang CXX=clang++ on a FreeBSD8-stable box (1 week 
old) using clang from ports: 2.9.

does anyone have a clue for that? Am I doing something wrong?

regards,
Bapt



More information about the freebsd-ports mailing list