Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
zlib-1.2.11-r1 is not compiling
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
cix
n00b
n00b


Joined: 13 Nov 2017
Posts: 3

PostPosted: Fri Nov 17, 2017 4:46 pm    Post subject: zlib-1.2.11-r1 is not compiling Reply with quote

While the overall system seems to work all right, I keep having an issue with the compilation of sys-libs/zlib-1.2.11-r1::gentoo and I got stuck. Can anybody put me on the right track again?
Thanks for the help!

# emerge -v sys-libs/zlib

[...]
Code:

* ERROR: sys-libs/zlib-1.2.11-r1::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=sys-libs/zlib-1.2.11-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-libs/zlib-1.2.11-r1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-libs/zlib-1.2.11-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-libs/zlib-1.2.11-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-libs/zlib-1.2.11-r1/work/zlib-1.2.11-abi_x86_32.x86'
 * S: '/var/tmp/portage/sys-libs/zlib-1.2.11-r1/work/zlib-1.2.11'

NOTE: in the following I omit the requested /var/tmp/portage/sys-libs/zlib-1.2.11-r1/temp/environment as it is very long. Should this be necessary, please ask for it.


# emerge --info '=sys-libs/zlib-1.2.11-r1::gentoo'
Code:
Portage 2.3.8 (python 2.7.12-final-0, default/linux/amd64/13.0, gcc-5.4.0, glibc-2.25-r9, 3.18.11-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.18.11-gentoo-x86_64-Intel-R-_Core-TM-_i5-4210U_CPU_@_1.70GHz-with-gentoo-2.4.1
KiB Mem:     3943588 total,    604372 free
KiB Swap:    2097148 total,   2069928 free
Timestamp of repository gentoo: Fri, 17 Nov 2017 15:30:01 +0000
Head commit of repository gentoo: b30d8ca444d2baa143d6444227a70a25373b3110
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.28.1 p1.0) 2.28.1
app-shells/bash:          4.3_p48-r1::gentoo
dev-lang/perl:            5.24.1-r2::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/cmake:           3.7.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.28::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.28.1::gentoo
sys-devel/gcc:            5.4.0-r3::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25-r9::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X aac acl alsa amd64 berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm gif iconv jpeg modules mp3 mpeg multilib ncurses nls nptl opengl openmp pam pcre png pulsaudio readline seccomp session ssl tcpd thinkpad threads unicode vaapi xattr zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NGINX_MODULES_HTTP="echo upload_progress rewrite gzip fastcgi" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby22" USERLAND="GNU" VIDEO_CARDS="intel i965" 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:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

# emerge -pqv '=sys-libs/zlib-1.2.11-r1::gentoo'
Code:
[ebuild     U ] sys-libs/zlib-1.2.11-r1 [1.2.11] USE="-minizip -static-libs" ABI_X86="32 (64) (-x32)"



# cat /var/tmp/portage/sys-libs/zlib-1.2.11-r1/temp/build.log
Code:
 * Package:    sys-libs/zlib-1.2.11-r1
 * Repository: gentoo
 * Maintainer: base-system@gentoo.org
 * USE:        abi_x86_32 abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU
 * FEATURES:   preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking zlib-1.2.11.tar.gz to /var/tmp/portage/sys-libs/zlib-1.2.11-r1/work
>>> Source unpacked in /var/tmp/portage/sys-libs/zlib-1.2.11-r1/work
>>> Preparing source in /var/tmp/portage/sys-libs/zlib-1.2.11-r1/work/zlib-1.2.11 ...
 * Applying zlib-1.2.11-fix-deflateParams-usage.patch ...                                                                                                                                                                               [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sys-libs/zlib-1.2.11-r1/work/zlib-1.2.11 ...
 * abi_x86_32.x86: running multilib-minimal_abi_src_configure
/var/tmp/portage/sys-libs/zlib-1.2.11-r1/work/zlib-1.2.11/configure --shared --prefix=/usr --libdir=/usr/lib32 --uname=linux
Using ar
Checking for shared library support...
No shared library support; try without defining CC and CFLAGS
Building static library libz.a version 1.2.11 with x86_64-pc-linux-gnu-gcc -m32.
Checking for size_t... Yes.
Checking for off64_t... Yes.
Checking for fseeko... Yes.
Checking for strerror... No.
Checking for unistd.h... Yes.
Checking for stdarg.h... Yes.
Checking whether to use vs[n]printf() or s[n]printf()... using vs[n]printf().
Checking for vsnprintf() in stdio.h... No.
  WARNING: vsnprintf() not found, falling back to vsprintf(). zlib
  can build but will be open to possible buffer-overflow security
  vulnerabilities.
Checking for return value of vsprintf()... Yes.
Checking for attribute(visibility) support... Yes.
 * abi_x86_64.amd64: running multilib-minimal_abi_src_configure
/var/tmp/portage/sys-libs/zlib-1.2.11-r1/work/zlib-1.2.11/configure --shared --prefix=/usr --libdir=/usr/lib64 --uname=linux
Using x86_64-pc-linux-gnu-ar
Using x86_64-pc-linux-gnu-ranlib
Using x86_64-pc-linux-gnu-nm
Checking for x86_64-pc-linux-gnu-gcc...
Checking for shared library support...
Building shared library libz.so.1.2.11 with x86_64-pc-linux-gnu-gcc.
Checking for size_t... Yes.
Checking for off64_t... Yes.
Checking for fseeko... Yes.
Checking for strerror... Yes.
Checking for unistd.h... Yes.
Checking for stdarg.h... Yes.
Checking whether to use vs[n]printf() or s[n]printf()... using vs[n]printf().
Checking for vsnprintf() in stdio.h... Yes.
Checking for return value of vsnprintf()... Yes.
Checking for attribute(visibility) support... Yes.
>>> Source configured.
>>> Compiling source in /var/tmp/portage/sys-libs/zlib-1.2.11-r1/work/zlib-1.2.11 ...
 * abi_x86_32.x86: running multilib-minimal_abi_src_compile
make -j5
x86_64-pc-linux-gnu-gcc -m32 -march=native -O2 -pipe -D_LARGEFILE64_SOURCE=1 -DNO_STRERROR -DNO_vsnprintf -DHAVE_HIDDEN -I. -I/var/tmp/portage/sys-libs/zlib-1.2.11-r1/work/zlib-1.2.11/ -c -o example.o /var/tmp/portage/sys-libs/zlib-1.2.11-r1/work/zlib-1.2.11/test/example.c
x86_64-pc-linux-gnu-gcc -m32 -march=native -O2 -pipe -D_LARGEFILE64_SOURCE=1 -DNO_STRERROR -DNO_vsnprintf -DHAVE_HIDDEN -include zconf.h -c -o adler32.o /var/tmp/portage/sys-libs/zlib-1.2.11-r1/work/zlib-1.2.11/adler32.c
x86_64-pc-linux-gnu-gcc -m32 -march=native -O2 -pipe -D_LARGEFILE64_SOURCE=1 -DNO_STRERROR -DNO_vsnprintf -DHAVE_HIDDEN -include zconf.h -c -o crc32.o /var/tmp/portage/sys-libs/zlib-1.2.11-r1/work/zlib-1.2.11/crc32.c
x86_64-pc-linux-gnu-gcc -m32 -march=native -O2 -pipe -D_LARGEFILE64_SOURCE=1 -DNO_STRERROR -DNO_vsnprintf -DHAVE_HIDDEN -include zconf.h -c -o deflate.o /var/tmp/portage/sys-libs/zlib-1.2.11-r1/work/zlib-1.2.11/deflate.c
x86_64-pc-linux-gnu-gcc -m32 -march=native -O2 -pipe -D_LARGEFILE64_SOURCE=1 -DNO_STRERROR -DNO_vsnprintf -DHAVE_HIDDEN -include zconf.h -c -o infback.o /var/tmp/portage/sys-libs/zlib-1.2.11-r1/work/zlib-1.2.11/infback.c
x86_64-pc-linux-gnu-gcc -m32 -march=native -O2 -pipe -D_LARGEFILE64_SOURCE=1 -DNO_STRERROR -DNO_vsnprintf -DHAVE_HIDDEN -include zconf.h -c -o inffast.o /var/tmp/portage/sys-libs/zlib-1.2.11-r1/work/zlib-1.2.11/inffast.c
x86_64-pc-linux-gnu-gcc -m32 -march=native -O2 -pipe -D_LARGEFILE64_SOURCE=1 -DNO_STRERROR -DNO_vsnprintf -DHAVE_HIDDEN -include zconf.h -c -o inflate.o /var/tmp/portage/sys-libs/zlib-1.2.11-r1/work/zlib-1.2.11/inflate.c
x86_64-pc-linux-gnu-gcc -m32 -march=native -O2 -pipe -D_LARGEFILE64_SOURCE=1 -DNO_STRERROR -DNO_vsnprintf -DHAVE_HIDDEN -include zconf.h -c -o inftrees.o /var/tmp/portage/sys-libs/zlib-1.2.11-r1/work/zlib-1.2.11/inftrees.c
x86_64-pc-linux-gnu-gcc -m32 -march=native -O2 -pipe -D_LARGEFILE64_SOURCE=1 -DNO_STRERROR -DNO_vsnprintf -DHAVE_HIDDEN -include zconf.h -c -o trees.o /var/tmp/portage/sys-libs/zlib-1.2.11-r1/work/zlib-1.2.11/trees.c
x86_64-pc-linux-gnu-gcc -m32 -march=native -O2 -pipe -D_LARGEFILE64_SOURCE=1 -DNO_STRERROR -DNO_vsnprintf -DHAVE_HIDDEN -include zconf.h -c -o zutil.o /var/tmp/portage/sys-libs/zlib-1.2.11-r1/work/zlib-1.2.11/zutil.c
x86_64-pc-linux-gnu-gcc -m32 -march=native -O2 -pipe -D_LARGEFILE64_SOURCE=1 -DNO_STRERROR -DNO_vsnprintf -DHAVE_HIDDEN -include zconf.h -c -o compress.o /var/tmp/portage/sys-libs/zlib-1.2.11-r1/work/zlib-1.2.11/compress.c
x86_64-pc-linux-gnu-gcc -m32 -march=native -O2 -pipe -D_LARGEFILE64_SOURCE=1 -DNO_STRERROR -DNO_vsnprintf -DHAVE_HIDDEN -include zconf.h -c -o uncompr.o /var/tmp/portage/sys-libs/zlib-1.2.11-r1/work/zlib-1.2.11/uncompr.c
x86_64-pc-linux-gnu-gcc -m32 -march=native -O2 -pipe -D_LARGEFILE64_SOURCE=1 -DNO_STRERROR -DNO_vsnprintf -DHAVE_HIDDEN -include zconf.h -c -o gzclose.o /var/tmp/portage/sys-libs/zlib-1.2.11-r1/work/zlib-1.2.11/gzclose.c
x86_64-pc-linux-gnu-gcc -m32 -march=native -O2 -pipe -D_LARGEFILE64_SOURCE=1 -DNO_STRERROR -DNO_vsnprintf -DHAVE_HIDDEN -include zconf.h -c -o gzlib.o /var/tmp/portage/sys-libs/zlib-1.2.11-r1/work/zlib-1.2.11/gzlib.c
x86_64-pc-linux-gnu-gcc -m32 -march=native -O2 -pipe -D_LARGEFILE64_SOURCE=1 -DNO_STRERROR -DNO_vsnprintf -DHAVE_HIDDEN -include zconf.h -c -o gzread.o /var/tmp/portage/sys-libs/zlib-1.2.11-r1/work/zlib-1.2.11/gzread.c
x86_64-pc-linux-gnu-gcc -m32 -march=native -O2 -pipe -D_LARGEFILE64_SOURCE=1 -DNO_STRERROR -DNO_vsnprintf -DHAVE_HIDDEN -include zconf.h -c -o gzwrite.o /var/tmp/portage/sys-libs/zlib-1.2.11-r1/work/zlib-1.2.11/gzwrite.c
x86_64-pc-linux-gnu-gcc -m32 -march=native -O2 -pipe -D_LARGEFILE64_SOURCE=1 -DNO_STRERROR -DNO_vsnprintf -DHAVE_HIDDEN -I. -I/var/tmp/portage/sys-libs/zlib-1.2.11-r1/work/zlib-1.2.11/ -c -o minigzip.o /var/tmp/portage/sys-libs/zlib-1.2.11-r1/work/zlib-1.2.11/test/minigzip.c
x86_64-pc-linux-gnu-gcc -m32 -march=native -O2 -pipe -D_LARGEFILE64_SOURCE=1 -DNO_STRERROR -DNO_vsnprintf -DHAVE_HIDDEN -I. -I/var/tmp/portage/sys-libs/zlib-1.2.11-r1/work/zlib-1.2.11/ -D_FILE_OFFSET_BITS=64 -c -o example64.o /var/tmp/portage/sys-libs/zlib-1.2.11-r1/work/zlib-1.2.11/test/example.c
x86_64-pc-linux-gnu-gcc -m32 -march=native -O2 -pipe -D_LARGEFILE64_SOURCE=1 -DNO_STRERROR -DNO_vsnprintf -DHAVE_HIDDEN -I. -I/var/tmp/portage/sys-libs/zlib-1.2.11-r1/work/zlib-1.2.11/ -D_FILE_OFFSET_BITS=64 -c -o minigzip64.o /var/tmp/portage/sys-libs/zlib-1.2.11-r1/work/zlib-1.2.11/test/minigzip.c
ar rc libz.a adler32.o crc32.o deflate.o infback.o inffast.o inflate.o inftrees.o trees.o zutil.o compress.o uncompr.o gzclose.o gzlib.o gzread.o gzwrite.o
x86_64-pc-linux-gnu-gcc -m32 -march=native -O2 -pipe -D_LARGEFILE64_SOURCE=1 -DNO_STRERROR -DNO_vsnprintf -DHAVE_HIDDEN -o example example.o -L. libz.a
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/../../../libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/../../../libc.a when searching for -lc
/lib32/libc.so.6: error adding symbols: File format not recognized
collect2: error: ld returned 1 exit status
make: *** [Makefile:289: example] Error 1
make: *** Waiting for unfinished jobs....
 * ERROR: sys-libs/zlib-1.2.11-r1::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=sys-libs/zlib-1.2.11-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-libs/zlib-1.2.11-r1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-libs/zlib-1.2.11-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-libs/zlib-1.2.11-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-libs/zlib-1.2.11-r1/work/zlib-1.2.11-abi_x86_32.x86'
 * S: '/var/tmp/portage/sys-libs/zlib-1.2.11-r1/work/zlib-1.2.11'


[Moderator edit: added [code] tags to preserve output layout. -Hu]
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 16911
Location: here

PostPosted: Fri Nov 17, 2017 4:58 pm    Post subject: Reply with quote

It seems a 32bit compilation problem.
You have IA32 emulation actived in kernel?
Code:
$ grep IA32 /usr/src/linux/.config


EDIT: welcome to gentoo
EDIT2: next time use a pastebin site or wgetpaste for post build.log
_________________
Questions are guaranteed in life; Answers aren't.


Last edited by fedeliallalinea on Fri Nov 17, 2017 5:11 pm; edited 1 time in total
Back to top
View user's profile Send private message
cix
n00b
n00b


Joined: 13 Nov 2017
Posts: 3

PostPosted: Fri Nov 17, 2017 5:06 pm    Post subject: Reply with quote

@fedeliallalinea: thank you for you reply.

# grep IA32 /usr/src/linux/.config
Code:
CONFIG_IA32_EMULATION=y


Also, I am using this system for almost three years and the problem appeared just recently. In the past zlib compiled all right. I cannot think of what has changed in the meantime.

(I'll use pastebin or wgetpaste as suggested, thank you)

[Moderator edit: added [code] tags to preserve output layout. -Hu]
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 5752

PostPosted: Fri Nov 17, 2017 5:39 pm    Post subject: Reply with quote

Try to re-emerge glibc.
Back to top
View user's profile Send private message
cix
n00b
n00b


Joined: 13 Nov 2017
Posts: 3

PostPosted: Sun Nov 19, 2017 6:42 pm    Post subject: Reply with quote

Today libz compliled with no issues. What I did:

- I remembered that /usr/lib64 was a symbolic link to a folder in a different partition. I didn't think this would have been an issue, but to stay on the safe side, I removed the symlink and made /usr/lib64 a proper folder agin
- emerge -va zlib

@fedeliallalinea and @mv: thank you for your support. It seems that the symlink was confusing the ebuild, for a reason I cannot phantom at the moment.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum