Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
GCC 3.4.3 is upon us!
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, ... 10, 11, 12  Next  
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
kernelsensei
Bodhisattva
Bodhisattva


Joined: 22 Feb 2004
Posts: 5619
Location: Woustviller/Moselle/FRANCE (49.07°N;7.02°E)

PostPosted: Wed Nov 10, 2004 4:14 pm    Post subject: Reply with quote

RumbleBot wrote:
I don't know if this has been posted yet, but this is what worked for me.

I emergeed gcc 3.4.3, but it was still lookin for the 3.4.2 directory. I just added a symlink.

Code:

cd /usr/lib/gcc/x86_64-pc-linux-gnu
ln -s 3.4.3 3.4.2


of course change x86_64-pc-linux-gnu to whatever system your running. Worked like a charm for me.


that's ugly !!

try
Code:
fix_libtool_files.sh 3.4.2
3.4.2 if your former gcc version was 3.4.2, 3.4.1 if 3.4.1, .....
_________________
$ ruby -e'puts " .:@BFegiklnorst".unpack("x4ax7aaX6ax5aX15ax4aax6aaX7ax2aX5aX8 \
axaX3ax8aX4ax6aX3aX6ax3ax3aX9ax4ax2aX9axaX6ax3aX2ax4ax3aX4aXaX12ax10aaX7a").join'
Back to top
View user's profile Send private message
mgp-gentoo
n00b
n00b


Joined: 23 Jan 2004
Posts: 62

PostPosted: Wed Nov 10, 2004 5:58 pm    Post subject: Reply with quote

Hi,
I know this will sound stupid but I've emerged 3.4.3 and haven't had any problems. Should I still do a gcc-config? Is this necessary always after emerging gcc?

Thanks
Back to top
View user's profile Send private message
gcasillo
l33t
l33t


Joined: 23 Sep 2003
Posts: 736
Location: Cincinnati, Ohio, USA

PostPosted: Wed Nov 10, 2004 9:54 pm    Post subject: Reply with quote

Anyone having problems with gcc-3.4.3 where during a compile, even during configure, your computer just freezes? I can go back and forth between desktops a couple of times, but if I try to ls in konsole or open a URL in konqueror, my computer becomes responsive. So unresponsive that I can't even CTRL-ALT-BACKSPACE out of Xorg. I have to hard reset my computer. Hadn't had this problem until a recent update to gcc-3.4.3 and glibc-20041102.
Back to top
View user's profile Send private message
ryceck
Apprentice
Apprentice


Joined: 13 Jan 2004
Posts: 195

PostPosted: Wed Nov 10, 2004 11:24 pm    Post subject: Reply with quote

RumbleBot wrote:
I don't know if this has been posted yet, but this is what worked for me.

I emergeed gcc 3.4.3, but it was still lookin for the 3.4.2 directory. I just added a symlink.

Code:

cd /usr/lib/gcc/x86_64-pc-linux-gnu
ln -s 3.4.3 3.4.2


of course change x86_64-pc-linux-gnu to whatever system your running. Worked like a charm for me.


Did the same thing, but seems like kindof a sloppy work-around, there has to be a nicer way to fix this :)
Back to top
View user's profile Send private message
Kow
Apprentice
Apprentice


Joined: 28 Dec 2003
Posts: 227

PostPosted: Thu Nov 11, 2004 3:21 am    Post subject: Reply with quote

That was my problem, but i did gcc-config and changed it to 3.4.3 just after i emerged it and everything was fine.
_________________
-Kow
Back to top
View user's profile Send private message
tuxp3
n00b
n00b


Joined: 28 May 2004
Posts: 61

PostPosted: Thu Nov 11, 2004 5:51 am    Post subject: Reply with quote

i had a bit of an issue, but nothing too serious, i realy think that portage should NOT unmerge old versions of critical things like gcc, i ended up remerging fromm a pkg (thats why i made them) and then after playing around with gcc-config and fix_libtool and some reboots later i finally got gcc 3.4.3 working and safely unmerged gcc-3.4.2 but, this happened on another computer i maintain. although it wasnt something that was that hard to fix, it was rather annoying to have to remerge the old version of something because portage unmerged it and now it doesnt work because portage didnt do everything perfectly.. but got it working fine and dandy after only about 5-10 mins of thining and typing...

my 2cents.. :: also when is gcc 4 gonna enter portage i really want to have a look at that as a little toy :)

Tux
Back to top
View user's profile Send private message
d3vlin
Tux's lil' helper
Tux's lil' helper


Joined: 02 Apr 2003
Posts: 134
Location: The Hague

PostPosted: Thu Nov 11, 2004 4:08 pm    Post subject: Reply with quote

something strange is happening when trying to compile kdenetwork:

Code:

qt/3/lib -R /usr/X11R6/lib  printerdlgimpl.lo kcmsambaconf.lo kcminterface.lo kcmprinterdlg.lo joindomaindlg.lo -lkdeprint libfilesharesamba.la
grep: /usr/lib/gcc/i686-pc-linux-gnu/3.4.3.3.3.3/libstdc++.la: No such file or directory
/bin/sed: can't read /usr/lib/gcc/i686-pc-linux-gnu/3.4.3.3.3.3/libstdc++.la: No such file or directory
libtool: link: `/usr/lib/gcc/i686-pc-linux-gnu/3.4.3.3.3.3/libstdc++.la' is not a valid libtool archive
make[4]: *** [libkcm_kcmsambaconf.la] Error 1
make[4]: Leaving directory `/var/tmp/portage/kdenetwork-3.3.1-r1/work/kdenetwork-3.3.1/filesharing/advanced/kcm_sambaconf'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/kdenetwork-3.3.1-r1/work/kdenetwork-3.3.1/filesharing/advanced'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/kdenetwork-3.3.1-r1/work/kdenetwork-3.3.1/filesharing'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kdenetwork-3.3.1-r1/work/kdenetwork-3.3.1'
make: *** [all] Error 2


it seems it's looking for /usr/lib/gcc/i686-pc-linux-gnu/3.4.3.3.3.3/libstdc++.la while that should obviously be 3.4.3

I tried gcc-config and fix_libtool_files.sh but no luck.
Back to top
View user's profile Send private message
kernelsensei
Bodhisattva
Bodhisattva


Joined: 22 Feb 2004
Posts: 5619
Location: Woustviller/Moselle/FRANCE (49.07°N;7.02°E)

PostPosted: Thu Nov 11, 2004 4:11 pm    Post subject: Reply with quote

what's the output for
Code:
grep LDPATH /etc/env.d/05gcc
:?:

If the LDPATH variable is false, then try
Code:
gcc-config <profile_number>


then source /etc/profile and verify LDPATH again !
_________________
$ ruby -e'puts " .:@BFegiklnorst".unpack("x4ax7aaX6ax5aX15ax4aax6aaX7ax2aX5aX8 \
axaX3ax8aX4ax6aX3aX6ax3ax3aX9ax4ax2aX9axaX6ax3aX2ax4ax3aX4aXaX12ax10aaX7a").join'
Back to top
View user's profile Send private message
firephoto
Veteran
Veteran


Joined: 29 Oct 2003
Posts: 1560
Location: +48° 5' 23.40", -119° 48' 30.00"

PostPosted: Thu Nov 11, 2004 4:13 pm    Post subject: Reply with quote

d3vlin wrote:

it seems it's looking for /usr/lib/gcc/i686-pc-linux-gnu/3.4.3.3.3.3/libstdc++.la while that should obviously be 3.4.3

I tried gcc-config and fix_libtool_files.sh but no luck.


Try:
fix_libtool_files.sh 3.4.3.3.3.3

I had this problem too but it was 3.4.2.2.2
http://forums.gentoo.org/viewtopic.php?t=245361
Carlo got me going again. :)
Back to top
View user's profile Send private message
Kow
Apprentice
Apprentice


Joined: 28 Dec 2003
Posts: 227

PostPosted: Fri Nov 12, 2004 12:22 am    Post subject: Reply with quote

You didn't mess with any of the lib path's did you, such as in env.d config dir? If not I don't see how that could happen, unless the ebuild set it up that way. Also make sure you didn't do anything weird like rename the ebuild.
_________________
-Kow
Back to top
View user's profile Send private message
d3vlin
Tux's lil' helper
Tux's lil' helper


Joined: 02 Apr 2003
Posts: 134
Location: The Hague

PostPosted: Fri Nov 12, 2004 1:55 am    Post subject: Reply with quote

firephoto wrote:
d3vlin wrote:

it seems it's looking for /usr/lib/gcc/i686-pc-linux-gnu/3.4.3.3.3.3/libstdc++.la while that should obviously be 3.4.3

I tried gcc-config and fix_libtool_files.sh but no luck.


Try:
fix_libtool_files.sh 3.4.3.3.3.3

I had this problem too but it was 3.4.2.2.2
http://forums.gentoo.org/viewtopic.php?t=245361
Carlo got me going again. :)


great, that did the trick. tnx!
Back to top
View user's profile Send private message
thawn
n00b
n00b


Joined: 31 Aug 2004
Posts: 39

PostPosted: Fri Nov 12, 2004 6:41 am    Post subject: Reply with quote

firephoto wrote:
I had a little trouble after a reboot but got KDE started again after I did a "gcc-config i686-pc-linux-gnu-3.4.3" and "fix_libtool_files.sh 3.4.2". I don't know that the fix_libtool part is needed though but I did it anyway.


the gcc-config fixed the compiling/starting programs problem for me, but I still had weird performance problems (some things like starting mcedit took really long)
doing fix_libtool_files.sh 3.4.3 fixed that for me...
Back to top
View user's profile Send private message
trad511
n00b
n00b


Joined: 29 Nov 2003
Posts: 27

PostPosted: Fri Nov 12, 2004 7:42 pm    Post subject: KDE with kio_file and io-slave errors Reply with quote

I have been running gcc-3.4.3 since a couple of days after it came out. As others I stumbled on to gcc-config not being updated from the upgrade and figured that out pretty quickly.

This morning i attempted to emerge xine-lib and found that the libstdc++ that was being reference was for the wrong gcc version. Naturally this brought me to this forum entry and I ran fix_libtool_files.sh. xine-lib now emerged successfully.

Since I noticed fix_libtool_files.sh changed things in kde and in qt I decided to see if any problems arose from the conversion. I logged out of KDE (3.3.1), reset X (Ctrl-Alt-Backspace) and logged back in as a standard user.

ERRORS - big time!

kio_slave and io-slave errors didn't allow klauncher to work and I no window manager capabilties! I was in KDE but couldn't do much. I could, however login as root and had no errors whatsoever.

I went to the forum and found:

http://forums.gentoo.org/viewtopic.php?t=149582&highlight=ioslave+klauncher

where blueogive used chmod -R go+r in /usr/kde to solve the problem. I modified this piece of advice and have things working again.

To solve this problem a bit more elegantly try the following:

1. Run the following to find all files in the kde directory that have been modified in the last 24 hours. Since I had run fix_libtool_file.sh recently all these modifications would show up. For me this returned about 800 files. Note that these files are owned by root and will probably have 600 permissions.

Code:
find /usr/kde -type f -mtime -1 -exec ls -l {} \;


2. The problem lies (at least in my conception) in that the libraries listed are not readable by normal users. Consequently KDE can't start up properly for normal users, but can for root. Run the following to correct the problem:

Code:
find /usr/kde -type f -mtime -1 -exec chmod go+r {} \;


3. As an added safety you might also go into /tmp and remove all the normal user's /tmp/mcop-<username>, /tmp/kde-<username> and /tmp/orbit-<username> directories. Strictly speaking I don't think this is necessary (they're deleted during startup), but it doesn't hurt.

4. Re-login as a normal user

Hope this helps someone out. If others report this problem let me know and I'll report it as a bug in fix_libtool_files.sh.
_________________
Success is the ability to go from one failure to another with no loss of enthusiasm. - Winston Churchill
Back to top
View user's profile Send private message
mensan
n00b
n00b


Joined: 05 Aug 2003
Posts: 74
Location: Seattle, WA

PostPosted: Sat Nov 13, 2004 4:54 am    Post subject: Reply with quote

hey all, i was trying a "emerge gcc glibc" on ~x86 and got this which looks like it is a gcc 3.4.3 problem as it tries to compile glibc:

Code:
Calculating dependencies ...done!
>>> emerge (1 of 1) sys-libs/glibc-2.3.4.20041102 to /
>>> md5 src_uri ;-) glibc-2.3.3.tar.bz2
>>> md5 src_uri ;-) glibc-manpages-2.3.4.tar.bz2
>>> md5 src_uri ;-) glibc-infopages-2.3.4.tar.bz2
>>> md5 src_uri ;-) glibc-2.3.4-branch-update-20041102.patch.bz2
nptlonly
nptl
x86
>>> Unpacking source...
nptl
x86

 * Checking gcc for __thread support ... no

 * Could not find a gcc that supports the __thread directive!
 * please update to gcc-3.2.2-r1 or later, and try again.

!!! ERROR: sys-libs/glibc-2.3.4.20041102 failed.
!!! Function check_nptl_support, Line 158, Exitcode 0
!!! No __thread support in gcc!
!!! If you need support, post the topmost build error, NOT this status message.


anyway, i started poking around, tried the gcc-config and it looks right:
Code:
gemini rob # gcc-config -l
[1] i686-pc-linux-gnu-3.3.4
[2] i686-pc-linux-gnu-3.4.3 *
[3] i686-pc-linux-gnu-3.4.3-hardened
[4] i686-pc-linux-gnu-3.4.3-hardenednossp


and the env-update, source /etc/profile, ldconfig didnt help.

here is what i am getting for the version i am using:
Code:
gemini rob # gcc -v
Reading specs from /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/specs
Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.4.2/specs
gcc: /usr/lib/gcc-lib/i686-pc-linux-gnu/3.4.2/specs: No such file or directory


though portage says that i am all set:
Code:
gemini rob # emerge -p gcc

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] sys-devel/gcc-3.4.3


thanks in advance.

-men$an
Back to top
View user's profile Send private message
firephoto
Veteran
Veteran


Joined: 29 Oct 2003
Posts: 1560
Location: +48° 5' 23.40", -119° 48' 30.00"

PostPosted: Sat Nov 13, 2004 5:00 am    Post subject: Reply with quote

You might need to logout of everything and restart your x-server too. I updated gcc on another machine here today and had some weird errors till I logged out. Once you update glibc you should reboot (probably other ways) to make sure everything is working correctly.

What's "emerge gcc glibc -vpD" show?
Back to top
View user's profile Send private message
mensan
n00b
n00b


Joined: 05 Aug 2003
Posts: 74
Location: Seattle, WA

PostPosted: Sat Nov 13, 2004 5:07 am    Post subject: Reply with quote

ok, you're good.

a logout and log back in worked like a charm.

thanks a ton.

luv u guys. :D
Back to top
View user's profile Send private message
irf2003
Veteran
Veteran


Joined: 10 Sep 2003
Posts: 1078

PostPosted: Sun Nov 14, 2004 8:00 pm    Post subject: Reply with quote

have been playing with gcc-3.4.x, for a long time, but never on a
live system, always in a chrooted environment to see what does and
does not compile.
have finally taken the plunge, and must say, that moving at least
to gcc-3.4.3 is like having a hardware upgrade.
many thanks lv, for all your work on gcc-3.4.x, it is indeed a labour of love, and we all appreciate it and thank you for it.
FYI, emerged my whole world with the following compiler flags:
Code:

CFLAGS="-O2 -mtune=pentium4 -march=pentium4 -fforce-addr -momit-leaf-frame-pointer -fomit-frame-pointer -frename-registers -fweb -ftracer -pipe "
CXXFLAGS=${CFLAGS}-fvisibility-inlines-hidden

so far, the above appear to be OK
happy gentooing
Back to top
View user's profile Send private message
irf2003
Veteran
Veteran


Joined: 10 Sep 2003
Posts: 1078

PostPosted: Sun Nov 14, 2004 8:00 pm    Post subject: Reply with quote

a
Back to top
View user's profile Send private message
oddjobz
n00b
n00b


Joined: 04 Mar 2004
Posts: 29
Location: UK

PostPosted: Mon Nov 15, 2004 12:34 am    Post subject: Major problems recently ... Reply with quote

Mmm,

I'm not entirely sure what's going on, but after recent ~x86 ugrades on varions x86 boxes I'm getting some very strange problems.

a. SEGV's from Evolution and Firefox for no apparent reason
b. Strange errors from a misconfiguration of host.conf
c. Things like Cyrus IMAP failing because "lmtp" wasn't in /etc/services

That and I had great fun in making the compiler work after upgrading and changing the CHOST from i386 to i686 on one box ..

I saw a post about free() checking now causing a segv on an invalid pointer .. I tried downgrading glibc on a couple of boxes but I'm still seeing lots of problems .. :(
Back to top
View user's profile Send private message
irf2003
Veteran
Veteran


Joined: 10 Sep 2003
Posts: 1078

PostPosted: Mon Nov 15, 2004 3:38 am    Post subject: Reply with quote

@oddjobz, to disable the new glibc malloc()/free() checking add "nomalloccheck"
to your USE flags, and re-emerge glibc.
hth
Back to top
View user's profile Send private message
fnord
n00b
n00b


Joined: 21 Aug 2002
Posts: 15
Location: Israel

PostPosted: Mon Nov 15, 2004 7:31 pm    Post subject: GCC-3.4.3 bug?! Reply with quote

When trying to compile the following (invalid) code:
Code:
class C
{
protected:
void dosomething(int l=);
}

int main()
{
}


I get the following error(s):

Code:
cc1plus: error: expected primary-expression before '=' token
<repeated about 25 times>

Internal compiler error: Error reporting routines re-entered.
Please submit a full bug report,
with preprocessed source if appropriate.


I know I should address such things to the GCC mailing lists, but since the Gentoo version of GCC contains some gentoo-specific patches, I thought I'd try asking here before I post to the GCC mailing list.

this code compiles with GCC-3.3.4 (=the compiler gives the correct error).

Any ideas?
Back to top
View user's profile Send private message
oddjobz
n00b
n00b


Joined: 04 Mar 2004
Posts: 29
Location: UK

PostPosted: Mon Nov 15, 2004 11:35 pm    Post subject: Re; oddjobz problems Reply with quote

Mmm,

Tried re-emerging glibc (and gcc) with the use flag set ..

No joy .. :(

any other ideas ?

(I have a test site that crashes firefox every time .. and Mozilla ..)

Windows XP firefox works fine .. (and it was fine on Linux a few days back)
Back to top
View user's profile Send private message
robmoss
Retired Dev
Retired Dev


Joined: 27 May 2003
Posts: 2634
Location: Jesus College, Oxford

PostPosted: Tue Nov 16, 2004 8:46 pm    Post subject: Reply with quote

fnord, report it to the Gentoo bugzilla first. If it needs to go upstream, we'll send it there.

tuxp3 wrote:
my 2cents.. :: also when is gcc 4 gonna enter portage i really want to have a look at that as a little toy :)


As soon as I can get the sodding thing to compile itself and not segfault everywhere :x

irf2003 wrote:
FYI, emerged my whole world with the following compiler flags:
Code:

CFLAGS="-O2 -mtune=pentium4 -march=pentium4 -fforce-addr -momit-leaf-frame-pointer -fomit-frame-pointer -frename-registers -fweb -ftracer -pipe "
CXXFLAGS=${CFLAGS}-fvisibility-inlines-hidden


Considering you're the most conservative gcc experimenter I've ever come across, I have only one thing to say about that. 8O 8O 8O 8O 8O 8O 8O 8O 8O 8O 8O 8O 8O 8O 8O 8O 8O 8O 8O 8O

----------

<rant> For all those whinging about how this broke their box - I don't care. ~arch is for testing ebuilds, not packages. If you want an ebuild that we know works, use arch. If that doesn't work, complain! But if a ~arch ebuild doesn't work - for example, the gcc-3.4.3 ebuild screwing up the libtool stuff and gcc-config not running as it should have done - then file a bug. Don't whinge. Don't say you're leaving. You know what the risks are of running the testing tree is - instability. The packages themselves will be stable, but the ebuilds will not. That's what happened - the ebuild was still meant to be tested by people other than the one developer who'd had the chance to use it, and was himself only upgrading from one gcc-3.4.3 snapshot to another one, meaning he hadn't come across the bugs mentioned. </rant>
_________________
Reality is for those who can't face Science Fiction.

emerge -U will kill your Gentoo
ecatmur, Lord of Portage Bash Scripts
Back to top
View user's profile Send private message
oddjobz
n00b
n00b


Joined: 04 Mar 2004
Posts: 29
Location: UK

PostPosted: Wed Nov 17, 2004 2:39 am    Post subject: Fixed .. Reply with quote

Ok,

I've done a complete re-install based on 2004.3 (amd64) ..

All now seems to be stable (!)

I think something must've gotten really upset with portage and versions .. although I'm not quite sure what. It wasn't seeing some of the newer stuff as "current" and as a result was upgrading some packages and not others (!)

8O
Back to top
View user's profile Send private message
irf2003
Veteran
Veteran


Joined: 10 Sep 2003
Posts: 1078

PostPosted: Wed Nov 17, 2004 4:04 pm    Post subject: Reply with quote

robmoss wrote:

irf2003 wrote:
FYI, emerged my whole world with the following compiler flags:
Code:

CFLAGS="-O2 -mtune=pentium4 -march=pentium4 -fforce-addr -momit-leaf-frame-pointer -fomit-frame-pointer -frename-registers -fweb -ftracer -pipe "
CXXFLAGS=${CFLAGS}-fvisibility-inlines-hidden


Considering you're the most conservative gcc experimenter I've ever come across, I have only one thing to say about that. 8O 8O 8O 8O 8O 8O 8O 8O 8O 8O 8O 8O 8O 8O 8O 8O 8O 8O 8O 8O

@robmoss, actually, they are safe, they just sound scary.
another thing, i see you have moved to gcc ebuild to eclass, this makes it
a pain to use the weekly snapshots.
could we have an ebuild for the weekly snapshots? it can be "*-" masked, and of course it's on a "caveat emptor" basis, so you do not need to worry too
much about it.
hth
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Goto page Previous  1, 2, 3, ... 10, 11, 12  Next
Page 2 of 12

 
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