Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

GCC-4.0 (part 3)

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
280 posts
  • Page 2 of 12
    • Jump to page:
  • Previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • …
  • 12
  • Next
Author
Message
nxsty
Veteran
Veteran
User avatar
Posts: 1556
Joined: Wed Jun 23, 2004 7:00 pm
Location: .se
Contact:
Contact nxsty
Website

  • Quote

Post by nxsty » Thu Sep 29, 2005 9:22 am

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.
Top
chtephan
Apprentice
Apprentice
User avatar
Posts: 266
Joined: Tue Feb 03, 2004 5:11 pm
Location: Offenburg, Germany
Contact:
Contact chtephan
Website

  • Quote

Post by chtephan » Thu Sep 29, 2005 9:41 am

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?)
Top
Xake
Guru
Guru
User avatar
Posts: 588
Joined: Wed Feb 11, 2004 10:14 am
Location: Göteborg, the rainy part of scandinavia

  • Quote

Post by Xake » Thu Sep 29, 2005 10:58 am

So it compiles on your machines?

I just get this error:

Code: Select all

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.

Top
nxsty
Veteran
Veteran
User avatar
Posts: 1556
Joined: Wed Jun 23, 2004 7:00 pm
Location: .se
Contact:
Contact nxsty
Website

  • Quote

Post by nxsty » Thu Sep 29, 2005 11:38 am

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.
Top
Exner
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 128
Joined: Tue Apr 08, 2003 3:01 am
Location: Melbourne, Australia
Contact:
Contact Exner
Website

  • Quote

Post by Exner » Thu Sep 29, 2005 12:39 pm

Anyone have a list of bugs fixed from 4.0.2_pre20050917 to 4.0.2 ?
- Exner (Antony Suter)
Top
fredor
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 84
Joined: Mon Oct 13, 2003 6:05 pm
Location: UK

  • Quote

Post by fredor » Thu Sep 29, 2005 1:33 pm

Compiling gcc-4.0.2 failed applying patch ' 07_all_gcc4-pr21254.patch!'
>>> 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
***** 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.
Top
rmh3093
Advocate
Advocate
User avatar
Posts: 2138
Joined: Wed Aug 06, 2003 10:36 pm
Location: Albany, NY

  • Quote

Post by rmh3093 » Thu Sep 29, 2005 2:00 pm

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.
Top
wuno
Apprentice
Apprentice
User avatar
Posts: 193
Joined: Tue May 17, 2005 1:23 pm
Location: Germany

  • Quote

Post by wuno » Thu Sep 29, 2005 3:33 pm

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
Top
Halcy0n
Developer
Developer
User avatar
Posts: 1682
Joined: Wed Sep 17, 2003 5:09 am
Location: Freehold, NJ
Contact:
Contact Halcy0n
Website

  • Quote

Post by Halcy0n » Thu Sep 29, 2005 4:53 pm

fredor wrote:Compiling gcc-4.0.2 failed applying patch ' 07_all_gcc4-pr21254.patch!'
>>> 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
Top
fredor
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 84
Joined: Mon Oct 13, 2003 6:05 pm
Location: UK

  • Quote

Post by fredor » Thu Sep 29, 2005 5:13 pm

It is complied from portage with package.keyword set to '-*'
Which patchset should I be using?
Top
fredor
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 84
Joined: Mon Oct 13, 2003 6:05 pm
Location: UK

  • Quote

Post by fredor » Thu Sep 29, 2005 5:27 pm

I deleted the gcc-4.0.2 patch files. Did emerge --sync and it seems to be compiling OK now.
Top
Halcy0n
Developer
Developer
User avatar
Posts: 1682
Joined: Wed Sep 17, 2003 5:09 am
Location: Freehold, NJ
Contact:
Contact Halcy0n
Website

  • Quote

Post by Halcy0n » Thu Sep 29, 2005 5:33 pm

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
Top
gpierce
Tux's lil' helper
Tux's lil' helper
Posts: 111
Joined: Wed Dec 15, 2004 3:46 am

ebuild for gcc-4.0.2

  • Quote

Post by gpierce » Thu Sep 29, 2005 5:58 pm

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 :)
Top
fredor
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 84
Joined: Mon Oct 13, 2003 6:05 pm
Location: UK

  • Quote

Post by fredor » Thu Sep 29, 2005 6:06 pm

Halcyon
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.
Top
xordan
Tux's lil' helper
Tux's lil' helper
Posts: 148
Joined: Mon Aug 30, 2004 4:33 pm

  • Quote

Post by xordan » Thu Sep 29, 2005 10:55 pm

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?
Top
Xake
Guru
Guru
User avatar
Posts: 588
Joined: Wed Feb 11, 2004 10:14 am
Location: Göteborg, the rainy part of scandinavia

  • Quote

Post by Xake » Fri Sep 30, 2005 9:06 am

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.
Top
fredor
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 84
Joined: Mon Oct 13, 2003 6:05 pm
Location: UK

  • Quote

Post by fredor » Fri Sep 30, 2005 10:39 am

Xake:-
I compile without 'maketest. and everything works OK now. Using 'maketest' some programs fail which otherwise seem to work perfectly well.
Top
Rafal_Glazar
Apprentice
Apprentice
Posts: 167
Joined: Sat Jul 10, 2004 2:31 pm
Location: Rzeszow, Poland

  • Quote

Post by Rafal_Glazar » Fri Sep 30, 2005 1:57 pm

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: Select all

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
Top
gpierce
Tux's lil' helper
Tux's lil' helper
Posts: 111
Joined: Wed Dec 15, 2004 3:46 am

Compiling 4.0.2 with 3.4.4

  • Quote

Post by gpierce » Fri Sep 30, 2005 2:26 pm

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.
Top
fredor
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 84
Joined: Mon Oct 13, 2003 6:05 pm
Location: UK

  • Quote

Post by fredor » Fri Sep 30, 2005 5:31 pm

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
Top
Halcy0n
Developer
Developer
User avatar
Posts: 1682
Joined: Wed Sep 17, 2003 5:09 am
Location: Freehold, NJ
Contact:
Contact Halcy0n
Website

Re: Compiling 4.0.2 with 3.4.4

  • Quote

Post by Halcy0n » Fri Sep 30, 2005 5:55 pm

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
Top
luca82
Guru
Guru
User avatar
Posts: 306
Joined: Wed Oct 22, 2003 7:29 am
Location: Somewhere Between Heaven and Hell

  • Quote

Post by luca82 » Fri Sep 30, 2005 6:50 pm

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... :?:
Top
UncleOwen
Veteran
Veteran
Posts: 1493
Joined: Thu Feb 27, 2003 9:16 pm
Location: Germany, Hamburg

  • Quote

Post by UncleOwen » Fri Sep 30, 2005 8:03 pm

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.
Top
ts
Tux's lil' helper
Tux's lil' helper
Posts: 97
Joined: Wed Dec 15, 2004 4:03 am

  • Quote

Post by ts » Sat Oct 01, 2005 4:35 am

help !

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

Code: Select all

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?
Top
j-m
Retired Dev
Retired Dev
Posts: 975
Joined: Sun Oct 31, 2004 3:54 pm

  • Quote

Post by j-m » Sat Oct 01, 2005 8:01 am

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...
Top
Post Reply

280 posts
  • Page 2 of 12
    • Jump to page:
  • Previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • …
  • 12
  • Next

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic