Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't seem to use gcc-3.4.5
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
andrewwalker27
l33t
l33t


Joined: 27 Jun 2005
Posts: 650

PostPosted: Sat Feb 25, 2006 12:46 pm    Post subject: Can't seem to use gcc-3.4.5 Reply with quote

I'm having trouble emerging packages cdk and timezone-date and I think it is a gcc problem. Here's an example of emerge cdk output.

usr/lib/gcc/i686-pc-linux-gnu/3.4.4 -L/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../../i686-pc-linux-gnu/lib -L/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/crtendS.o /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../crtn.o -Wl,-soname -Wl,libcdk.so.1 -o .libs/libcdk.so.1.2.1
i686-pc-linux-gnu-g++: /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../crti.o: No such file or directory
i686-pc-linux-gnu-g++: /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/crtbeginS.o: No such file or directory
i686-pc-linux-gnu-g++: /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/crtendS.o: No such file or directory
i686-pc-linux-gnu-g++: /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../crtn.o: No such file or directory
make: *** [libcdk.la] Error 1

!!! ERROR: dev-libs/cdk-5.0.20060220 failed.
Call stack:
ebuild.sh, line 1894: Called dyn_compile
ebuild.sh, line 941: Called src_compile

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant.

athlonxp fred #

The thing is, I'm not using gcc-3.4.4, I've only got gcc-3.4.5 on my machine!

athlonxp fred # gcc-config -l
[1] i686-pc-linux-gnu-3.4.5 *
[2] i686-pc-linux-gnu-3.4.5-hardened
[3] i686-pc-linux-gnu-3.4.5-hardenednopie
[4] i686-pc-linux-gnu-3.4.5-hardenednopiessp
[5] i686-pc-linux-gnu-3.4.5-hardenednossp
athlonxp fred #

I'm using ~x86 in make.conf but is this a gcc config problem or is the ebuild at fault? Most packages seem to build ok so I think gcc is ok, I suspect it's something else.
Anyone got any suggestions?
Back to top
View user's profile Send private message
Ferdinando
Veteran
Veteran


Joined: 25 Nov 2003
Posts: 1027
Location: Gaeta (LT) - Italy

PostPosted: Sat Feb 25, 2006 1:26 pm    Post subject: Reply with quote

Have you already tried the old
Code:
/sbin/fix_libtool_files.sh 3.4.4

:?:

Bye
_________________
La risposta, non la devi cercare fuori, la devi cercare dentro di te: e però è SBAGLIATA!
-- Corrado Guzzanti, "Pippo Chennedy Show", 1997
Back to top
View user's profile Send private message
andrewwalker27
l33t
l33t


Joined: 27 Jun 2005
Posts: 650

PostPosted: Sat Feb 25, 2006 1:59 pm    Post subject: Reply with quote

Yes, I tried that but got the same error. Here's the error I get with timezone-data

>>> Install timezone-data-2006b into /var/tmp/portage/timezone-data-2006b/image/ category sys-libs
./zic -y ./yearistype -d /var/tmp/portage/timezone-data-2006b/image//usr/share/zoneinfo -L /dev/null africa antarctica asia australasia europe northamerica southamerica pacificnew etcetera factory backward systemv solar87 solar88 solar89
./zic: wild compilation-time specification of zic_t
make: *** [posix_only] Error 1

!!! ERROR: sys-libs/timezone-data-2006b failed.
Call stack:
ebuild.sh, line 1894: Called dyn_install
ebuild.sh, line 1037: Called src_install

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant.

athlonxp fred #
Back to top
View user's profile Send private message
Ferdinando
Veteran
Veteran


Joined: 25 Nov 2003
Posts: 1027
Location: Gaeta (LT) - Italy

PostPosted: Sat Feb 25, 2006 2:23 pm    Post subject: Reply with quote

I think that the last one is a different problem; see here.
As for the gcc problem, it's weird that fix_libtool_files.sh didn't solve it; can you post the contents of /usr/lib/gcc/i686-pc-linux-gnu/ ?

Bye

EDIT: I gave a look to /usr/portage/dev-libs/cdk/cdk-5.0.20060220.ebuild, but I didn't see anything that could explain your problem; are you sure all the other c++ programs compile cleanly?
_________________
La risposta, non la devi cercare fuori, la devi cercare dentro di te: e però è SBAGLIATA!
-- Corrado Guzzanti, "Pippo Chennedy Show", 1997
Back to top
View user's profile Send private message
andrewwalker27
l33t
l33t


Joined: 27 Jun 2005
Posts: 650

PostPosted: Sat Feb 25, 2006 3:04 pm    Post subject: Reply with quote

There is only 3.4.5 in /usr/lib/gcc/i686-pc-linux-gnu
I just cleanly compiled qt-4.1.0-r2 without errors, I assume that is c++?
I also noticed that timezone-data-2006b is a known bug so probably not related.
This looks like a specific bug in the cdk ebuild. Is it designed to compile with gcc-3.4.4 only?
Back to top
View user's profile Send private message
Ferdinando
Veteran
Veteran


Joined: 25 Nov 2003
Posts: 1027
Location: Gaeta (LT) - Italy

PostPosted: Sat Feb 25, 2006 3:20 pm    Post subject: Reply with quote

andrewwalker27 wrote:
This looks like a specific bug in the cdk ebuild. Is it designed to compile with gcc-3.4.4 only?

Nope; the ebuild only appends '-fPIC' to gcc options, and '--with-ncurses --with-libtool' to configure. It couldn't be that gcc-3.4.4 is required by the source code either, so there's surely another explanation...
[dirty_hack]
You could always create a link: that is
Code:
cd /usr/lib/gcc/i686-pc-linux-gnu/
ln -s 3.4.5 3.4.4

since it's only a minor version difference it should work, but, if anyone asks, it wasn't me who suggested it :roll:
[/dirty_hack]

Bye
_________________
La risposta, non la devi cercare fuori, la devi cercare dentro di te: e però è SBAGLIATA!
-- Corrado Guzzanti, "Pippo Chennedy Show", 1997
Back to top
View user's profile Send private message
andrewwalker27
l33t
l33t


Joined: 27 Jun 2005
Posts: 650

PostPosted: Sat Feb 25, 2006 3:45 pm    Post subject: SOLVED (sort of)! Reply with quote

Well that worked, I deleted the soft-link afterwards in case it caused later problems!
Does this ebuild need a bug report filed? I assume it is the ebuild that causes this problem?
Many thanks for your help.
Back to top
View user's profile Send private message
Ferdinando
Veteran
Veteran


Joined: 25 Nov 2003
Posts: 1027
Location: Gaeta (LT) - Italy

PostPosted: Sat Feb 25, 2006 3:50 pm    Post subject: Re: SOLVED (sort of)! Reply with quote

andrewwalker27 wrote:
Well that worked, I deleted the soft-link afterwards in case it caused later problems!

Well done :D
andrewwalker27 wrote:
Does this ebuild need a bug report filed? I assume it is the ebuild that causes this problem?

I'd find that really strange, since the ebuild itself is very small and doesn't do anything suspicious; but I haven't any clue on what caused the problem, so it's up to you...

Bye
_________________
La risposta, non la devi cercare fuori, la devi cercare dentro di te: e però è SBAGLIATA!
-- Corrado Guzzanti, "Pippo Chennedy Show", 1997
Back to top
View user's profile Send private message
gorilla2
n00b
n00b


Joined: 09 Aug 2005
Posts: 18

PostPosted: Tue Feb 28, 2006 9:57 am    Post subject: Reply with quote

I am having the exact same problem with merging cdk too. From what I can tell my machine has pretty much the same setup as andrewwalker27.

I will use the dirty hack to fix but thought it maybe be useful to publicise the fact that this is occuring on multiple machines. Please ask if someone thinks more info from my system may be useful.
Back to top
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


Joined: 14 Apr 2004
Posts: 5511
Location: Durham, UK

PostPosted: Tue Feb 28, 2006 10:09 am    Post subject: Reply with quote

This looks like the same problem as this: jpeg-6b-r4 fails to compile, fix_libtool_files.sh is no help.

Can anyone confirm whether re-emerging libtools fixes the problem?
_________________
No-one's more important than the earthworm.
Back to top
View user's profile Send private message
gorilla2
n00b
n00b


Joined: 09 Aug 2005
Posts: 18

PostPosted: Tue Feb 28, 2006 10:29 am    Post subject: Reply with quote

Yep, reemerging libtool then cdk allows cdk to merge with no errors.

Cheers for that info.
Back to top
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


Joined: 14 Apr 2004
Posts: 5511
Location: Durham, UK

PostPosted: Tue Feb 28, 2006 1:25 pm    Post subject: Reply with quote

gorilla2 wrote:
Yep, reemerging libtool then cdk allows cdk to merge with no errors.

Cool. :) In that case...

Moved from Portage & Programming to Duplicate Threads in favour of the above thread.
_________________
No-one's more important than the earthworm.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum