Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 121638 - dev-lang/erlang fails on amd64 due to PIC trouble
Summary: dev-lang/erlang fails on amd64 due to PIC trouble
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Maintainers for Miscelleneous Language Packages [OBSOLETE]
URL:
Whiteboard:
Keywords:
: 137271 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-02-05 02:21 UTC by Anton Kudris
Modified: 2006-12-03 15:35 UTC (History)
5 users (show)

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


Attachments
erlang-10.2.7-r1.tar.gz (erlang.tar.gz,3.96 KB, application/x-gzip)
2006-04-06 13:23 UTC, Kirill A. Korinsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Kudris 2006-02-05 02:21:40 UTC
cannot emerge ejabberd because of emerge erlang 10.2.7 fails with error :

/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/erlang-10.2.7/work/otp_src_R10B-7/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/hipe_amd64_bifs.o: relocation R_X86_64_32S against `nbif_demonitor_1' can not be used when making a shared object; recompile with -fPIC
/var/tmp/portage/erlang-10.2.7/work/otp_src_R10B-7/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/hipe_amd64_bifs.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[3]: *** [/var/tmp/portage/erlang-10.2.7/work/otp_src_R10B-7/bin/x86_64-pc-linux-gnu/beam.hybrid] 
Comment 1 Anton Kudris 2006-02-05 02:21:40 UTC
cannot emerge ejabberd because of emerge erlang 10.2.7 fails with error :

/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/erlang-10.2.7/work/otp_src_R10B-7/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/hipe_amd64_bifs.o: relocation R_X86_64_32S against `nbif_demonitor_1' can not be used when making a shared object; recompile with -fPIC
/var/tmp/portage/erlang-10.2.7/work/otp_src_R10B-7/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/hipe_amd64_bifs.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[3]: *** [/var/tmp/portage/erlang-10.2.7/work/otp_src_R10B-7/bin/x86_64-pc-linux-gnu/beam.hybrid] ÐÑибка 1
make[3]: Leaving directory `/var/tmp/portage/erlang-10.2.7/work/otp_src_R10B-7/erts/emulator'
make[2]: *** [hybrid] ÐÑибка 2
make[2]: Leaving directory `/var/tmp/portage/erlang-10.2.7/work/otp_src_R10B-7/erts/emulator'
make[1]: *** [hybrid] ÐÑибка 2
make[1]: Leaving directory `/var/tmp/portage/erlang-10.2.7/work/otp_src_R10B-7/erts'
make: *** [emulator] ÐÑибка 2

!!! ERROR: dev-lang/erlang-10.2.7 failed.
!!! Function src_compile, Line 52, Exitcode 2
!!! (no error message)



master ~ # emerge --info
Portage 2.0.54 (default-linux/amd64/2005.1, gcc-3.4.4, glibc-2.3.5-r2, 2.6.15-gentoo-r1 x86_64)
=================================================================
System uname: 2.6.15-gentoo-r1 x86_64 Intel(R) Xeon(TM) CPU 2.80GHz
Gentoo Base System version 1.6.14
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=nocona -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=nocona -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="ru_RU.UTF-8"
LC_ALL=""
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 alsa avi berkdb bitmap-fonts bzip2 crypt curl eds emboss encode expat foomaticdb fortran gif gmp gpm gstreamer gtk2 hardened hardenedphp imap imlib jpeg libwww lzw lzw-tiff maildir mhash mp3 mpeg ncurses nls nptl opengl pam pcre pdflib perl png postgres python quicktime readline samba sasl sdl slang spell ssl tcpd tiff truetype-fonts type1-fonts udev unicode usb userlocales vda xpm xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 2 Kirill A. Korinsky 2006-04-06 13:23:36 UTC
Created attachment 84077 [details]
erlang-10.2.7-r1.tar.gz

Arhive for fixid (this ?) bugs, on glibc24 and erlang 10.2.7
Comment 3 Matthew Kennedy (RETIRED) gentoo-dev 2006-04-10 19:08:21 UTC
Is this still a problem with erlang-10.2.10 just recently committed to portage?
Comment 4 Anton Kudris 2006-04-10 20:18:50 UTC
(In reply to comment #2)
> Is this still a problem with erlang-10.2.10 just recently committed to portage?
> 
 /var/tmp/portage/erlang-10.2.10/work/otp_src_R10B-10/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/ttsl_drv.o -ldl -lm   -lncurses -L../lib/internal/x86_64-pc-linux-gnu /var/tmp/portage/erlang-10.2.10/work/otp_src_R10B-10/erts/obj/x86_64-pc-linux-gnu/libz.a -lethread -lpthread -lrt
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.5/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/erlang-10.2.10/work/otp_src_R10B-10/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/hipe_amd64_bifs.o: relocation R_X86_64_32S against `nbif_demonitor_1' can not be used when making a shared object; recompile with -fPIC
/var/tmp/portage/erlang-10.2.10/work/otp_src_R10B-10/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/hipe_amd64_bifs.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[3]: *** [/var/tmp/portage/erlang-10.2.10/work/otp_src_R10B-10/bin/x86_64-pc-linux-gnu/beam.hybrid] Ошибка 1
make[3]: Leaving directory `/var/tmp/portage/erlang-10.2.10/work/otp_src_R10B-10/erts/emulator'
make[2]: *** [hybrid] Ошибка 2
make[2]: Leaving directory `/var/tmp/portage/erlang-10.2.10/work/otp_src_R10B-10/erts/emulator'
make[1]: *** [hybrid] Ошибка 2
make[1]: Leaving directory `/var/tmp/portage/erlang-10.2.10/work/otp_src_R10B-10/erts'
make: *** [emulator] Ошибка 2

!!! ERROR: dev-lang/erlang-10.2.10 failed.
!!! Function src_compile, Line 57, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.

same here... will try above path little bit later and see if it works
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-06-19 09:52:25 UTC
*** Bug 137271 has been marked as a duplicate of this bug. ***
Comment 6 Bruno Roggeri 2006-08-04 17:25:29 UTC
[ebuild  N    ] dev-lang/erlang-11.2.0  USE="doc ssl -emacs -java -odbc -tcltk"(In reply to comment #1)
> Created an attachment (id=84077) [edit]
> erlang-10.2.7-r1.tar.gz
> 
> Arhive for fixid (this ?) bugs, on glibc24 and erlang 10.2.7
> 

To anyone willing to check this tarball, there is a little problem with it : it has been gzipped twice. So you need to :
gunzip erlang-10.2.7-r1.tar.gz
mv erlang-10.2.7-r1.tar erlang-10.2.7-r1.tar.gz
tar xzf erlang-10.2.7-r1.tar.gz
Comment 7 Bruno Roggeri 2006-08-04 18:12:40 UTC
Cannot reproduce with :
[ebuild  N    ] dev-lang/erlang-11.2.0  USE="doc ssl -emacs -java -odbc

I'm going to try with 10.2.10 just to be sure.

PS : btw, nevermind the first line of my previous comment
Comment 8 Bruno Roggeri 2006-08-04 19:02:16 UTC
(In reply to comment #6)
> Cannot reproduce with :
> [ebuild  N    ] dev-lang/erlang-11.2.0  USE="doc ssl -emacs -java -odbc
> 
> I'm going to try with 10.2.10 just to be sure.
> 
> PS : btw, nevermind the first line of my previous comment
> 

Well, I couldn't reproduce either with 10.2.10 (same use flags), so I can't really say it's fixed...

I'm on amd64 here, on a mostly stable system.
Comment 9 Ahmed Ammar (RETIRED) gentoo-dev 2006-08-14 14:07:15 UTC
> 
> Well, I couldn't reproduce either with 10.2.10 (same use flags), so I can't
> really say it's fixed...
> 
> I'm on amd64 here, on a mostly stable system.
> 

Can't reproduce this bug either.
[ebuild   R   ] dev-lang/erlang-10.2.7  USE="ssl -doc -emacs -java -odbc -tcltk" 0 kB 
Comment 10 Simon Stelling (RETIRED) gentoo-dev 2006-08-15 02:03:30 UTC
Anton, if you can still reproduce this, please reopen the bug. I'm afraid we can't do much as nobody is able to reproduce it :|
Comment 11 Anton Kudris 2006-08-15 02:43:55 UTC
with the recent portage update still can't emerge erlang... I've tryed almost all version, wich ever where in portage.

trying to emerge this:
dev-lang/erlang-11.2.0  USE="ssl -doc -emacs -java -odbc -tcltk" 0 kB

result:

/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/../../../../x86_64-pc-linux-gnu/bin/ld: / var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc -linux-gnu/hipe_amd64_bifs.o: relocation R_X86_64_32S against `nbif_demonitor_1'  can not be used when making a shared object; recompile with -fPIC
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-p c-linux-gnu/hipe_amd64_bifs.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[3]: *** [/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/bin/x86_64-pc-l inux-gnu/beam.hybrid] Ошибка 1
make[3]: Leaving directory `/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/e rts/emulator'
make[2]: *** [hybrid] Ошибка 2
make[2]: Leaving directory `/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/e rts/emulator'
make[1]: *** [hybrid] Ошибка 2
make[1]: Leaving directory `/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/e rts'
make: *** [emulator] Ошибка 2

!!! ERROR: dev-lang/erlang-11.2.0 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_compile
  ebuild.sh, line 939:   Called src_compile
  erlang-11.2.0.ebuild, line 53:   Called die




mail jodaka # emerge --info
Portage 2.1-r2 (default-linux/amd64/2006.0, gcc-3.4.6, glibc-2.3.6-r4, 2.6.16-gentoo-r12 x86_64)
=================================================================
System uname: 2.6.16-gentoo-r12 x86_64 Intel(R) Xeon(TM) CPU 2.80GHz
Gentoo Base System version 1.6.15
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.3.5-r2, 2.4.2
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=nocona -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo"
CXXFLAGS="-O2 -march=nocona -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="ru_RU.UTF-8"
LC_ALL=""
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 alsa apache2 avi berkdb bitmap-fonts chroot cli crypt dlloader dri eds emboss encode foomaticdb fortran gd gif gpm gstreamer gtk2 hardened hardenedphp imap imlib isdnlog jpeg kerberos libwww logrotate lzw lzw-tiff maildir mp3 mpeg mysql ncurses nls nptl opengl pam pcre pdflib perl png postgres pppd python qt3 qt4 quicktime readline reflection sasl sdl session slang spell spl ssl tcpd tiff truetype-fonts type1-fonts unicode usb userlocales vda winbind xorg xpm xv zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux userland_GNU"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 12 Billy Dorminy 2006-10-07 06:24:07 UTC
10.2.5 doesn't work for me either, it fails at the same point. But 11.2.0 works just fine. I haven't tried that 10.2.10 yet.

Doesn't work for me:(In reply to comment #10)
> with the recent portage update still can't emerge erlang... I've tryed almost
> all version, wich ever where in portage.
> 
> trying to emerge this:
> dev-lang/erlang-11.2.0  USE="ssl -doc -emacs -java -odbc -tcltk" 0 kB
> 
> result:
> 
> /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/../../../../x86_64-pc-linux-gnu/bin/ld:
> /
> var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc
> -linux-gnu/hipe_amd64_bifs.o: relocation R_X86_64_32S against
> `nbif_demonitor_1'  can not be used when making a shared object; recompile with
> -fPIC
> /var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-p
> c-linux-gnu/hipe_amd64_bifs.o: could not read symbols: Bad value
> collect2: ld returned 1 exit status
> make[3]: ***
> [/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/bin/x86_64-pc-l
> inux-gnu/beam.hybrid] Ошибка 1
> make[3]: Leaving directory
> `/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/e rts/emulator'
> make[2]: *** [hybrid] Ошибка 2
> make[2]: Leaving directory
> `/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/e rts/emulator'
> make[1]: *** [hybrid] Ошибка 2
> make[1]: Leaving directory
> `/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/e rts'
> make: *** [emulator] Ошибка 2
> 
> !!! ERROR: dev-lang/erlang-11.2.0 failed.
> Call stack:
>   ebuild.sh, line 1539:   Called dyn_compile
>   ebuild.sh, line 939:   Called src_compile
>   erlang-11.2.0.ebuild, line 53:   Called die
> 
> 
> 
> 
> mail jodaka # emerge --info
> Portage 2.1-r2 (default-linux/amd64/2006.0, gcc-3.4.6, glibc-2.3.6-r4,
> 2.6.16-gentoo-r12 x86_64)
> =================================================================
> System uname: 2.6.16-gentoo-r12 x86_64 Intel(R) Xeon(TM) CPU 2.80GHz
> Gentoo Base System version 1.6.15
> app-admin/eselect-compiler: [Not Present]
> dev-lang/python:     2.3.5-r2, 2.4.2
> dev-python/pycrypto: 2.0.1-r5
> dev-util/ccache:     [Not Present]
> dev-util/confcache:  [Not Present]
> sys-apps/sandbox:    1.2.12
> sys-devel/autoconf:  2.13, 2.59-r7
> sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
> sys-devel/binutils:  2.16.1-r3
> sys-devel/gcc-config: 1.3.13-r3
> sys-devel/libtool:   1.5.22
> virtual/os-headers:  2.6.11-r2
> ACCEPT_KEYWORDS="amd64"
> AUTOCLEAN="yes"
> CBUILD="x86_64-pc-linux-gnu"
> CFLAGS="-O2 -march=nocona -pipe"
> CHOST="x86_64-pc-linux-gnu"
> CONFIG_PROTECT="/etc"
> CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo"
> CXXFLAGS="-O2 -march=nocona -pipe"
> DISTDIR="/usr/portage/distfiles"
> FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict
> usersandbox"
> GENTOO_MIRRORS="http://distfiles.gentoo.org
> http://distro.ibiblio.org/pub/linux/distributions/gentoo"
> LANG="ru_RU.UTF-8"
> LC_ALL=""
> MAKEOPTS="-j5"
> PKGDIR="/usr/portage/packages"
> PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
> --force --whole-file --delete --delete-after --stats --timeout=180
> --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
> PORTAGE_TMPDIR="/var/tmp"
> PORTDIR="/usr/portage"
> PORTDIR_OVERLAY="/usr/local/portage"
> SYNC="rsync://rsync.gentoo.org/gentoo-portage"
> USE="amd64 alsa apache2 avi berkdb bitmap-fonts chroot cli crypt dlloader dri
> eds emboss encode foomaticdb fortran gd gif gpm gstreamer gtk2 hardened
> hardenedphp imap imlib isdnlog jpeg kerberos libwww logrotate lzw lzw-tiff
> maildir mp3 mpeg mysql ncurses nls nptl opengl pam pcre pdflib perl png
> postgres pppd python qt3 qt4 quicktime readline reflection sasl sdl session
> slang spell spl ssl tcpd tiff truetype-fonts type1-fonts unicode usb
> userlocales vda winbind xorg xpm xv zlib elibc_glibc input_devices_keyboard
> input_devices_mouse input_devices_evdev kernel_linux userland_GNU"
> Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, LINGUAS,
> PORTAGE_RSYNC_EXTRA_OPTS
> 
Comment 13 Christian Faulhammer (RETIRED) gentoo-dev 2006-12-01 00:19:29 UTC
And again a test request...does this problem go away with 11.2.1?
Comment 14 Christian Faulhammer (RETIRED) gentoo-dev 2006-12-03 15:35:13 UTC
From the files where the error happens, I suppose this is fixed in 11.2.1.  As no one could report about that, I just close this bug.