View previous topic :: View next topic |
Author |
Message |
rjw8703 Apprentice
Joined: 14 Aug 2004 Posts: 246 Location: Auburn, Al
|
Posted: Fri Apr 02, 2010 8:48 pm Post subject: Having trouble compiling glib on a new install(solved) |
|
|
Code: |
emerge --info
Portage 2.1.7.17 (default/linux/amd64/10.0/desktop, gcc-4.4.3, glibc-2.11-r1, 2.6.32.10-std151-amd64 x86_64)
=================================================================
System uname: Linux-2.6.32.10-std151-amd64-x86_64-Intel-R-_Core-TM-_i7_CPU_X_980_@_3.33GHz-with-gentoo-1.12.13
Timestamp of tree: Fri, 02 Apr 2010 07:30:01 +0000
app-shells/bash: 4.0_p35
dev-lang/python: 2.6.5-r1, 3.1.2-r1
sys-apps/baselayout: 1.12.13
sys-apps/sandbox: 1.6-r2
sys-devel/autoconf: 2.63-r1
sys-devel/automake: 1.10.3
sys-devel/binutils: 2.20.1
sys-devel/gcc: 4.4.3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool: 2.2.6b
virtual/os-headers: 2.6.30-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-mtune=native -march=native -O2 -mcx16 -msahf -fomit-frame-pointer -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-mtune=native -march=native -O2 -mcx16 -msahf -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages metadata-transfer news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
FFLAGS="-mtune=native -march=native -O2 -mcx16 -msahf -fomit-frame-pointer -pipe"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://gentoo.osuosl.org http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -s -Wl,--as-needed -Wl,--hash-style=gnu"
LINGUAS="en en_US"
MAKEOPTS="-j12"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="a52 aac acl acpi alsa amd64 bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cxx dri dts dvd dvdr emboss encode example exif extras fam firefox flac fortran gdbm gif gpm iconv ipv6 jpeg lcms ldap libnotify mad mikmod mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf perl png ppds pppd python qt3support qt4 readline reflection sdl session spell spl sse sse2 ssl startup-notification svg sysfs tcpd tiff truetype unicode usb vorbis x264 xcb xml xorg xulrunner xv xvid zlib" ALSA_CARDS="hda_intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
|
Code: |
o .libs/timeloop-closure timeloop-closure.o ../glib/.libs/libglib-2.0.so ../gobject/.libs/libgobject-2.0.so /var/tmp/portage/dev-libs/glib-2.22.4/work/glib-2.22.4/glib/.libs/libglib-2.0.so
libtool: link: x86_64-pc-linux-gnu-gcc -shared .libs/libmoduletestplugin_b.o -Wl,-rpath -Wl,/var/tmp/portage/dev-libs/glib-2.22.4/work/glib-2.22.4/gmodule/.libs -Wl,-rpath -Wl,/var/tmp/portage/dev-libs/glib-2.22.4/work/glib-2.22.4/glib/.libs -L/var/tmp/portage/dev-libs/glib-2.22.4/work/glib-2.22.4/glib/.libs ../gmodule/.libs/libgmodule-2.0.so /usr/bin /usr/sbin /bin /sbin -ldl /var/tmp/portage/dev-libs/glib-2.22.4/work/glib-2.22.4/glib/.libs/libglib-2.0.so ../glib/.libs/libglib-2.0.so -mtune=native -march=native -mcx16 -msahf -Wl,--export-dynamic -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,--hash-style=gnu -Wl,-soname -Wl,libmoduletestplugin_b.so -o .libs/libmoduletestplugin_b.so
/usr/bin: file not recognized: Is a directory
collect2: ld returned 1 exit status
make[3]: *** [libmoduletestplugin_b.la] Error 1
make[3]: *** Waiting for unfinished jobs....
libtool: link: x86_64-pc-linux-gnu-gcc -shared .libs/libmoduletestplugin_a.o -Wl,-rpath -Wl,/var/tmp/portage/dev-libs/glib-2.22.4/work/glib-2.22.4/gmodule/.libs -Wl,-rpath -Wl,/var/tmp/portage/dev-libs/glib-2.22.4/work/glib-2.22.4/glib/.libs -L/var/tmp/portage/dev-libs/glib-2.22.4/work/glib-2.22.4/glib/.libs ../gmodule/.libs/libgmodule-2.0.so /usr/bin /usr/sbin /bin /sbin -ldl /var/tmp/portage/dev-libs/glib-2.22.4/work/glib-2.22.4/glib/.libs/libglib-2.0.so ../glib/.libs/libglib-2.0.so -mtune=native -march=native -mcx16 -msahf -Wl,--export-dynamic -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,--hash-style=gnu -Wl,-soname -Wl,libmoduletestplugin_a.so -o .libs/libmoduletestplugin_a.so
libtool: link: x86_64-pc-linux-gnu-gcc -g -mtune=native -march=native -O2 -mcx16 -msahf -fomit-frame-pointer -pipe -Wall -Wl,-O1 -Wl,--sort-common -s -Wl,--as-needed -Wl,--hash-style=gnu -o .libs/errorcheck-mutex-test errorcheck-mutex-test.o -pthread ../glib/.libs/libglib-2.0.so ../gthread/.libs/libgthread-2.0.so -lpthread /var/tmp/portage/dev-libs/glib-2.22.4/work/glib-2.22.4/glib/.libs/libglib-2.0.so -lrt -pthread
/usr/bin: file not recognized: Is a directory
collect2: ld returned 1 exit status
make[3]: *** [libmoduletestplugin_a.la] Error 1
mv -f .deps/testgdate.Tpo .deps/testgdate.Po
mv -f .deps/testglib.Tpo .deps/testglib.Po
make[3]: Leaving directory `/var/tmp/portage/dev-libs/glib-2.22.4/work/glib-2.22.4/tests'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/dev-libs/glib-2.22.4/work/glib-2.22.4/tests'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-libs/glib-2.22.4/work/glib-2.22.4'
make: *** [all] Error 2
* ERROR: dev-libs/glib-2.22.4 failed:
* emake failed
*
* Call stack:
* ebuild.sh, line 54: Called src_compile
* environment, line 3050: Called _eapi2_src_compile
* ebuild.sh, line 646: Called die
* The specific snippet of code:
* emake || die "emake failed"
*
* If you need support, post the output of 'emerge --info =dev-libs/glib-2.22.4',
* the complete build log and the output of 'emerge -pqv =dev-libs/glib-2.22.4'.
* The complete build log is located at '/var/logs/dev-libs:glib-2.22.4:20100402-154220.log'.
* The ebuild environment file is located at '/var/tmp/portage/dev-libs/glib-2.22.4/temp/environment'.
* S: '/var/tmp/portage/dev-libs/glib-2.22.4/work/glib-2.22.4'
|
I have the same problem w/glib-2.22.5 too.
I have tried commenting out the LDFLAGS line and changing MAKEOPTS to -j1 in make.conf, same error occurs.
Last edited by rjw8703 on Sat Apr 03, 2010 1:14 am; edited 1 time in total |
|
Back to top |
|
|
Raistlin Majere n00b
Joined: 04 Feb 2010 Posts: 61
|
Posted: Fri Apr 02, 2010 9:46 pm Post subject: |
|
|
Did you try emerging lafilefixer and running "lafilefixer --justfixit" |
|
Back to top |
|
|
rjw8703 Apprentice
Joined: 14 Aug 2004 Posts: 246 Location: Auburn, Al
|
Posted: Fri Apr 02, 2010 10:03 pm Post subject: |
|
|
yes, I did as well as ran revdep-rebuld. |
|
Back to top |
|
|
Mike Hunt Watchman
Joined: 19 Jul 2009 Posts: 5287
|
Posted: Fri Apr 02, 2010 10:24 pm Post subject: |
|
|
Please post the output of :
|
|
Back to top |
|
|
cach0rr0 Bodhisattva
Joined: 13 Nov 2008 Posts: 4123 Location: Houston, Republic of Texas
|
Posted: Fri Apr 02, 2010 10:26 pm Post subject: |
|
|
ive hit this on older systemrescuecd builds before
as soon as you do your chroot, type the following:
literally, with nothing after the =
that should sort it. _________________ Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash |
|
Back to top |
|
|
Mike Hunt Watchman
Joined: 19 Jul 2009 Posts: 5287
|
Posted: Fri Apr 02, 2010 10:29 pm Post subject: |
|
|
...or you can run: Code: | PATH=/sbin:/bin:/usr/sbin:/usr/bin |
go ahead and post echo $PATH anyway - just out of curiosity. |
|
Back to top |
|
|
rjw8703 Apprentice
Joined: 14 Aug 2004 Posts: 246 Location: Auburn, Al
|
Posted: Fri Apr 02, 2010 10:59 pm Post subject: |
|
|
Thanks All!!! export path= worked.
Code: |
echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.4.3
|
I'm using the most recent version of system rescue. 1.5.1. How did you all know about this fix? I searched for hours and never found it. |
|
Back to top |
|
|
cach0rr0 Bodhisattva
Joined: 13 Nov 2008 Posts: 4123 Location: Houston, Republic of Texas
|
Posted: Fri Apr 02, 2010 11:54 pm Post subject: |
|
|
rjw8703 wrote: | How did you all know about this fix? I searched for hours and never found it. |
It's mainly a question of knowing what in that error output is most relevant
in this case
Quote: |
usr/bin: file not recognized: Is a directory
|
put that in quotes on google, should give you this as first link
http://www.sysresccd.org/forums/viewtopic.php?f=25&t=2724
a bit different from my suggestion, i remember struggling as you did way back then - eventually you get to where you can better pluck out which errors are relevant when a build fails. No magic involved, you just sorta absorb it. _________________ Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash |
|
Back to top |
|
|
rjw8703 Apprentice
Joined: 14 Aug 2004 Posts: 246 Location: Auburn, Al
|
Posted: Sat Apr 03, 2010 1:17 am Post subject: |
|
|
Thanks for the reply. I've been with gentoo since 2004 and still learn nuggets of new information everyday. I wish I could reach the end of this road sometime soon. |
|
Back to top |
|
|
Mike Hunt Watchman
Joined: 19 Jul 2009 Posts: 5287
|
Posted: Sat Apr 03, 2010 10:14 am Post subject: |
|
|
The really great part about it is that the road has no end. Going down it is the fun part. |
|
Back to top |
|
|
boune n00b
Joined: 18 Apr 2010 Posts: 1
|
Posted: Sun Apr 18, 2010 7:01 pm Post subject: Same problem seems to need other solution... |
|
|
Hi, I am having the same problem with glib-2.22.4.
The emerge fails even whith
Code: | CFLAGS="-march=native -pipe -O1" CXXFLAGS="{$CFLAGS}" emerge glib |
or
Code: | PATH="/sbin:/bin:/usr/sbin:/usr/bin" emerge glib |
I tried
Code: | lafilefixe --justfixit |
Code: | Portage 2.1.8.3 (default/linux/x86/10.0, gcc-4.3.4, glibc-2.10.1-r1, 2.6.32-gentoo-r7 i686)
=================================================================
System Settings
=================================================================
System uname: Linux-2.6.32-gentoo-r7-i686-Intel-R-_Pentium-R-_4_CPU_3.20GHz-with-gentoo-1.12.13
Timestamp of tree: Sun, 18 Apr 2010 11:15:01 +0000
app-shells/bash: 4.0_p37
dev-lang/python: 2.6.4-r1
sys-apps/baselayout: 1.12.13
sys-apps/sandbox: 1.6-r2
sys-devel/autoconf: 2.63-r1
sys-devel/automake: 1.11.1
sys-devel/binutils: 2.18-r3
sys-devel/gcc: 4.3.4
sys-devel/gcc-config: 1.4.1
sys-devel/libtool: 2.2.6b
virtual/os-headers: 2.6.30-r1
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://gentoo.inode.at/source/ ftp://mirrors.linuxant.fr/distfiles.gentoo.org/ ftp://de-mirror.org/distro/gentoo/ ftp://ftp6.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp6.uni-muenster.de/pub/linux/distributions/gentoo ftp://gentoo.inf.elte.hu/ ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://gentoo.tiscali.nl/pub/mirror/gentoo/ "
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X acl alsa berkdb bzip2 cli cracklib crypt cups cxx dri fortran gdbm gpm gtk hal iconv ipv6 jpeg jpeg2k modules mudflap ncurses nls nptl nptlonly openmp pam pcre perl png pppd python readline reflection session spl ssl svg sysfs tcpd tiff unicode x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY |
Code: | mv -f .deps/strfuncs.Tpo .deps/strfuncs.Po
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -g -I../.. -I../../glib -DG_DISABLE_CAST_CHECKS -DG_DISABLE_SINGLE_INCLUDES -pthread -O2 -march=native -pipe -Wall -MT markup-subparser.o -MD -MP -MF .deps/markup-subparser.Tpo -c -o markup-subparser.o markup-subparser.c
mv -f .deps/string.Tpo .deps/string.Po
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -g -I../.. -I../../glib -DG_DISABLE_CAST_CHECKS -DG_DISABLE_SINGLE_INCLUDES -pthread -O2 -march=native -pipe -Wall -MT array-test.o -MD -MP -MF .deps/array-test.Tpo -c -o array-test.o array-test.c
mv -f .deps/markup-subparser.Tpo .deps/markup-subparser.Po
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -g -I../.. -I../../glib -DG_DISABLE_CAST_CHECKS -DG_DISABLE_SINGLE_INCLUDES -pthread -O2 -march=native -pipe -Wall -MT hostutils.o -MD -MP -MF .deps/hostutils.Tpo -c -o hostutils.o hostutils.c
mv -f .deps/array-test.Tpo .deps/array-test.Po
/bin/sh ../../libtool --tag=CC --mode=link i686-pc-linux-gnu-gcc -O2 -march=native -pipe -Wall -Wl,-O1 -o testing testing.o ../../glib/libglib-2.0.la
mv -f .deps/hostutils.Tpo .deps/hostutils.Po
/bin/sh ../../libtool --tag=CC --mode=link i686-pc-linux-gnu-gcc -O2 -march=native -pipe -Wall -Wl,-O1 -o option-context option-context.o ../../glib/libglib-2.0.la
make[4]: *** [option-context] Segmentation fault
make[4]: *** Waiting for unfinished jobs....
libtool: link: i686-pc-linux-gnu-gcc -O2 -march=native -pipe -Wall -Wl,-O1 -o .libs/testing testing.o ../../glib/.libs/libglib-2.0.so
make[4]: Leaving directory `/var/tmp/portage/dev-libs/glib-2.22.4/work/glib-2.22.4/glib/tests'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/dev-libs/glib-2.22.4/work/glib-2.22.4/glib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/dev-libs/glib-2.22.4/work/glib-2.22.4/glib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-libs/glib-2.22.4/work/glib-2.22.4'
make: *** [all] Error 2
[31;01m*[0m ERROR: dev-libs/glib-2.22.4 failed:
[31;01m*[0m emake failed
[31;01m*[0m
[31;01m*[0m Call stack:
[31;01m*[0m ebuild.sh, line 54: Called src_compile
[31;01m*[0m environment, line 2948: Called _eapi2_src_compile
[31;01m*[0m ebuild.sh, line 646: Called die
[31;01m*[0m The specific snippet of code:
[31;01m*[0m emake || die "emake failed"
[31;01m*[0m
[31;01m*[0m If you need support, post the output of 'emerge --info =dev-libs/glib-2.22.4',
[31;01m*[0m the complete build log and the output of 'emerge -pqv =dev-libs/glib-2.22.4'.
[31;01m*[0m The complete build log is located at '/var/tmp/portage/dev-libs/glib-2.22.4/temp/build.log'.
[31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/dev-libs/glib-2.22.4/temp/environment'.
[31;01m*[0m S: '/var/tmp/portage/dev-libs/glib-2.22.4/work/glib-2.22.4' |
I noticed the "Segmentation fault" but could'nt find anything helpfull when googling that.
It is a fresh install I did this morning, glib-2.22.4 is asked when I try to emerge xorg-server.
If anyone has a suggestion...
Thanks. |
|
Back to top |
|
|
cach0rr0 Bodhisattva
Joined: 13 Nov 2008 Posts: 4123 Location: Houston, Republic of Texas
|
Posted: Sun Apr 18, 2010 10:31 pm Post subject: |
|
|
boune
your issue is a completely different one, albeit with the same package. would suggest you make a new thread as what's been posted here will not be relevant to you, and people dont look at threads marked as [solved] too often. _________________ Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash |
|
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
|
|