Hi,
I have a new opteron server I am wanting to build a pure 64bit gentoo upon.
Firstly I'm not sure if this is a wise idea, however I believe the services I will run are all 64bit capable.
They will be things like, apache2, postfix, courier, mysql etc.
I have built AMD64 systems with 32bit emul before, but am curious as to how I build a 64bit *only* system.
I have tried downloading the 2005.0 Stage3 AMD64 tarball, however when it comes to updating GCC I get the following error:
ind-sjlj.o libgcc/32/gthr-gnat.o libgcc/32/unwind-c.o -lc && rm -f libgcc_s_32.so && if [ -f 32/libgcc_s.so.1 ]; then mv -f 32/libgcc_s.so.1 32/libgcc_s.so.1.backup; else true; fi && mv 32/libgcc_s.so.1.tmp 32/libgcc_s.so.1 && ln -s 32/libgcc_s.so.1 libgcc_s_32.so
/usr/x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/../../libc.so when searching for -lc
/usr/x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/../../libc.a when searching for -lc
/usr/x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/usr/x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
/usr/x86_64-pc-linux-gnu/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
make[3]: *** [32/libgcc_s_32.so] Error 1
make[3]: Leaving directory `/var/tmp/portage/gcc-3.4.3.20050110-r1/work/build/gcc'
make[2]: *** [stmp-multilib] Error 2
make[2]: Leaving directory `/var/tmp/portage/gcc-3.4.3.20050110-r1/work/build/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/var/tmp/portage/gcc-3.4.3.20050110-r1/work/build/gcc'
make: *** [profiledbootstrap] Error 2
I have -n32 -multilib -emul-linux +n64 as my USE flags.
Using: gcc-config -l [1] x86_64-pc-linux-gnu-3.4.3 *
CFLAGS="-O2 -march=opteron -pipe"
CHOST="x86_64-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"USE="3dnow -X acl acpi -alsa apache2 -apm -arts -avi bzlib crypt -cups dio -dga -directfb -doc -emboss -emul-linux -gnome -gtk -gtk2 hardened hardenedphp imap -ipv6 java javascript -kde -ldap lm_sensors libwww maildir -mbox mmx mmx2 mono -multilib mysql -n32 n64 ncurses nls nptl odbc -oss pam perl php pie python -qt -samba sasl sockets spell spl sse sse2 ssl symlink szip tcpd threads tokenizer usb vhosts xml2 zlib amd64"
There is a fix for this in the forums however it requires switching to 2004.3 profile and rebuilding all the emulation libraries, which I don't want to have.
Any ideas? Where have I gone astray? Is there a better way to build a pure 64bit system?
Cheers!
Chris
-- [email protected] mailing list
