[cfe-dev] Results of the FreeBSD Ports build with CC=clang

Erik Cederstrand erik at cederstrand.dk
Thu Jun 4 00:53:45 PDT 2009


Den 04/06/2009 kl. 00.54 skrev David Chisnall:
> I've not tried for a couple of weeks, but it failed very early on in
> the build process last time I tried.

I tried building on a FreeBSD box using the procedure from the  
GoldPlugin wiki page, but it fails with the following:

/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H  -I. - 
I../../src/bfd -I. -I. -I../../src/bfd -I../../src/bfd/../include  - 
DBINDIR='"/usr/local/bin"'   -W -Wall -Wstrict-prototypes -Wmissing- 
prototypes -Werror -g -O2 -c -o archive.lo ../../src/bfd/archive.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../src/bfd -I. -I. - 
I../../src/bfd -I../../src/bfd/../include -DBINDIR=\"/usr/local/bin\" - 
W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 - 
c ../../src/bfd/archive.c -o archive.o
In file included from ../../src/bfd/archive.c:132:
../../src/bfd/sysdep.h:173:21: error: libintl.h: No such file or  
directory
cc1: warnings being treated as errors
../../src/bfd/archive.c: In function '_bfd_write_archive_contents':
../../src/bfd/archive.c:2056: warning: implicit declaration of  
function 'dgettext'
../../src/bfd/archive.c:2056: warning: incompatible implicit  
declaration of built-in function 'dgettext'
../../src/bfd/archive.c: In function  
'_bfd_archive_bsd_update_armap_timestamp':
../../src/bfd/archive.c:2342: warning: incompatible implicit  
declaration of built-in function 'dgettext'
../../src/bfd/archive.c:2366: warning: incompatible implicit  
declaration of built-in function 'dgettext'
*** Error code 1

Stop in /freebsd-src/binutils/build/bfd.
*** Error code 1

Stop in /freebsd-src/binutils/build/bfd.
*** Error code 1

Stop in /freebsd-src/binutils/build/bfd.
*** Error code 1

Stop in /freebsd-src/binutils/build.

I'm not very familiar with make/GCC error, so I haven't been able to  
proceed.

>>> The GPLv3 means that it is
>>> unlikely to ever make it into the FreeBSD base system.
>>
>> Doesn't FreeBSD use binutils anyway at the moment?
>
> Yes, but it's the last GPLv2 version and there are no plans to upgrade
> that I am aware of.  There are (so far, at least) no GPLv3 components
> in the FreeBSD base system.

This is true; I believe binutils is at 2.17 which is the latest GPLv2  
version, and current policy is that the FreeBSD repo must stay clear  
of GPLv3.

Mvh Erik
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1928 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20090604/16064b3d/attachment.bin>


More information about the cfe-dev mailing list