Summary: | kdelibs and CFLAGS problem | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Bjarke Istrup Pedersen (RETIRED) <gurligebis> |
Component: | [OLD] KDE | Assignee: | Gentoo KDE team <kde> |
Status: | RESOLVED FIXED | ||
Severity: | major | ||
Priority: | Highest | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
/var/tmp/portage/kdelibs-3.0.3-r1/work/kdelibs-3.0.3-r1/config.log
/var/tmp/portage/kdelibs-3.0.3-r1/work/kdelibs-3.0.3-r1/Makefile |
Description
Bjarke Istrup Pedersen (RETIRED)
![]() 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). Created attachment 3742 [details]
/var/tmp/portage/kdelibs-3.0.3-r1/work/kdelibs-3.0.3-r1/config.log
Created attachment 3743 [details]
/var/tmp/portage/kdelibs-3.0.3-r1/work/kdelibs-3.0.3-r1/Makefile
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) 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
----------------
Euhm... isn't all this because you are using -'zero three' instead of -O3? Just a wild guess though Yes, Verwilst is right! This is the source of the problem then. Bjarke, please fix and confirm... Well, it works now :-) Don't know why I had written -03 instead of -O3 in /etc/make.conf well, it seems to work this time :-) Hehe ;o) |