View previous topic :: View next topic |
Author |
Message |
daniel.santos n00b
Joined: 05 Jun 2007 Posts: 49
|
Posted: Sat Aug 03, 2013 1:42 pm Post subject: x11-libs/gtkglext-1.2.0-r1 fails with stupid bash error |
|
|
Code: | ../libtool: eval: line 4397: syntax error near unexpected token `|'
../libtool: eval: line 4397: `/usr/bin/x86_64-pc-linux-gnu-nm -B .libs/gdkglversion.o .libs/gdkglinit.o .libs/gdkglquery.o .libs/gdkglconfig.o .libs/gdkglcontext.o .libs/gdkgldrawable.o .libs/gdkglpixmap.o .libs/gdkglwindow.o .libs/gdkglshapes.o .libs/gdkglglext.o .libs/gdkglenumtypes.o x11/.libs/libgdkglext-x11.a | | /bin/sed 's/.* //' | sort | uniq > .libs/libgdkglext-x11-1.0.exp' |
I got it to build by:
Code: | cp -p $(which libtool) /tmp/portage/x11-libs/gtkglext-1.2.0-r1/work/gtkglext-1.2.0/
ebuild /usr/portage/x11-libs/gtkglext/gtkglext-1.2.0-r1.ebuild compile package merge |
Of course, this is hacky This would appear to be the offending line:
Code: | export_symbols_cmds="\$NM \$libobjs \$convenience | \$global_symbol_pipe | \$SED 's/.* //' | sort | uniq > \$export_symbols" |
being that above, global_symbol_pipe is defined thusly:
Code: | # Take the output of nm and produce a listing of raw symbols and C names.
global_symbol_pipe="" |
Don't ask me why.
EDIT: Now that I think about it, I had this error with a few other packages when doing an emerge -ev world |
|
Back to top |
|
|
NTICompass Apprentice
Joined: 11 Jun 2008 Posts: 171 Location: /home/nticompass/
|
Posted: Fri Sep 19, 2014 7:58 pm Post subject: |
|
|
I was trying to compile x11-libs/gtkglext-1.2.0-r2 and I got the same error.
If it helps, here's my emerge --info
Code: |
Portage 2.2.8-r1 (default/linux/amd64/13.0/desktop/gnome, gcc-4.7.3, glibc-2.19-r1, 3.14.14-gentoo x86_64)
=================================================================
System uname: Linux-3.14.14-gentoo-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9300_@_2.50GHz-with-gentoo-2.2
KiB Mem: 8194484 total, 2499820 free
KiB Swap: 0 total, 0 free
Timestamp of tree: Thu, 18 Sep 2014 12:30:01 +0000
ld GNU gold (Gentoo 2.23.2 p1.0 2.23.2) 1.11
app-shells/bash: 4.2_p45
dev-java/java-config: 2.2.0
dev-lang/python: 2.7.7, 3.3.5-r1
dev-util/cmake: 2.8.12.2-r1
dev-util/pkgconfig: 0.28-r1
sys-apps/baselayout: 2.2
sys-apps/openrc: 0.12.4
sys-apps/sandbox: 2.6-r1
sys-devel/autoconf: 2.13, 2.69
sys-devel/automake: 1.6.3-r1, 1.9.6-r3, 1.10.3, 1.11.6, 1.12.6, 1.13.4
sys-devel/binutils: 2.23.2
sys-devel/gcc: 4.4.7, 4.5.4, 4.6.4, 4.7.3-r1
sys-devel/gcc-config: 1.7.3
sys-devel/libtool: 2.4.2-r1
sys-devel/make: 3.82-r4
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc: 2.19-r1
Repositories: gentoo x-portage mozilla multimedia nbigaouette ardunio sunrise vmware daks aidstu java
Installed sets: @system
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -msse4.1 -O2 -pipe -fno-strict-aliasing -flto=5 -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -ftree-vectorize"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=core2 -msse4.1 -O2 -pipe -fno-strict-aliasing -flto=5 -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -ftree-vectorize"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirrors.rit.edu/gentoo/ http://gentoo.llarian.net/ http://gentoo.mirrors.tds.net/gentoo/ "
LDFLAGS="-Wl,-O1 -Wl,--as-needed -fuse-linker-plugin"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /var/lib/layman/mozilla /var/lib/layman/multimedia /var/lib/layman/nbigaouette /var/lib/layman/arduino /var/lib/layman/sunrise /var/lib/layman/vmware /var/lib/layman/daks /var/lib/layman/aidstu /var/lib/layman/java"
USE="X a52 aac acl acpi aiglx alsa amd64 aoss asf bash-completion berkdb bittorrent branding bzip2 cairo cdda cdparanoia cdr cjk cleartype cli colord consolekit cracklib crypt cups curl cxx dbus dri dts dvb dvd dvdr eds emboss encode evo exif faac faad fam ffmpeg finger flac fontconfig fortran ftp g3dvl gcj gconf gd gdbm gif glamor gmp gnome-keyring gnome-online-accounts gnutls gopher gpm graphite gstreamer gtk iconv icu imagemagick introspection ipv6 java java6 javascript jpeg jpeg2k kerberos lame latex lcms ldap libffi libnotify libsecret libv4l libv4l2 lirc lm_sensors lto lzma lzo mad matroska midi mikmod mmx mmx2 mmxext mng modules mp3 mp4 mpeg multilib nautilus ncurses networkmanager new-login nls nptl nsplugin odbc ogg openal opencl opengl openmp pam pango pcre pdf php png policykit ppds pulseaudio python qt3support readline real samba schroedinger sdl session skins socialweb spell sqlite sse sse2 sse3 ssl ssse3 startup-notification svg symlink system-sqlite tcl tcpd theora threads tiff tk truetype udev udisks unicode upower usb v4l v4l2 vaapi vim-syntax vorbis webkit wmf wxwidgets wxwindows x264 xcb xcomposite xine xinerama xml xorg xscreensaver xulrunner xv xvid xvmc zlib zsh-completion" ABI_X86="64 32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US" LIRC_DEVICES="devinput" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3 php5-4 php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="fglrx" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
USE_PYTHON="2.7 3.3"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC
|
|
|
Back to top |
|
|
VoidMage Watchman
Joined: 14 Oct 2006 Posts: 6196
|
Posted: Sat Sep 20, 2014 8:12 am Post subject: |
|
|
First of all, some nice CFLAGS you've got there.
Second, this tends to be one of those cases of 'same error, different reasons'.
Seeing your full build log (and config.log) would help, quick check though: is that SytemRescueCD ? |
|
Back to top |
|
|
mv Watchman
Joined: 20 Apr 2005 Posts: 6747
|
Posted: Sat Sep 20, 2014 8:49 am Post subject: |
|
|
Typical errors with -flto |
|
Back to top |
|
|
NTICompass Apprentice
Joined: 11 Jun 2008 Posts: 171 Location: /home/nticompass/
|
Posted: Sat Sep 20, 2014 2:07 pm Post subject: |
|
|
VoidMage wrote: | First of all, some nice CFLAGS you've got there.
Second, this tends to be one of those cases of 'same error, different reasons'.
Seeing your full build log (and config.log) would help, quick check though: is that SytemRescueCD ? |
I felt like messing with LTO/Graphite to see what would happen.
mv wrote: | Typical errors with -flto |
Turning off LTO should really be my 1st test here. |
|
Back to top |
|
|
NTICompass Apprentice
Joined: 11 Jun 2008 Posts: 171 Location: /home/nticompass/
|
Posted: Thu Sep 25, 2014 4:25 pm Post subject: |
|
|
mv wrote: | Typical errors with -flto |
That was it! Thank you. Disabling LTO let x11-libs/gtkglext compile correctly |
|
Back to top |
|
|
daniel.santos n00b
Joined: 05 Jun 2007 Posts: 49
|
Posted: Tue Feb 03, 2015 10:36 pm Post subject: |
|
|
Thanks for this (sorry for bumping old thread). I've seen this error a number of times and goddamit! LTO!? Really? What a stupid error. I can see that nm (but only with -m32) fails during configure, I wish I got something a little easier to work with! Maybe a weakness in libtool I guess. |
|
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
|
|