Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 7181 - kdelibs and CFLAGS problem
Summary: kdelibs and CFLAGS problem
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: x86 Linux
: Highest major (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-08-28 14:22 UTC by Bjarke Istrup Pedersen (RETIRED)
Modified: 2003-02-04 19:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
/var/tmp/portage/kdelibs-3.0.3-r1/work/kdelibs-3.0.3-r1/config.log (config.log,112.47 KB, text/x-log)
2002-09-08 11:00 UTC, L.J. Moore
Details
/var/tmp/portage/kdelibs-3.0.3-r1/work/kdelibs-3.0.3-r1/Makefile (Makefile,24.95 KB, text/x-makefile)
2002-09-08 11:01 UTC, L.J. Moore
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2002-08-28 14:22:12 UTC
kdelibs won't compile with any march CFLAGS in /etc/make.conf
It's not that bad, but it doesn't get optimized like the rest of the system.
Comment 1 Dan Armak (RETIRED) gentoo-dev 2002-08-30 07:50:08 UTC
This is not so usually. Hm... 
 
- What are your CFLAGS and CXXFLAGS? 
 
- Please provide (by attaching) your config.log and Makefile from the builddir 
(i.e. from /var/tmp/portage/kdelibs-3.0.5/work/kdeilbs-3.0.5). 
Comment 2 L.J. Moore 2002-09-08 11:00:43 UTC
Created attachment 3742 [details]
/var/tmp/portage/kdelibs-3.0.3-r1/work/kdelibs-3.0.3-r1/config.log
Comment 3 L.J. Moore 2002-09-08 11:01:32 UTC
Created attachment 3743 [details]
/var/tmp/portage/kdelibs-3.0.3-r1/work/kdelibs-3.0.3-r1/Makefile
Comment 4 L.J. Moore 2002-09-08 11:04:53 UTC
kdelibs-3.0.3-r1 (not 3.0.5) surely?  I'm getting exactly the same problem 
(after todays emerge sync; emerge -u world) and have attached my copies of the 
files requested.  
  
From my /etc/make.conf:  
  
CHOST="i686-pc-linux-gnu"  
CFLAGS="-march=i686 -03 -pipe"  
CXXFLAGS="${CFLAGS}" 
 
(Athlon TB 1.13 using gcc-2.95.3-r7) 
Comment 5 Dan Armak (RETIRED) gentoo-dev 2002-09-08 11:33:00 UTC
Yes, I meant 3.0.3, sorry.      
      
From your config.log:      
-----------     
 configure:2430: i686-pc-linux-gnu-gcc -c  -march=i686 -03 -pipe  conftest.c     
>&5     
i686-pc-linux-gnu-gcc: unrecognized option `-03'     
i686-pc-linux-gnu-gcc: unrecognized option `-03'     
conftest.c:2: parse error before `me'     
configure:2433: $? = 1     
configure: failed program was:     
#ifndef __cplusplus     
  choke me     
#endif     
-------------     
     
Looks like i686-pc-linux-gnu-gcc doesn't work, for whatever reason. Could you    
please check that you can compile some simple file with that invokation of gcc    
and -O3? You probably can, but best to make sure...    
   
config.log goes on to say:   
------------   
configure:2836: checking for i686-pc-linux-gnu-g++   
configure:2862: result: no   
configure:2836: checking for i686-pc-linux-gnu-c++   
configure:2862: result: no   
configure:2836: checking for i686-pc-linux-gnu-gpp   
configure:2862: result: no   
configure:2836: checking for i686-pc-linux-gnu-aCC   
configure:2862: result: no   
configure:2836: checking for i686-pc-linux-gnu-CC   
configure:2862: result: no   
configure:2836: checking for i686-pc-linux-gnu-cxx   
configure:2862: result: no   
configure:2836: checking for i686-pc-linux-gnu-cc++   
configure:2862: result: no   
configure:2836: checking for i686-pc-linux-gnu-cl   
configure:2862: result: no   
configure:2836: checking for i686-pc-linux-gnu-FCC   
configure:2862: result: no   
configure:2836: checking for i686-pc-linux-gnu-KCC   
configure:2862: result: no   
configure:2836: checking for i686-pc-linux-gnu-RCC   
configure:2862: result: no   
configure:2836: checking for i686-pc-linux-gnu-xlC_r   
configure:2862: result: no   
configure:2836: checking for i686-pc-linux-gnu-xlC   
configure:2862: result: no   
configure:2875: checking for g++   
configure:2890: found /usr/bin/ccache/g++   
configure:2898: result: g++   
-----------   
   
That's definitely not good. You should have (at least) the first 2 out of those   
not-found gcc names. Check if you really have them, if not prehaps remere gc   
and/or ccache (?). Example of what I have:   
   
------------   
laptop distfiles # ls /usr/bin/ccache  
c++  cc  ccache  g++  gcc  i686-pc-linux-gnu-c++  i686-pc-linux-gnu-g++   
i686-pc-linux-gnu-gcc  
laptop distfiles # ls /usr/bin/i686* 
/usr/bin/i686-pc-linux-gnu-c++  /usr/bin/i686-pc-linux-gnu-g++  
/usr/bin/i686-pc-linux-gnu-gcc 
---------------- 
Comment 6 Bart Verwilst 2002-09-08 12:01:13 UTC
Euhm... isn't all this because you are using -'zero three' instead of -O3? Just a wild guess though 
Comment 7 Dan Armak (RETIRED) gentoo-dev 2002-09-08 13:48:43 UTC
Yes, Verwilst is right! This is the source of the problem then. Bjarke, please 
fix and confirm... 
Comment 8 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2002-09-08 13:51:57 UTC
Well, it works now :-)
Comment 9 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2002-09-08 13:55:17 UTC
Don't know why I had written -03 instead of -O3 in /etc/make.conf
well, it seems to work this time :-)
Comment 10 Bart Verwilst 2002-09-08 14:19:26 UTC
Hehe ;o)