View previous topic :: View next topic |
Author |
Message |
HerrSchafer Tux's lil' helper
Joined: 18 May 2011 Posts: 139
|
Posted: Mon Sep 30, 2013 5:43 pm Post subject: Cannot finish install [SOLVED] |
|
|
Hi there!
I'm trying to install gentoo in dual boot on a notebook (core i3, 3GB Ram, win7) but I'm getting an error when I try to emerge "gentoo-sources".
I'm following each step from handbook (using a wired conection and amd64 minimal cd 20130816 iso); I've done it three times from scratch but it always hangs at the same point.
As I read in another topic, I'm using / and /boot in the same partition due to win 7 at /dev/sda1.
Am I missing something? Is the handbook so outdated?
The installation goes fine until the point of emerge gentoo-sources, but never comes beyond it.
Excuse me for my bad english and thanks for any help _________________ “Long is the way, and hard, that out of hell leads up to light.”
― John Milton
Last edited by HerrSchafer on Wed Nov 13, 2013 12:26 pm; edited 4 times in total |
|
Back to top |
|
|
eyoung100 Veteran
Joined: 23 Jan 2004 Posts: 1428
|
|
Back to top |
|
|
HerrSchafer Tux's lil' helper
Joined: 18 May 2011 Posts: 139
|
Posted: Mon Sep 30, 2013 6:46 pm Post subject: |
|
|
Is there any command for saving the information on the screen in to a file?
Anyway, I only can do it at home (I'm working now). I'll post it asap!
Thanks! |
|
Back to top |
|
|
eyoung100 Veteran
Joined: 23 Jan 2004 Posts: 1428
|
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Mon Sep 30, 2013 10:23 pm Post subject: |
|
|
Suggest: boot the cd to a network connection, mount the gentoo partitions, and enter the chroot:
nominally: Code: | mount /dev/sda3 /mnt/gentoo
mount /dev/sda1 /mnt/gentoo/boot
cp -L /etc/resolv.conf /mnt/gentoo/etc/
mount -t proc none /mnt/gentoo/proc
mount --rbind /sys /mnt/gentoo/sys
mount --rbind /dev /mnt/gentoo/dev
chroot /mnt/gentoo /bin/bash
source /etc/profile
export PS1="(chroot) $PS1" | Then: Code: | emerge wgetpaste
emerge gentoo-sources |
the most common causes of the problem you report at that point in an install are: not being in the chroot; not having a network connection, not having a nameserver identified in /etc/resolv.conf.
if wgetpaste merges but gentoo-sources does not: Code: | wgetpaste /var/tmp/portage/sys-kernel/gentoo-sources/temp/build.log | and post the url is the easiest way to provide the build log. _________________ Defund the FCC. |
|
Back to top |
|
|
HerrSchafer Tux's lil' helper
Joined: 18 May 2011 Posts: 139
|
Posted: Tue Oct 01, 2013 12:43 am Post subject: |
|
|
eyoung100 wrote: | Post /var/tmp/portage/sys-kernel/gentoo-sources/build.log IIRC |
I cannot find this file, booting from a live CD...
Code: | >>> Messages generated by process 25996 on 2013-09-30 16:54:17 AMT for package sys-devel/bc-1.06.95:
ERROR: compile
ERROR: sys-devel/bc-1.06.95::gentoo failed (compile phase):
econf failed
Call stack:
ebuild.sh, line 93: Called src_compile
environment, line 2455: Called econf '--with-readline' '--without-libedit'
phase-helpers.sh, line 521: Called die
The specific snippet of code:
die "econf failed"
If you need support, post the output of `emerge --info '=sys-devel/bc-1.06.95::gentoo'`,
the complete build log and the output of `emerge -pqv '=sys-devel/bc-1.06.95::gentoo'`.
The complete build log is located at '/var/tmp/portage/sys-devel/bc-1.06.95/temp/build.log'.
The ebuild environment file is located at '/var/tmp/portage/sys-devel/bc-1.06.95/temp/environment'.
Working directory: '/var/tmp/portage/sys-devel/bc-1.06.95/work/bc-1.06.95'
S: '/var/tmp/portage/sys-devel/bc-1.06.95/work/bc-1.06.95' |
This is the error I got. |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Tue Oct 01, 2013 12:49 am Post subject: |
|
|
boot the cd to a network connection, mount the gentoo partitions, run
Code: | wgetpaste /mnt/gentoo/var/tmp/portage/sys-devel/bc-1.06.95/temp/build.log | post the url returned _________________ Defund the FCC.
Last edited by DONAHUE on Tue Oct 01, 2013 1:00 am; edited 2 times in total |
|
Back to top |
|
|
HerrSchafer Tux's lil' helper
Joined: 18 May 2011 Posts: 139
|
Posted: Tue Oct 01, 2013 12:51 am Post subject: |
|
|
DONAHUE wrote: |
the most common causes of the problem you report at that point in an install are: not being in the chroot; not having a network connection, not having a nameserver identified in /etc/resolv.conf. |
I was able to download the stage3 tarball, so I think my connection its ok... about chroot, the prompt has changed, so I think chroot was also ok.. |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Tue Oct 01, 2013 1:01 am Post subject: |
|
|
Hard to understand Code: | emerge gentoo-sources | trying to install:
Quote: | sys-devel/bc
Latest version available: 1.06.95
Latest version installed: 1.06.95
Size of files: 283 kB
Homepage: http://www.gnu.org/software/bc/bc.html
Description: Handy console-based calculator utility
License: GPL-2 LGPL-2.1
|
stage 3 download is done before entering the chroot. If entry to chroot is done correctly the connection is transferred for use in the chroot. do you remeber running emerge-webrsync when initially in the chroot? _________________ Defund the FCC. |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Tue Oct 01, 2013 1:17 am Post subject: |
|
|
logic failed me but equery here says
dev-libs/openssl-1.0.1e-r1 (test ? sys-devel/bc)
net-print/cups-filters-1.0.34-r1 (sys-devel/bc)
sys-apps/util-linux-2.22.2 (test ? sys-devel/bc)
sys-kernel/gentoo-sources-3.10.7 (!build ? sys-devel/bc)
sys-kernel/gentoo-sources-3.11.1 (!build ? sys-devel/bc)
sys-kernel/gentoo-sources-3.11.2 (!build ? sys-devel/bc)
so needed but not provided today???
built a new system two days ago with 3.11.1 and had no problem with this bc nonsense _________________ Defund the FCC. |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Tue Oct 01, 2013 1:18 am Post subject: |
|
|
nonetheless
boot the cd to a network connection, mount the gentoo partitions, run
Code: | wgetpaste /mnt/gentoo/var/tmp/portage/sys-devel/bc-1.06.95/temp/build.log | post the url returned _________________ Defund the FCC. |
|
Back to top |
|
|
HerrSchafer Tux's lil' helper
Joined: 18 May 2011 Posts: 139
|
Posted: Tue Oct 01, 2013 2:11 am Post subject: |
|
|
Code: | [32;01m * [39;49;00mPackage: sys-devel/bc-1.06.95
[32;01m * [39;49;00mRepository: gentoo
[32;01m * [39;49;00mMaintainer: base-system@gentoo.org
[32;01m * [39;49;00mUSE: abi_x86_64 amd64 elibc_glibc kernel_linux multilib readline userland_GNU
[32;01m * [39;49;00mFEATURES: preserve-libs sandbox
>>> Unpacking source...
>>> Unpacking bc-1.06.95.tar.bz2 to /var/tmp/portage/sys-devel/bc-1.06.95/work
>>> Source unpacked in /var/tmp/portage/sys-devel/bc-1.06.95/work
>>> Compiling source in /var/tmp/portage/sys-devel/bc-1.06.95/work/bc-1.06.95 ...
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --with-readline --without-libedit
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/sys-devel/bc-1.06.95/work/bc-1.06.95/config.log
[31;01m*[0m ERROR: sys-devel/bc-1.06.95 failed (compile phase):
[31;01m*[0m econf failed
[31;01m*[0m
[31;01m*[0m Call stack:
[31;01m*[0m ebuild.sh, line 93: Called src_compile
[31;01m*[0m environment, line 2455: Called econf '--with-readline' '--without-libedit'
[31;01m*[0m phase-helpers.sh, line 521: Called die
[31;01m*[0m The specific snippet of code:
[31;01m*[0m die "econf failed"
[31;01m*[0m
[31;01m*[0m If you need support, post the output of `emerge --info '=sys-devel/bc-1.06.95'`,
[31;01m*[0m the complete build log and the output of `emerge -pqv '=sys-devel/bc-1.06.95'`.
[31;01m*[0m The complete build log is located at '/var/tmp/portage/sys-devel/bc-1.06.95/temp/build.log'.
[31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/sys-devel/bc-1.06.95/temp/environment'.
[31;01m*[0m Working directory: '/var/tmp/portage/sys-devel/bc-1.06.95/work/bc-1.06.95'
[31;01m*[0m S: '/var/tmp/portage/sys-devel/bc-1.06.95/work/bc-1.06.95' |
Yes, I remember of running .
I was able to to emerge "wgetpaste" but it has returned no url. |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Tue Oct 01, 2013 2:28 am Post subject: |
|
|
from the chroot:
run should look like Code: | gcc-config -l
[1] x86_64-pc-linux-gnu-4.7.3 * | the * indicates a gcc is selected. if none is, example would set the first in the list as in example Quote: | gcc-config 1
* Switching native-compiler to x86_64-pc-linux-gnu-4.7.3 ... | you may have another version
Quote: | I was able to to emerge "wgetpaste" but it has returned no url. | probably no build.log started _________________ Defund the FCC. |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Tue Oct 01, 2013 2:49 am Post subject: |
|
|
Followup:
if you succeeded in setting an active gcc, run Code: | emerge libtool
env-update
source /etc/profile
emerge gentoo-sources |
_________________ Defund the FCC. |
|
Back to top |
|
|
chiefbag Guru
Joined: 01 Oct 2010 Posts: 542 Location: The Kingdom
|
Posted: Tue Oct 01, 2013 8:56 am Post subject: |
|
|
Quote: | Is there any command for saving the information on the screen in to a file? |
You can use tee, for example below will print the output of the "ls" command to the file "screen_output.txt"
Code: | ls | tee screen_output.txt |
|
|
Back to top |
|
|
HerrSchafer Tux's lil' helper
Joined: 18 May 2011 Posts: 139
|
Posted: Tue Oct 01, 2013 2:36 pm Post subject: |
|
|
chiefbag wrote: | You can use tee, for example below will print the output of the "ls" command to the file "screen_output.txt" |
Great! So, if I do something like:
Code: | emerge foo | tee foo_log.txt |
Will I get all the info I see on the screen saved? Thanks! It helps a lot!
Off topic: gentoo is quite harder than other distros... |
|
Back to top |
|
|
chiefbag Guru
Joined: 01 Oct 2010 Posts: 542 Location: The Kingdom
|
Posted: Tue Oct 01, 2013 4:00 pm Post subject: |
|
|
Quote: |
Great! So, if I do something like:
Code:
emerge foo | tee foo_log.txt
Will I get all the info I see on the screen saved? Thanks! It helps a lot! |
You would need to do something like below:
Code: | emerge foo 2>&1 | tee foo_log.txt |
|
|
Back to top |
|
|
HerrSchafer Tux's lil' helper
Joined: 18 May 2011 Posts: 139
|
Posted: Wed Oct 02, 2013 12:38 am Post subject: |
|
|
DONAHUE wrote: | Followup:
if you succeeded in setting an active gcc, run Code: | emerge libtool
env-update
source /etc/profile
emerge gentoo-sources |
|
The version of my gcc was 4.6.2 and the profile was was set.
Another error while emerging libtool:
Code: |
* IMPORTANT: 2 config files in '/etc/portage' need updating.
Calculating dependencies
* IMPORTANT: 6 news items need reading for repository 'gentoo'.
* Use eselect news to read news items.
* See the CONFIGURATION FILES section of the emerge
* man page to learn how to update config files.
... done!
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) sys-devel/libtool-2.4.2
* libtool-2.4.2.tar.xz SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ]
>>> Unpacking source...
>>> Unpacking libtool-2.4.2.tar.xz to /var/tmp/portage/sys-devel/libtool-2.4.2/work
>>> Source unpacked in /var/tmp/portage/sys-devel/libtool-2.4.2/work
>>> Preparing source in /var/tmp/portage/sys-devel/libtool-2.4.2/work/libtool-2.4.2 ...
* Applying libtool-1.5.20-use-linux-version-in-fbsd.patch ...
[ ok ]
* Running eautoreconf in '/var/tmp/portage/sys-devel/libtool-2.4.2/work/libtool-2.4.2/libltdl' ...
* Running true --install --copy --force --automake ...
[ ok ]
* Running aclocal -I m4 ...
[ ok ]
* Running autoconf ...
[ ok ]
* Running autoheader ...
[ ok ]
* Running automake --add-missing --copy --foreign ...
[ ok ]
* Running eautoreconf in '/var/tmp/portage/sys-devel/libtool-2.4.2/work/libtool-2.4.2' ...
* Running true --install --copy --force --automake ...
[ ok ]
* Running aclocal -I libltdl/m4 ...
[ ok ]
* Running autoconf ...
[ ok ]
* Running autoheader ...
[ ok ]
* Running automake --add-missing --copy ...
[ ok ]
* Removing useless C++ checks ...
[ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sys-devel/libtool-2.4.2/work/libtool-2.4.2 ...
* econf: updating libtool-2.4.2/libltdl/config/config.sub with /usr/share/gnuconfig/config.sub
* econf: updating libtool-2.4.2/libltdl/config/config.guess with /usr/share/gnuconfig/config.guess
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --disable-static
## ------------------------- ##
## Configuring libtool 2.4.2 ##
## ------------------------- ##
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
configure: autobuild project... GNU Libtool
configure: autobuild revision... 2.4.2 ()
configure: autobuild hostname... livecd
configure: autobuild mode... default
configure: autobuild timestamp... 20131001T212622Z
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking whether the C compiler works... no
configure: error: in `/var/tmp/portage/sys-devel/libtool-2.4.2/work/libtool-2.4.2':
configure: error: C compiler cannot create executables
See `config.log' for more details
!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/sys-devel/libtool-2.4.2/work/libtool-2.4.2/config.log
* ERROR: sys-devel/libtool-2.4.2::gentoo failed (configure phase):
* econf failed
*
* Call stack:
* ebuild.sh, line 93: Called src_configure
* environment, line 3071: Called econf '--disable-static'
* phase-helpers.sh, line 521: Called die
* The specific snippet of code:
* die "econf failed"
*
* If you need support, post the output of `emerge --info '=sys-devel/libtool-2.4.2::gentoo'`,
* the complete build log and the output of `emerge -pqv '=sys-devel/libtool-2.4.2::gentoo'`.
* The complete build log is located at '/var/tmp/portage/sys-devel/libtool-2.4.2/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-devel/libtool-2.4.2/temp/environment'.
* Working directory: '/var/tmp/portage/sys-devel/libtool-2.4.2/work/libtool-2.4.2'
* S: '/var/tmp/portage/sys-devel/libtool-2.4.2/work/libtool-2.4.2'
>>> Failed to emerge sys-devel/libtool-2.4.2, Log file:
>>> '/var/tmp/portage/sys-devel/libtool-2.4.2/temp/build.log'
* Messages for package sys-devel/libtool-2.4.2:
* ERROR: sys-devel/libtool-2.4.2::gentoo failed (configure phase):
* econf failed
*
* Call stack:
* ebuild.sh, line 93: Called src_configure
* environment, line 3071: Called econf '--disable-static'
* phase-helpers.sh, line 521: Called die
* The specific snippet of code:
* die "econf failed"
*
* If you need support, post the output of `emerge --info '=sys-devel/libtool-2.4.2::gentoo'`,
* the complete build log and the output of `emerge -pqv '=sys-devel/libtool-2.4.2::gentoo'`.
* The complete build log is located at '/var/tmp/portage/sys-devel/libtool-2.4.2/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-devel/libtool-2.4.2/temp/environment'.
* Working directory: '/var/tmp/portage/sys-devel/libtool-2.4.2/work/libtool-2.4.2'
* S: '/var/tmp/portage/sys-devel/libtool-2.4.2/work/libtool-2.4.2'
|
_________________ “Long is the way, and hard, that out of hell leads up to light.”
― John Milton |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Wed Oct 02, 2013 1:26 am Post subject: |
|
|
boot the cd
mount the gentoo partitions
run
Code: | ls /mnt/gentoo/stage* | wgetpaste
wgetpaste /mnt/gentoo/etc/portage/make.conf
wgetpaste /mnt/gentoo/proc/cpuinfo |
post url's returned
Last time I ran a minimal install IIRC, it had wgetpaste, if not post results
Code: | ls /mnt/gentoo/stage*
cat /mnt/gentoo/etc/portage/make.conf
cat /mnt/gentoo/proc/cpuinfo |
_________________ Defund the FCC. |
|
Back to top |
|
|
HerrSchafer Tux's lil' helper
Joined: 18 May 2011 Posts: 139
|
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Wed Oct 02, 2013 2:36 am Post subject: |
|
|
The problem is in /etc/make.conf: Quote: | CFLAGS="-mtnue=native -O2 -pipe" | spelling of -mtune, but recommend Quote: | CFLAGS="-march=native -O2 -pipe" | as I can not vouch for -mtune="native" _________________ Defund the FCC. |
|
Back to top |
|
|
HerrSchafer Tux's lil' helper
Joined: 18 May 2011 Posts: 139
|
Posted: Wed Oct 02, 2013 2:15 pm Post subject: |
|
|
@DONAHUE:
Each attempt of installing gentoo is made from scratch, due to my windows needs (I use it at my job); so, I install Ubuntu to get grub working and be able to use windows. (by the way, how can I make windows partition bootable after removing linux?)
The last time I tried, I was concerned that if the error was a compiling error, something could be wrong in the make.conf file; so, I changed MAKEOPTS to a small value and used mtune (wich you saw the spelling) instead march but I got the same error. _________________ “Long is the way, and hard, that out of hell leads up to light.”
― John Milton |
|
Back to top |
|
|
creaker l33t
Joined: 14 Jul 2012 Posts: 651
|
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Wed Oct 02, 2013 3:00 pm Post subject: |
|
|
Which version of windows is installed?
Are you dealing with UEFI or legacy BIOS?
What is the make and model of the computer you are installing on?
You were dual booting Ubuntu and windows and decided to replace ubuntu with gentoo? _________________ Defund the FCC. |
|
Back to top |
|
|
|