View previous topic :: View next topic |
Author |
Message |
Ric95 Tux's lil' helper
Joined: 10 Apr 2007 Posts: 94 Location: Alberta Can.
|
Posted: Thu Sep 03, 2009 1:40 am Post subject: Cant emerge while chrooted [Solved] |
|
|
I'm trying to salvage an install on sda1 from a linux (Sabayon) on sda2. I mounted with:
# mkdir /mnt/gentoo/boot
# mount /dev/sda1 /mnt/gentoo/boot
# cd /mnt/gentoo
Then I chrooted with:
# cd /
# mount -t proc proc /mnt/gentoo/proc
# mount -o bind /dev /mnt/gentoo/dev
# cp -L /etc/resolv.conf /mnt/gentoo/etc/
# chroot /mnt/gentoo /bin/bash
# env-update && source /etc/profile
>>> Regenerating /etc/ld.so.cache...
It rsynced ok, portage emerged ok, (did I sync the sda2 install?) but when I try to emerge dhcpcd or xorg, or any such, it fails with:
Quote: | >>> Failed to emerge net-misc/dhcpcd-4.0.13, Log file:
>>> '/var/tmp/portage/net-misc/dhcpcd-4.0.13/temp/build.log'
* Messages for package net-misc/dhcpcd-4.0.13:
* dhcpcd-3 command line support enabled
*
* ERROR: net-misc/dhcpcd-4.0.13 failed.
* Call stack:
* ebuild.sh, line 49: Called src_compile
* environment, line 2328: Called die
* The specific snippet of code:
* emake CC="$(tc-getCC)" ${MAKE_ARGS} || die
* The die message:
* (no error message)
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/net-misc/dhcpcd-4.0.13/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/net-misc/dhcpcd-4.0.13/temp/environment'.
|
What did I do wrong?
Last edited by Ric95 on Sat Sep 05, 2009 7:19 pm; edited 1 time in total |
|
Back to top |
|
|
dol-sen Retired Dev
Joined: 30 Jun 2002 Posts: 2805 Location: Richmond, BC, Canada
|
Posted: Thu Sep 03, 2009 1:53 am Post subject: |
|
|
For starters you did not post the error, only the report that an error occurred. Otherwise it looks like you did things correctly.
We need the actual error that occurred. If it is not readily available in the terminal scroll buffer then look in the file listed. Near the end in the compile code you will find the error that happened. You may even get more successful compiling after it before it spits out the error message above. If you cannot find it then post the file to a pastebin/dpaste.com and post the link so we can find it for you. _________________ Brian
Porthole, the Portage GUI frontend irc@freenode: #gentoo-guis, #porthole, Blog
layman, gentoolkit, CoreBuilder, esearch... |
|
Back to top |
|
|
Ric95 Tux's lil' helper
Joined: 10 Apr 2007 Posts: 94 Location: Alberta Can.
|
Posted: Thu Sep 03, 2009 2:05 am Post subject: |
|
|
Sorry, there is the compile leading up to that:
Quote: | >>> Emerging (1 of 1) net-misc/dhcpcd-4.0.13
* dhcpcd-4.0.13.tar.bz2 RMD160 SHA1 SHA256 size ... [ ok ]
* checking ebuild checksums ... [ ok ]
* checking auxfile checksums ... [ ok ]
* checking miscfile checksums ... [ ok ]
>>> Unpacking source...
>>> Unpacking dhcpcd-4.0.13.tar.bz2 to /var/tmp/portage/net-misc/dhcpcd-4.0.13/work
* dhcpcd-3 command line support enabled
>>> Source unpacked in /var/tmp/portage/net-misc/dhcpcd-4.0.13/work
>>> Compiling source in /var/tmp/portage/net-misc/dhcpcd-4.0.13/work/dhcpcd-4.0.13 ...
make CC=x86_64-pc-linux-gnu-gcc DBDIR=/var/lib/dhcpcd LIBEXECDIR=/lib/dhcpcd
x86_64-pc-linux-gnu-gcc -O2 march=native -pipe -std=c99 -DDBDIR=\"/var/lib/dhcpcd\" -DSCRIPT=\"/lib/dhcpcd/dhcpcd-run-hooks\" -DSYSCONFDIR=\"/etc\" -D_BSD_SOURCE -D_XOPEN_SOURCE=600 -c common.c -o common.o
x86_64-pc-linux-gnu-gcc: march=native: No such file or directory
make: *** [common.o] Error 1
*
* ERROR: net-misc/dhcpcd-4.0.13 failed.
* Call stack:
* ebuild.sh, line 49: Called src_compile
* environment, line 2328: Called die
* The specific snippet of code:
* emake CC="$(tc-getCC)" ${MAKE_ARGS} || die
* The die message:
* (no error message)
*
|
.....could it be that march=native is the culprit?
*edit* changing to march=k8 didn't help.
*edit2*
I think I mounted wrong, given that its all on sda1.
Instead of mkdir each time for gentoo/, gentoo/proc, gentoo/dev, and gentoo/boot, I only need /gentoo. Then;
mount /dev/sda1 /mnt/gentoo.
then chroot /mnt/gentoo /bin/bash
env-update ect... |
|
Back to top |
|
|
wthrowe Tux's lil' helper
Joined: 19 Aug 2009 Posts: 141
|
Posted: Thu Sep 03, 2009 4:35 am Post subject: |
|
|
Shouldn't it be -march=native (with a leading -)? |
|
Back to top |
|
|
dol-sen Retired Dev
Joined: 30 Jun 2002 Posts: 2805 Location: Richmond, BC, Canada
|
Posted: Thu Sep 03, 2009 7:43 am Post subject: |
|
|
Yes, You only need to make /mnt/gentoo, then mount /sda1 to there. From there everything else would ready if everything is on sda1. If you have it on several partitions then you mount those after you mount /sda1 to /mnt/gentoo, after that is mounted it already has the /mnt/gentoo/* mount directories so no need to make them, just continue mounting the drives to /mnt/gentoo/* .
Code: | # mkdir /mnt/gentoo/boot
# mount /dev/sda1 /mnt/gentoo/boot
# cd /mnt/gentoo
Then I chrooted with:
# cd /
# |
should be
Code: | # mkdir /mnt/gentoo
# mount /dev/sda1 /mnt/gentoo
# cd /
#... |
Sorry I missed that earlier. I skimmed it too quickly to spot the slight error.
All your CFLAGS settings should start with a leading "-"
eg: Code: | CFLAGS="-Os -pipe -march=core2 -mtune=core2 -mmmx -msse -msse2 -msse3" |
I made the same mistake a few weeks ago on this new one, didn't see that I missed the "-" on some of the options. _________________ Brian
Porthole, the Portage GUI frontend irc@freenode: #gentoo-guis, #porthole, Blog
layman, gentoolkit, CoreBuilder, esearch... |
|
Back to top |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Thu Sep 03, 2009 12:07 pm Post subject: |
|
|
Hi, can you post this from your chroot :
Code: |
# cat /etc/make.conf
# eselect profile list
|
|
|
Back to top |
|
|
Ric95 Tux's lil' helper
Joined: 10 Apr 2007 Posts: 94 Location: Alberta Can.
|
Posted: Thu Sep 03, 2009 12:32 pm Post subject: |
|
|
Thanks guys! its fixed. The compile error was because of the missing '-', and now I've learned a lot about chrooting.
Quote: | Hi, can you post this from your chroot :
Code:
# cat /etc/make.conf
# eselect profile list
|
I may post that later, but I'd better get to work _________________ Corporations are not like people. They don't need rights as people do, they only need an even playing field on which to compete. |
|
Back to top |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Fri Sep 04, 2009 2:04 am Post subject: |
|
|
Good |
|
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
|
|