Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 102412 - com_err race condition: error occured: can't create elfshared/error_message.o
Summary: com_err race condition: error occured: can't create elfshared/error_message.o
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo's Team for Core System packages
URL: http://sourceforge.net/tracker/index....
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-13 11:23 UTC by jippie
Modified: 2005-08-16 19:09 UTC (History)
0 users

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 jippie 2005-08-13 11:23:05 UTC
v2005.1 
during install of gentoo 2005.1 hardened stage 1
emerge --emptytree system 
a fatal error occured: can't create elfshared/error_message.o


Reproducible: Always
Steps to Reproduce:
1.Web based installation manual
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=6#doc_chap4
2.
3.

Actual Results:  
FATAL: can't create elfshared/error_message.o
emerge is killed, impossible to continue gentoo install


I created a symlink in /tmp/portage/com_err-1.38/work/e2fsprogs-1.38
ln -s ./lib/et/elfshared elfshared

this is a work around
Comment 1 Robert Paskowitz (RETIRED) gentoo-dev 2005-08-13 12:11:58 UTC
What CD were you using during the installation?

Also, it seems it failed on com_err, was there anything in the error message apart from it saying it failed to 
build? A verbose error perhaps, saying why it failed to build?

Also, you started from stage1-x86-hardened-2.6-2005.1.tar.bz2 ?
Comment 2 jippie 2005-08-13 12:22:54 UTC
(In reply to comment #1)
> What CD were you using during the installation?
It is locked in the drive, how can I see that? I guess 2005.0 for x86.
> 
> Also, it seems it failed on com_err, was there anything in the error message
apart from it saying it failed to 
> build? A verbose error perhaps, saying why it failed to build?
> 
make: Entering directory `/tmp/portage/com_err-1.38/work/e2fsprogs-1.38/lib/et'
cd ../../util ; make subst
make[1]: Entering directory `/tmp/portage/com_err-1.38/work/e2fsprogs-1.38/util'
        CC subst.c
        LD subst
make[1]: Leaving directory `/tmp/portage/com_err-1.38/work/e2fsprogs-1.38/util'
        CC error_message.c
Assembler messages:
FATAL: can't create elfshared/error_message.o: No such file or directory
make: *** [error_message.o] Error 1
make: *** Waiting for unfinished jobs....
        MKDIR elfshared
make: *** Waiting for unfinished jobs....
make: Leaving drectory `/tmp/portage/com_err-1.38/work/e2fsprogs-1.38/lib/et'

!!! ERROR: sys-libs/com_err-1.38 failed.
!!! Function src_compile, Line 41, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.

> Also, you started from stage1-x86-hardened-2.6-2005.1.tar.bz2 ?

These are the manually downloaded files I used:
-rw-r--r--  1 root root 20008966 Aug 12 16:25 portage-20050811.tar.bz2
-rw-r--r--  1 root root       59 Aug 12 16:25 portage-20050811.tar.bz2.md5sum
-rw-r--r--  1 root root 21815981 Aug 12 16:17 stage1-x86-hardened-2.6-2005.1.tar.bz2
-rw-r--r--  1 root root       73 Aug 12 16:17
stage1-x86-hardened-2.6-2005.1.tar.bz2.md5
Comment 3 jippie 2005-08-13 13:02:49 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > What CD were you using during the installation?
Does this anser your question:
livecd media # uname -a
Linux livecd 2.6.11-gentoo-r3 #1 SMP Fri Mar 18 21:30:04 UTC 2005 i686 Intel(R)
Celeron(R) CPU 2.40GHz GenuineIntel GNU/Linux
Comment 4 Robert Paskowitz (RETIRED) gentoo-dev 2005-08-15 22:14:13 UTC
This looks like a race condition in the makefile, where with MAKEOPTS="-j2" or higher, the build can start 
before the target directory exists. 

Reassigning.
Comment 5 SpanKY gentoo-dev 2005-08-16 19:09:58 UTC
found the issue and filed a bug upstream

added a simple workaround to the ebuild for now