Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 383697 - dev-lang/erlang-14.2.3: emerge fails to build with >= sys-libs/zlib-1.2.5.1-r1
Summary: dev-lang/erlang-14.2.3: emerge fails to build with >= sys-libs/zlib-1.2.5.1-r1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Dirkjan Ochtman (RETIRED)
URL:
Whiteboard:
Keywords:
: 387189 (view as bug list)
Depends on: 383179
Blocks:
  Show dependency tree
 
Reported: 2011-09-19 20:27 UTC by Maksym
Modified: 2012-03-15 16:50 UTC (History)
8 users (show)

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


Attachments
build.log (build.log,143.59 KB, text/plain)
2011-09-20 06:14 UTC, Maksym
Details
a ebuild which includes the patch of SpanKY (erlang-14.2.3.ebuild,5.30 KB, text/plain)
2011-10-03 07:35 UTC, Juergen Rose
Details
Combined patch for zlib & JDK7 sandbox violation (erlang-14.2.3-zlib+jdk7.patch,250 bytes, patch)
2011-11-19 19:58 UTC, Holger Hoffstätte
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Maksym 2011-09-19 20:27:07 UTC
* Messages for package dev-lang/erlang-14.2.3:
 * ERROR: dev-lang/erlang-14.2.3 failed (compile phase)

Reproducible: Always

Steps to Reproduce:
1. emerge -v erlang
Actual Results:  
emake failed
 * ERROR: dev-lang/erlang-14.2.3 failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  91:  Called src_compile
 *   environment, line 4297:  Called die
 * The specific snippet of code:
 *       emake -j1 || die;
 * 
 * If you need support, post the output of 'emerge --info =dev-lang/erlang-14.2.3',
 * the complete build log and the output of 'emerge -pqv =dev-lang/erlang-14.2.3'.
!!! When you file a bug report, please include the following information:
GENTOO_VM=  CLASSPATH="" JAVA_HOME=""
JAVACFLAGS="" COMPILER=""
and of course, the output of emerge --info
 * The complete build log is located at '/var/tmp/portage/dev-lang/erlang-14.2.3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/erlang-14.2.3/temp/environment'.
 * S: '/var/tmp/portage/dev-lang/erlang-14.2.3/work/otp_src_R14B03'

>>> Failed to emerge dev-lang/erlang-14.2.3
Comment 1 Maksym 2011-09-19 20:28:37 UTC
emerge --info
Portage 2.1.10.19 (default/linux/amd64/10.0/desktop/kde, gcc-4.5.3, glibc-2.13-r4, 3.0.4-gentoo x86_64)
=================================================================
System uname: Linux-3.0.4-gentoo-x86_64-Pentium-R-_Dual-Core_CPU_T4200_@_2.00GHz-with-gentoo-2.0.3
Timestamp of tree: Mon, 19 Sep 2011 18:30:01 +0000
app-shells/bash:          4.2_p10
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.2.2
dev-util/cmake:           2.8.5-r2
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.9.3-r1
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1-r1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo sunrise x-portage
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /var/lib/redmine/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /var/lib/redmine/config/locales /var/lib/redmine/config/settings.yml"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="ftp://de-mirror.org/distro/gentoo/"
LANG="ru_RU.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="ru"
MAKEOPTS="-j3"
PKGDIR="/usr/portage"
PORTAGE_CONFIGROOT="/"
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="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/sunrise /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 apache2 apm aspell berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups curl cvs cxx dbus declarative djvu dri dts dvd dvdr emboss encode exif fam ffmpeg firefox flac fortran ftp gdbm gdu gif git gpm graphite gtk iconv icq ipv6 jabber jpeg kde kipi lame lcms libnotify lm_sensors lzo mad matroska mime mmx mng modules mp3 mp4 mpeg mudflap multilib mysql ncurses nls nptl nptlonly nsplugin nvidia ogg opengl openmp pam pango pcre pdf perl phonon plasma pm-utilspng png policykit ppds pppd python qt3support qt4 raw readline savedconfig sdl semantic-desktop session spell sse sse2 ssl startup-notification subversion svg sysfs taglib tcpd theora tiff truetype udev unicode usb v4l v4l2 vdpau vorbis wifi x264 xcb xcomposite xine xinerama xml xorg xscreensaver xulrunner xv xvid zlib" ALSA_CARDS="hda-intel" 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Maksym 2011-09-19 20:31:01 UTC
Here with USE flags:
[ebuild  N     ] dev-lang/erlang-14.2.3  USE="ssl -doc -emacs -halfword -hipe -java -kpoll -odbc -sctp -smp -tk -wxwidgets"
Comment 3 Mike Gilbert gentoo-dev 2011-09-20 04:03:23 UTC
Attach the build log please.
Comment 4 Maksym 2011-09-20 06:14:10 UTC
Created attachment 287113 [details]
build.log
Comment 5 Matthias Liebig 2011-09-20 22:08:40 UTC
It's the "popular" issue with sys-libs/zlib, see bug #383179. Search for bugs with "sys-libs/zlib-1.2.5.1-r1" in their summary.
Comment 6 Maksym 2011-09-21 09:31:53 UTC
mask =sys-libs/zlib-1.2.5.1-r1 helps to me

Thank you, Matthias Liebig
Comment 7 Matthias Liebig 2011-09-21 13:20:43 UTC
(In reply to comment #6)
> mask =sys-libs/zlib-1.2.5.1-r1 helps to me

Could you please re-open the bug and put something like "fails to build with sys-libs/zlib-1.2.5.1-r1" in the summary? The problem still persists.

I am no Gentoo dev, so I don't know what the course of action will be. But it wouldn't be a bad idea to tell erlang upstream about it, so that they might fix it. There's some discussion going on in bug #383351 (about vlc with the same issue).
Comment 8 Maksym 2011-09-21 13:23:09 UTC
fails to build with sys-libs/zlib-1.2.5.1-r1
Comment 9 Maksym 2011-09-21 13:24:05 UTC
(In reply to comment #7)
> (In reply to comment #6)
> > mask =sys-libs/zlib-1.2.5.1-r1 helps to me
> 
> Could you please re-open the bug and put something like "fails to build with
> sys-libs/zlib-1.2.5.1-r1" in the summary? The problem still persists.
> 
> I am no Gentoo dev, so I don't know what the course of action will be. But it
> wouldn't be a bad idea to tell erlang upstream about it, so that they might fix
> it. There's some discussion going on in bug #383351 (about vlc with the same
> issue).

Or I should open new bug?
Comment 10 Matthias Liebig 2011-09-21 13:45:06 UTC
(In reply to comment #9)
> Or I should open new bug?

There should be a "(edit)" link next to "emerge failed" at the top of the page. I don't think it's necessary to create a new bug. A maintainer will probably attend to it, if you lack the permissions to apply those changes.
Comment 11 SpanKY gentoo-dev 2011-09-21 15:19:01 UTC
sed -i '1i#define OF(x) x' drivers/common/gzio.c
Comment 12 Juergen Rose 2011-10-03 07:35:38 UTC
Created attachment 288641 [details]
a ebuild which includes the patch of SpanKY
Comment 13 SpanKY gentoo-dev 2011-10-18 19:39:11 UTC
*** Bug 387189 has been marked as a duplicate of this bug. ***
Comment 14 Holger Hoffstätte 2011-11-19 19:58:50 UTC
Created attachment 293131 [details, diff]
Combined patch for zlib & JDK7 sandbox violation

This is a unified patch against the 14.2.3 ebuild in portage; it contains both the zlib fix and also a sandbox violation countermeasure when building the java lib with JDK7. It should work for both 14.2.3 and 14.2.4.
I tested this while trying to bump erlang to the latest 14.2.4 (aka R14B04) and it works for me on ~x86.
Comment 15 Holger Hoffstätte 2011-11-20 12:27:08 UTC
(In reply to comment #14)
I just saw that the sandbox fix has been incorporated into the latest jdk 1.7.0.1-r2 proper, so strictly speaking it's not necessary any more to make this part of every ebuild. I was using a newer jdk from my overlay without that particular fix.
Comment 16 Dirkjan Ochtman (RETIRED) gentoo-dev 2011-11-30 15:51:31 UTC
I've just put erlang-14.2.4 in the tree, with the zlib fix.

It sounds like you know your way around this package. I could use your help!
Comment 17 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2012-03-15 16:50:13 UTC
erlang-13.2.4 (stable) is also broken the same way with zlib-1.2.5.1-r2(~arch) which is required by virtuoso-server-6.1.4(~arch) 


I'm not sure if this constitutes a "new" bug or not, because as far as I am concerned, it is the same bug in an older version.