<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>79278</bug_id>
          
          <creation_ts>2005-01-23 18:45 0000</creation_ts>
          <short_desc>pari-2.1.5-r4 failes to compile without -O in CFLAGS</short_desc>
          <delta_ts>2009-05-14 20:23:44 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Library</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>dragonheart@gentoo.org</reporter>
          <assigned_to>sci@gentoo.org</assigned_to>
          <cc>janperez@gmail.com</cc>

      

      
          <long_desc isprivate="0">
            <who>dragonheart@gentoo.org</who>
            <bug_when>2005-01-23 18:45:48 0000</bug_when>
            <thetext>==========================================================================
Shall we try to build pari 2.1.5 (released) now (y/n)? [n]
Ok. Type &quot;make install&quot; when you are ready
Bye !
cd Olinux-i686; make gp
make[1]: Entering directory `/var/tmp/portage/pari-2.1.5-r4/work/pari-2.1.5/Olinux-i686&apos;
cat ../src/kernel/ix86/level0.h ../src/kernel/none/level1.h &gt; pariinl.h
/usr/lib/ccache/bin/gcc  -E -I. ../src/kernel/ix86/l0asm.c | sed -e &apos;/^#/d&apos; -e &apos;/^ *#line/d&apos; -e &apos;s/%  */%/g&apos; &gt; level0.s
../src/kernel/ix86/l0asm.c:104:1: pasting &quot;addll&quot; and &quot;:&quot; does not give a valid preprocessing token
../src/kernel/ix86/l0asm.c:114:1: pasting &quot;addllx&quot; and &quot;:&quot; does not give a valid preprocessing token
../src/kernel/ix86/l0asm.c:126:1: pasting &quot;subll&quot; and &quot;:&quot; does not give a valid preprocessing token
../src/kernel/ix86/l0asm.c:136:1: pasting &quot;subllx&quot; and &quot;:&quot; does not give a valid preprocessing token
../src/kernel/ix86/l0asm.c:148:1: pasting &quot;shiftl&quot; and &quot;:&quot; does not give a valid preprocessing token
../src/kernel/ix86/l0asm.c:160:1: pasting &quot;shiftlr&quot; and &quot;:&quot; does not give a valid preprocessing token
../src/kernel/ix86/l0asm.c:172:1: pasting &quot;bfffo&quot; and &quot;:&quot; does not give a valid preprocessing token
../src/kernel/ix86/l0asm.c:181:1: pasting &quot;mulll&quot; and &quot;:&quot; does not give a valid preprocessing token
../src/kernel/ix86/l0asm.c:189:1: pasting &quot;addmul&quot; and &quot;:&quot; does not give a valid preprocessing token
../src/kernel/ix86/l0asm.c:200:1: pasting &quot;divll&quot; and &quot;:&quot; does not give a valid preprocessing token
/usr/lib/ccache/bin/gcc -c -pipe -DGCC_INLINE -I. -I../src/headers -o kernel.o level0.s
/usr/lib/ccache/bin/gcc -c -pipe -DGCC_INLINE -I. -I../src/headers -o mp.o ../src/kernel/none/mp.c
/usr/lib/ccache/bin/gcc -c -pipe -DGCC_INLINE -I. -I../src/headers  -o alglin1.o ../src/basemath/alglin1.c
In file included from ../src/headers/pari.h:69,
                 from ../src/kernel/none/mp.c:23:
../src/headers/parisys.h:52:10: #error &quot;no inlining without -O. Put back -O or remove -DGCC_INLINE&quot;
In file included from ../src/headers/pari.h:69,
                 from ../src/basemath/alglin1.c:22:
../src/headers/parisys.h:52:10: #error &quot;no inlining without -O. Put back -O or remove -DGCC_INLINE&quot;
make[1]: *** [mp.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [alglin1.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/pari-2.1.5-r4/work/pari-2.1.5/Olinux-i686&apos;
make: *** [gp] Error 2

!!! ERROR: sci-mathematics/pari-2.1.5-r4 failed.
!!! Function src_compile, Line 50, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.

Portage 2.0.51-r14 (default-linux/x86/2005.0, gcc-3.4.3, glibc-2.3.4.20040808-r1, 2.6.7-hardened-r18 i686)
=================================================================
System uname: 2.6.7-hardened-r18 i686 AMD Athlon(tm) XP 1900+
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Oct 24 2004, 08:06:09)]
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.59-r5
sys-devel/automake:  1.8.5-r1
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.2-r7
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS=&quot;x86&quot;
AUTOCLEAN=&quot;yes&quot;
CFLAGS=&quot;-pipe&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/terminfo /etc/env.d&quot;
CXXFLAGS=&quot;-pipe&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoaddcvs autoconfig ccache cvs distlocks sandbox sfperms sign userpriv usersandbox&quot;


Strip -DGCC_INLINE if no -O set?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>george@gentoo.org</who>
            <bug_when>2005-11-08 06:03:30 0000</bug_when>
            <thetext>Well, it really is better to force optimization, as usually such (math)  
packages rely on certain tricks to be performed by compiler. Plus it appears 
not totally trivial to strip -DGCC_INLINE, although I tried only apparent fix 
so far (seding it out from all referencing files). 
 
Fixed anyway (by forcing optimization), + I added a fix for linking problem 
(-fPIC was needed). 
 
George 
  </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>janperez@gmail.com</who>
            <bug_when>2009-05-14 20:23:44 0000</bug_when>
            <thetext>The solution is to force the optimization as follows:
perl Makefile.PL optimize=-O
make
make test 
make install

Regards,
janperez




</thetext>
          </long_desc>
      
    </bug>

</bugzilla>