Gentoo Archives: gentoo-user

From: Alexander Skwar <listen@×××××××××××××××.name>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Cannot compile texinfo: Illegal instruction -> Wrong -march and -mtune flags?
Date: Thu, 02 Aug 2007 18:19:40
Message-Id: 1205610.xdjbvpcjkU@m-id.message-center.info
1 Hello.
2
3 I'm trying to compile sys-apps/texinfo-4.8-r5, which fails with this
4 error message:
5
6 $restore $backupdir/* `echo "./texinfo.info" | sed 's|[^/]*$||'`; \
7 fi; \
8 rm -rf $backupdir; exit $rc
9 /bin/sh: line 13: 9091 Illegal instruction ..//makeinfo/makeinfo -I . -o texinfo.info `test -f 'texinfo.txi' || echo './'`texinfo.txi
10 make[2]: *** [texinfo.info] Error 132
11 make[2]: Leaving directory `/var/tmp/portage/sys-apps/texinfo-4.8-r5/work/texinfo-4.8/doc'
12 make[1]: *** [all-recursive] Error 1
13 make[1]: Leaving directory `/var/tmp/portage/sys-apps/texinfo-4.8-r5/work/texinfo-4.8'
14 make: *** [all] Error 2
15
16 !!! ERROR: sys-apps/texinfo-4.8-r5 failed.
17 Call stack:
18 ebuild.sh, line 1632: Called dyn_compile
19 ebuild.sh, line 983: Called qa_call 'src_compile'
20 ebuild.sh, line 44: Called src_compile
21 texinfo-4.8-r5.ebuild, line 56: Called die
22
23 Quite some time ago, I ran into the same problem and commented this in
24 bgo at <https://bugs.gentoo.org/show_bug.cgi?id=98951>. The issue "back
25 then" was:
26
27 | Ok, I butchered your output a bit, but the fact is that you are using
28 | -march=pentium4 on a AMD XP, which will not work ...
29
30 I'm now trying to do something like this again. I'm trying to compile
31 Gentoo on AMD XP for my Celeron M ("Pentium4") machine. To do this,
32 I have in make.conf:
33
34 CFLAGS="-O2 -march=pentium-m -mtune=athlon-xp -pipe -fomit-frame-pointer"
35
36 Build machine is a Athlon XP system, target system shall be a Pentium M
37 system.
38
39 Why do I get the illegal instruction error? I thought that because of the
40 "-mtune=athlon-xp", the compiler would generate code which would work
41 on athlon-xp machines and also on pentium-m machines, thanks to the -march
42 flag.
43
44 Or did I mix those two flags up? Should I use -march=athlon-xp -mtune=pentium-m
45 instead?
46
47 hetzner / # emerge --info
48 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)
49 =================================================================
50 System uname: 2.6.21-gentoo-r4.04.non-hardened i686 AMD Athlon(tm) XP 2000+
51 Gentoo Base System release 1.12.9
52 Timestamp of tree: Thu, 02 Aug 2007 11:50:01 +0000
53 dev-lang/python: 2.4.3-r4
54 dev-python/pycrypto: 2.0.1-r5
55 sys-apps/sandbox: 1.2.17
56 sys-devel/autoconf: 2.61
57 sys-devel/automake: 1.10
58 sys-devel/binutils: 2.16.1-r3
59 sys-devel/gcc-config: 1.3.14
60 sys-devel/libtool: 1.5.22
61 virtual/os-headers: 2.6.21
62 ACCEPT_KEYWORDS="x86"
63 AUTOCLEAN="yes"
64 CBUILD="i486-pc-linux-gnu"
65 CFLAGS="-O2 -march=pentium-m -mtune=athlon-xp -pipe -fomit-frame-pointer"
66 CHOST="i486-pc-linux-gnu"
67 CONFIG_PROTECT="/etc"
68 CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo"
69 CXXFLAGS="-O2 -march=pentium-m -mtune=athlon-xp -pipe -fomit-frame-pointer"
70 DISTDIR="/usr/portage/distfiles"
71 EMERGE_DEFAULT_OPTS="--alphabetical"
72 FEATURES="collision-protect distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
73 GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo/ http://gentoo.mirror.solnet.ch http://distfiles.gentoo.org/"
74 LINGUAS="de"
75 PKGDIR="/usr/portage/packages"
76 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-*"
77 PORTAGE_TMPDIR="/var/tmp"
78 PORTDIR="/usr/portage"
79 SYNC="rsync://rsync.ch.gentoo.org/gentoo-portage"
80 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
81 EO_CARDS="fbdev vesa vga via"
82 Unset: CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
83
84 Thanks a lot,
85
86 Alexander Skwar
87 --
88 Can you MAIL a BEAN CAKE?
89
90
91 --
92 gentoo-user@g.o mailing list

Replies