View previous topic :: View next topic |
Author |
Message |
Petyr Guru
Joined: 08 Jan 2003 Posts: 471 Location: San Diego, CA, USA
|
Posted: Wed Jan 19, 2005 3:58 am Post subject: AMD64 Stage1 2004.3 Install |
|
|
<BIG FAT WARNING>
This worked on my system, and were the things I learned after having several false starts getting Gentoo installed on this box. YMMV. Hopefully the bug with the sandbox is resolved sometime soon. As for 2005.0, when I made my attempt at it I ran into many many problems and ended up with a non-functional system. Personally I intend to wait a couple months so that the kinks can be worked out. Then there's an upgrade guide that hopefully will have the switchover fully automatted.
</BIG FAT WARNING>
Introduction:
If you're like me you hear the words AMD64, Gentoo, TiVo replacement, NPTL, SATA w/16meg cache and you realize that you have an evil grin on your face. You figure "I can take over the world!! mwhahahahah!"
First you must take over the Stage1 of 2004.3. T
Notes:
I am going to give somewhat generic instructions. Major deviations from the handbook I'll be more specific on. For now suffice it to say that I don't intend to retype the whole friggin handbook.
Getting Portage Ready:
The guidebook says that you can use a snapshot, or just do an emerge sync. Take my word for it, use both. Get the most up to date snapshot you can (i.e. at the time of this writing I'm unzipping 1-17-05 right now) and then do an emerge sync. You save crazy time on the sync with all the benefits of having a completely up to date portage tree.
Bootstrapping:
Otherwise known as beer time (make that 2 beers...) Save yourself a lot of time and bust out an editor on bootstrap.sh
Go to line 324 and change
Code: | ${V_ECHO} emerge ${STRAP_EMERGE_OPTS} ${myGCC} || cleanup 1 | to Code: | ${V_ECHO} FEATURES='-sandbox' emerge ${STRAP_EMERGE_OPTS} ${myGCC} || cleanup 1 | This should make it so that gcc is at least able to compile cleanly without complaining about multilib flags or just outright bombing out on you 40% through the compile.
With that change, everything for bootstrapping should go through cleanly. The rest of it you can basically follow the install guide for.
Config Info for my system:
Amd64 3000+ socket 754
MSI K8MM-ILSR
make.conf (comments removed) Code: | USE="nptl multilib"
CHOST="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CXXFLAGS="${CFLAGS}"
LDFLAGS="-Wl,-O1"
PORTAGE_TMPDIR=/usr/portage_tmp
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
MAKEOPTS="-j2"
FEATURES="sandbox ccache distcc distlocks autoaddcvs"
GENTOO_MIRRORS="http://gentoo.ccccom.com" |
The LDFLAGS is probably of intrest to people. There are other topic on the forums about LD Flags and what they do. All in all I'm not going super agressive in any of my flags. On this box I want stability rather than super bleeding edge. Hopefully this info here is useful to someone who is pounding their head on their desk (I know I was...)
<edit 2-17-05>
hehe corrected a misspelling on my make.conf (dyslexics untie!! nptl v.s. ntpl). It was correct in mine, I just goofed origianlly, then rebuilt the system but forgot to update this guide.
</edit>
Regards,
Petyr Rahl
Last edited by Petyr on Thu Feb 17, 2005 4:31 pm; edited 2 times in total |
|
Back to top |
|
|
valirion n00b
Joined: 12 Oct 2004 Posts: 6
|
Posted: Wed Feb 16, 2005 11:16 am Post subject: |
|
|
Quote: |
Edit 1-19-05:
So after doing the whole install, I checked out the /lib/libc.so.6 file. Turns out that 2004.3 doesn't letcha do NPTL. Guess I'll have to wait until 2005.0 is more stable for it. Oh well, at least I've got things installed right now.
|
did you check /lib/tls/libc.so.6?
the glibc emerge defaults to building both versions and putting the nptl version to /lib/tls. the nptl version is still used as default and the non nptl version is just a fallback.
Quote: |
from the messages of the glibc ebuild:
* Warning! Gentoo's GLIBC with NPTL enabled now behaves like the
* glibc from almost every other distribution out there. This means
* that glibc is compiled -twice-, once with linuxthreads and once
* with nptl. The NPTL version is installed to lib/tls and is still
* used by default. If you do not need nor want the linuxthreads
* fallback, you can disable this behavior by adding nptlonly to
* USE to save yourself some compile time.
|
|
|
Back to top |
|
|
Joelio n00b
Joined: 24 May 2004 Posts: 64 Location: Manchester, UK
|
Posted: Wed Feb 16, 2005 12:36 pm Post subject: |
|
|
Can't wait to get a 64bit Chip! _________________ echo 'random crap' > http://www.joelmerrick.com |
|
Back to top |
|
|
Karsten from Berlin Guru
Joined: 28 Feb 2004 Posts: 446 Location: Berlin/Germany
|
Posted: Wed Feb 16, 2005 1:09 pm Post subject: |
|
|
Uuuups, you have a misspelling in your make.conf:
It's
nptl
for _N_ative _P_osix _T_hreads _L_ibrary.
But unfortunately you have ntpl in your make.conf.
Correct it, rebuild your glibc and it should work (that's the promise from the developers; don't know what happens on AMD64).
Shit happens , regards... _________________ Heaven: The police are British, the chefs Italian, the mechanics German, the lovers French and it's organized by the Swiss.
Hell: The police are German, the chefs British, the mechanics French, the lovers Swiss and it's organized by the Italians. |
|
Back to top |
|
|
Karsten from Berlin Guru
Joined: 28 Feb 2004 Posts: 446 Location: Berlin/Germany
|
Posted: Thu Feb 17, 2005 12:07 pm Post subject: |
|
|
Thank you very much for your guide. I've made it.
Some remarks for following readers:
0) Take care when using 'Fedora Core 3 for AMD64' for partitioning your harddrive. Some people and myself had some weird issues when making the first boot. ext3 partitions came up with errors. See here: https://forums.gentoo.org/viewtopic-t-297258-highlight-fedora.html
1) You have to do the 'emerge --sync' __before__ you edit the bootstrap.sh. The sync'ing will overwrite the one that is delivered with the tarball.
2) My make.conf
Code: |
USE="arts avi berkdb bitmap-fonts crypt cups encode fortran f77 font-server foomaticdb gdbm gif gtk2 imlib jpeg kde libg++ libwww mad mikmod motif mpeg ncurses nls oggvorbis opengl pam pdflib png python qt quicktime readline sdl spell ssl svga tcpd truetype truetype-fonts type1-fonts X xml2 xmms xv zlib -gpm -gtk -gnome -oss -apm flac java joystick mime aac audiofile bash-completion ftp gphoto2 iconv ldap posix ppds alsa cdr dvd dvdr doc emul-linux-x86 mozilla scanner xine divx4linux usb apache2 ipv6 acpi samba unicode multilib nptl"
CHOST="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -pipe -O3 -fforce-addr -ftracer -funit-at-a-time -funswitch-loops -fpeel-loops"
LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -Wl,--strip-all"
CXXFLAGS="${CFLAGS} -fvisibility-inlines-hidden"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
#PORTAGE_NICENESS="10"
RSYNC_RETRIES="3"
GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://gentoo.inode.at/ http://ftp.easynet.nl/mirror/gentoo/ http://ftp.lug.ro/gentoo/ http://mir.zyrianes.net/gentoo/ http://trumpetti.atm.tut.fi/gentoo/ http://gentoo.prz.rzeszow.pl http://ftp.rhnet.is/pub/gentoo/"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
# OpenOffice
LANGUAGE="49"
# KDE
LINGUAS="de"
|
3) NPTL works for 64-bit only:
Code: |
desktop / # lib64/tls/libc.so.6
GNU C Library 20041102 release version 2.3.4, by Roland McGrath et al.
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 3.4.3 20041125 (Gentoo Linux 3.4.3-r1, ssp-3.4.3-0, pie-8.7.7).
Compiled on a Linux 2.6.8 system on 2005-02-16.
Available extensions:
GNU libio by Per Bothner
crypt add-on version 2.1 by Michael Glad and others
Native POSIX Threads Library by Ulrich Drepper et al
The C stubs add-on version 2.1.2.
GNU Libidn by Simon Josefsson
BIND-8.2.3-T5B
NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
Thread-local storage support included.
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.
desktop / # lib64/libc.so.6
GNU C Library 20041102 release version 2.3.4, by Roland McGrath et al.
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 3.4.3 20041125 (Gentoo Linux 3.4.3-r1, ssp-3.4.3-0, pie-8.7.7).
Compiled on a Linux 2.6.8 system on 2005-02-16.
Available extensions:
GNU libio by Per Bothner
crypt add-on version 2.1 by Michael Glad and others
linuxthreads-0.10 by Xavier Leroy
The C stubs add-on version 2.1.2.
GNU Libidn by Simon Josefsson
BIND-8.2.3-T5B
libthread_db work sponsored by Alpha Processor Inc
NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
Thread-local storage support included.
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.
desktop / # lib32/libc.so.6
GNU C Library 20040808 release version 2.3.4, by Roland McGrath et al.
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 3.4.1 20040803 (Gentoo Linux 3.4.1-r2, ssp-3.4-2, pie-8.7.6.5).
Compiled on a Linux 2.4.22 system on 2004-08-16.
Available extensions:
GNU libio by Per Bothner
crypt add-on version 2.1 by Michael Glad and others
linuxthreads-0.10 by Xavier Leroy
BIND-8.2.3-T5B
libthread_db work sponsored by Alpha Processor Inc
NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
Thread-local storage support included.
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.
|
4. 32-bit sandbox does __not__ exists (/lib32/libsandbox.so); the 64-bit does (/lib64/libsandbox.so). I hope I will not run into problems later.
[ADDITION]
Well, I read this thread (https://forums.gentoo.org/viewtopic-t-294861-postdays-0-postorder-asc-start-25.html; big thanks to nudd) and copied over the 32-bit-libsandbox.so of a stage3-tarball to /lib32 and /usr/x86-64-pc-linux-gnu/lib. Now I can re-emerge gcc without bailing out. But portage still refuses to build the 32-bit-libsandbox.so by itself. A 'emerge -pv portage' shows me, that it is not affected by the USE-Flag 'multilib', but it should. The actual portage seems to be a bit screwed.
Never mind, the system is now as it should be.
[/ADDITION]
5. If you have 'java' and 'docs' in your USE-Flags, you'll have to download manually the actual J2-Documentation from Sun's website. After that you have to copy it to /usr/portage/distfiles. If you do not so, your 'emerge system' will break, because of licence issues portage is not able to download it automatically.
Code: |
desktop distfiles # emerge -f java-sdk-docs
Calculating dependencies ...done!
>>> emerge (1 of 1) dev-java/java-sdk-docs-1.4.2 to /
*** Adjusting cvs-src permissions for portage user...
!!! j2sdk-1_4_2-doc.zip not found in /usr/portage/distfiles
!!! dev-java/java-sdk-docs-1.4.2 has fetch restriction turned on.
!!! This probably means that this ebuild's files must be downloaded
!!! manually. See the comments in the ebuild for more information.
* Please download j2sdk-1_4_2-doc.zip from http://java.sun.com/j2se/1.4.2/download.html and move it to /usr/portage/distfiles
!!! Fetch for /usr/portage/dev-java/java-sdk-docs/java-sdk-docs-1.4.2.ebuild failed, continuing...
!!! Some fetch errors were encountered. Please see above for details.
|
6. Here's a small overview of the time I needed to bootstrap and 'emerge system' with the following command:
Code: |
env-update && source /etc/profile && env-update && scripts/bootstrap.sh -f && scripts/bootstrap.sh && touch /root/bootstrap && env-update && source /etc/profile && env-update && emerge portage && touch /root/portage && env-update && source /etc/profile && env-update && emerge -f system && emerge system && touch /root/system && env-update && source /etc/profile && env-update && emerge gentoo-dev-sources
|
Start: 20:32h
'bootstrap.sh' finished: 22:55h
'emerge portage' finished: 23:18h
'emerge system' finished: 23:52h
End: 24:01h
I don't like bash'ing, so I decided to create files per 'touch' to get timestamps. My system is a 3200+ Winchester with 1Gb dual-channel DDR400. Maybe your machine will take a bit longer, because I was able to copy over a lot of packages from previous installation attempts; so I spared the time for downloading them.
I hope this thread will show many of proud, new AMD64 owners their way to a Gentoo installation. I was trying one week to get the base system installed. Hard times at the moment... _________________ Heaven: The police are British, the chefs Italian, the mechanics German, the lovers French and it's organized by the Swiss.
Hell: The police are German, the chefs British, the mechanics French, the lovers Swiss and it's organized by the Italians. |
|
Back to top |
|
|
Karsten from Berlin Guru
Joined: 28 Feb 2004 Posts: 446 Location: Berlin/Germany
|
Posted: Thu Feb 24, 2005 8:51 am Post subject: |
|
|
The sandbox-problems are fixed now. Everything should work as mentioned in the 'Gentoo Installation Manual for AMD64'. _________________ Heaven: The police are British, the chefs Italian, the mechanics German, the lovers French and it's organized by the Swiss.
Hell: The police are German, the chefs British, the mechanics French, the lovers Swiss and it's organized by the Italians. |
|
Back to top |
|
|
gonEH n00b
Joined: 16 Jan 2005 Posts: 15 Location: Incheon Korea
|
Posted: Fri Feb 25, 2005 2:48 pm Post subject: |
|
|
Really? The "sandbox" problems are fixed?
If that's true, I have to remerge gcc now.. |
|
Back to top |
|
|
Karsten from Berlin Guru
Joined: 28 Feb 2004 Posts: 446 Location: Berlin/Germany
|
Posted: Fri Feb 25, 2005 7:03 pm Post subject: |
|
|
Bug 82027 _________________ Heaven: The police are British, the chefs Italian, the mechanics German, the lovers French and it's organized by the Swiss.
Hell: The police are German, the chefs British, the mechanics French, the lovers Swiss and it's organized by the Italians. |
|
Back to top |
|
|
|
|
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
|
|