View previous topic :: View next topic |
Author |
Message |
BlackBelt Guru
Joined: 27 Nov 2004 Posts: 369 Location: Messina/Pisa
|
Posted: Sun Nov 06, 2011 1:33 pm Post subject: gcc 4.5.3-r1 fails to emerge with gcj use flag [SOLVED] |
|
|
as subject, I cannot emerge gcc with the use flag gcj:
Code: | echo > gcjh.stamp
here=`pwd`; cd /var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/libjava/classpath/lib; \
find gnu java javax org sun -name .svn -prune -o -name '*.class' -print | \
/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/x86_64-pc-linux-gnu/libjava/scripts/jar -cfM@ $here/libgcj-4.5.3.jar
/bin/sh ./libtool --tag=GCJ --mode=compile /var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc/gcj -B/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/x86_64-pc-linux-gnu/libjava/ -B/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include -fomit-frame-pointer -fclasspath= -fbootclasspath=/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/libjava/classpath/lib --encoding=UTF-8 -Wno-deprecated -fbootstrap-classes -march=native -O2 -pipe -DCRYPTOPP_DISABLE_ASM -c -o java/lang/Object.lo -fsource-filename=/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/libjava/java/lang/Object.java /var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/libjava/classpath/lib/java/lang/Object.class
libtool: compile: /var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc/gcj -B/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/x86_64-pc-linux-gnu/libjava/ -B/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include -fomit-frame-pointer -fclasspath= -fbootclasspath=/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/libjava/classpath/lib --encoding=UTF-8 -Wno-deprecated -fbootstrap-classes -march=native -O2 -pipe -DCRYPTOPP_DISABLE_ASM -c -fsource-filename=/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/libjava/java/lang/Object.java /var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/libjava/classpath/lib/java/lang/Object.class -fPIC -o java/lang/.libs/Object.o
gcj: can't specify '-D' without '--main'
make[3]: *** [java/lang/Object.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
make[4]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/x86_64-pc-linux-gnu/libjava'
make[3]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/x86_64-pc-linux-gnu/libjava'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/x86_64-pc-linux-gnu/libjava'
make[1]: *** [all-target-libjava] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build'
make: *** [bootstrap-lean] Error 2
emake failed
* ERROR: sys-devel/gcc-4.5.3-r1 failed (compile phase):
* emake failed with bootstrap-lean
*
* Call stack:
* ebuild.sh, line 91: Called src_compile
* environment, line 4604: Called toolchain_src_compile
* environment, line 5304: Called gcc_do_make
* environment, line 2764: Called die
* The specific snippet of code:
* emake LDFLAGS="${LDFLAGS}" STAGE1_CFLAGS="${STAGE1_CFLAGS}" LIBPATH="${LIBPATH}" BOOT_CFLAGS="${BOOT_CFLAGS}" ${GCC_MAKE_TARGET} || die "emake failed with ${GCC_MAKE_TARGET}";
*
* If you need support, post the output of 'emerge --info =sys-devel/gcc-4.5.3-r1',
* the complete build log and the output of 'emerge -pqv =sys-devel/gcc-4.5.3-r1'.
* The complete build log is located at '/var/tmp/portage/sys-devel/gcc-4.5.3-r1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-devel/gcc-4.5.3-r1/temp/environment'.
* S: '/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build'
>>> Failed to emerge sys-devel/gcc-4.5.3-r1, Log file:
>>> '/var/tmp/portage/sys-devel/gcc-4.5.3-r1/temp/build.log'
* Messages for package sys-devel/gcc-4.5.3-r1:
* ERROR: sys-devel/gcc-4.5.3-r1 failed (compile phase):
* emake failed with bootstrap-lean
*
* Call stack:
* ebuild.sh, line 91: Called src |
Code: | Nabucodonosor emanuele # emerge --info
Portage 2.1.10.32 (default/linux/amd64/10.0/desktop, gcc-4.5.3, glibc-2.13-r4, 2.6.32-gentoo-r7 x86_64)
=================================================================
System uname: Linux-2.6.32-gentoo-r7-x86_64-Intel-R-_Core-TM-2_Duo_CPU_P9700_@_2.80GHz-with-gentoo-2.0.2
Timestamp of tree: Sun, 06 Nov 2011 10:30:01 +0000
app-shells/bash: 4.2_p10
dev-java/java-config: 2.1.11-r3
dev-lang/python: 2.6.6-r2, 2.7.1-r1, 3.1.3-r1, 3.2
dev-util/cmake: 2.8.6-r3
dev-util/pkgconfig: 0.26
sys-apps/baselayout: 2.0.2
sys-apps/openrc: 0.8.2-r1
sys-apps/sandbox: 2.5
sys-devel/autoconf: 2.13, 2.68
sys-devel/automake: 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1-r1
sys-devel/binutils: 2.21
sys-devel/gcc: 4.3.4, 4.4.5, 4.5.3-r1
sys-devel/gcc-config: 1.4.1-r1
sys-devel/libtool: 2.4-r1
sys-devel/make: 3.82-r1
sys-kernel/linux-headers: 2.6.38 (virtual/os-headers)
sys-libs/glibc: 2.13-r4
Repositories: gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -DCRYPTOPP_DISABLE_ASM"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe -DCRYPTOPP_DISABLE_ASM"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="ftp://mirror.leaseweb.com/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://gd.tuwien.ac.at/opsys/linux/gentoo/ ftp://de-mirror.org/distro/gentoo/ ftp://gd.tuwien.ac.at/opsys/linux/gentoo/"
LANG="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en it"
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"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 apache2 berkdb berndb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gdu gif gnome gpm gtk iconv innodb ipv6 jpeg lcms ldap libnotify mad mmx mng modules mp3 mp4 mpeg mudflap multilib mysql ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf php png policykit ppds pppd qt3support qt4 readline sdl session spell sse sse2 ssl startup-notification svg sysfs tcpd tiff truetype udev unicode usb vorbis x264 xcb xml xml2 xorg xulrunner xv xvid 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 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 synaptics virtualbox vmmouse mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en it" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia virtualbox vmware" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS |
any workaround?
thanks in advance _________________ "Sulla strada per l'inferno c'e' sempre un sacco di gente,
ma è comunque una via che si percorre in solitudine."
Charles Bukowski
Last edited by BlackBelt on Fri Nov 18, 2011 8:11 am; edited 1 time in total |
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Sun Nov 06, 2011 2:07 pm Post subject: |
|
|
Quote: | /x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include -fomit-frame-pointer -fclasspath= -fbootclasspath=/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/libjava/classpath/lib --encoding=UTF-8 -Wno-deprecated -fbootstrap-classes -march=native -O2 -pipe -DCRYPTOPP_DISABLE_ASM -c -fsource-filename=/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/libjava/java/lang/Object.java /var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/libjava/classpath/lib/java/lang/Object.class -fPIC -o java/lang/.libs/Object.o
gcj: can't specify '-D' without '--main'
|
Quote: | CFLAGS="-march=native -O2 -pipe -DCRYPTOPP_DISABLE_ASM" |
|
|
Back to top |
|
|
BlackBelt Guru
Joined: 27 Nov 2004 Posts: 369 Location: Messina/Pisa
|
Posted: Sun Nov 06, 2011 2:13 pm Post subject: |
|
|
krinn wrote: | Quote: | /x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include -fomit-frame-pointer -fclasspath= -fbootclasspath=/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/libjava/classpath/lib --encoding=UTF-8 -Wno-deprecated -fbootstrap-classes -march=native -O2 -pipe -DCRYPTOPP_DISABLE_ASM -c -fsource-filename=/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/libjava/java/lang/Object.java /var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/libjava/classpath/lib/java/lang/Object.class -fPIC -o java/lang/.libs/Object.o
gcj: can't specify '-D' without '--main'
|
Quote: | CFLAGS="-march=native -O2 -pipe -DCRYPTOPP_DISABLE_ASM" |
|
I see.. I will try recompiling CRYPTOPP_DISABLE_ASM... I dunno why it is in my cflags.
thanks you _________________ "Sulla strada per l'inferno c'e' sempre un sacco di gente,
ma è comunque una via che si percorre in solitudine."
Charles Bukowski |
|
Back to top |
|
|
nlsa8z6zoz7lyih3ap Guru
Joined: 25 Sep 2007 Posts: 388 Location: Canada
|
Posted: Thu Nov 17, 2011 8:21 pm Post subject: |
|
|
Quote: | see.. I will try recompiling CRYPTOPP_DISABLE_ASM... I dunno why it is in my cflags. |
Did this fix the problem for you? |
|
Back to top |
|
|
BlackBelt Guru
Joined: 27 Nov 2004 Posts: 369 Location: Messina/Pisa
|
Posted: Fri Nov 18, 2011 8:03 am Post subject: |
|
|
nlsa8z6zoz7lyih3ap wrote: | Quote: | see.. I will try recompiling CRYPTOPP_DISABLE_ASM... I dunno why it is in my cflags. |
Did this fix the problem for you? |
yes it does. _________________ "Sulla strada per l'inferno c'e' sempre un sacco di gente,
ma è comunque una via che si percorre in solitudine."
Charles Bukowski |
|
Back to top |
|
|
|
|
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
|
|