Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 154338
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Maintainers for Miscelleneous Language Packages <lang-misc@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Tony Vroon <chainsaw@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 154338 depends on: 151612 Show dependency tree
Bug 154338 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-11-07 03:23 0000
An upgrade from erlang-11.2.0 to 11.2.1 failed. USE-flags:
[ebuild     U ] dev-lang/erlang-11.2.1 [11.2.0] USE="ssl -doc -emacs -java
-odbc -tk% (-tcltk%)" 0 kB

Compile error:
i686-pc-linux-gnu/opt/hybrid/beam_debug.o              
obj/i686-pc-linux-gnu/opt/hybrid/beam_bp.o
obj/i686-pc-linux-gnu/opt/hybrid/beam_catches.o
obj/i686-pc-linux-gnu/opt/hybrid/sys.o
obj/i686-pc-linux-gnu/opt/hybrid/driver_tab.o
obj/i686-pc-linux-gnu/opt/hybrid/unix_efile.o
obj/i686-pc-linux-gnu/opt/hybrid/gzio.o
obj/i686-pc-linux-gnu/opt/hybrid/elib_malloc.o
obj/i686-pc-linux-gnu/opt/hybrid/elib_memmove.o
obj/i686-pc-linux-gnu/opt/hybrid/unix_ddll_drv.o
obj/i686-pc-linux-gnu/opt/hybrid/sys_float.o
obj/i686-pc-linux-gnu/opt/hybrid/sys_time.o
obj/i686-pc-linux-gnu/opt/hybrid/erl_mseg.o
obj/i686-pc-linux-gnu/opt/hybrid/erl_mtrace_sys_wrap.o
obj/i686-pc-linux-gnu/opt/hybrid/hipe_bif0.o
obj/i686-pc-linux-gnu/opt/hybrid/hipe_bif1.o
obj/i686-pc-linux-gnu/opt/hybrid/hipe_bif2.o
obj/i686-pc-linux-gnu/opt/hybrid/hipe_debug.o
obj/i686-pc-linux-gnu/opt/hybrid/hipe_gc.o
obj/i686-pc-linux-gnu/opt/hybrid/hipe_mode_switch.o
obj/i686-pc-linux-gnu/opt/hybrid/hipe_native_bif.o
obj/i686-pc-linux-gnu/opt/hybrid/hipe_stack.o
obj/i686-pc-linux-gnu/opt/hybrid/hipe_x86.o
obj/i686-pc-linux-gnu/opt/hybrid/hipe_x86_glue.o
obj/i686-pc-linux-gnu/opt/hybrid/hipe_x86_bifs.o
obj/i686-pc-linux-gnu/opt/hybrid/hipe_x86_signal.o
obj/i686-pc-linux-gnu/opt/hybrid/hipe_x86_stack.o 
obj/i686-pc-linux-gnu/opt/hybrid/efile_drv.o
obj/i686-pc-linux-gnu/opt/hybrid/ddll_drv.o
obj/i686-pc-linux-gnu/opt/hybrid/inet_drv.o
obj/i686-pc-linux-gnu/opt/hybrid/zlib_drv.o
obj/i686-pc-linux-gnu/opt/hybrid/ram_file_drv.o
obj/i686-pc-linux-gnu/opt/hybrid/ttsl_drv.o -ldl -lm   -lncurses
-L../lib/internal/i686-pc-linux-gnu
/var/tmp/portage/erlang-11.2.1/work/otp_src_R11B-1/erts/obj/i686-pc-linux-gnu/libz.a
-lethread -lpthread -lerts_internal_r -lrt
/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/../../../../i686-pc-linux-gnu/bin/ld:
warning: creating a DT_TEXTREL in object.
obj/i686-pc-linux-gnu/opt/hybrid/hipe_x86_bifs.o: In function
`nbif_handle_fp_exception':
i686-pc-linux-gnu/opt/hybrid/hipe_x86_bifs.S:(.text+0x7): undefined reference
to `erts_restore_fpu'
collect2: ld returned 1 exit status

System information:
Portage 2.1.1-r1 (hardened/x86/2.6, gcc-3.4.6, glibc-2.3.6-r4,
2.6.16-hardened-r10 i686)
=================================================================
System uname: 2.6.16-hardened-r10 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.12.6
Last Sync: Tue, 07 Nov 2006 00:20:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: [Not Present]
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.60
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-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/init.d/ /etc/revdep-rebuild
/etc/terminfo"
CXXFLAGS=""
DISTDIR="/srv/gentoo/distfiles"
FEATURES="autoconfig metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.blueyonder.co.uk/"
LANG="en_GB.UTF-8"
LC_ALL="en_GB.UTF-8"
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="/srv/gentoo/overlay"
USE="x86 apache apache2 bash-completion berkdb bzip2 crypt elf elibc_glibc
erandom gd gif gnutls hardened iconv input_devices_keyboard input_devices_mouse
ipv6 jpeg kernel_linux lm_sensors mmx mod_muc muc mysql ncurses nolvmstatic
nptl nptlonly openntpd pam pdflib perl pic pie png postgres readline sensord
sse ssl symlink truetype unicode userland_GNU vhosts web xml xml2 xmlrpc zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, LINGUAS, MAKEOPTS,
PORTAGE_RSYNC_EXTRA_OPTS

------- Comment #1 From Alexandre Buisse (RETIRED) 2006-11-07 03:52:46 0000 -------
I am hitting another error on a non-hardened system:

gcc -o
/var/tmp/portage/dev-lang/erlang-11.2.1/work/otp_src_R11B-1/bin/i686-pc-linux-gnu/beam.hybrid
\
          -Wl,-export-dynamic obj/i686-pc-linux-gnu/opt/hybrid/erl_main.o      
obj/i686-pc-linux-gnu/opt/hybrid/preload.o
...
[BIG SNIP]
...
obj/i686-pc-linux-gnu/opt/hybrid/inet_drv.o
obj/i686-pc-linux-gnu/opt/hybrid/zlib_drv.o
obj/i686-pc-linux-gnu/opt/hybrid/ram_file_drv.o
obj/i686-pc-linux-gnu/opt/hybrid/ttsl_drv.o -ldl -lm   -lncurses
-L../lib/internal/i686-pc-linux-gnu
/var/tmp/portage/dev-lang/erlang-11.2.1/work/otp_src_R11B-1/erts/obj/i686-pc-linux-gnu/libz.a
-lethread -lpthread -lerts_internal_r 
obj/i686-pc-linux-gnu/opt/hybrid/hipe_x86_signal.o: In function `sigaction':
hipe_x86_signal.c:(.text+0x10): undefined reference to `INIT'
hipe_x86_signal.c:(.text+0x6b): undefined reference to `__next_sigaction'
obj/i686-pc-linux-gnu/opt/hybrid/hipe_x86_signal.o: In function
`hipe_signal_init':
hipe_x86_signal.c:(.text+0x8a): undefined reference to `INIT'
hipe_x86_signal.c:(.text+0xec): undefined reference to `INIT'
hipe_x86_signal.c:(.text+0xfe): undefined reference to `__next_sigaction'
hipe_x86_signal.c:(.text+0x12b): undefined reference to `INIT'
hipe_x86_signal.c:(.text+0x179): undefined reference to `__next_sigaction'
collect2: ld returned 1 exit status
make[3]: ***
[/var/tmp/portage/dev-lang/erlang-11.2.1/work/otp_src_R11B-1/bin/i686-pc-linux-gnu/beam.hybrid]
Error 1
make[3]: Leaving directory
`/var/tmp/portage/dev-lang/erlang-11.2.1/work/otp_src_R11B-1/erts/emulator'
make[2]: *** [opt] Error 2
make[2]: Leaving directory
`/var/tmp/portage/dev-lang/erlang-11.2.1/work/otp_src_R11B-1/erts/emulator'
make[1]: *** [hybrid] Error 2
make[1]: Leaving directory
`/var/tmp/portage/dev-lang/erlang-11.2.1/work/otp_src_R11B-1/erts'
make: *** [emulator] Error 2

Only ssl is enabled in USE.


emerge --info:

Portage 2.1.2_rc1-r2 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.5-r0,
2.6.18-gentoo-ubik i686)
=================================================================
System uname: 2.6.18-gentoo-ubik i686 Intel(R) Pentium(R) M processor 1.70GHz
Gentoo Base System version 1.12.5
Last Sync: Sat, 28 Oct 2006 00:30:01 +0000
ccache version 2.3 [disabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.3.5-r3, 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -mtune=i686 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.3/env /usr/kde/3.3/share/config
/usr/kde/3.3/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config
/usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf
/etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo
/etc/texmf/web2c"
CXXFLAGS="-O2 -mtune=i686 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig cvs distlocks metadata-transfer parallel-fetch sandbox
sfperms sign strict test"
GENTOO_MIRRORS="http://mirror.gentoo.no http://gentoo.mirror.sdv.fr            
ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo http://gentoo.oregonstate.edu     
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LINGUAS="sv_SE fr"
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="/home/heimdall/gentoo/gentoo-x86
/usr/haskell/gentoo-haskell/portage /home/heimdall/tmp/beryl"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aac aalib acpi alsa apache2 asf audiofile bash-completion berkdb
bitmap-fonts bzip2 cairo cjk cli cracklib crypt cups dlloader dri dvd dvdr
dvdread elibc_glibc emboss encode esd exif fbcon ffmpeg flac font-server
foomaticdb fortran gdbm gif gimpprint glitz glut gpm graphviz gstreamer gtk
gtk2 icecast iconv imap imlib input_devices_keyboard input_devices_mouse
isdnlog jpeg kernel_linux lcms libcaca libg++ libwww linguas_fr linguas_sv_SE
mad mbox mikmod mmx motif mozsvg mp3 mpeg musepack musicbrainz ncurses
networkcanna nls nntp nptl nptlonly objc offensive ogg opengl pam pcre pdf perl
png postgres pppd python qt3 qt4 quicktime radeon readline real reflection sasl
sdl session softmmu spl sse sse2 ssl svg tcpd tiff truetype truetype-fonts
type1-fonts udev unicode userland_GNU userlocales v4l video_cards_radeon vidix
vorbis win32codecs wma xml xorg xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS,
MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS

------- Comment #2 From Christian Faulhammer 2006-11-07 22:53:36 0000 -------
try again, please

------- Comment #3 From Alexandre Buisse (RETIRED) 2006-11-08 03:10:24 0000 -------
No change for me (but again, I'm not on a hardened system).

------- Comment #4 From Tony Vroon 2006-11-08 03:19:30 0000 -------
obj/i686-pc-linux-gnu/opt/hybrid/hipe_x86_bifs.o: In function
`nbif_handle_fp_exception':
i686-pc-linux-gnu/opt/hybrid/hipe_x86_bifs.S:(.text+0x7): undefined reference
to `erts_restore_fpu'
collect2: ld returned 1 exit status

To summarize: No change.
To confirm that I am using the correct ebuild, ChangeLog entry:
 08 Nov 2006; Christian Faulhammer <opfer@gentoo.org> erlang-11.2.1.ebuild:
  fix compilation on hardened systems by filtering SSP, see bug #154338.
  Thanks to pappy-_ on IRC who provided advice and test hardware.

------- Comment #5 From Tony Vroon 2006-11-08 04:46:28 0000 -------
I was asked to try without -march in CFLAGS, identical build failure:
obj/i686-pc-linux-gnu/opt/hybrid/hipe_x86_bifs.o: In function
`nbif_handle_fp_exception':
i686-pc-linux-gnu/opt/hybrid/hipe_x86_bifs.S:(.text+0x7): undefined reference
to `erts_restore_fpu'
collect2: ld returned 1 exit status

CFLAGS="-O2 -pipe"
CXXFLAGS="${CFLAGS}"

------- Comment #6 From Alexander Gabert (RETIRED) 2006-11-08 08:59:33 0000 -------
Tony Vroos: please try replacing the src_compile() function of your ebuild
with:

src_compile() {
        use java || export JAVAC=false
        econf \
                --enable-threads \
                --disable-hipe \
                $(use_with ssl) \
                || die
        make || die

        if use emacs ; then
                pushd lib/tools/emacs
                elisp-compile *.el
                popd
        fi
}

the important part is --disable-hipe

worked on test chroot hardened x86

[ebuild   R   ] dev-lang/erlang-11.2.1-r1  USE="ssl -doc -emacs -java -odbc
-tk" 0 kB [1] 

 17:53:36
[/home/ftp/devel-chroots/chroots/chroot004:12733.pts-10.tinderbox]tinderbox
/usr/local/portage/dev-lang/erlang
 # emerge --info
Portage 2.1.1-r1 (hardened/x86/2.6, gcc-3.4.6, glibc-2.4-r3,
2.6.11-hardened-r15 i686)
=================================================================
System uname: 2.6.11-hardened-r15 i686 Intel(R) Pentium(R) 4 CPU 2.60GHz
Gentoo Base System version 1.12.6
Last Sync: Wed, 08 Nov 2006 12:01:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: [Not Present]
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.60
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-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo"
CXXFLAGS="-O2 -mcpu=i386 -pipe -fforce-addr"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig digest distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.osuosl.org/pub/gentoo"
PKGDIR="/usr/portage//packages/x86/"
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/"
SYNC="rsync://raptor.gentoo.org/gentoo-portage"
USE="berkdb crypt dlloader elibc_glibc hardened input_devices_keyboard
input_devices_mouse kernel_linux nls nptl nptlonly pam pic readline ssl tcpd
userland_GNU userlocales x86 xorg zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS,
LINGUAS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY


Alexandre: i will investigate this.


Alex

------- Comment #7 From Alexander Gabert (RETIRED) 2006-11-08 08:59:56 0000 -------
CC XXX ACK

------- Comment #8 From Alexander Gabert (RETIRED) 2006-11-08 12:35:56 0000 -------
http://bugs.gentoo.org/show_bug.cgi?id=151612 looks like the solution to your
problem, Alexandre.


TIA,

Alex

------- Comment #9 From Christian Faulhammer 2006-11-08 13:23:07 0000 -------
*** Bug 120481 has been marked as a duplicate of this bug. ***

------- Comment #10 From Christian Faulhammer 2006-11-08 14:19:05 0000 -------
Test again please

------- Comment #11 From Tony Vroon 2006-11-09 02:11:30 0000 -------
Confirmed working, thank you.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug