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 ... 9, 10, 11, 12  Next  
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
hielvc
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2801
Location: Oceanside, Ca

PostPosted: Thu Feb 03, 2005 12:51 am    Post subject: Reply with quote

Well its out allready and Im at gcc 3.4.3-r something but gcc -v shows gcc 3.4.4 . I only know this becuse I was watching the build. Its not added to /etc/env.d/gcc/ so it doesnt show up in gcc-config but it is there at /usr/lib/gcc-lib/i686-pc-linux-gnu/3.4.4 . So I added it to /etc/env.d/gcc ran fix_libtool_files.sh 3.4.3 && env-update && . /etc/profile. That gave me a non-working compilier. So gcc-config back to 3.4.3 . The big probs is that libstdc** is in the 3.4.4 /usr/lib.....

NOw if I can only figure out why "size of size_t" is not working maybe I;ll get my system Back on line this pockin year :evil:
_________________
An A-Z Index of the Linux BASH command line
Back to top
View user's profile Send private message
rhill
Developer
Developer


Joined: 22 Oct 2004
Posts: 1629
Location: sk.ca

PostPosted: Thu Feb 03, 2005 1:10 am    Post subject: Reply with quote

http://bugs.gentoo.org/show_bug.cgi?id=80434
_________________
by design, by neglect
for a fact or just for effect
Back to top
View user's profile Send private message
kmare
l33t
l33t


Joined: 20 Nov 2004
Posts: 619
Location: Thessaloniki, Greece

PostPosted: Thu Feb 03, 2005 4:13 am    Post subject: Reply with quote

it's fixed in cvs... just emerge --sync again... it worked for me.
Back to top
View user's profile Send private message
hielvc
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2801
Location: Oceanside, Ca

PostPosted: Fri Feb 04, 2005 4:59 pm    Post subject: Reply with quote

Yeah I found that out first thing yesterday. Went back to gcc-3.4.3.2005whatever. Everhting appesred to working fine till one of the scripts ran sed and it couldnt find /usr/lib/..../3.4.4/libstdc++ since the directory was gone, sigh. I ask you how do you run fix_libtool_files.sh on 3.4.4 when its gone :?: 8O :cry: Well running fix.. on 3.3.4 and 3.4.3 didnt work so I linked /usr/lib.../3.4.3 to /usr/lib/.../3.4.4. Its probably not kosher but its working. Off to do battle with abiword gnumeric mplayer
_________________
An A-Z Index of the Linux BASH command line
Back to top
View user's profile Send private message
imrambi
Tux's lil' helper
Tux's lil' helper


Joined: 12 Feb 2004
Posts: 112

PostPosted: Fri Feb 11, 2005 3:11 pm    Post subject: Reply with quote

I'm getting the following error. I've tried USE="bootstrap" with no luck.

Code:
if [ x"-fpic" != x ]; then \
  /var/tmp/portage/gcc-3.4.3.20050110/work/build/gcc/xgcc -B/var/tmp/portage/gcc-3.4.3.20050110/work/build/gcc/ -B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include -c -DHAVE_CONFIG_H -O2 -O2 -march=i686 -pipe -fprefetch-loop-arrays -I. -I/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/libiberty/../include  -W -Wall -Wtraditional -pedantic -fpic /var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/libiberty/cplus-dem.c -o pic/cplus-dem.o; \
else true; fi
/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/libiberty/cplus-dem.c:1: warning: -fprefetch-loop-arrays not supported for this target (try -march switches)
/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/libiberty/cplus-dem.c:55: error: conflicting types for 'malloc'
/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/libiberty/cplus-dem.c:55: error: conflicting types for 'malloc'
/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/libiberty/cplus-dem.c: In function `code_for_qualifier':
/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/libiberty/cplus-dem.c:630: warning: implicit declaration of function `abort'
/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/libiberty/cplus-dem.c: In function `squangle_mop_up':
/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/libiberty/cplus-dem.c:1154: warning: implicit declaration of function `free'
/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/libiberty/cplus-dem.c: In function `demangle_qualified':
/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/libiberty/cplus-dem.c:3310: warning: implicit declaration of function `atoi'
make[2]: *** [cplus-dem.o] Error 1
make[2]: Leaving directory `/mnt/files/tmp/portage/gcc-3.4.3.20050110/work/build/i686-pc-linux-gnu/libiberty'
make[1]: *** [all-target-libiberty] Error 2
make[1]: Leaving directory `/mnt/files/tmp/portage/gcc-3.4.3.20050110/work/build'
make: *** [profiledbootstrap] Error 2

!!! ERROR: sys-devel/gcc-3.4.3.20050110 failed.
!!! Function gcc_do_make, Line 1092, Exitcode 2
!!! make failed with profiledbootstrap
!!! If you need support, post the topmost build error, NOT this status message.


I can compile other programs fine, but this is limiting some updates.
Back to top
View user's profile Send private message
kimchi_sg
Advocate
Advocate


Joined: 26 Nov 2004
Posts: 2915
Location: Singapore

PostPosted: Fri Feb 11, 2005 4:40 pm    Post subject: Reply with quote

imrambi wrote:
I'm getting the following error.
Code:
!!! make failed with profiledbootstrap

Take -mcpu out of your CFLAGS and CXXFLAGS.
_________________
Murphy's Law of Gentoo installation: If a compile can fail, it will.

MacGillicuddy's Corollary: At the most inopportune time.

Please search and read the FAQs before posting.
Back to top
View user's profile Send private message
PrakashP
Veteran
Veteran


Joined: 27 Oct 2003
Posts: 1246
Location: C.C.A.A., Germania

PostPosted: Fri Feb 11, 2005 9:16 pm    Post subject: Reply with quote

Oh, btw, -fweb seems finally to be fixed with current gcc 3.4.3. xine-lib doesn't show mpeg2 artefacts anymore (yes, I disabled the flag filtering in it ;)) and kde runs as expected. With both I had problem with an early gcc 3.4 and -fweb.
Back to top
View user's profile Send private message
Mikos
Tux's lil' helper
Tux's lil' helper


Joined: 04 Feb 2004
Posts: 91
Location: Prague, Czech Republic

PostPosted: Sat Feb 12, 2005 4:31 pm    Post subject: Reply with quote

Hello,
I am using GCC-3.4 and now I have problem with gcc-config - it doesn't change GCC profile. It has worked in the past, but now it doesn't work, I can't switch back to GCC-3.3 profile if I want to compile something with gcc-3.3. I have tried nearly everything, but it still doesn't work (and YES, I have done "env-update && source /etc/profile" after "gcc-config 1"). For more informations about this issue, you can look at this thread: http://forums.gentoo.org/viewtopic.php?t=293494

Please help, this is really frustrating :-(
_________________
o Athlon-XP 2600+ (512kB cache), 512MB DDR400 RAM, GeForce FX-5600 128MB
o using Arch Linux now, but still love Gentoo ;-)
Back to top
View user's profile Send private message
Mikos
Tux's lil' helper
Tux's lil' helper


Joined: 04 Feb 2004
Posts: 91
Location: Prague, Czech Republic

PostPosted: Sun Feb 13, 2005 1:29 am    Post subject: Reply with quote

I have re-emerged GCC 3.3 and now gcc-config works...
_________________
o Athlon-XP 2600+ (512kB cache), 512MB DDR400 RAM, GeForce FX-5600 128MB
o using Arch Linux now, but still love Gentoo ;-)
Back to top
View user's profile Send private message
imrambi
Tux's lil' helper
Tux's lil' helper


Joined: 12 Feb 2004
Posts: 112

PostPosted: Sun Feb 13, 2005 4:40 am    Post subject: Reply with quote

kimchi_sg wrote:
imrambi wrote:
I'm getting the following error.
Code:
!!! make failed with profiledbootstrap

Take -mcpu out of your CFLAGS and CXXFLAGS.


its a no go still. Here is my error:

Code:
/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/libiberty/cplus-dem.c:55: error: conflicting types for 'malloc'
/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/libiberty/cplus-dem.c:55: error: conflicting types for 'malloc'
/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/libiberty/cplus-dem.c: In function `code_for_qualifier':
/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/libiberty/cplus-dem.c:630: warning: implicit declaration of function `abort'
/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/libiberty/cplus-dem.c: In function `squangle_mop_up':
/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/libiberty/cplus-dem.c:1154: warning: implicit declaration of function `free'
/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/libiberty/cplus-dem.c: In function `demangle_qualified':
/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/libiberty/cplus-dem.c:3310: warning: implicit declaration of function `atoi'
make[2]: *** [cplus-dem.o] Error 1
make[2]: Leaving directory `/mnt/files/tmp/portage/gcc-3.4.3.20050110/work/build/i686-pc-linux-gnu/libiberty'
make[1]: *** [all-target-libiberty] Error 2
make[1]: Leaving directory `/mnt/files/tmp/portage/gcc-3.4.3.20050110/work/build'
make: *** [profiledbootstrap] Error 2

!!! ERROR: sys-devel/gcc-3.4.3.20050110 failed.
!!! Function gcc_do_make, Line 1092, Exitcode 2
!!! make failed with profiledbootstrap
!!! If you need support, post the topmost build error, NOT this status message.


Here are my flags:
Code:
CFLAGS="-O3 -march=i686 -pipe -fomit-frame-pointer -funroll-loops -fforce-addr -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4
-fprefetch-loop-arrays -finline-limit=600 -ftracer"
CHOST="i686-pc-linux-gnu"
USE="opie sunbird thunderbird firefox ithreads threads mysql mythtv gtk gnome qt kde dvd alsa cdr dvdrw dvdr xinerama mozilla vlc arts"
Back to top
View user's profile Send private message
kimchi_sg
Advocate
Advocate


Joined: 26 Nov 2004
Posts: 2915
Location: Singapore

PostPosted: Sun Feb 13, 2005 6:18 am    Post subject: Reply with quote

imrambi wrote:
Here are my flags:
Code:
CFLAGS="-O3 -march=i686 -pipe -fomit-frame-pointer -funroll-loops -fforce-addr -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4
-fprefetch-loop-arrays -finline-limit=600 -ftracer"
CHOST="i686-pc-linux-gnu"
USE="opie sunbird thunderbird firefox ithreads threads mysql mythtv gtk gnome qt kde dvd alsa cdr dvdrw dvdr xinerama mozilla vlc arts"

I'm still inclined to think that it is the fault of the CFLAGS.

How about reducing CFLAGS to just:
Code:
CFLAGS="-O3 -march=i686 -pipe -fomit-frame-pointer"

_________________
Murphy's Law of Gentoo installation: If a compile can fail, it will.

MacGillicuddy's Corollary: At the most inopportune time.

Please search and read the FAQs before posting.
Back to top
View user's profile Send private message
Mikos
Tux's lil' helper
Tux's lil' helper


Joined: 04 Feb 2004
Posts: 91
Location: Prague, Czech Republic

PostPosted: Sun Feb 13, 2005 1:37 pm    Post subject: Reply with quote

imrambi: You can also use -ftracer and -fprefetch-loop-arrays (maybe also -fforce-addr), but other flags are insane...
_________________
o Athlon-XP 2600+ (512kB cache), 512MB DDR400 RAM, GeForce FX-5600 128MB
o using Arch Linux now, but still love Gentoo ;-)
Back to top
View user's profile Send private message
imrambi
Tux's lil' helper
Tux's lil' helper


Joined: 12 Feb 2004
Posts: 112

PostPosted: Mon Feb 14, 2005 3:12 am    Post subject: Reply with quote

some of them do help. Especially the finline-limit. If I don't have to pay for a costly stack calls, then I don't want to.
Back to top
View user's profile Send private message
justabssplyr
Tux's lil' helper
Tux's lil' helper


Joined: 13 Apr 2004
Posts: 110

PostPosted: Mon Feb 14, 2005 3:26 am    Post subject: Reply with quote

imrambi wrote:
If I don't have to pay for a costly stack calls, then I don't want to.


just dont file any bug reports :twisted:
Back to top
View user's profile Send private message
cremeglace
n00b
n00b


Joined: 17 Feb 2005
Posts: 2

PostPosted: Sun Feb 20, 2005 4:02 pm    Post subject: Reply with quote

I'm trying to emerge gcc-3.4.3 but I keep getting the following error:

!!! Problem in sys-devel/gcc-3.4.3 dependencies.
!!! "Specific key requires an operator (sys-devel/gcc-3.4.3) (try adding an '=')" exceptions

Also, gcc-3.4.3 doesn't show up when I use emerge --search gcc. I'm currently using gcc-3.3.5 and it seems that 3.4 isn't available for my system or something. I want to use it because of its pentium-m optimizations. Here's my system info:

Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.6.10-gentoo-r6 i686)
=================================================================
System uname: 2.6.10-gentoo-r6 i686 Intel(R) Pentium(R) M processor 1.60GHz
Gentoo Base System version 1.4.16
Back to top
View user's profile Send private message
kimchi_sg
Advocate
Advocate


Joined: 26 Nov 2004
Posts: 2915
Location: Singapore

PostPosted: Sun Feb 20, 2005 4:28 pm    Post subject: Reply with quote

You need to have ACCEPT_KEYWORDS="~x86", or tell portage to accept gcc versions with ~x86 as their keyword via package.keywords.
_________________
Murphy's Law of Gentoo installation: If a compile can fail, it will.

MacGillicuddy's Corollary: At the most inopportune time.

Please search and read the FAQs before posting.
Back to top
View user's profile Send private message
PrakashP
Veteran
Veteran


Joined: 27 Oct 2003
Posts: 1246
Location: C.C.A.A., Germania

PostPosted: Wed Feb 23, 2005 10:12 am    Post subject: Reply with quote

Richard Henderson (from Red Hat) replies to my inquiry on gcc mailing list regarding broken compilation of SSE intrinsics (latest gcc4 alpha does it fine, btw):

Quote:

>> ... but gcc 3.4.3 has serious issues. It even miscompiles SSE code.
>> Are plans to fix this ...


No.


r~
Back to top
View user's profile Send private message
HiTech69
n00b
n00b


Joined: 11 Jul 2003
Posts: 12
Location: Wilmington, NC

PostPosted: Wed Mar 16, 2005 7:53 pm    Post subject: Reply with quote

Everything compiled fine with 3.4.3-20050110 until about 6 or so packages later in my upgrade when python started to scream

/usr/bin/python: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory

A search of my system comes up with nothing for this file. So, now I'm like in deep trouble, as nothing with python bindings is running...(emerge, ebuild).
Code:

Reading specs from /usr/lib/gcc/i686-pc-linux-gnu/3.4.3-20050110/specs
Configured with: /var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/configure --enable-version-specific-runtime-libs --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.4.3-20050110 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/3.4.3-20050110/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4.3-20050110 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4.3-20050110/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4.3-20050110/info --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/3.4.3-20050110/include/g++-v3 --host=i686-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --disable-multilib --disable-libgcj --enable-languages=c,f77 --enable-shared --enable-threads=posix
Thread model: posix
gcc version 3.4.3-20050110 (Gentoo Linux 3.4.3.20050110, ssp-3.4.3.20050110-0, pie-8.7.7)
Back to top
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


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

PostPosted: Wed Mar 16, 2005 8:25 pm    Post subject: Reply with quote

For people with missing libstdc++ libraries, please see this post: http://forums.gentoo.org/viewtopic-t-309452.html
_________________
No-one's more important than the earthworm.
Back to top
View user's profile Send private message
rrowv
n00b
n00b


Joined: 17 Mar 2005
Posts: 16

PostPosted: Thu Mar 17, 2005 11:19 pm    Post subject: Reply with quote

Just emerged gcc-3.4.3 yesterday and it works great. Just noticed one strange thing though, I have no g++. Can't compile any C++ programs at the moment because of that. The executable isn't even in /usr/i686-pc-linux-gnu/gcc-bin/3.4.3-20050110. I didn't put nocxx or anything in the USE flags. Shouldn't g++ have come along with the gcc emerge? Any ideas how I can get it?
Back to top
View user's profile Send private message
donjuan
l33t
l33t


Joined: 11 May 2004
Posts: 760
Location: At Uni

PostPosted: Thu Mar 17, 2005 11:36 pm    Post subject: Reply with quote

Yes, g++ should have come along witht he gcc emerge, this is bug #85490. Now see the post above yours :wink:.
_________________
Command-line ACCEPT_KEYWORDS is considered harmful, use the package.* files.

The Stage 1 on 3 Install
Back to top
View user's profile Send private message
rrowv
n00b
n00b


Joined: 17 Mar 2005
Posts: 16

PostPosted: Fri Mar 18, 2005 12:20 am    Post subject: Reply with quote

Thanks that got it. (Didn't check the links about libstdc++ b/c I wasn't having trouble with it, so hadn't bothered to look there)
Back to top
View user's profile Send private message
radfoj
Guru
Guru


Joined: 31 Dec 2004
Posts: 490
Location: Tísek, Czech Republic

PostPosted: Sun Mar 27, 2005 12:03 am    Post subject: Reply with quote

Hi, emerged gcc-3.4 only for one package and after this package sucesfully compiled, with gcc-config I switched back to stable gcc-3.3.5. And I want keep both gcc version.
But my problem now is, that after command
Code:
# emerge -pve system

it want emerge the newest version
Code:
[ebuild  N    ] sys-devel/gcc-3.4.3.20050110-r1  (-altivec) -bootstrap -boundschecking -build -debug +fortran -gcj +gtk -hardened (-ip28) (-multilib) -multislot (-n32) (-n64) +nls -nocxx -objc -static (-uclibc) 0 kB
[ebuild  N    ] sys-libs/libstdc++-v3-3.3.4  -debug +nls 0 kB

Is it possible to "tell/write somewhere", that I want gcc-3.3.5 and not the newest one? :?:
Back to top
View user's profile Send private message
PrakashP
Veteran
Veteran


Joined: 27 Oct 2003
Posts: 1246
Location: C.C.A.A., Germania

PostPosted: Sun Mar 27, 2005 12:09 am    Post subject: Reply with quote

As the gcc versions are emerged to different slots, emerging gcc 3.4x won't delete your 3.3x version, so I don't see your problem.
Back to top
View user's profile Send private message
radfoj
Guru
Guru


Joined: 31 Dec 2004
Posts: 490
Location: Tísek, Czech Republic

PostPosted: Sun Mar 27, 2005 12:32 am    Post subject: Reply with quote

PrakashP wrote:
As the gcc versions are emerged to different slots, emerging gcc 3.4x won't delete your 3.3x version, so I don't see your problem.

To be sure: for example I want rebuild my whole system with gcc-3.3.5 with command "emerge -e system" and --pretend option shows me that gcc-3.4.x will be reemerged (see my previous post).

I am not worry that any of gcc version will be deleted. I am worrying with which version the system will be emerged.
OK so important is output by typing "gcc-config -l" and version with * will be used. Without any problems, that 3.4.x is presented. :)

[EDITED] but "emerge -e system" will not emerge gcc-3.3.5 [EDITED]
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 ... 9, 10, 11, 12  Next
Page 10 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