From p.dalgaard at biostat.ku.dk  Thu Oct 25 08:47:53 2007
From: p.dalgaard at biostat.ku.dk (Peter Dalgaard)
Date: Thu, 25 Oct 2007 08:47:53 +0200
Subject: [Rd] R trunk (2.7) build fails with -fpic,
	needs -fPIC (PR#10372)
In-Reply-To: <20071024231358.GA58065@tehun.pair.com>
References: <20071024190025.794E6282EFF1@mail.pubhealth.ku.dk>
	<471FC4E1.6080102@biostat.ku.dk>
	<20071024231358.GA58065@tehun.pair.com>
Message-ID: <47203C19.90005@biostat.ku.dk>

Andrew Piskorski wrote:
> On Thu, Oct 25, 2007 at 12:19:13AM +0200, Peter Dalgaard wrote:
>
>   
>> Fedora 7 seems perfectly happy with -fpic,
>>     
>
> Well, Ubuntu 6.06 x86-64 sure seems to hate it, but all I know about
> -fpic vs. -fPIC is what I read here:
>
>   http://gcc.gnu.org/onlinedocs/gcc-4.0.3/gcc/Code-Gen-Options.html#index-fpic-1556
>   http://gcc.gnu.org/onlinedocs/gcc-4.2.2/gcc/Code-Gen-Options.html#index-fpic-1667
>
>   
>> Whic compiler/linker is this?
>>     
>
> $ gcc --version | grep gcc
> gcc (GCC) 4.0.3 (Ubuntu 4.0.3-1ubuntu5)
> $ ld --version | grep ld
> GNU ld version 2.16.91 20060118 Debian GNU/Linux
>
> $ COLUMNS=140 dpkg -l binutils gcc-4.0
> +++-==========-=============================-==============================================
> ii  binutils   2.16.1cvs20060117-1ubuntu2.1  The GNU assembler, linker and binary utilities
> ii  gcc-4.0    4.0.3-1ubuntu5                The GNU C compiler
>
>   
Fedora is at 4.1.2 and 2.17.50. You might try an upgrade. Also, make 
sure that your sources are clean (as in make distclean or fresh svn 
checkout) so that you are not mixing modules built with different 
compiler options.

-- 
   O__  ---- Peter Dalgaard             ?ster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)                  FAX: (+45) 35327907



[Rd] R trunk (2.7) build fails with -fpic, needs -fPIC (PR#10372)
Peter Dalgaard