Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 274277 - [java-overlay] media-sound/tuxguitar-1.1-r1 build trouble
Summary: [java-overlay] media-sound/tuxguitar-1.1-r1 build trouble
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 144967
  Show dependency tree
 
Reported: 2009-06-15 20:01 UTC by cmuelle8
Modified: 2015-10-23 19:04 UTC (History)
0 users

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


Attachments
LDPATH is defined in plugin compile phase when it should not - fix it (tuxguitar-1.1-r1.ebuild.patch,366 bytes, patch)
2009-06-15 20:05 UTC, cmuelle8
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description cmuelle8 2009-06-15 20:01:57 UTC
the plugins use statements of the form

LDPATH?=-L/usr/lib

due to the use of toolchain-funcs in the ebuild LDPATH is already defined when calling emake, but without the leading -L.  this breaks gcc command line.  LDPATH get's inserted not as an option to gcc, but as a plain path variable.

solution: undefine LDPATH before emake is called, as /usr/lib is the only needed LDPATH anyway, let pkg's Makefile do the work.
Comment 1 cmuelle8 2009-06-15 20:05:14 UTC
Created attachment 194825 [details, diff]
LDPATH is defined in plugin compile phase when it should not - fix it

greetings,
cmuelle8
Comment 2 Serkan Kaba (RETIRED) gentoo-dev 2009-06-16 18:43:32 UTC
I can't reproduce the problem, can I get your build.log and emerge --info please?
Comment 3 cmuelle8 2009-06-16 19:57:59 UTC
paludis 0.36.1
Paludis build information:
    Compiler:
        CXX:                   x86_64-pc-linux-gnu-g++ 4.3.2
        CXXFLAGS:               -march=athlon64 -O2 -pipe
        LDFLAGS:               -Wl,-O1
        DATE:                  2009-05-17T14:37:40+0200

    Libraries:
        C++ Library:           GNU libstdc++ 20080827

    Reduced Privs:
        reduced_uid:           110
        reduced_uid->name:     paludisbuild
        reduced_uid->dir:      /var/tmp/paludis
        reduced_gid:           1007
        reduced_gid->name:     paludisbuild

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

Environment:
    Format:                    paludis
    Config dir:                /etc/paludis
    World file:                /var/lib/portage/world

Repository installed-virtuals:
    format:                    installed_virtuals
    root:                      /

Repository virtuals:
    format:                    virtuals

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

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:                      /

Repository java:
    format:                    ebuild
    location:                  /var/paludis/repositories/java
    append_repository_name_to_write_cache: true
    binary_destination:        false
    binary_keywords:           
    binary_uri_prefix:         
    builddir:                  /var/tmp/paludis
    cache:                     /var/empty
    distdir:                   /var/paludis/distfiles
    eapi_when_unknown:         0
    eapi_when_unspecified:     0
    eclassdirs:                /var/paludis/repositories/gentoo/eclass /var/paludis/repositories/java/eclass
    ignore_deprecated_profiles: false
    layout:                    traditional
    master_repository:         gentoo
    names_cache:               /var/paludis/repositories/java/.cache/names
    newsdir:                   /var/paludis/repositories/java/metadata/news
    profile_eapi_when_unspecified: 0
    profiles:                  /var/paludis/repositories/gentoo/profiles/default/linux/amd64/2008.0
    securitydir:               /var/paludis/repositories/java/metadata/glsa
    setsdir:                   /var/paludis/repositories/java/sets
    sync:                      svn+https://overlays.gentoo.org/svn/proj/java/java-overlay
    sync_options:              
    use_manifest:              use
    write_cache:               /var/paludis/repositories/java/.cache


Package media-sound/tuxguitar-1.1-r1:0::java:

        >>> Running ebuild phase killold as paludisbuild:paludisbuild...
        >>> Starting builtin_killold
        >>> Done builtin_killold
        >>> Completed ebuild phase killold
        >>> Running ebuild phases initmisc infovars as paludisbuild:paludisbuild...
        >>> Starting builtin_initmisc
        >>> Done builtin_initmisc
        >>> Starting builtin_infovars
        ACCEPT_KEYWORDS=amd64
        CBUILD=x86_64-pc-linux-gnu
        CFLAGS=-march=athlon64 -O2 -pipe
        CHOST=x86_64-pc-linux-gnu
        CONFIG_PROTECT= 
        CONFIG_PROTECT_MASK= 
        CPPFLAGS=
        CTARGET=
        CXXFLAGS=-march=athlon64 -O2 -pipe
        DISTDIR=/var/paludis/distfiles
        FEATURES=strict sfperms
        FFLAGS=
        GENTOO_MIRRORS=
        INSTALL_MASK=
        LANG=
        LC_ALL=C
        LDFLAGS=-Wl,-O1
        LINGUAS=de en
        MAKEOPTS=-j1
        PORTAGE_COMPRESS=
        PORTAGE_COMPRESS_FLAGS=
        PORTAGE_CONFIGROOT=
        PORTAGE_RSYNC_EXTRA_OPTS=
        PORTAGE_RSYNC_OPTS=
        PORTAGE_TMPDIR=/var/tmp/paludis
        PORTDIR=/var/paludis/repositories/gentoo
        PORTDIR_OVERLAY=
        SYNC=
        USE=alsa fluidsynth pdf amd64 alsa_cards_sblive alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mmap_emul alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol apache2_modules_actions apache2_modules_alias apache2_modules_auth_basic apache2_modules_authn_alias apache2_modules_authn_anon apache2_modules_authn_dbm apache2_modules_authn_default apache2_modules_authn_file apache2_modules_authz_dbm apache2_modules_authz_default apache2_modules_authz_groupfile apache2_modules_authz_host apache2_modules_authz_owner apache2_modules_authz_user apache2_modules_autoindex apache2_modules_cache apache2_modules_dav apache2_modules_dav_fs apache2_modules_dav_lock apache2_modules_deflate apache2_modules_dir apache2_modules_disk_cache apache2_modules_env apache2_modules_expires apache2_modules_ext_filter apache2_modules_file_cache apache2_modules_filter apache2_modules_headers apache2_modules_include apache2_modules_info apache2_modules_log_config apache2_modules_logio apache2_modules_mem_cache apache2_modules_mime apache2_modules_mime_magic apache2_modules_negotiation apache2_modules_rewrite apache2_modules_setenvif apache2_modules_speling apache2_modules_status apache2_modules_unique_id apache2_modules_userdir apache2_modules_usertrack apache2_modules_vhost_alias cameras_* crosscompile_opts_headers-only elibc_glibc input_devices_evdev input_devices_joystick input_devices_keyboard input_devices_mouse input_devices_ps2mouse kernel_linux lcd_devices_bayrad lcd_devices_cfontz lcd_devices_cfontz633 lcd_devices_glk lcd_devices_hd44780 lcd_devices_lb216 lcd_devices_lcdm001 lcd_devices_mtxorb lcd_devices_ncurses lcd_devices_text linguas_de linguas_en lirc_devices_serial userland_GNU video_cards_radeon video_cards_radeonhd video_cards_v4l video_cards_vesa amd64 
        >>> Done builtin_infovars
        >>> Completed ebuild phases initmisc infovars
        >>> Running ebuild phase tidyup as paludisbuild:paludisbuild...
        >>> Starting builtin_tidyup
        rm -fr /var/tmp/paludis/media-sound-tuxguitar-1.1-r1-info
        >>> Done builtin_tidyup
        >>> Completed ebuild phase tidyup
































paludis build output:
[...]

build:
     [echo] +--------------------------------------------------------------------+
     [echo] |          B U I L D I N G   T U X G U I T A R  -  A L S A           |
     [echo] +--------------------------------------------------------------------+
    [javac] Compiling 5 source files to /var/tmp/paludis/media-sound-tuxguitar-1.1-r1/work/tuxguitar-src-1.1/TuxGuitar-alsa/build
    [mkdir] Created dir: /var/tmp/paludis/media-sound-tuxguitar-1.1-r1/work/tuxguitar-src-1.1/TuxGuitar-alsa/build/META-INF/services
     [echo] +--------------------------------------------------------------------+
     [echo] |        P A C K A G I N G   T U X G U I T A R  -  A L S A           |
     [echo] +--------------------------------------------------------------------+
      [jar] Building jar: /var/tmp/paludis/media-sound-tuxguitar-1.1-r1/work/tuxguitar-src-1.1/TuxGuitar-alsa/tuxguitar-alsa.jar
   [delete] Deleting directory /var/tmp/paludis/media-sound-tuxguitar-1.1-r1/work/tuxguitar-src-1.1/TuxGuitar-alsa/build

all:

BUILD SUCCESSFUL
Total time: 1 second
make -j1
x86_64-pc-linux-gnu-gcc -march=athlon64 -O2 -pipe -I/opt/sun-jdk-1.6.0.14/include -I/opt/sun-jdk-1.6.0.14/include/linux -fPIC -c -o org_herac_tuxguitar_player_impl_midiport_alsa_MidiSystem.o org_herac_tuxguitar_player_impl_midiport_alsa_MidiSystem.c
x86_64-pc-linux-gnu-gcc -Wl,-O1 -shared -o libtuxguitar-alsa-jni.so org_herac_tuxguitar_player_impl_midiport_alsa_MidiSystem.o /usr/local/lib://usr/lib32/opengl/xorg-x11/lib://usr/lib64/opengl/xorg-x11/lib:/lib:/usr/lib:/lib64:/usr/lib64:/usr/local/lib64:/lib32:/usr/lib32:/usr/local/lib32:/usr/x86_64-pc-linux-gnu/lib:/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2:/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/32:/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2:/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/32:/usr/lib64/nspr:/usr/lib64/nss:/usr/lib64/seamonkey:/usr/kde/svn/lib:/usr/kde/svn/lib64:/usr/kde/svn/lib32:/usr/lib64/qca2:/usr/lib/qt4:/usr/lib64/qt4:/usr/lib32/qt4:/usr/kde/3.5/lib32:/usr/kde/3.5/lib64:/usr/kde/3.5/lib:/usr/qt/3/lib:/usr/qt/3/lib64:/usr/qt/3/lib32:/usr/lib64/postgresql-8.3/lib64:/usr/lib64/sidplay/builders:/usr/lib/sidplay/builders:/opt/xulrunner:/usr/games/lib:/usr/games/lib64:/usr/games/lib32:/opt/flash-libcompat:/usr/lib64/fltk-1.1:/usr/lib64/fltk:/usr/lib32/libstdc++-v3/:/usr/lib64/octave-3.0.3 -lasound
x86_64-pc-linux-gnu-gcc: /usr/local/lib://usr/lib32/opengl/xorg-x11/lib://usr/lib64/opengl/xorg-x11/lib:/lib:/usr/lib:/lib64:/usr/lib64:/usr/local/lib64:/lib32:/usr/lib32:/usr/local/lib32:/usr/x86_64-pc-linux-gnu/lib:/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2:/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/32:/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2:/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/32:/usr/lib64/nspr:/usr/lib64/nss:/usr/lib64/seamonkey:/usr/kde/svn/lib:/usr/kde/svn/lib64:/usr/kde/svn/lib32:/usr/lib64/qca2:/usr/lib/qt4:/usr/lib64/qt4:/usr/lib32/qt4:/usr/kde/3.5/lib32:/usr/kde/3.5/lib64:/usr/kde/3.5/lib:/usr/qt/3/lib:/usr/qt/3/lib64:/usr/qt/3/lib32:/usr/lib64/postgresql-8.3/lib64:/usr/lib64/sidplay/builders:/usr/lib/sidplay/builders:/opt/xulrunner:/usr/games/lib:/usr/games/lib64:/usr/games/lib32:/opt/flash-libcompat:/usr/lib64/fltk-1.1:/usr/lib64/fltk:/usr/lib32/libstdc++-v3/:/usr/lib64/octave-3.0.3: No such file or directory
make: *** [libtuxguitar-alsa-jni.so] Error 1
/usr/libexec/paludis/utils/emake: emake returned error 2

!!! ERROR in media-sound/tuxguitar-1.1-r1:
!!! In plugin_compile at line 5716
!!! emake failed

!!! Call stack:
!!!    * plugin_compile (/var/tmp/paludis/media-sound-tuxguitar-1.1-r1/temp/loadsaveenv:5716)
!!!    * src_compile (/var/tmp/paludis/media-sound-tuxguitar-1.1-r1/temp/loadsaveenv:6025)
!!!    * ebuild_f_compile (/usr/libexec/paludis/2/src_compile.bash:54)
!!!    * ebuild_main (/usr/libexec/paludis/ebuild.bash:482)
!!!    * main (/usr/libexec/paludis/ebuild.bash:498)

diefunc: making ebuild PID 8079 exit with error
die trap: exiting with error.

[...]

You can "clearly" see the -L missing from the gcc command line, where LDPATH is put (that's why gcc complains 'no such file or directory').  I wonder why you can't reproduce?  Maybe you use emerge, and emerge does not set LDPATH, or prepends -L to LDPATH ??


Greetings,
cmuelle8
Comment 4 cmuelle8 2009-06-16 20:02:04 UTC
btw, this should happen for every plugin that has a jni subdir..

could you please just apply the patch, even if it might not be necessary using emerge, it should not do harm either..

greetings,
cmuelle8
Comment 5 Xavier Vachon 2010-11-11 16:44:40 UTC
There hasn't been any activity for this in the past 17 months. What's up folks?
Comment 6 Patrice Clement gentoo-dev 2015-10-23 19:04:54 UTC
Please pull tuxguitar-1.2 from this overlay:

https://cgit.gentoo.org/dev/bircoph.git/tree/media-sound/tuxguitar