Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
GCC-4.0 (part 3)
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
nxsty
Veteran
Veteran


Joined: 23 Jun 2004
Posts: 1556
Location: .se

PostPosted: Thu Sep 29, 2005 9:22 am    Post subject: Reply with quote

SteveYin wrote:
gcc mail list says gcc 4.0.2 will be released today or tommorow..


And now it's out!


chtephan: Does your hardened gcc set -D_FORTIFY_SOURCE=1 by default in the spec-file? Otherwise that migh be a good idea.
Back to top
View user's profile Send private message
chtephan
Apprentice
Apprentice


Joined: 03 Feb 2004
Posts: 266
Location: Offenburg, Germany

PostPosted: Thu Sep 29, 2005 9:41 am    Post subject: Reply with quote

Yes, I just compiled it on all machines. :)

No, it doesn't add that in the specs file itself. Spec file hackery... ugh. Do you think it should be added to all hardened specs? (like the linker stuff?)
Back to top
View user's profile Send private message
Xake
Guru
Guru


Joined: 11 Feb 2004
Posts: 588
Location: Göteborg, the rainy part of scandinavia

PostPosted: Thu Sep 29, 2005 10:58 am    Post subject: Reply with quote

So it compiles on your machines?

I just get this error:

Code:
test -z "/usr/lib" || mkdir -p -- "/var/tmp/portage/gcc-4.0.2/image//usr/lib"
 /bin/sh ../libtool --mode=install /bin/install -c  'libstdc++.la' '/var/tmp/portage/gcc-4.0.2/image//usr/lib/libstdc++.la'
/bin/install -c .libs/libstdc++.so.6.0.6 /var/tmp/portage/gcc-4.0.2/image//usr/lib/libstdc++.so.6.0.6
(cd /var/tmp/portage/gcc-4.0.2/image//usr/lib && rm -f libstdc++.so.6 && ln -s libstdc++.so.6.0.6 libstdc++.so.6)
(cd /var/tmp/portage/gcc-4.0.2/image//usr/lib && rm -f libstdc++.so && ln -s libstdc++.so.6.0.6 libstdc++.so)
/bin/install -c .libs/libstdc++.lai /var/tmp/portage/gcc-4.0.2/image//usr/lib/libstdc++.la
libtool: install: warning: remember to run `libtool --finish /usr/lib'
i686-pc-linux-gnu-ar cru libstdc++_pic.a *.o ../libsupc++/*.o
i686-pc-linux-gnu-ar: *.o: Filen eller katalogen finns inte
make[3]: *** [install-exec-local] Fel 1
make[3]: Leaving directory `/var/tmp/portage/gcc-4.0.2/work/build/i686-pc-linux-gnu/libstdc++-v3/src'
make[2]: *** [install-am] Fel 2
make[2]: Leaving directory `/var/tmp/portage/gcc-4.0.2/work/build/i686-pc-linux-gnu/libstdc++-v3/src'
make[1]: *** [install-recursive] Fel 1
make[1]: Leaving directory `/var/tmp/portage/gcc-4.0.2/work/build/i686-pc-linux-gnu/libstdc++-v3'
make: *** [install-target-libstdc++-v3] Fel 2

!!! ERROR: sys-devel/gcc-4.0.2 failed.
!!! Function gcc-compiler_src_install, Line 1478, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.

Back to top
View user's profile Send private message
nxsty
Veteran
Veteran


Joined: 23 Jun 2004
Posts: 1556
Location: .se

PostPosted: Thu Sep 29, 2005 11:38 am    Post subject: Reply with quote

chtephan wrote:
No, it doesn't add that in the specs file itself. Spec file hackery... ugh. Do you think it should be added to all hardened specs? (like the linker stuff?)


Since -fstack-protector is on by default on hardened why not also D_FORTIFY_SOURCE? Just adding it to the CFLAGS is easier but then it just gets striped by a lot of packages.
Back to top
View user's profile Send private message
Exner
Tux's lil' helper
Tux's lil' helper


Joined: 08 Apr 2003
Posts: 128
Location: Melbourne, Australia

PostPosted: Thu Sep 29, 2005 12:39 pm    Post subject: Reply with quote

Anyone have a list of bugs fixed from 4.0.2_pre20050917 to 4.0.2 ?
_________________
- Exner (Antony Suter)
Back to top
View user's profile Send private message
fredor
Tux's lil' helper
Tux's lil' helper


Joined: 13 Oct 2003
Posts: 84
Location: UK

PostPosted: Thu Sep 29, 2005 1:33 pm    Post subject: Reply with quote

Compiling gcc-4.0.2 failed applying patch ' 07_all_gcc4-pr21254.patch!'
Quote:
>>> Unpacking source...
>>> Unpacking gcc-4.0.2.tar.bz2 to /var/tmp/portage/gcc-4.0.2/work
>>> Unpacking gcc-4.0.2-patches-1.0.tar.bz2 to /var/tmp/portage/gcc-4.0.2/work
>>> Unpacking gcc-4.0.0-uclibc-patches-1.0.tar.bz2 to /var/tmp/portage/gcc-4.0.2/work
>>> Unpacking gcc-4.0.0-piepatches-v8.7.8.tar.bz2 to /var/tmp/portage/gcc-4.0.2/work
* Applying Gentoo patches ...
* 01_all_gcc4-ice-hack.patch ... [ ok ]
* 02_all_gcc4-ppc64-m32-m64-multilib-only.patch ... [ ok ]
* 03_all_gcc4-ia64-libunwind.patch ... [ ok ]
* 04_all_gcc4-java-nomulti.patch ... [ ok ]
* 05_all_gcc4-pr17965.patch ... [ ok ]
* 06_all_gcc4-pr22052.patch ... [ ok ]
* 07_all_gcc4-pr21254.patch ...

* Failed Patch: 07_all_gcc4-pr21254.patch !
* ( /var/tmp/portage/gcc-4.0.2/work/patch/07_all_gcc4-pr21254.patch )
*
* Include in your bugreport the contents of:
*
* /var/tmp/portage/gcc-4.0.2/temp/07_all_gcc4-pr21254.patch-14529.out


!!! ERROR: sys-devel/gcc-4.0.2 failed.
!!! Function epatch, Line 361, Exitcode 0
!!! Failed Patch: 07_all_gcc4-pr21254.patch!
!!! If you need support, post the topmost build error, NOT this status message.



Failed as follows

Quote:

***** 07_all_gcc4-pr21254.patch *****

=====================================

PATCH COMMAND: patch -p0 -g0 --no-backup-if-mismatch < /var/tmp/portage/gcc-4.0.2/work/patch/07_all_gcc4-pr21254.patch

=====================================
patching file gcc/loop-iv.c
Hunk #1 FAILED at 2166.
Hunk #2 FAILED at 2176.
Hunk #3 FAILED at 2203.
Hunk #4 FAILED at 2214.
Hunk #5 FAILED at 2326.
Hunk #6 FAILED at 2470.
Hunk #7 FAILED at 2538.
Hunk #8 FAILED at 2636.
8 out of 8 hunks FAILED -- saving rejects to file gcc/loop-iv.c.rej
patching file gcc/loop-unroll.c
Hunk #1 succeeded at 442 with fuzz 2 (offset 70 lines).
Hunk #2 FAILED at 512.
1 out of 2 hunks FAILED -- saving rejects to file gcc/loop-unroll.c.rej
=====================================
<4-pr21254.patch-14529.out" [converted] 127L, 4980C 1,1


System is amd64 using '2005.1/no-muultilib' profile.
Back to top
View user's profile Send private message
rmh3093
Advocate
Advocate


Joined: 06 Aug 2003
Posts: 2138
Location: Albany, NY

PostPosted: Thu Sep 29, 2005 2:00 pm    Post subject: Reply with quote

i just got gcc-4.0.2 to compile with USE="gcj" but has anyone gotten this to compile with USE="gtk" also?
_________________
Do not meddle in the affairs of wizards, for they are subtle and quick to anger.
Back to top
View user's profile Send private message
wuno
Apprentice
Apprentice


Joined: 17 May 2005
Posts: 193
Location: Germany

PostPosted: Thu Sep 29, 2005 3:33 pm    Post subject: Reply with quote

rmh3093 wrote:
i just got gcc-4.0.2 to compile with USE="gcj" but has anyone gotten this to compile with USE="gtk" also?

Here successfully compiled with USE="fortran gtk nls" -02 on a pentium4 IBM T30
Back to top
View user's profile Send private message
Halcy0n
Developer
Developer


Joined: 17 Sep 2003
Posts: 1682
Location: Freehold, NJ

PostPosted: Thu Sep 29, 2005 4:53 pm    Post subject: Reply with quote

fredor wrote:
Compiling gcc-4.0.2 failed applying patch ' 07_all_gcc4-pr21254.patch!'
Quote:
>>> Unpacking source...
>>> Unpacking gcc-4.0.2.tar.bz2 to /var/tmp/portage/gcc-4.0.2/work
>>> Unpacking gcc-4.0.2-patches-1.0.tar.bz2 to /var/tmp/portage/gcc-4.0.2/work
>>> Unpacking gcc-4.0.0-uclibc-patches-1.0.tar.bz2 to /var/tmp/portage/gcc-4.0.2/work
>>> Unpacking gcc-4.0.0-piepatches-v8.7.8.tar.bz2 to /var/tmp/portage/gcc-4.0.2/work
* Applying Gentoo patches ...
* 01_all_gcc4-ice-hack.patch ... [ ok ]
* 02_all_gcc4-ppc64-m32-m64-multilib-only.patch ... [ ok ]
* 03_all_gcc4-ia64-libunwind.patch ... [ ok ]
* 04_all_gcc4-java-nomulti.patch ... [ ok ]
* 05_all_gcc4-pr17965.patch ... [ ok ]
* 06_all_gcc4-pr22052.patch ... [ ok ]
* 07_all_gcc4-pr21254.patch ...

* Failed Patch: 07_all_gcc4-pr21254.patch !
* ( /var/tmp/portage/gcc-4.0.2/work/patch/07_all_gcc4-pr21254.patch )
*
* Include in your bugreport the contents of:
*
* /var/tmp/portage/gcc-4.0.2/temp/07_all_gcc4-pr21254.patch-14529.out


!!! ERROR: sys-devel/gcc-4.0.2 failed.
!!! Function epatch, Line 361, Exitcode 0
!!! Failed Patch: 07_all_gcc4-pr21254.patch!
!!! If you need support, post the topmost build error, NOT this status message.



Failed as follows

I can never tell anymore in this thread. Is this with the package in the tree?

Edit: because you are using the wrong patchset if so.
_________________
Mark Loeser
http://www.halcy0n.com
Back to top
View user's profile Send private message
fredor
Tux's lil' helper
Tux's lil' helper


Joined: 13 Oct 2003
Posts: 84
Location: UK

PostPosted: Thu Sep 29, 2005 5:13 pm    Post subject: Reply with quote

It is complied from portage with package.keyword set to '-*'
Which patchset should I be using?
Back to top
View user's profile Send private message
fredor
Tux's lil' helper
Tux's lil' helper


Joined: 13 Oct 2003
Posts: 84
Location: UK

PostPosted: Thu Sep 29, 2005 5:27 pm    Post subject: Reply with quote

I deleted the gcc-4.0.2 patch files. Did emerge --sync and it seems to be compiling OK now.
Back to top
View user's profile Send private message
Halcy0n
Developer
Developer


Joined: 17 Sep 2003
Posts: 1682
Location: Freehold, NJ

PostPosted: Thu Sep 29, 2005 5:33 pm    Post subject: Reply with quote

fredor wrote:
It is complied from portage with package.keyword set to '-*'
Which patchset should I be using?

The patchset on the mirrors does not have that patch in it. Never has :)
_________________
Mark Loeser
http://www.halcy0n.com
Back to top
View user's profile Send private message
gpierce
Tux's lil' helper
Tux's lil' helper


Joined: 15 Dec 2004
Posts: 111

PostPosted: Thu Sep 29, 2005 5:58 pm    Post subject: ebuild for gcc-4.0.2 Reply with quote

Hello everyone! I see a number of comments here stating that people have successfully compiled gcc-4.0.2. Are people building their own ebuilds or downloading someone else's? Also, are people using gcc-3.4.4 to compile gcc-4.0.2 and then compiling gcc-4.0.2 again with the gcc-4.0.2 binary that was built by compiling with gcc-3.4.4? Hope that's not too confusing :)
Back to top
View user's profile Send private message
fredor
Tux's lil' helper
Tux's lil' helper


Joined: 13 Oct 2003
Posts: 84
Location: UK

PostPosted: Thu Sep 29, 2005 6:06 pm    Post subject: Reply with quote

Halcyon
Quote:
The patchset on the mirrors does not have that patch in it. Never has

With the freshly downloaded patch file and emerge --sync, gcc-4.0.2 compiled fine so the mirrors must have been updated.
Back to top
View user's profile Send private message
xordan
Tux's lil' helper
Tux's lil' helper


Joined: 30 Aug 2004
Posts: 148

PostPosted: Thu Sep 29, 2005 10:55 pm    Post subject: Reply with quote

4.0.2 compiles fine for me. Looking good. :D What's the roadmap now for the 4.0.x branch? Will there be a 4.0.3 or will all resources go towards 4.1 now?
Back to top
View user's profile Send private message
Xake
Guru
Guru


Joined: 11 Feb 2004
Posts: 588
Location: Göteborg, the rainy part of scandinavia

PostPosted: Fri Sep 30, 2005 9:06 am    Post subject: Reply with quote

Could someone plase point me in the right direction to make gcc4 merge (look above for errormessage)?

Here it just errors out during install at the same place every time.
Back to top
View user's profile Send private message
fredor
Tux's lil' helper
Tux's lil' helper


Joined: 13 Oct 2003
Posts: 84
Location: UK

PostPosted: Fri Sep 30, 2005 10:39 am    Post subject: Reply with quote

Xake:-
I compile without 'maketest. and everything works OK now. Using 'maketest' some programs fail which otherwise seem to work perfectly well.
Back to top
View user's profile Send private message
Rafal_Glazar
Apprentice
Apprentice


Joined: 10 Jul 2004
Posts: 167
Location: Rzeszow, Poland

PostPosted: Fri Sep 30, 2005 1:57 pm    Post subject: Reply with quote

Successful compile of gcc 4.0.2 with USE="fortran gtk nls" using portage ebuild. Just complited emerge -e system. I've had only one problem. I couldn't compile it with gcc 3.4.4 and had to use gcc 3.3.5 which still is on my system.
This is what i did:
Code:

emerge gcc
switch to gcc 4.0.2
emerge gcc
emerge linux-headers glibc binutils-config binutils gcc-config gcc
emerge glibc binutils gcc
emerge -e system

Why i did this? Well, all is said in first line of my signature.
_________________
"All I ask for is choice. I want to be able to go into any store you can buy a computer in and say, "I want ______ OS on this computer." Is that too much to ask? We can't always be looking out Windows. We also need to get work done." - Bill Olson
Back to top
View user's profile Send private message
gpierce
Tux's lil' helper
Tux's lil' helper


Joined: 15 Dec 2004
Posts: 111

PostPosted: Fri Sep 30, 2005 2:26 pm    Post subject: Compiling 4.0.2 with 3.4.4 Reply with quote

I also couldn't compile gcc-4.0.2 with gcc-3.4.4. I keep getting "internal errors" messages when I try. Some have claimed that it is a result of a defective/failing/overheated CPU, but I am not so sure as I everything else (even OO) compiles just fine. So, I think I will try to install gcc-3.3.5 and try with that instead.
Back to top
View user's profile Send private message
fredor
Tux's lil' helper
Tux's lil' helper


Joined: 13 Oct 2003
Posts: 84
Location: UK

PostPosted: Fri Sep 30, 2005 5:31 pm    Post subject: Reply with quote

In a KDE-3.5-beta system, I have run 'emerge -e world' with only 2 failures:-
alsa-tools
hpijs
Everything else compiled with gcc-4.0.2
Back to top
View user's profile Send private message
Halcy0n
Developer
Developer


Joined: 17 Sep 2003
Posts: 1682
Location: Freehold, NJ

PostPosted: Fri Sep 30, 2005 5:55 pm    Post subject: Re: Compiling 4.0.2 with 3.4.4 Reply with quote

gpierce wrote:
I also couldn't compile gcc-4.0.2 with gcc-3.4.4. I keep getting "internal errors" messages when I try. Some have claimed that it is a result of a defective/failing/overheated CPU, but I am not so sure as I everything else (even OO) compiles just fine. So, I think I will try to install gcc-3.3.5 and try with that instead.

The makefile for gcc-4.0.2 is somewhat screwed up. It shouldn't be calling the current system compiler at that point. There is a bug open about this on our bugzilla, and GCC's.
_________________
Mark Loeser
http://www.halcy0n.com
Back to top
View user's profile Send private message
luca82
Guru
Guru


Joined: 22 Oct 2003
Posts: 306
Location: Somewhere Between Heaven and Hell

PostPosted: Fri Sep 30, 2005 6:50 pm    Post subject: Reply with quote

I have compiled gcc-4.0.2 successfull with 4.0.2_pre. But after this I got some error about the profile. I solved with a manual gcc-config [n] with the [n]=right profile. Maybe I'm wrong but it seems like an ebuild problem... :?:
Back to top
View user's profile Send private message
UncleOwen
Veteran
Veteran


Joined: 27 Feb 2003
Posts: 1493
Location: Germany, Hamburg

PostPosted: Fri Sep 30, 2005 8:03 pm    Post subject: Reply with quote

luca82 wrote:
I have compiled gcc-4.0.2 successfull with 4.0.2_pre. But after this I got some error about the profile. I solved with a manual gcc-config [n] with the [n]=right profile. Maybe I'm wrong but it seems like an ebuild problem... :?:


Exactly the same thing here.
Back to top
View user's profile Send private message
ts
Tux's lil' helper
Tux's lil' helper


Joined: 15 Dec 2004
Posts: 97

PostPosted: Sat Oct 01, 2005 4:35 am    Post subject: Reply with quote

help !

After emerge glibc-2.3.5.20050722 using gcc-4.0.2, I can't emerge any package any more.

Code:
creating cache ./config.cache
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking build system type... x86_64-pc-linux-gnu
checking for a BSD compatible install... /bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for gcc... gcc
checking whether the C compiler (gcc -march=k8 -O2 -pipe -Wl,-O1) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.

!!! ERROR: sys-devel/binutils-2.16.1 failed.
!!! Function toolchain-binutils_src_compile, Line 124, Exitcode 1
!!! configure failed


I googled the problem, and tried different ways. However, all failed. Any gurus can help me?
Back to top
View user's profile Send private message
j-m
Retired Dev
Retired Dev


Joined: 31 Oct 2004
Posts: 975

PostPosted: Sat Oct 01, 2005 8:01 am    Post subject: Reply with quote

luca82 wrote:
I have compiled gcc-4.0.2 successfull with 4.0.2_pre. But after this I got some error about the profile. I solved with a manual gcc-config [n] with the [n]=right profile. Maybe I'm wrong but it seems like an ebuild problem... :?:


Yeah, I can confirm this...
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