[Clfs-dev] compiling PPL as of SVN-20090706-x86_64-Multilib

Joe Ciccone jciccone at gmail.com
Mon Jul 6 14:47:17 PDT 2009


Reimundo Heluani wrote:
> Same issue on 10.17.1 on cloog-ppl note this time the build breaks at
> compiling (not configuring), the configure command should be
>
>
> CC="gcc -isystem /usr/include ${BUILD64}" \
>     LDFLAGS="-Wl,-rpath-link,/lib64 ${BUILD64}" ./configure --prefix=/usr \
>         --libdir=/usr/lib64 --enable-shared --with-gmp=/usr/lib64 \
>     --with-ppl=/usr/lib64
>
> Regards, 
>
> R.
>
>
> On Mon, 2009-07-06 at 10:51 -0400, Joe Ciccone wrote:
>   
>> Reimundo Heluani wrote:
>>     
>>> I started two tickets but I'm not sure that was the right place, so just
>>> in case I'm sending this one as well (I guess this might have come twice
>>> then for those in the commit list)
>>>
>>> In section 10.14 and 10.15 to compile ppl against GMP one needs to add
>>> the right building flags and the right library places. For 32-bit need
>>> to add 
>>>
>>> CPPFLAGS=-fexceptions CXX="g++ -isystem /usr/include ${BUILD32}" 
>>>
>>> and for 64-bit also we need to change the lib paths to /usr/lib64. The
>>> whole command should read
>>>
>>> CPPFLAGS=-fexceptions CC="gcc -isystem /usr/include ${BUILD64}" \
>>>     CXX="g++ -isystem /usr/include ${BUILD64}" \
>>>     LDFLAGS="-Wl,-rpath-link,/lib64 ${BUILD64}" ./configure --prefix=/usr \
>>> --libdir=/usr/lib64 --enable-shared \
>>>     --with-libgmp-prefix=/usr/lib64 --with-libgmpxx-prefix=/usr/lib64
>>>   
>>>       
>> I'm working on a similar issue in the cross-tools & tools section right
>> now. When I get to the final system I'll look at this.
>>
>> Thanks for the heads up.
>> Joe
>>     
Ok, its all fixed. Also please note that your fix was not correct
either. That argument --with-libgmp-prefix is a prefix not a full path
to the library. by passing --with-libgmp-prefix=/usr/lib64 you were
really forcing it to look at /usr/lib64/lib/libgmp.so. I'm suprised that
it worked at all for you. Leaving the argument off causes it to look at
$libdir/libgmp.so. Which is the correct path.

The changes are commited and pushed up. The book should show the changes
soon.

Joe




More information about the Clfs-dev mailing list