Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 130860 - file-4.13 fails to build because it looks for i386-pc-linux-gnu
Summary: file-4.13 fails to build because it looks for i386-pc-linux-gnu
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Release Media
Classification: Unclassified
Component: Installer (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux Installer
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-22 10:25 UTC by Chris Wong
Modified: 2006-04-27 07:22 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Wong 2006-04-22 10:25:42 UTC
installer.log.failed:

GLI: April 22 2006 11:37:02 - Setting root password.
GLI: April 22 2006 11:37:02 - Livecd root password set.
GLI: April 22 2006 11:37:04 - Portmap started.
GLI: April 22 2006 11:37:04 - Completed pre_install steps
GLI: April 22 2006 11:45:18 - partitioning: Processing /dev/hde...
GLI: April 22 2006 11:45:18 -   Partition 2 has origminor 2...saving start sector 208845 and end sector 2313359
GLI: April 22 2006 11:45:18 -   Deleting old minor 2 to be recreated later
GLI: April 22 2006 11:45:18 - Partitioning: Second pass...
GLI: April 22 2006 11:45:18 - Partitioning: Third pass....creating partitions
GLI: April 22 2006 11:45:18 -   Drive has 80418240 sectors
GLI: April 22 2006 11:45:18 -   Partition 1 has 101MB
GLI: April 22 2006 11:45:18 -     Start sector calculated to be 0
GLI: April 22 2006 11:45:18 -     End sector calculated to be 206848
GLI: April 22 2006 11:45:18 -   Adding primary partition 1 from 0 to 206848
GLI: April 22 2006 11:45:19 -   Formatting partition 1 as ext3 with: mkfs.ext3  /dev/hde1
GLI: April 22 2006 11:45:22 -   Partition 2 has 1027MB
GLI: April 22 2006 11:45:22 -     Old start sector 208845 retrieved
GLI: April 22 2006 11:45:22 -     Retrieved start sector is not the same as the calculated next start sector
GLI: April 22 2006 11:45:22 -     Old end sector 2313359 retrieved
GLI: April 22 2006 11:45:22 -   Adding primary partition 2 from 208845 to 2313359
GLI: April 22 2006 11:45:22 -   Partition 3 has 38130MB
GLI: April 22 2006 11:45:22 -     Start sector calculated to be 2313360
GLI: April 22 2006 11:45:22 -     End sector calculated to be 80403600
GLI: April 22 2006 11:45:22 -   Adding primary partition 3 from 2313360 to 80403600
GLI: April 22 2006 11:45:23 -   Formatting partition 3 as reiserfs with: mkfs.reiserfs -f  /dev/hde3
GLI: April 22 2006 11:45:27 - partitioning: Processing /dev/hda...
GLI: April 22 2006 11:45:27 -   Partition 1 has origminor 1...saving start sector 63 and end sector 25173854
GLI: April 22 2006 11:45:27 -   Partition 2 has origminor 2...saving start sector 25173855 and end sector 276848144
GLI: April 22 2006 11:45:27 -   Deleting old minor 1 to be recreated later
GLI: April 22 2006 11:45:27 -   Deleting old minor 2 to be recreated later
GLI: April 22 2006 11:45:27 - Partitioning: Second pass...
GLI: April 22 2006 11:45:27 - Partitioning: Third pass....creating partitions
GLI: April 22 2006 11:45:27 -   Drive has 488397168 sectors
GLI: April 22 2006 11:45:27 -   Partition 1 has 12291MB
GLI: April 22 2006 11:45:27 -     Old start sector 63 retrieved
GLI: April 22 2006 11:45:27 -     Retrieved start sector is not the same as the calculated next start sector
GLI: April 22 2006 11:45:27 -     Old end sector 25173854 retrieved
GLI: April 22 2006 11:45:27 -   Adding primary partition 1 from 63 to 25173854
GLI: April 22 2006 11:45:27 -   Partition 2 has 122887MB
GLI: April 22 2006 11:45:27 -     Old start sector 25173855 retrieved
GLI: April 22 2006 11:45:27 -     Old end sector 276848144 retrieved
GLI: April 22 2006 11:45:27 -   Adding primary partition 2 from 25173855 to 276848144
GLI: April 22 2006 11:45:27 -   Partition 2.03125 has 103292MB
GLI: April 22 2006 11:45:27 -     Start sector calculated to be 276848145
GLI: April 22 2006 11:45:27 -     End sector calculated to be 488390161
GLI: April 22 2006 11:45:36 - Mounted mountpoint: /
GLI: April 22 2006 11:45:36 - Created mountpoint /boot
GLI: April 22 2006 11:45:37 - Mounted mountpoint: /boot
GLI: April 22 2006 11:45:37 - Fetching and unpacking tarball: http://mirror.gentoo.no/releases/x86/2006.0/stages/stage1-x86-2006.0.tar.bz2
GLI: April 22 2006 11:47:50 - http://mirror.gentoo.no/releases/x86/2006.0/stages/stage1-x86-2006.0.tar.bz2 was fetched and unpacked.
GLI: April 22 2006 11:47:55 - fstab configured.
GLI: April 22 2006 11:47:55 - Edited Config file /mnt/gentoo/etc/rc.conf
GLI: April 22 2006 11:47:55 - Edited Config file /mnt/gentoo/etc/conf.d/clock
GLI: April 22 2006 11:47:55 - Edited Config file /mnt/gentoo/etc/conf.d/keymaps
GLI: April 22 2006 11:47:55 - Edited Config file /mnt/gentoo/etc/make.conf
GLI: April 22 2006 11:47:55 - Config files updated using etc-update.  make.conf/fstab/rc.conf restored.
GLI: April 22 2006 11:47:55 - Edited Config file /mnt/gentoo/etc/make.conf
GLI: April 22 2006 11:47:55 - Edited Config file /mnt/gentoo/etc/make.conf
GLI: April 22 2006 11:47:55 - Edited Config file /mnt/gentoo/etc/make.conf
GLI: April 22 2006 11:47:55 - Edited Config file /mnt/gentoo/etc/make.conf
GLI: April 22 2006 11:47:55 - Edited Config file /mnt/gentoo/etc/make.conf
GLI: April 22 2006 11:47:55 - Edited Config file /mnt/gentoo/etc/make.conf
GLI: April 22 2006 11:47:55 - Make.conf configured
GLI: April 22 2006 11:47:56 - Chroot environment ready.
GLI: April 22 2006 12:11:06 - Portage tree sync'd
GLI: April 22 2006 12:11:06 -  -- MARK -- 
GLI: April 22 2006 12:11:06 - Starting bootstrap.
GLI: April 22 2006 15:59:20 - Bootstrap complete.
GLI: April 22 2006 15:59:20 -  -- MARK -- 
GLI: April 22 2006 15:59:20 - Starting emerge system.
GLI: April 22 2006 15:59:28 - Calling emerge: emerge -k --emptytree system
GLI: April 22 2006 17:45:17 - Exception received during 'Performing 'emerge system'': Stage2Error :FATAL: stage2: Building the system failed!
GLI: April 22 2006 17:45:17 - Traceback (most recent call last):
GLI: April 22 2006 17:45:17 - File "/opt/installer/GLIClientController.py", line 165, in run
    self._install_steps[self._install_step]['function']()
GLI: April 22 2006 17:45:17 - File "/opt/installer/GLIArchitectureTemplate.py", line 238, in stage2
    raise GLIException("Stage2Error", 'fatal','stage2', "Building the system failed!")
GLI: April 22 2006 17:45:17 - GLIException: Stage2Error :FATAL: stage2: Building the system failed!

Regards
Chris
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-04-22 10:50:35 UTC
Your /tmp/compile_output.log should show you the error message. Nothing we could do without it.

Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-04-23 00:16:26 UTC
make: Leaving directory `/var/tmp/portage/file-4.13/work/file-4.13/magic'
running build
running build_ext
building 'magic' extension
creating build
creating build/temp.linux-i686-2.4
i386-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -march=pentium3m -O2 -pipe -fPIC -I./ -I../ -I../src -I/usr/include/ -I/usr/include/python2.4 -c py_magic.c -o build/temp.linux-i686-2.4/py_magic.o
unable to execute i386-pc-linux-gnu-gcc: No such file or directory
error: command 'i386-pc-linux-gnu-gcc' failed with exit status 1

!!! ERROR: sys-apps/file-4.13 failed.
!!! Function distutils_src_compile, Line 35, Exitcode 1
!!! compilation failed
!!! If you need support, post the topmost build error, NOT this status message.

Did you change your CHOST or what?
Comment 3 Chris Wong 2006-04-23 02:24:08 UTC
CHOST has not been change it is still "i686-pc-linux-gnu".
If you check the compile_output.log, during bootstrip process the i386-pc-linux-gcc-3.4.4 exits.

After build i686-pc-linux-gnu-gcc-3.4.5 then the build procees unmerge the i386 version of gcc and some of the subsequency make still ask for i386 version of gcc.

See extact of compile_output.log:

>>> sys-devel/gcc-3.4.5-r1 merged.

 sys-devel/gcc
    selected: 3.4.4-r1
   protected: 3.4.5-r1
     omitted: none

>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed.

>>> Waiting 5 seconds before starting...
>>> (Control-C to abort)...
>>> Unmerging in: 5 4 3 2 1
>>> Unmerging sys-devel/gcc-3.4.4-r1...
No package files given... Grabbing a set.
<<<        obj /usr/libexec/gcc/i386-pc-linux-gnu/3.4.4/collect2
<<<        obj /usr/libexec/gcc/i386-pc-linux-gnu/3.4.4/cc1
<<<        obj /usr/lib/gcc/i386-pc-linux-gnu/3.4.4/vanilla.specs
<<<        obj /usr/lib/gcc/i386-pc-linux-gnu/3.4.4/specs
<<<        obj /usr/lib/gcc/i386-pc-linux-gnu/3.4.4/libgcov.a
<<<        obj /usr/lib/gcc/i386-pc-linux-gnu/3.4.4/libgcc_s.so.1
<<<        obj /usr/lib/gcc/i386-pc-linux-gnu/3.4.4/libgcc_eh.a
<<<        obj /usr/lib/gcc/i386-pc-linux-gnu/3.4.4/libgcc.a

Regards
Chris
Comment 4 Chris Wong 2006-04-26 09:04:24 UTC
I had supplied more information on 23rd-April, as the Status being set to RESOLVED nobody has look into this issue again.

Regards
Chris
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-04-26 09:13:56 UTC
Sigh; how about dropping support for these stages from livecd? Does more harm than good...
Comment 6 Chris Gianelloni (RETIRED) gentoo-dev 2006-04-26 10:20:31 UTC
Well, this is an installer bug, so it doesn't belong to release until it becomes the default, all around.
Comment 7 Andrew Gaffney (RETIRED) gentoo-dev 2006-04-27 05:06:17 UTC
Compilation failures are not installer bugs.
Comment 8 SpanKY gentoo-dev 2006-04-27 05:58:21 UTC
it isnt a bug in file

sounds like the installer doesnt fix the host env after changing toolchains
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2006-04-27 06:01:41 UTC
ZOMG...
Comment 10 Andrew Gaffney (RETIRED) gentoo-dev 2006-04-27 07:20:50 UTC
This *may* have been caused by the installer not running 'env-update && source /etc/profile' before running 'emerge -e system'. Try updating to the CVS installer by opening a terminal and running '/opt/installer/misc/updategtkfe'. Run your same install again. Please reopen this bug if you run into the problem again.
Comment 11 Andrew Gaffney (RETIRED) gentoo-dev 2006-04-27 07:22:01 UTC
forgot to close :)