Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gcc-4 masked by profile for ppc64? [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
gpanula
n00b
n00b


Joined: 04 Apr 2007
Posts: 4

PostPosted: Wed Apr 04, 2007 10:35 am    Post subject: gcc-4 masked by profile for ppc64? [SOLVED] Reply with quote

Solution -> manually set /etc/make.profile to the gcc-4 profile
Quote:
ln -snf /usr/portage/profiles/default-linux/ppc/ppc64/2006.1/64bit-userland-gcc4 /etc/make.profile


Ok, I'm probably missing something simple but I'm just not seeing it. I'm trying to upgrade GCC from 3.4.6-r1 to 4.1.1-r3 on a virgin gentoo install of ppc64 with 64-bit userland. Emerge tells me it is masked by profile.

http://packages.gentoo.org/search/?sstring=gcc says gcc-4.1.1-r3 is stable for ppc64
https://bugs.gentoo.org/show_bug.cgi?id=160663 says gcc-4 is stable on ppc64
http://www.gentoo.org/proj/en/base/ppc/ has a news announcement saying PowerPC development switched to gcc-4.1.1 in July of 2006

So, I must be missing something or maybe gcc-4.1.1 is a no go in 64-bit userland?

Profile being used and available profiles
Quote:

(chroot) virgin / # ls -FGg /etc/make.profile
lrwxrwxrwx 1 70 Apr 4 10:34 /etc/make.profile -> ..//usr/portage/profiles/default-linux/ppc/ppc64/2006.1/64bit-userland/

(chroot) virgin / # eselect profile list
Available profile symlink targets:
[1] default-linux/ppc/ppc64/2006.1/64bit-userland *
[2] hardened/ppc64


Results of emerge
Quote:

(chroot) virgin / # emerge -pv gcc

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

Calculating dependencies... done!
[ebuild U ] sys-devel/gcc-3.4.6-r2 [3.4.6-r1] USE="fortran gtk nls -altivec -bootstrap -boundschecking -build -d% -doc -gcj (-hardened) -ip28 -ip32r10k (-multilib) -multislot (-n32) (-n64) -nocxx -nopie -nossp -objc -test% -vanilla" 27,699 kB

Total: 1 package (1 upgrade), Size of downloads: 27,699 kB
(chroot) virgin / # emerge -pv =gcc-4.1.1-r3

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

Calculating dependencies -
!!! All ebuilds that could satisfy "=gcc-4.1.1-r3" have been masked.
!!! One of the following masked packages is required to complete your request:
- sys-devel/gcc-4.1.1-r3 (masked by: profile)

For more information, see MASKED PACKAGES section in the emerge man page or
refer to the Gentoo Handbook.

(chroot) virgin / # echo "*sys-devel/gcc" >> /etc/portage/package.unmask
(chroot) virgin / # emerge -pv =gcc-4.1.1-r3

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

Calculating dependencies -
!!! All ebuilds that could satisfy "=gcc-4.1.1-r3" have been masked.
!!! One of the following masked packages is required to complete your request:
- sys-devel/gcc-4.1.1-r3 (masked by: profile)

For more information, see MASKED PACKAGES section in the emerge man page or
refer to the Gentoo Handbook.


Output of emerge --info
Quote:

(chroot) virgin / # emerge --info
Portage 2.1.2.2 (default-linux/ppc/ppc64/2006.1/64bit-userland, gcc-3.4.6, glibc-2.3.6-r4, 2.6.17-gentoo-r9 ppc64)
=================================================================
System uname: 2.6.17-gentoo-r9 ppc64 PPC970FX, altivec supported
Gentoo Base System version 1.12.1
Timestamp of tree: Tue, 03 Apr 2007 14:00:09 +0000
dev-lang/python: 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox: 1.2.17
sys-devel/autoconf: 2.13, 2.61
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
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="ppc64"
AUTOCLEAN="yes"
CBUILD="powerpc64-unknown-linux-gnu"
CFLAGS="-O2 -pipe -mtune=970 -mcpu=970 -mabi=altivec"
CHOST="powerpc64-unknown-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -pipe -mtune=970 -mcpu=970 -mabi=altivec"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo/ http://prometheus.cs.wmich.edu/gentoo http://gentoo.cites.uiuc.edu/pub/gentoo/"
LINGUAS="en"
MAKEOPTS="-j5"
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 --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/tmp/portage"
PORTDIR="/usr/portage"
SYNC="rsync://proxy.mpls.hoganinfo.com:8873/gentoo-portage"
USE="X alsa apache2 apm arts bash-completion berkdb bitmap-fonts cli cracklib cups dri eds emboss encode esd foomaticdb fortran gdbm gif gnome gpm gstreamer gtk ibm iconv imlib isdnlog jpeg kde libg++ libwww mad midi mikmod motif mp3 mpeg ncurses nls nptl ogg opengl oss pam pcre perl png ppc64 pppd python qt3 qt4 quicktime readline reflection sdl session spell spl ssl tcpd truetype truetype-fonts type1-fonts unicode vorbis xml xorg xv zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU"
Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY


And here's cat /proc/cpuinfo
Quote:

(chroot) virgin / # cat /proc/cpuinfo
processor : 0
cpu : PPC970FX, altivec supported
clock : 2000.000000MHz
revision : 3.0 (pvr 003c 0300)

processor : 1
cpu : PPC970FX, altivec supported
clock : 2000.000000MHz
revision : 3.0 (pvr 003c 0300)

timebase : 33333333
platform : PowerMac
machine : RackMac3,1
motherboard : RackMac3,1 MacRISC4 Power Macintosh
detected as : 339 (XServe G5)
pmac flags : 00000000
L2 cache : 512K unified
pmac-generation : NewWorld


And if you were curious why I want/need gcc-4.x... I'm trying to compile a newer kernel(2.6.19) with md_raid456 support but there is a bug in the gcc-3.4.x branch that kills the compile. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26610

Let me know if more info is needed or there is something I can try. Thanks for any help and pointers.


Last edited by gpanula on Wed Apr 04, 2007 12:01 pm; edited 1 time in total
Back to top
View user's profile Send private message
mark_alec
Bodhisattva
Bodhisattva


Joined: 11 Sep 2004
Posts: 6066
Location: Melbourne, Australia

PostPosted: Wed Apr 04, 2007 10:55 am    Post subject: Reply with quote

Try setting your profile manually to default-linux/ppc/ppc64/2006.1/64bit-userland-gcc4.
_________________
www.gentoo.org.au || #gentoo-au
Back to top
View user's profile Send private message
gpanula
n00b
n00b


Joined: 04 Apr 2007
Posts: 4

PostPosted: Wed Apr 04, 2007 11:48 am    Post subject: Solution Reply with quote

Thanks! That was what I was missing.

/etc/make.profile
Quote:

(chroot) virgin ~ # ls -FGg /etc/make.profile
lrwxrwxrwx 1 70 Apr 4 10:34 /etc/make.profile -> ..//usr/portage/profiles/default-linux/ppc/ppc64/2006.1/64bit-userland/
(chroot) virgin ~ #
(chroot) virgin ~ # ln -snf /usr/portage/profiles/default-linux/ppc/ppc64/2006.1/64bit-userland-gcc4 /etc/make.profile
(chroot) virgin ~ # ls -FGg /etc/make.profile
lrwxrwxrwx 1 72 Apr 4 11:59 /etc/make.profile -> /usr/portage/profiles/default-linux/ppc/ppc64/2006.1/64bit-userland-gcc4/


Result of emerge
Quote:

(chroot) virgin ~ # emerge -pv gcc

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

Calculating dependencies... done!
[ebuild N ] dev-libs/gmp-4.2.1 USE="-doc -nocxx" 1,686 kB
[ebuild U ] sys-devel/binutils-2.17 [2.16.1-r3] USE="nls -multislot -multitarget -test -vanilla" 13,485 kB
[ebuild N ] dev-libs/mpfr-2.2.0_p16 739 kB
[ebuild NS ] sys-devel/gcc-4.1.1-r3 USE="fortran gtk nls -altivec -bootstrap -build -doc -gcj (-hardened) -ip28 -ip32r10k -mudflap (-multilib) -multislot (-n32) (-n64) -nocxx -objc -objc++ -objc-gc -test -vanilla" 38,326 kB

Total: 4 packages (1 upgrade, 2 new, 1 in new slot), Size of downloads: 54,234 kB


Thanks again for the help.
Back to top
View user's profile Send private message
XioXouS
n00b
n00b


Joined: 01 Apr 2005
Posts: 59

PostPosted: Mon Apr 23, 2007 6:54 pm    Post subject: How's this going? Reply with quote

I'm going to try setting up an XServe with Gentoo and 64-bit userland. This is my first experience with 64-bit in general, but I'm wondering what you're experiences have been with it on PPC in particular. Are there any trouble packages you've run into? What are you primarily using it for? Thanks for your help.
Back to top
View user's profile Send private message
gpanula
n00b
n00b


Joined: 04 Apr 2007
Posts: 4

PostPosted: Tue Apr 24, 2007 10:26 am    Post subject: Reply with quote

Quote:
'm going to try setting up an XServe with Gentoo and 64-bit userland. This is my first experience with 64-bit in general, but I'm wondering what you're experiences have been with it on PPC in particular. Are there any trouble packages you've run into? What are you primarily using it for? Thanks for your help.


This was/is my first time using PPC. The XServe was a box I inherited after it was retired from its original production purpose. I'm looking at recycling it into a network management box(monitoring, collection of logs, trouble-ticket system, network scanning, etc).

The biggest gotchas I've run into is upgrading to GCC-4 and using software raid for root. The LiveCD ships with gcc-3.4.6 and kernel 2.6.17. Changes to md_raid in 2.6.18 & above bring out bugs in the gcc-3.x compiler.

Upgrading to gcc-4.x includes upgrading glibc to version 2.5. glibc 2.5 doesn't compile cleanly with the gcc-3 branch.

Quick run-down of events....

emerge -pv gcc
note the prerequisites and emerge the preqs before emerging gcc

After emerging gcc, run gcc-config to switch the compiler to gcc-4, run "fix_libtool_files.sh" and then emerge glibc. Do the revdep-rebuild thing or just re-emerge the world; emerge -pev world

Once gcc-4 is installed you can use software raid in a kernel past 2.6.17.

Other minor glitches I have encountered are some ebuilds missing the "ppc64" or "~ppc64" keyword. The following ebuilds I have had to put in an overlay directory and add "~ppc64" keyword to them.

dev-perl/Crypt-PasswdMD5
dev-perl/Date-Pcalc
dev-perl/ExtUtils-XSBuilder
sys-auth/pam_krb5
www-apps/otrs
www-misc/libapreq2

They compile and seem to work without a problem. /shrug
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Tue Apr 24, 2007 12:34 pm    Post subject: Reply with quote

Please report packages that need keywords in Bugzilla. Devs only keyword what they use, or what they're asked to test and mark. :)
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
gpanula
n00b
n00b


Joined: 04 Apr 2007
Posts: 4

PostPosted: Tue Apr 24, 2007 12:45 pm    Post subject: Reply with quote

Which is better/preferred... bug report for each package or single bug report with multiple packages?
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Tue Apr 24, 2007 2:06 pm    Post subject: Reply with quote

I usually prefer a single bug for each package unless they're depending on eachother. This lets the Arch testers test each package individually (or together if required).

Thanks!
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
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
Page 1 of 1

 
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