Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 491170 - sys-libs/readline-6.2_p1-r1: compile failed: "gcc: -compatibility_version only allowed with -dynamiclib"
Summary: sys-libs/readline-6.2_p1-r1: compile failed: "gcc: -compatibility_version onl...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All OS X
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-13 14:19 UTC by Linlin Yan
Modified: 2013-11-19 18:39 UTC (History)
0 users

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


Attachments
$EPREFIX/usr/portage/sys-libs/readline/files/readline-6.2-gcc-compatibility-version.patch (readline-6.2-gcc-compatibility-version.patch,629 bytes, patch)
2013-11-13 14:46 UTC, Linlin Yan
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Linlin Yan 2013-11-13 14:19:13 UTC
During stage3, while emerging portage, it failed at =sys-libs/readline-6.2_p1-r1, with messages like this:

gcc -m64 -dynamic -Wl,-search_paths_first -L/Users/yanll/Gentoo/usr/lib -L/Users/yanll/Gentoo/lib -L/Users/yanll/Gentoo/tmp/usr/lib -L. -arch_only `/usr/bin/arch` -install_name /Users/yanll/Gentoo/usr/lib/libreadline.6.2.dylib -current_version 6.2 -compatibility_version 6 -v -o libreadline.6.2.dylib readline.so vi_mode.so funmap.so keymaps.so parens.so search.so rltty.so complete.so bind.so isearch.so display.so signals.so util.so kill.so undo.so macro.so input.so callback.so terminal.so text.so nls.so misc.so xmalloc.so xfree.so history.so histexpand.so histfile.so histsearch.so shell.so mbutil.so tilde.so compat.so -lncurses
Using built-in specs.
Target: x86_64-apple-darwin13
Configured with: /Users/yanll/Gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5666-r2/work/gcc-5666.3/configure --prefix=/Users/yanll/Gentoo/usr --bindir=/Users/yanll/Gentoo/usr/x86_64-apple-darwin13/gcc-bin/4.2.1 --includedir=/Users/yanll/Gentoo/usr/lib/gcc/x86_64-apple-darwin13/4.2.1/include --datadir=/Users/yanll/Gentoo/usr/share/gcc-data/x86_64-apple-darwin13/4.2.1 --mandir=/Users/yanll/Gentoo/usr/share/gcc-data/x86_64-apple-darwin13/4.2.1/man --infodir=/Users/yanll/Gentoo/usr/share/gcc-data/x86_64-apple-darwin13/4.2.1/info --with-gxx-include-dir=/Users/yanll/Gentoo/usr/lib/gcc/x86_64-apple-darwin13/4.2.1/include/g++-v4 --host=x86_64-apple-darwin13 --enable-version-specific-runtime-libs --build=x86_64-apple-darwin13 --disable-nls --with-system-zlib --disable-checking --disable-werror --enable-shared --enable-threads=posix --with-local-prefix=/Users/yanll/Gentoo/usr --with-as=/Users/yanll/Gentoo/usr/bin/x86_64-apple-darwin13-as --with-ld=/Users/yanll/Gentoo/usr/bin/x86_64-apple-darwin13-ld --disable-multilib --enable-languages=c,c++,objc,obj-c++ --enable-libgomp
Thread model: posix
gcc version 4.2.1 (Gentoo 4.2.1_p5666-r2, Apple Inc. build 5666) (dot 3)
gcc: -compatibility_version only allowed with -dynamiclib
make[1]: *** [libreadline.6.2.dylib] Error 1
make[1]: Leaving directory `/Users/yanll/Gentoo/var/tmp/portage/sys-libs/readline-6.2_p1-r1/work/readline-6.2/shlib'
make: *** [shared] Error 2
emake failed

Reproducible: Always




yanll@yanll-mac ~/Gentoo $ emerge --info
Portage 2.2.7-prefix (prefix/darwin/macos/10.9/x64, gcc-4.2.1, unavailable, 13.0.0 x86_64)
=================================================================
System uname: Darwin-13.0.0-x86_64-i386-64bit
Timestamp of tree: Sat, 09 Nov 2013 23:06:07 +0000
app-shells/bash:      4.1_p11
dev-util/pkgconfig:   0.28
sys-devel/autoconf:   2.69
sys-devel/automake:   1.12.4
sys-devel/gcc-config: 1.8-r00.1
sys-devel/libtool:    2.4.2
sys-devel/make:       3.82-r4
Repositories: gentoo_prefix
ACCEPT_KEYWORDS="~x64-macos"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-apple-darwin13"
CFLAGS="-march=nocona"
CHOST="x86_64-apple-darwin13"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/gentoo-release /etc/terminfo"
CPPFLAGS="-I/Users/yanll/Gentoo/usr/include -I/Users/yanll/Gentoo/tmp/usr/include"
CXXFLAGS=""
DISTDIR="/Users/yanll/Gentoo/usr/portage/distfiles"
FCFLAGS=""
FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles force-prefix merge-sync nostrip parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-search_paths_first -L/Users/yanll/Gentoo/usr/lib -L/Users/yanll/Gentoo/lib -L/Users/yanll/Gentoo/tmp/usr/lib"
PKGDIR="/Users/yanll/Gentoo/usr/portage/packages"
PORTAGE_CONFIGROOT="/Users/yanll/Gentoo/"
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"
PORTAGE_TMPDIR="/Users/yanll/Gentoo/var/tmp"
PORTDIR="/Users/yanll/Gentoo/usr/portage"
PORTDIR_OVERLAY=""
USE="aqua bootstrap coreaudio cracklib cxx internal-glib ipv6 modules ncurses objc objc++ prefix x64-macos zlib" 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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="Darwin" 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="keyboard mouse" KERNEL="Darwin" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" 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:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Comment 1 Linlin Yan 2013-11-13 14:46:28 UTC
Created attachment 363198 [details, diff]
$EPREFIX/usr/portage/sys-libs/readline/files/readline-6.2-gcc-compatibility-version.patch

It should be patched after 'readline-6.2-aixso.patch'.

I have tested it on my MacBook Pro (OS X Mavericks).
Comment 2 Fabian Groffen gentoo-dev 2013-11-19 17:52:37 UTC
odd, for me it says:

x86_64-apple-darwin11-gcc -dynamiclib -dynamic -undefined dynamic_lookup -arch_only `/usr/bin/arch` -Wl,-dead_strip_dylibs -L. -dynamiclib -arch_only `/usr/bin/arch` -install_name /Library/Gentoo/usr/lib/`basename libreadline.6.2.dylib .2.dylib`.dylib -current_version 6.2 -compatibility_version 6 -o libreadline.6.2.dylib readline.so vi_mode.so funmap.so keymaps.so parens.so search.so rltty.so complete.so bind.so isearch.so display.so signals.so util.so kill.so undo.so macro.so input.so callback.so terminal.so text.so nls.so misc.so xmalloc.so xfree.so history.so histexpand.so histfile.so histsearch.so shell.so mbutil.so tilde.so compat.so -lncurses

After looking in shobj-conf, it's clear why:

# Darwin/MacOS X
darwin[89]*|darwin1[012]*)
...
    SHOBJ_LDFLAGS='-dynamiclib -dynamic -undefined dynamic_lookup -arch_only `/ 

Let's try to fix that instead if your patch
Comment 3 Fabian Groffen gentoo-dev 2013-11-19 18:39:19 UTC
fixed, the ebuild was already doing this for Lion and Mountain Lion