Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Dynamips build fails
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
NuMPTy
Tux's lil' helper
Tux's lil' helper


Joined: 04 Mar 2012
Posts: 78

PostPosted: Wed Aug 08, 2012 11:26 pm    Post subject: Dynamips build fails Reply with quote

Hi everyone,

I recently tried to install GNS3, and ran into an issue with libelf:

Code:
 * Package:    app-emulation/dynamips-0.2.8_rc3
 * Repository: gentoo
 * Maintainer: chainsaw@gentoo.org
 * USE:        amd64 consolekit elibc_glibc kernel_linux multilib policykit userland_GNU
 * FEATURES:   sandbox
 * Applying dynamips-0.2.8_rc3-makefile.patch ...
 [ ok ]
 * Adjusting Makefiles for AMD64 ...
 [ ok ]
make -C stable
make[1]: Entering directory `/var/tmp/portage/app-emulation/dynamips-0.2.8_rc3/work/dynamips-0.2.8-RC3-community/stable'
Linking rom2c
Compiling ../common/mempool.c
Compiling ../common/registry.c
Compiling ../common/rbtree.c
Compiling ../common/hash.c
gcc: error: /usr/lib/libelf.a: No such file or directory
Compiling ../common/sbox.c
make[1]: *** [rom2c] Error 1
make[1]: *** Waiting for unfinished jobs....
Compiling ../common/utils.c
Compiling ../common/parser.c
../common/utils.c: In function 'm_fgets':
../common/utils.c:268:9: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result]
make[1]: Leaving directory `/var/tmp/portage/app-emulation/dynamips-0.2.8_rc3/work/dynamips-0.2.8-RC3-community/stable'
make: *** [dynamips.stable] Error 2
emake failed
 * ERROR: app-emulation/dynamips-0.2.8_rc3 failed (compile phase):
 *   died running emake, base_src_make
 *
 * Call stack:
 *     ebuild.sh, line   85:  Called src_compile
 *   environment, line 2072:  Called base_src_compile
 *   environment, line  289:  Called base_src_make
 *   environment, line  327:  Called die
 * The specific snippet of code:
 *           emake "$@" || die "died running emake, $FUNCNAME";
 *
 * If you need support, post the output of `emerge --info '=app-emulation/dynamips-0.2.8_rc3'`,
 * the complete build log and the output of `emerge -pqv '=app-emulation/dynamips-0.2.8_rc3'`.
 * The complete build log is located at '/var/tmp/portage/app-emulation/dynamips-0.2.8_rc3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-emulation/dynamips-0.2.8_rc3/temp/environment'.
 * Working directory: '/var/tmp/portage/app-emulation/dynamips-0.2.8_rc3/work/dynamips-0.2.8-RC3-community'
 * S: '/var/tmp/portage/app-emulation/dynamips-0.2.8_rc3/work/dynamips-0.2.8-RC3-community'


I'm assuming the issue is relating to libelf, however I can't install it since elfutils blocks it (it may not at all, I have no idea! :) ):
Code:
# emerge -av libelf

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] dev-libs/libelf-0.8.13-r1  USE="nls -debug" 0 kB
[blocks B      ] dev-libs/elfutils ("dev-libs/elfutils" is blocking dev-libs/libelf-0.8.13-r1)
[blocks B      ] dev-libs/libelf ("dev-libs/libelf" is blocking dev-libs/elfutils-0.154-r1)


What should I be doing here?
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Thu Aug 09, 2012 4:47 am    Post subject: Reply with quote

NuMPTy,

I think you have the lto flag set for gcc which pulls in libelf and it won't coexist with elfutils :cry:
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
NuMPTy
Tux's lil' helper
Tux's lil' helper


Joined: 04 Mar 2012
Posts: 78

PostPosted: Thu Aug 09, 2012 5:57 pm    Post subject: Reply with quote

Thanks Bill - I tried reemerging this a few minutes ago (without any changes), and it worked....the blocks were gone...I have no idea what happened :\
Back to top
View user's profile Send private message
GrayTShirt
n00b
n00b


Joined: 17 Aug 2011
Posts: 5

PostPosted: Tue Oct 23, 2012 7:47 pm    Post subject: Reply with quote

you need to recompile elfutils with static-libs

Code:
 USE="static-libs" emerge dev-libs/elfutils
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
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