Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 236859 - dev-lang/lua-5.1.3-r4 fails to build [gcc 4.3?]
Summary: dev-lang/lua-5.1.3-r4 fails to build [gcc 4.3?]
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Matti Bickel (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-06 13:34 UTC by Alessandro Guido
Modified: 2011-05-28 11:49 UTC (History)
0 users

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


Attachments
lua-5.1.3-r4.ebuild patch (patch,807 bytes, patch)
2008-09-06 13:38 UTC, Alessandro Guido
Details | Diff
build log (build.log,4.65 KB, text/plain)
2008-09-08 23:02 UTC, Alessandro Guido
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alessandro Guido 2008-09-06 13:34:04 UTC
Gentoo patches to "libtoolize" lua cause bauild failure on my system.

The (very cryptic) error message I get is "gcc: lua.o: No such file or directory".

  71.
      libtool --quiet --tag=CC --mode=link gcc -Wl,-E -o lua lua.o  -llua
  72.
      gcc: lua.o: No such file or directory
  73.
      make: *** [lua] Error 1
  74.
       *
  75.
       * ERROR: dev-lang/lua-5.1.3-r4 failed.
  76.
       * Call stack:
  77.
       *               ebuild.sh, line   49:  Called src_compile
  78.
       *             environment, line 2350:  Called die
  79.
       * The specific snippet of code:
  80.
       *       emake CFLAGS="${mycflags} ${CFLAGS}" RPATH="/usr/$(get_libdir)/" LUA_LIBS="${mylibs}" LIB_LIBS="${liblibs}" V=${PV} gentoo_all || die "emake failed";
  81.
       *  The die message:
  82.
       *   emake failed
  83.
       *
  84.
       * If you need support, post the topmost build error, and the call stack if relevant.
  85.
       * A complete build log is located at '/var/tmp/portage/dev-lang/lua-5.1.3-r4/temp/build.log'.
  86.
       * The ebuild environment file is located at '/var/tmp/portage/dev-lang/lua-5.1.3-r4/temp/environment'.
  87.
       *


(Note that I've tried to compile it with empty CFLAGS/LDFLAGS/WHATEVERFLAGS  and I get the same error)



Reproducible: Always




Portage 2.2_rc8 (default/linux/x86/2008.0/desktop, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.27-rc5-00283-g70bb089 i686)
=================================================================
System uname: Linux-2.6.27-rc5-00283-g70bb089-i686-Intel-R-_Pentium-R-_M_processor_1.86GHz-with-glibc2.0
Timestamp of tree: Sat, 06 Sep 2008 09:04:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.5.2-r7
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.62-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.4
virtual/os-headers:  2.6.26
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-pipe -O2 -march=pentium-m -fomit-frame-pointer -mno-cld"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/env /usr/share/config /usr/shutdown"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-pipe -O2 -march=pentium-m -fomit-frame-pointer -mno-cld -fvisibility-inlines-hidden"
DISTDIR="/var/portage/distfiles"
EMERGE_DEFAULT_OPTS="--nospinner --with-bdeps=y"
FEATURES="distlocks nodoc noinfo parallel-fetch preserve-libs sfperms strict tmpfs unmerge-orphans userfetch"
FFLAGS="-pipe -O2 -march=pentium-m -fomit-frame-pointer -mno-cld"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="it_IT.UTF-8"
LDFLAGS="-Wl,-O1,--hash-style=gnu,--as-needed"
LINGUAS="it en"
MAKEOPTS="--quiet -j2"
PKGDIR="/var/portage/packages"
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="/var/portage"
PORTDIR_OVERLAY="/var/portage/local/layman/kde-testing /var/portage/local/my-overlay /var/portage/local/kde-svn"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acpi alsa bluetooth bzip2 cdr cli cups dbus dvd dvdr dvdread emboss evo fam firefox fortran gif hal iconv isdnlog jpeg kde kdehiddenvisibility libnotify mad midi mikmod mmx mp3 mpeg mudflap nls nptl nptlonly ogg opengl pcre pdf png pppd quicktime reflection session spell spl sse sse2 ssl startup-notification svg sysfs threads unicode usb vorbis win32codecs x86 xinerama xml xorg xscreensaver xv 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" APACHE2_MPMS="worker" CAMERAS="ptp2" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it en" USERLAND="GNU" VIDEO_CARDS="fbdev nv nvidia"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Alessandro Guido 2008-09-06 13:38:13 UTC
Created attachment 164723 [details, diff]
lua-5.1.3-r4.ebuild patch

This is the hacked patch I used to make it compile on my system.
Comment 2 Eric Thibodeau 2008-09-06 13:46:31 UTC
Works for me (without the patch).

paludis 0.26.2
Paludis build information:
    Compiler:
        CXX:                   x86_64-pc-linux-gnu-g++ 4.2.3 (Gentoo 4.2.3 p1.0)
        CXXFLAGS:              -march=native -O2 -pipe -fomit-frame-pointer -mfpmath=sse
        LDFLAGS:
        DATE:                  2008-07-16T09:54:54-0400

    Libraries:
        C++ Library:           GNU libstdc++ 20080201

    Reduced Privs:
        reduced_uid:           101
        reduced_uid->name:     paludisbuild
        reduced_uid->dir:      /var/tmp/paludis
        reduced_gid:           440
        reduced_gid->name:     paludisbuild

    Paths:
        DATADIR:               /usr/share
        LIBDIR:                /usr/lib64
        LIBEXECDIR:            /usr/libexec
        SYSCONFDIR:            /etc
        PYTHONINSTALLDIR:      /usr/lib64/python2.4/site-packages
        RUBYINSTALLDIR:        /usr/lib64/ruby/site_ruby/1.8/x86_64-linux

Repository virtuals:
    format:                    virtuals

Repository installed-virtuals:
    format:                    installed_virtuals
    root:                      /

Repository gentoo:
    format:                    ebuild
    location:                  /usr/portage
    append_repository_name_to_write_cache: true
    binary_destination:        false
    binary_keywords:
    binary_uri_prefix:
    builddir:                  /var/tmp/paludis
    cache:                     /usr/portage/metadata/cache
    distdir:                   /usr/portage/distfiles
    eapi_when_unknown:         0
    eapi_when_unspecified:     0
    eclassdirs:                /usr/portage/eclass
    ignore_deprecated_profiles: false
    layout:                    traditional
    names_cache:               /usr/portage/.cache/names
    newsdir:                   /usr/portage/metadata/news
    profile_eapi:              0
    profiles:                  /usr/portage/profiles/default-linux/amd64/2007.0
    securitydir:               /usr/portage/metadata/glsa
    setsdir:                   /usr/portage/sets
    sync:                      rsync://rsync.gentoo.org/gentoo-portage
    sync_options:
    use_manifest:              use
    write_cache:               /var/cache/paludis/metadata

    Package information:
        app-admin/eselect-compiler: (none)
        app-shells/bash:       3.2_p33
        dev-java/java-config:  1.3.7 2.1.6
        dev-lang/python:       2.4.4-r13 2.5.2-r6
        dev-python/pycrypto:   2.0.1-r6
        dev-util/ccache:       2.4-r7
        dev-util/confcache:    (none)
        sys-apps/baselayout:   1.12.11.1
        sys-apps/openrc:       (none)
        sys-apps/sandbox:      1.2.18.1-r2
        sys-devel/autoconf:    2.13 2.61-r2
        sys-devel/automake:    1.10.1 1.5 1.7.9-r1 1.8.5-r3 1.9.6-r2
        sys-devel/binutils:    2.18-r3
        sys-devel/gcc-config:  1.4.0-r4
        sys-devel/libtool:     1.5.26
        virtual/os-headers:    2.6.23-r3 (for sys-kernel/linux-headers::installed)

Repository installed:
    format:                    vdb
    location:                  /var/db/pkg
    builddir:                  /var/tmp/paludis
    names_cache:               /var/db/pkg/.cache/names
    provides_cache:            /var/db/pkg/.cache/provides
    root:                      /
Comment 3 Wormo (RETIRED) gentoo-dev 2008-09-06 18:05:52 UTC
Alessandro, please attach a full build log. This could be another instance where fixes are required to work with gcc 4.3, which would explain why everything worked fine for Eric.
Comment 4 Alessandro Guido 2008-09-08 23:02:06 UTC
Created attachment 164966 [details]
build log

I don't think it is a problem with gcc-4.3 since:

$ tar xzf lua-5.1.3.tar.gz
$ cd lua-5.1.3
$ make linux

works just fine
Comment 5 Matti Bickel (RETIRED) gentoo-dev 2008-09-09 00:59:12 UTC
I will review the make patches, but from you're build log it seems lua.o is generated right above the errornous line (libtool --quiet --tag=CC --mode=compile gcc -c  -DLUA_USE_LINUX  -o lua.o lua.c should produce lua.o, which is missing)

Maybe a race condition? I'll give it a spin later today.. i'm just a tad sleepy, and you don't want me to debug your problem while i'm on autopilot...
Comment 6 Matti Bickel (RETIRED) gentoo-dev 2008-09-13 19:23:16 UTC
So i have upgraded to gcc-4.3.1-r1 and rebuilt lua-5.1.3-r4.
It installed flawlessly. So i'm sorry i can't reproduce your bug. I'm trying to study what may have caused this...

Can anyone else confirm this bug?
Comment 7 Stéphane Gimenez 2008-10-01 10:33:04 UTC
hi, same problem here with both lua-5.1.3-r4 and lua-5.1.4.
Comment 8 Holger Hoffstätte 2008-10-14 01:27:18 UTC
(In reply to comment #6)
> Can anyone else confirm this bug?

Both 5.1.3 and 5.1.4 build for me with gcc 4.3.2 without any problems.
Comment 9 Matti Bickel (RETIRED) gentoo-dev 2009-03-01 11:09:46 UTC
Sorry, i'm unable reproduce still and unless there are more reports, i will close this bug WORKSFORME.
Comment 10 Alessandro Guido 2011-05-28 11:49:44 UTC
It's caused by building libtool with EXTRA_ECONF="--disable-static", see

https://bugs.gentoo.org/show_bug.cgi?id=336167
http://blog.flameeyes.eu/2011/05/27/parameters-to-configure-can-deceive