* [gentoo-user] Cannot compile texinfo: Illegal instruction -> Wrong -march and -mtune flags?
@ 2007-08-02 18:15 99% Alexander Skwar
0 siblings, 0 replies; 1+ results
From: Alexander Skwar @ 2007-08-02 18:15 UTC (permalink / raw
To: gentoo-user
Hello.
I'm trying to compile sys-apps/texinfo-4.8-r5, which fails with this
error message:
$restore $backupdir/* `echo "./texinfo.info" | sed 's|[^/]*$||'`; \
fi; \
rm -rf $backupdir; exit $rc
/bin/sh: line 13: 9091 Illegal instruction ..//makeinfo/makeinfo -I . -o texinfo.info `test -f 'texinfo.txi' || echo './'`texinfo.txi
make[2]: *** [texinfo.info] Error 132
make[2]: Leaving directory `/var/tmp/portage/sys-apps/texinfo-4.8-r5/work/texinfo-4.8/doc'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/sys-apps/texinfo-4.8-r5/work/texinfo-4.8'
make: *** [all] Error 2
!!! ERROR: sys-apps/texinfo-4.8-r5 failed.
Call stack:
ebuild.sh, line 1632: Called dyn_compile
ebuild.sh, line 983: Called qa_call 'src_compile'
ebuild.sh, line 44: Called src_compile
texinfo-4.8-r5.ebuild, line 56: Called die
Quite some time ago, I ran into the same problem and commented this in
bgo at <https://bugs.gentoo.org/show_bug.cgi?id=98951>. The issue "back
then" was:
| Ok, I butchered your output a bit, but the fact is that you are using
| -march=pentium4 on a AMD XP, which will not work ...
I'm now trying to do something like this again. I'm trying to compile
Gentoo on AMD XP for my Celeron M ("Pentium4") machine. To do this,
I have in make.conf:
CFLAGS="-O2 -march=pentium-m -mtune=athlon-xp -pipe -fomit-frame-pointer"
Build machine is a Athlon XP system, target system shall be a Pentium M
system.
Why do I get the illegal instruction error? I thought that because of the
"-mtune=athlon-xp", the compiler would generate code which would work
on athlon-xp machines and also on pentium-m machines, thanks to the -march
flag.
Or did I mix those two flags up? Should I use -march=athlon-xp -mtune=pentium-m
instead?
hetzner / # emerge --info
Portage 2.1.2.11 (default-linux/x86/2007.0/desktop, gcc-4.1.1, glibc-2.5-r0, 2.6.21-gentoo-r4.04.non-hardened i686)
=================================================================
System uname: 2.6.21-gentoo-r4.04.non-hardened i686 AMD Athlon(tm) XP 2000+
Gentoo Base System release 1.12.9
Timestamp of tree: Thu, 02 Aug 2007 11:50:01 +0000
dev-lang/python: 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox: 1.2.17
sys-devel/autoconf: 2.61
sys-devel/automake: 1.10
sys-devel/binutils: 2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool: 1.5.22
virtual/os-headers: 2.6.21
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i486-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -mtune=athlon-xp -pipe -fomit-frame-pointer"
CHOST="i486-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo"
CXXFLAGS="-O2 -march=pentium-m -mtune=athlon-xp -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--alphabetical"
FEATURES="collision-protect distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo/ http://gentoo.mirror.solnet.ch http://distfiles.gentoo.org/"
LINGUAS="de"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.ch.gentoo.org/gentoo-portage"
USE="X acpi alsa bash-completion berkdb bitmap-fonts cairo cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread emboss encode esd evo fam firefox fortran gdbm gif gnome gstreamer gtk hal iconv isdnlog jpeg kde kdeenablefinal kdehiddenvisibility libg++ libnotify mad midi mikmod mmx mp3 mpeg mudflap ncurses nfs nls nptl nptlonly offensive ogg opengl openmp pam pcre pdf perl png pppd python qt3 qt3support qt4 quicktime readline reflection samba sdl session spell spl ssl svg tiff truetype truetype-fonts type1-fonts unicode vim-syntax vorbis wifi win32codecs x86 xml xorg xv zlib" ALSA_CARDS="loopback usb-audio via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VID
EO_CARDS="fbdev vesa vga via"
Unset: CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Thanks a lot,
Alexander Skwar
--
Can you MAIL a BEAN CAKE?
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [relevance 99%]
Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2007-08-02 18:15 99% [gentoo-user] Cannot compile texinfo: Illegal instruction -> Wrong -march and -mtune flags? Alexander Skwar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox