Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 337969 - sys-devel/llvm-2.7-r1 should depend on dev-libs/udis86[pic] not dev-libs/udis86 at least on AMD64 (libudis86.a(input.o): relocation R_X86_64_32S against `.text' can not be used when making a shared objec t; recompile with -fPIC)
Summary: sys-devel/llvm-2.7-r1 should depend on dev-libs/udis86[pic] not dev-libs/udis...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Bernard Cafarelli
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-18 18:06 UTC by Maciej Piechotka
Modified: 2010-09-20 15:12 UTC (History)
1 user (show)

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


Attachments
llvm - build log (1284832720-install-sys-devel_llvm-2.7-r1:0::gentoo.out,801.85 KB, text/plain)
2010-09-18 18:07 UTC, Maciej Piechotka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Maciej Piechotka 2010-09-18 18:06:54 UTC
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.1/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.1/../../../../lib64/libudis86.a(input.o): relocation R_X86_64_32S against `.text' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.1/../../../../lib64/libudis86.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[1]: Leaving directory `/var/tmp/paludis/sys-devel-llvm-2.7-r1/work/llvm-2.7/tools/llvm-shlib'
make[1]: *** [/var/tmp/paludis/sys-devel-llvm-2.7-r1/work/llvm-2.7/Release-Asserts/lib/libLLVM-2.7.so] Error 1
make: *** [all] Error 1
/usr/libexec/paludis/utils/emake: emake returned error 2

Package Manager Information:
    Package Name              paludis
    Package Version           0.54.3
    Build Date                2010-09-05T17:54:22+0200
    Built with CXX            x86_64-pc-linux-gnu-g++ 4.5.1
    Built with CXXFLAGS        -O2 -pipe -march=native -msahf -mcx16 -fgcse-sm -
fgcse-las -fgcse-after-reload -ftracer -floop-interchange -floop-strip-mine -flo
op-block -pedantic
    Built with LDFLAGS        -Wl,-O1 -Wl,--hash-style=both -Wl,--sort-common

    Package information
        app-admin/eselect-compiler (none)
        app-shells/bash       4.1_p7
        dev-java/java-config  2.1.11
        dev-lang/python       2.6.5-r3 3.1.2-r4
        dev-util/ccache       (none)
        dev-util/cmake        2.8.1-r2
        dev-util/confcache    (none)
        sys-apps/baselayout   2.0.1
        sys-apps/openrc       0.6.3
        sys-apps/sandbox      2.3-r1
        sys-devel/autoconf    2.13 2.67
        sys-devel/automake    1.10.3 1.11.1 1.9.6-r3
        sys-devel/binutils    2.20.1-r1
        sys-devel/gcc         4.4.4-r2 4.5.1
        sys-devel/gcc-config  1.4.1
        sys-devel/libtool     2.2.10
        sys-devel/make        3.81-r2
        virtual/os-headers    2.6.35 (for sys-kernel/linux-headers::installed)

Extra Information for sys-devel/llvm-2.7::installed:
        >>> Running ebuild phase killold as portage:portage...
        >>> Starting builtin_killold
        >>> Done builtin_killold
        >>> Completed ebuild phase killold
        >>> Running ebuild phases initmisc infovars info as portage:portage...
        >>> Starting builtin_initmisc
        bunzip2 < /var/db/pkg/sys-devel/llvm-2.7/environment.bz2 > /var/tmp/palu
dis/environment-sys-devel-llvm-2.7-5458
        ebuild_scrub_environment /var/tmp/paludis/environment-sys-devel-llvm-2.7
-5458
        ebuild_safe_source /var/tmp/paludis/environment-sys-devel-llvm-2.7-5458
        rm /var/tmp/paludis/environment-sys-devel-llvm-2.7-5458
        >>> Done builtin_initmisc
        >>> Starting builtin_infovars
        ACCEPT_KEYWORDS=amd64
        CBUILD=x86_64-pc-linux-gnu
        CFLAGS=-O2 -pipe -ggdb -march=native -msahf -mcx16 -fgcse-sm -fgcse-las 
-fgcse-after-reload -ftracer -floop-interchange -floop-strip-mine -floop-block
        CHOST=x86_64-pc-linux-gnu
        CONFIG_PROTECT=/etc /usr/share/X11/xkb 
        CONFIG_PROTECT_MASK=/etc/ca-certificates.conf /etc/env.d /etc/env.d/java
/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /
etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5
/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/t
exmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web
2c 
        CPPFLAGS=
        CTARGET=
        CXXFLAGS=-O2 -pipe -ggdb -march=native -msahf -mcx16 -fgcse-sm -fgcse-la
s -fgcse-after-reload -ftracer -floop-interchange -floop-strip-mine -floop-block
        DISTDIR=/var/db/pkg/sys-devel/llvm-2.7
        FEATURES=
        FFLAGS=
        GENTOO_MIRRORS=
        INSTALL_MASK=
        LANG=
        LC_ALL=C
        LDFLAGS=-Wl,-O1 -Wl,--hash-style=both -Wl,--sort-common
        LINGUAS=en en_GB pl
        MAKEOPTS=-j2 V=1
        PORTAGE_COMPRESS=
        PORTAGE_COMPRESS_FLAGS=
        PORTAGE_CONFIGROOT=
        PORTAGE_RSYNC_EXTRA_OPTS=
        PORTAGE_RSYNC_OPTS=
        PORTAGE_TMPDIR=/var/tmp/paludis
        PORTDIR=/var/db/pkg/sys-devel/llvm-2.7
        PORTDIR_OVERLAY=
        SYNC=
        USE=libffi llvm-gcc udis86 amd64 alsa_cards_ali5451 alsa_cards_als4000 a
lsa_cards_atiixp alsa_cards_atiixp-modem alsa_cards_bt87x alsa_cards_ca0106 alsa
_cards_cmipci alsa_cards_emu10k1x alsa_cards_ens1370 alsa_cards_ens1371 alsa_car
ds_es1938 alsa_cards_es1968 alsa_cards_fm801 alsa_cards_hda-intel alsa_cards_int
el8x0 alsa_cards_intel8x0m alsa_cards_maestro3 alsa_cards_trident alsa_cards_usb
-audio alsa_cards_via82xx alsa_cards_via82xx-modem alsa_cards_ymfpci alsa_pcm_pl
ugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy al
sa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plu
gins_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_pc
m_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 a
lsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugi
ns_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol apache2_modules_actions a
pache2_modules_alias apache2_modules_auth_basic apache2_modules_authn_alias apac
he2_modules_authn_anon apache2_modules_authn_dbm apache2_modules_authn_default a
pache2_modules_authn_file apache2_modules_authz_dbm apache2_modules_authz_defaul
t apache2_modules_authz_groupfile apache2_modules_authz_host apache2_modules_aut
hz_owner apache2_modules_authz_user apache2_modules_autoindex apache2_modules_ca
che apache2_modules_cgi apache2_modules_cgid apache2_modules_dav apache2_modules
_dav_fs apache2_modules_dav_lock apache2_modules_deflate apache2_modules_dir apa
che2_modules_disk_cache apache2_modules_env apache2_modules_expires apache2_modu
les_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_mo
dules_mime_magic apache2_modules_negotiation apache2_modules_rewrite apache2_mod
ules_setenvif apache2_modules_speling apache2_modules_status apache2_modules_uni
que_id apache2_modules_userdir apache2_modules_usertrack apache2_modules_vhost_a
lias elibc_glibc input_devices_evdev input_devices_synaptics kernel_linux lcd_de
vices_bayrad lcd_devices_cfontz lcd_devices_cfontz633 lcd_devices_glk lcd_device
s_hd44780 lcd_devices_lb216 lcd_devices_lcdm001 lcd_devices_mtxorb lcd_devices_n
curses lcd_devices_text linguas_en linguas_en_GB linguas_pl ruby_targets_jruby r
uby_targets_ruby18 userland_GNU video_cards_intel xtables_addons_account xtables
_addons_chaos xtables_addons_condition xtables_addons_delude xtables_addons_dhcp
mac xtables_addons_fuzzy xtables_addons_geoip xtables_addons_iface xtables_addon
s_ipmark xtables_addons_ipp2p xtables_addons_ipset xtables_addons_ipv4options xt
ables_addons_length2 xtables_addons_logmark xtables_addons_lscan xtables_addons_
pknock xtables_addons_psd xtables_addons_quota2 xtables_addons_rawnat xtables_ad
dons_steal xtables_addons_sysrq xtables_addons_tarpit xtables_addons_tee amd64 
        >>> Done builtin_infovars
        >>> Starting pkg_info
        >>> Done pkg_info
        >>> Completed ebuild phases initmisc infovars info
        >>> Running ebuild phase tidyup as portage:portage...
        >>> Starting builtin_tidyup
        rm -fr /var/tmp/paludis/sys-devel-llvm-2.7-info
        >>> Done builtin_tidyup
        >>> Completed ebuild phase tidyup

Extra Information for sys-devel/llvm-2.7-r1:0::gentoo:
        >>> Running ebuild phase killold as portage:portage...
        >>> Starting builtin_killold
        >>> Done builtin_killold
        >>> Completed ebuild phase killold
        >>> Running ebuild phases initmisc infovars as portage:portage...
        >>> Starting builtin_initmisc
        >>> Done builtin_initmisc
        >>> Starting builtin_infovars
        ACCEPT_KEYWORDS=amd64
        CBUILD=x86_64-pc-linux-gnu
        CFLAGS=-O2 -pipe -ggdb -march=native -msahf -mcx16 -fgcse-sm -fgcse-las 
-fgcse-after-reload -ftracer -floop-interchange -floop-strip-mine -floop-block
        CHOST=x86_64-pc-linux-gnu
        CONFIG_PROTECT= 
        CONFIG_PROTECT_MASK= 
        CPPFLAGS=
        CTARGET=
        CXXFLAGS=-O2 -pipe -ggdb -march=native -msahf -mcx16 -fgcse-sm -fgcse-la
s -fgcse-after-reload -ftracer -floop-interchange -floop-strip-mine -floop-block
        DISTDIR=/var/tmp/distfiles
        FEATURES=
        FFLAGS=
        GENTOO_MIRRORS=
        INSTALL_MASK=
        LANG=
        LC_ALL=C
        LDFLAGS=-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=both -Wl,--sort-common
        LINGUAS=en en_GB pl
        MAKEOPTS=-j2 V=1
        PORTAGE_COMPRESS=
        PORTAGE_COMPRESS_FLAGS=
        PORTAGE_CONFIGROOT=
        PORTAGE_RSYNC_EXTRA_OPTS=
        PORTAGE_RSYNC_OPTS=
        PORTAGE_TMPDIR=/var/tmp/paludis
        PORTDIR=/usr/portage
        PORTDIR_OVERLAY=
        SYNC=
        USE=libffi llvm-gcc udis86 amd64 alsa_cards_ali5451 alsa_cards_als4000 a
lsa_cards_atiixp alsa_cards_atiixp-modem alsa_cards_bt87x alsa_cards_ca0106 alsa
_cards_cmipci alsa_cards_emu10k1x alsa_cards_ens1370 alsa_cards_ens1371 alsa_car
ds_es1938 alsa_cards_es1968 alsa_cards_fm801 alsa_cards_hda-intel alsa_cards_int
el8x0 alsa_cards_intel8x0m alsa_cards_maestro3 alsa_cards_trident alsa_cards_usb
-audio alsa_cards_via82xx alsa_cards_via82xx-modem alsa_cards_ymfpci alsa_pcm_pl
ugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy al
sa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plu
gins_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_pc
m_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 a
lsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugi
ns_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol apache2_modules_actions a
pache2_modules_alias apache2_modules_auth_basic apache2_modules_authn_alias apac
he2_modules_authn_anon apache2_modules_authn_dbm apache2_modules_authn_default a
pache2_modules_authn_file apache2_modules_authz_dbm apache2_modules_authz_defaul
t apache2_modules_authz_groupfile apache2_modules_authz_host apache2_modules_aut
hz_owner apache2_modules_authz_user apache2_modules_autoindex apache2_modules_ca
che apache2_modules_cgi apache2_modules_cgid apache2_modules_dav apache2_modules
_dav_fs apache2_modules_dav_lock apache2_modules_deflate apache2_modules_dir apa
che2_modules_disk_cache apache2_modules_env apache2_modules_expires apache2_modu
les_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_mo
dules_mime_magic apache2_modules_negotiation apache2_modules_rewrite apache2_mod
ules_setenvif apache2_modules_speling apache2_modules_status apache2_modules_uni
que_id apache2_modules_userdir apache2_modules_usertrack apache2_modules_vhost_a
lias elibc_glibc input_devices_evdev input_devices_synaptics kernel_linux lcd_de
vices_bayrad lcd_devices_cfontz lcd_devices_cfontz633 lcd_devices_glk lcd_device
s_hd44780 lcd_devices_lb216 lcd_devices_lcdm001 lcd_devices_mtxorb lcd_devices_n
curses lcd_devices_text linguas_en linguas_en_GB linguas_pl ruby_targets_jruby r
uby_targets_ruby18 userland_GNU video_cards_intel xtables_addons_account xtables
_addons_chaos xtables_addons_condition xtables_addons_delude xtables_addons_dhcp
mac xtables_addons_fuzzy xtables_addons_geoip xtables_addons_iface xtables_addon
s_ipmark xtables_addons_ipp2p xtables_addons_ipset xtables_addons_ipv4options xt
ables_addons_length2 xtables_addons_logmark xtables_addons_lscan xtables_addons_
pknock xtables_addons_psd xtables_addons_quota2 xtables_addons_rawnat xtables_ad
dons_steal xtables_addons_sysrq xtables_addons_tarpit xtables_addons_tee amd64
        >>> Done builtin_infovars
        >>> Completed ebuild phases initmisc infovars
        >>> Running ebuild phase tidyup as portage:portage...
        >>> Starting builtin_tidyup
        rm -fr /var/tmp/paludis/sys-devel-llvm-2.7-r1-info
        >>> Done builtin_tidyup
        >>> Completed ebuild phase tidyup
Comment 1 Maciej Piechotka 2010-09-18 18:07:25 UTC
Created attachment 247883 [details]
llvm - build log
Comment 2 goffrie 2010-09-19 14:37:34 UTC
I got this too. Enabling the 'pic' flag on dev-libs/udis86 fixed it for me. Perhaps llvm should have a USE-depend on it?

asplode ~ # emerge -pv udis86 llvm --nodeps

These are the packages that would be merged, in order:
                                                                                                                                                           ... done!
[ebuild   R   ] dev-libs/udis86-1.7  USE="pic -test" 0 kB
[ebuild   R   ] sys-devel/llvm-2.7-r1  USE="libffi udis86 -alltargets -debug -llvm-gcc -ocaml -test" 0 kB

Total: 2 packages (2 reinstalls), Size of downloads: 0 kB
Comment 3 Maciej Piechotka 2010-09-19 15:41:52 UTC
Same here. I've change summary.
Comment 4 Bernard Cafarelli gentoo-dev 2010-09-20 09:08:56 UTC
Thanks for the report! Indeed udis86 gained a pic USE-flag since I added support for it in llvm

llvm-2.7-r1 now depends on udis86[pic] on amd64 (with USE=udis86)
Comment 5 Chí-Thanh Christopher Nguyễn gentoo-dev 2010-09-20 13:57:03 UTC
I added the USE flag because of bug 317599 comment 6. However, the problem was not reproducible for me: it was not necessary to enable USE="pic" for successful build.
Comment 6 Bernard Cafarelli gentoo-dev 2010-09-20 15:12:34 UTC
Ah, so that's how I had it working when I added the udis86 part :) Thanks I had not checked the bug pointed in Changelog