Closed golodhrim closed 14 years ago
There is something wrong with your linker flags - there shouldnt be the quotation marks around the -Wl options. Please post the output of "emerge --info" (and put that in between
so its not formatted by markdown).
Portage 2.2_rc67-r2 (unavailable, gcc-4.4.3, glibc-2.10.1-r1, 2.6.33-gentoo-r1 x86_64) ================================================================= System uname: Linux-2.6.33-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7250_@_2.00GHz-with-gentoo-2.1.6 Timestamp of tree: Tue, 29 Jun 2010 15:00:01 +0000 app-shells/bash: 4.0_p35 dev-java/java-config: 2.1.11 dev-lang/python: 2.6.5-r2, 3.1.2-r3 dev-util/cmake: 2.8.1-r2 sys-apps/baselayout: 2.1.6 sys-apps/openrc: 0.6.1 sys-apps/sandbox: 2.2 sys-devel/autoconf: 2.13, 2.65-r1 sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.20.1 sys-devel/gcc: 4.3.3-r2, 4.4.3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6b, 2.2.10 virtual/os-headers: 2.6.32 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/X11/xkb /usr/share/config /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-march=core2 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests distlocks fixpackages mini-manifest news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="C" LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed" LINGUAS="en de" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" 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-mini-2010" PORTDIR_OVERLAY="/var/lib/layman/akoya /var/lib/layman/wschlich-testing /var/lib/layman/sage-on-gentoo /usr/local/portage/self/science /usr/local/portage/self/unoff /usr/local/portage/self/foo-golodhrim /usr/local/portage/self/r1k0" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X acl acpi alac alsa amd64 automount avahi berkdb bzip2 cdr cracklib crypt cups dbus dri dvd dvdr dvdread dvi encode flac fortran gdbm gif gnome gnome-keyring gpm gtk iconv ipv6 java jpeg jpeg2k lame mad mmx modules mp3 mpeg mudflap multilib ncurses nls nptl ogg opengl openmp pam pcre perl png pppd python readline ruby_targets_ruby18 spell sse sse2 sse3 ssl tcpd tiff truetype unicode vorbis wavpack xinerama xml xorg xulrunner zlib" 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" 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 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" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de" USERLAND="GNU" VIDEO_CARDS="ati radeonhd" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
ok thx, please try again with
LDFLAGS="-Wl,-O1,--sort-common,--as-needed"
in make.conf.
ok Solution found for it Error is in the Patchfile... works at least under Funtoo change content of file sage-clib-4.4.4-importenv.patch as follows:
@@ -120,6 +120,10 @@ env['SAGE_LOCAL'] = os.environ['SAGE_LOCAL'] if os.environ.has_key('SAGE_DEBIAN'): env['SAGE_LOCAL'] = '/usr' +env['CFLAGS'] = os.environ['CFLAGS'] +env['CXXFLAGS'] = os.environ['CXXFLAGS'] +env['LINKFLAGS'] = os.environ['LDFLAGS']+' -Wl,-soname,libcsage.so' +#env.Append(LINKFLAGS = ['-Wl,-soname,libcsage.so']) # The SCons convenience function Split is the only strange thing # to python programmers. It just makes a list by splitting on
compiling is working with it...
Looks fine, waiting for Francois to approve it
Thanks for reporting! Fixed with 28f7f10dc3cd883ba45bb92fefb4b1b3e2856572
Hi together,
I just tried to install sage with your ebuilds and got stuck in the sage-clib-4.4.4 ebuild it always hangs with the following error:
/usr/include/features.h:160:1: warning: this is the location of the previous definition g++ -o libcsage.so "-Wl,-O1 -Wl,--sort-common -Wl,--as-needed" -Wl,-soname,libcsage.so -shared src/convert.os src/interrupt.os src/mpn_pylong.os src/mpz_pylong.os src/mpz_longlong.os src/stdsage.os src/gmp_globals.os src/ZZ_pylong.os src/ntl_wrap.os -L/usr/lib -L/usr/lib/python/config -lntl -lpari -lgmp -lpython2.6 /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: unrecognized option '--sort-common -Wl' /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: use the --help option for usage information collect2: ld returned 1 exit status scons: *\ [libcsage.so] Error 1 scons: building terminated because of errors.
would be thankful for any help
Greetings golodhrim