Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Updating to gcc-4.1.0
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
fb
l33t
l33t


Joined: 08 Dec 2003
Posts: 636
Location: New Zealand

PostPosted: Mon May 08, 2006 4:36 am    Post subject: Reply with quote

davidgurvich wrote:
Interesting situation. After researching the options decided to compile gcc-4.1.0 with USE="-fortran" and try and install the g95 fortran compiler instead.

g95 failed to find ansidecl.h from binutils. Ran ldconfig and now it found it.

Not sure what that means.

I have just finished recompiling gcc4.1.0 with the following use flags
Code:
[ebuild   R   ] sys-devel/gcc-4.1.0  +altivec -bootstrap -build -doc +fortran +gcj +gtk -hardened (-ip28) -mudflap (-multilib) -multislot (-n32) (-n64) +nls -nocxx -objc -objc++ -objc-gc -vanilla

and it worked.
Last time I looked building g95 with gcc4.1.0 wasn't supported, has this changed? And is there an overlay somewhere?
If you succeed be sure to mention it :wink: !
Other than that the problem you describe is a bit weird, looks like ldconfig should have been run and wasn't.

Edit in bold to clarify what I meant


Last edited by fb on Mon May 08, 2006 8:08 am; edited 1 time in total
Back to top
View user's profile Send private message
davidgurvich
Veteran
Veteran


Joined: 23 Apr 2004
Posts: 1063

PostPosted: Mon May 08, 2006 4:53 am    Post subject: Reply with quote

With USE="-fortran" gcc fails during the objc-gc portion. Something I've seen with earlier versions, but 'solved' by installing boehm-gc. Guess I'll try with -objc-gc and see what happens.
Back to top
View user's profile Send private message
davidgurvich
Veteran
Veteran


Joined: 23 Apr 2004
Posts: 1063

PostPosted: Mon May 08, 2006 7:04 am    Post subject: Reply with quote

Eliminating objc-gc allows compiling 4.1.0 with 4.1.0 and fixes revdep-rebuild wanting to emerge gcc.

UPDATE: eliminating objc-gc and using all the other flags has no problem for gcc-4.1.0. Apparently, the workaround for gcc-3.4.x, of installing boehm-gc prior to gcc, no longer works.
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1776
Location: PB, Germany

PostPosted: Sat Jul 01, 2006 10:22 am    Post subject: Reply with quote

fb wrote:
Hello. I got now the same error with xorg-x11-6.8.2-r8 and the currently stable ppc gcc-4.1.1.
Ok, I followed the modular-x-howto which solved the problem.
_________________
HP ZBook Power 15.6" G8 i7-11800H|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770


Last edited by Massimo B. on Sun Jul 02, 2006 3:32 pm; edited 1 time in total
Back to top
View user's profile Send private message
iMike
Apprentice
Apprentice


Joined: 01 Apr 2005
Posts: 217
Location: Stockholm, Sweden

PostPosted: Sun Jul 02, 2006 2:37 pm    Post subject: gcc 4.1 optimization on ppc Reply with quote

Looking at http://gentoo-wiki.com/Safe_Cflags#PowerPC_Processors and
Code:
cat /usr/portage/profiles/default-linux/ppc/ppc32/2006.1/G4/make.defaults
should I assume that the general experience is to use O2 instead of O3 optimization with gcc 4.1 just as with gcc 3.x? Under gcc 3.x, I've been using
on a Mac G3:
Code:
CFLAGS="-O3 -mcpu=G3 -mtune=G3 -fno-strict-aliasing -pipe -fomit-frame-pointer"

and on a Mac G4:
Code:
CFLAGS="-O2 -mtune=7400 -mcpu=7400 -maltivec -mabi=altivec -pipe -fomit-frame-pointer"

with no issues. I was just wondering if anyone has any anecdotes, experience, benchmark results, etc.

Cheers,
/iMike
Back to top
View user's profile Send private message
Pylon
Retired Dev
Retired Dev


Joined: 17 Jan 2003
Posts: 279
Location: Cologne

PostPosted: Sun Jul 02, 2006 9:33 pm    Post subject: Reply with quote

Use -O2 on gcc-4.1. It gives better results. -O3 might bloat the code, so that more memory will be used and it takes longer to load the binaries.

More on this topic can be found in gcc's man page.
_________________
hacking is not a crime
Back to top
View user's profile Send private message
fb
l33t
l33t


Joined: 08 Dec 2003
Posts: 636
Location: New Zealand

PostPosted: Sun Jul 02, 2006 11:13 pm    Post subject: Reply with quote

paoleela wrote:
fb wrote:
Hello. I got now the same error with xorg-x11-6.8.2-r8 and the currently stable ppc gcc-4.1.1.
Ok, I followed the modular-x-howto which solved the problem.

Yes it does. In fact to be precise I found out that the old xorg-x11-6.8.2 was failling to compile
with the opengl flag. I think the version of mesa shipped with 6.8.2 don't like glibc-2.4. But the
version of mesa needed for xorg-x11-7.x is all right.
Back to top
View user's profile Send private message
grumly
n00b
n00b


Joined: 13 Apr 2006
Posts: 3
Location: Troyes

PostPosted: Wed Jul 12, 2006 9:19 am    Post subject: problem compiling GCC-4.1.1 with GCC-4.1.1 Reply with quote

Hi everyone,

I having problems updating to GCC-4.1.1 on my ibook. I managed to compile gcc-4 with gcc-3.4 and to recompile my glibc with gcc-4 but when I make an emerge -e system the compilation of gcc-4.1.1 failed with this message :

Code:

creating as
echo timestamp > stamp-as
creating collect-ld
creating nm
echo timestamp > stamp-nm
echo timestamp > stamp-collect-ld
stage2/xgcc -Bstage2/ -B/usr/powerpc-unknown-linux-gnu/bin/   -g -O2 -DIN_GCC
-W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno
-long-long -Wno-variadic-macros -Wold-style-definition -Wmissing-format-attribut
e     -DHAVE_CONFIG_H  gcov.o intl.o version.o errors.o ../libcpp/libcpp.a   ../
libiberty/libiberty.a -o gcov
make[5]: stage2/xgcc: Command not found
make[5]: *** [gcov] Error 127
make[5]: Leaving directory `/var/tmp/portage/gcc-4.1.1/work/build/gcc'
make[4]: *** [stage3_build] Error 2
make[4]: Leaving directory `/var/tmp/portage/gcc-4.1.1/work/build/gcc'
make[3]: *** [quickstrap] Error 2
make[3]: Leaving directory `/var/tmp/portage/gcc-4.1.1/work/build/gcc'
make[2]: *** [all-gcc] Error 2
make[2]: Leaving directory `/var/tmp/portage/gcc-4.1.1/work/build'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/tmp/portage/gcc-4.1.1/work/build'
make: *** [bootstrap-lean] Error 2

!!! ERROR: sys-devel/gcc-4.1.1 failed.
Call stack:
ebuild.sh, line 1545:   Called dyn_compile
ebuild.sh, line 940:   Called src_compile
ebuild.sh, line 1254:   Called toolchain_src_compile
toolchain.eclass, line 24:   Called gcc_src_compile
toolchain.eclass, line 1468:   Called gcc_do_make
toolchain.eclass, line 1342:   Called die


emerge --info

Code:

Gentoo Base System version 1.6.15
Portage 2.1.1_pre2-r6 (default-linux/ppc/ppc32/2006.0/G4, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r2 ppc)
=================================================================
System uname: 2.6.17-gentoo-r2 ppc 7447A, altivec supported
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r4
ACCEPT_KEYWORDS="ppc"
AUTOCLEAN="yes"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -mcpu=7400 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe -mpowerpc-gfxopt -fomit-frame-pointer -ftree-vectorize"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo"
CXXFLAGS="-O2 -mcpu=7400 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe -mpowerpc-gfxopt -fomit-frame-pointer -ftree-vectorize"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://mir.zyrianes.net/gentoo/ ftp://mir.zyrianes.net/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo"
LANG="fr_FR.UTF-8"
LINGUAS="fr"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlays/xgl-coffee"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="ppc X alsa altivec bash-completion berkdb bitmap-fonts bluetooth bonobo cdr crypt cups dlloader dri dvd eds encode fbcon firefox foomaticdb fortran gdbm gif gnome gstreamer gtk gtk2 gtkhtml ipv6 isdnlog jpeg libwww mad mikmod mono motif mp3 mpeg ncurses nls nptlonly ntpl ogg opengl pam pcre perl png python qt3 qt4 quicktime radeon readline ruby samba sdl session spell ssl tcpd truetype truetype-fonts type1-fonts udev unicode usb vorbis wifi xinerama xml xorg xscreensaver xv zlib elibc_glibc input_devices_synaptic input_devices_-wacom input_devices_mouse input_devices_keyboard kernel_linux linguas_fr userland_GNU video_cards_radeon"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS


I've search for solutions on this forum the last few days but nothing works.

Thx for your help.
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Wed Jul 12, 2006 12:49 pm    Post subject: Reply with quote

It could be due to -ftree-vectorize. We really don't recommend using it on every package right now, some are still broken with it, but it's getting better. :p There's probably another error further up, but you could try building without -ftree-vectorize first.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
grumly
n00b
n00b


Joined: 13 Apr 2006
Posts: 3
Location: Troyes

PostPosted: Wed Jul 12, 2006 1:26 pm    Post subject: Reply with quote

I've already tested without and it changes nothing, I've also tested with the use flag -fortran, as recommanded before, but the compilation always end the same way... :(
Back to top
View user's profile Send private message
pindar
Apprentice
Apprentice


Joined: 30 Apr 2004
Posts: 220

PostPosted: Thu Jul 13, 2006 9:13 am    Post subject: Reply with quote

I have successfully emerged gcc-4.1.1 and glibc 2.4 and have made gcc-4.1.1 active:
Code:
eselect compiler list
Available compilers for CTARGET powerpc-unknown-linux-gnu
  [1]   powerpc-unknown-linux-gnu-3.4.4/hardened
  [2]   powerpc-unknown-linux-gnu-3.4.4/hardenednopie
  [3]   powerpc-unknown-linux-gnu-3.4.4/hardenednopiessp
  [4]   powerpc-unknown-linux-gnu-3.4.4/hardenednossp
  [5]   powerpc-unknown-linux-gnu-3.4.4/vanilla
  [6]   powerpc-unknown-linux-gnu-3.4.6/hardened
  [7]   powerpc-unknown-linux-gnu-3.4.6/hardenednopie
  [8]   powerpc-unknown-linux-gnu-3.4.6/hardenednopiessp
  [9]   powerpc-unknown-linux-gnu-3.4.6/hardenednossp
  [10]  powerpc-unknown-linux-gnu-3.4.6/vanilla
  [11]  powerpc-unknown-linux-gnu-4.1.1/vanilla

Activated profiles:
  powerpc-unknown-linux-gnu *
                            powerpc-unknown-linux-gnu-4.1.1/vanilla


However, whenever I want to emerge system or world, portage wants to install earlier versions of gcc and glibc:
Code:
 emerge -e system -p

These are the packages that would be merged, in order:

Calculating system dependencies... done!

[many lines snipped]

[ebuild  N    ] sys-devel/gcc-3.4.6-r2  USE="altivec fortran gtk nls -bootstrap -boundschecking -build -doc -gcj -hardened -ip28 -ip32r10k -multislot -nocxx -nopie -nossp -objc -vanilla"
[ebuild  N    ] sys-libs/glibc-2.3.6-r4  USE="nls nptl nptlonly -build -erandom -glibc-compat20 -glibc-omitfp -hardened -profile"

[many lines snipped]


So far, I have simply hoped that the problem would go away after an emerge --sync, but it persists, and the list of upgrades is getting longer and longer. What can I do?

Code:
 emerge --info
Portage 2.1.1_pre2-r8 (default-linux/ppc/ppc64/2006.0/32bit-userland/970/pmac, gcc-4.1.1/vanilla, glibc-2.4-r3, 2.6.17-gentoo ppc64)
=================================================================
                       System Settings
=================================================================
System uname: 2.6.17-gentoo ppc64 PPC970, altivec supported
Gentoo Base System version 1.12.1
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r4
ACCEPT_KEYWORDS="ppc ~ppc"
AUTOCLEAN="yes"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -pipe -maltivec -mabi=altivec -mcpu=G5"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ "
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="ppc X alsa altivec apache2 apm arts berkdb bitmap-fonts cdr cli cups dlloader dri dvd eds emboss encode esd foomaticdb fortran gcc64 gdbm gif gnome gpm gstreamer gtk imlib ipv6 isdnlog jpeg libg++ libwww mad mikmod motif mp3 mpeg ncurses nls nptl nptlonly ogg opengl oss pam pcre pdflib perl png pppd python qt3 qt4 quicktime readline reflection sdl session spell spl ssl tcpd truetype truetype-fonts type1-fonts udev unicode vorbis xml xmms xorg xv zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux userland_GNU"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Back to top
View user's profile Send private message
corsair
Retired Dev
Retired Dev


Joined: 06 Oct 2003
Posts: 451
Location: Aachen, Germany

PostPosted: Thu Jul 13, 2006 4:00 pm    Post subject: Reply with quote

pindar wrote:

Code:
 emerge --info
Portage 2.1.1_pre2-r8 (default-linux/ppc/ppc64/2006.0/32bit-userland/970/pmac, gcc-4.1.1/vanilla, glibc-2.4-r3, 2.6.17-gentoo ppc64)


It is correct that portage wants to install gcc-3.4 and glibc-2.3, because you haven't switched to 2006.1 profile. in 2006.0 profile you have to have those older gcc/glibc versions. gcc-4.1 and glibc-2.4 are masked there.

Actualy the problem is that there is currently no 2006.1 profile for ppc64 with 32 bit userland. all I can say: it's on the way.

You seem to be one of those bitten with the 2006.0 profile which was missed while masking gcc-4.1 and glibc-2.4 on 2006.0 for ppc... I'm realy sorry about that and the best advice I can give you is to leave it as it is for the moment and update to the new profile tomorrow or the day after.
Back to top
View user's profile Send private message
pindar
Apprentice
Apprentice


Joined: 30 Apr 2004
Posts: 220

PostPosted: Thu Jul 13, 2006 5:03 pm    Post subject: Reply with quote

corsair wrote:
Actualy the problem is that there is currently no 2006.1 profile for ppc64 with 32 bit userland. all I can say: it's on the way.

You seem to be one of those bitten with the 2006.0 profile which was missed while masking gcc-4.1 and glibc-2.4 on 2006.0 for ppc... I'm realy sorry about that and the best advice I can give you is to leave it as it is for the moment and update to the new profile tomorrow or the day after.


Thanks corsair, at least I know I didn't do anything stupid to break my system. Will wait for 2006.1 to materialize and then have an emerge fest...
Back to top
View user's profile Send private message
corsair
Retired Dev
Retired Dev


Joined: 06 Oct 2003
Posts: 451
Location: Aachen, Germany

PostPosted: Fri Jul 14, 2006 6:18 am    Post subject: Reply with quote

2006.1 profiles for ppc64 are in portage now.
Back to top
View user's profile Send private message
pindar
Apprentice
Apprentice


Joined: 30 Apr 2004
Posts: 220

PostPosted: Fri Jul 14, 2006 11:27 am    Post subject: Reply with quote

Great, I'm updating now, and gcc is not in the list anymore.
Back to top
View user's profile Send private message
jaspal kallar
Apprentice
Apprentice


Joined: 25 Feb 2004
Posts: 194
Location: Sweden

PostPosted: Fri Jul 14, 2006 2:47 pm    Post subject: Reply with quote

I updated my profile today to :
Code:
ls -al /etc/make.profile
lrwxrwxrwx 1 root root 76 Jul 14 16:18 /etc/make.profile -> /usr/portage/profiles/default-linux/ppc/ppc64/2006.1/32bit-userland/970/pmac
 


I have 32 bit userland with 64 bit kernel for my powermac G5.

When I did "emerge -p -uD world" it pulled in other packages, some gnome related. I don't have gnome. I was wondering if I did something wrong?

I got round this problem by adding the keywords "-quicktime -mpeg -gtk -gnome -spell -eds -gstreamer -encode -vorbis" for the USE flag in my /etc/make.conf file. i.e
Code:
USE="-quicktime -mpeg -gtk -gnome -spell -eds -gstreamer -encode -vorbis ppds usb alsa nptl nptlonly cdparanoia flac cups footmaticdb xv network opengl"


Jaspal
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
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