Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 317475 - dev-tex/luatex-0.60.0 fails to build when multiple --param parameters are passed to GCC
Summary: dev-tex/luatex-0.60.0 fails to build when multiple --param parameters are pas...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal
Assignee: TeX project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-27 13:47 UTC by Richard
Modified: 2010-05-22 22:39 UTC (History)
2 users (show)

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


Attachments
emerge --info =dev-tex/luatex-0.60.0 (info.txt,5.09 KB, text/plain)
2010-04-29 06:18 UTC, Denis I. Polukarov
Details
emerge -pqv =dev-tex/luatex-0.60.0 (pqv.txt,62 bytes, text/plain)
2010-04-29 06:19 UTC, Denis I. Polukarov
Details
build.log (build.log,200.66 KB, text/plain)
2010-04-29 06:20 UTC, Denis I. Polukarov
Details
=dev-tex/luatex-0.60.1 build log (build.log,211.84 KB, text/plain)
2010-05-03 11:39 UTC, Richard
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Richard 2010-04-27 13:47:56 UTC
The dev-tex/luatex-0.60.0 ebuild appears to be stripping multiple occurrences of "--param" from GCC's CFLAGS, which causes the build to fail because the passed parameters are considered to refer to files by GCC.

Reproducible: Always

Steps to Reproduce:
1. Have multiple parameters passed to GCC via --param in your CFLAGS
2. Try to build dev-tex/luatex-0.60.0
3. Watch it fail.

Actual Results:  
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I./..  -I./..  -O3 -pipe -march=core2 -msse4.1 -mcx16 -msahf --param l1-cache-size=32 l1-cache-line-size=64 l2-cache-size=6144 -ftree-loop-linear -fgcse-sm -fgcse-las -ftree-loop-im -ftree-loop-ivcanon -fivopts -frename-registers -fweb   -I./luatexdir/lua51 -O3 -pipe -march=core2 -msse4.1 -mcx16 -msahf --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=6144 -ftree-loop-linear -fgcse-sm -fgcse-las -ftree-loop-im -ftree-loop-ivcanon -fivopts -frename-registers -fweb  -O3 -pipe -march=core2 -msse4.1 -mcx16 -msahf --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=6144 -ftree-loop-linear -fgcse-sm -fgcse-las -ftree-loop-im -ftree-loop-ivcanon -fivopts -frename-registers -fweb -MT libluamisc_a-md5lib.o -MD -MP -MF .deps/libluamisc_a-md5lib.Tpo -c -o libluamisc_a-md5lib.o `test -f 'luatexdir/luamd5/md5lib.c' || echo './'`luatexdir/luamd5/md5lib.c
x86_64-pc-linux-gnu-gcc: l1-cache-line-size=64: No such file or directory
x86_64-pc-linux-gnu-gcc: l2-cache-size=6144: No such file or directory
x86_64-pc-linux-gnu-gcc: l1-cache-line-size=64: No such file or directory
x86_64-pc-linux-gnu-gcc: l2-cache-size=6144: No such file or directory
x86_64-pc-linux-gnu-gcc: l1-cache-line-size=64: No such file or directory
x86_64-pc-linux-gnu-gcc: l2-cache-size=6144: No such file or directory
libtool: link: x86_64-pc-linux-gnu-gcc -Wimplicit -Wreturn-type -Wdeclaration-after-statement -Wno-unknown-pragmas -O3 -pipe -march=core2 -msse4.1 -mcx16 -msahf --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=6144 -ftree-loop-linear -fgcse-sm -fgcse-las -ftree-loop-im -ftree-loop-ivcanon -fivopts -frename-registers -fweb -Wl,-O1 -o ctangleboot ctangleboot.o cwebboot.o  lib/lib.a /usr/lib64/libkpathsea.so -ldl -lm
make[2]: *** [libluamisc_a-md5lib.o] Error 1
make[2]: *** Waiting for unfinished jobs....
libtool: link: x86_64-pc-linux-gnu-gcc -Wimplicit -Wreturn-type -Wdeclaration-after-statement -Wno-unknown-pragmas -O3 -pipe -march=core2 -msse4.1 -mcx16 -msahf --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=6144 -ftree-loop-linear -fgcse-sm -fgcse-las -ftree-loop-im -ftree-loop-ivcanon -fivopts -frename-registers -fweb -Wl,-O1 -o tangleboot tangleboot.o  lib/lib.a /usr/lib64/libkpathsea.so -ldl -lm
make[2]: *** [libluamisc_a-lfs.o] Error 1
make[2]: *** [libluamisc_a-md5.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/dev-tex/luatex-0.60.0/work/luatex-beta-0.60.0/source/texk/web2c'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-tex/luatex-0.60.0/work/luatex-beta-0.60.0/source/texk/web2c'
make: *** [all] Error 2
 * ERROR: dev-tex/luatex-0.60.0 failed:
 *   failed to build luatex
 * 
 * Call stack:
 *     ebuild.sh, line  54:  Called src_compile
 *   environment, line 2742:  Called die
 * The specific snippet of code:
 *       emake || die "failed to build luatex"
 * 
 * If you need support, post the output of 'emerge --info =dev-tex/luatex-0.60.0',
 * the complete build log and the output of 'emerge -pqv =dev-tex/luatex-0.60.0'.
 * The complete build log is located at '/var/tmp/portage/dev-tex/luatex-0.60.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-tex/luatex-0.60.0/temp/environment'.
 * S: '/var/tmp/portage/dev-tex/luatex-0.60.0/work/luatex-beta-0.60.0/source'

Expected Results:  
This should have worked.

Here is emerge --info:

$ emerge --info
Portage 2.1.8.3 (default/linux/amd64/10.0/no-multilib, gcc-4.4.3, glibc-2.11.1-r0, 2.6.33.3 x86_64)
=================================================================
System uname: Linux-2.6.33.3-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9550_@_2.83GHz-with-gentoo-2.0.1
Timestamp of tree: Tue, 27 Apr 2010 12:15:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p5
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.5-r1, 3.1.2-r2
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.1-r1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1
sys-devel/gcc:       4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.33
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -pipe -march=core2 -msse4.1 -mcx16 -msahf --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=6144 -ftree-loop-linear -fgcse-sm -fgcse-las -ftree-loop-im -ftree-loop-ivcanon -fivopts -frename-registers -fweb"
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/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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"
CPPFLAGS="-O3 -pipe -march=core2 -msse4.1 -mcx16 -msahf --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=6144 -ftree-loop-linear -fgcse-sm -fgcse-las -ftree-loop-im -ftree-loop-ivcanon -fivopts -frename-registers -fweb"
CXXFLAGS="-O3 -pipe -march=core2 -msse4.1 -mcx16 -msahf --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=6144 -ftree-loop-linear -fgcse-sm -fgcse-las -ftree-loop-im -ftree-loop-ivcanon -fivopts -frename-registers -fweb"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests buildpkg ccache distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O3 -pipe -march=core2 -msse4.1 -mcx16 -msahf --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=6144 -ftree-loop-linear -fgcse-sm -fgcse-las -ftree-loop-im -ftree-loop-ivcanon -fivopts -frename-registers -fweb"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1"
LINGUAS="en"
MAKEOPTS="-j5"
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="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X acl alsa amd64 berkdb bzip2 cdr cli consolekit cracklib crypt cups cxx dbus dri dvd dvdr fftw fortran gd gdbm gif gnutls gpm hal iconv ipv6 java java6 jpeg kde midi mmx mng modules mudflap ncurses nls nptl nptlonly nsplugin ntpl opengl openmp pam pcre perl png pppd python qt3 qt3support qt4 readline reflection session spl sse sse2 sse3 ssl ssse3 svg sysfs tcpd tiff unicode xml xorg zlib" ALSA_CARDS="ens1371" 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="keyboard vmmouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vmware" 
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

I realize that using "-march=native" in place of "-march=core2 -msse4.1 -mcx16 -msahf --param l1-cache-size=32 l1-cache-line-size=64 l2-cache-size=6144" would work around this issue, but I compiled my entire system by specifying the options "-march=native" chooses to make GCC skip its auto-detection logic and it has always worked until dev-tex/luatex-0.60.0 was added to the portage tree. This is something that yngwin specifically recommended on the Gentoo forums:

http://forums.gentoo.org/viewtopic-t-821370-start-25.html#6230128
Comment 1 Denis I. Polukarov 2010-04-29 06:18:59 UTC
Created attachment 229615 [details]
emerge --info =dev-tex/luatex-0.60.0
Comment 2 Denis I. Polukarov 2010-04-29 06:19:54 UTC
Created attachment 229617 [details]
emerge -pqv =dev-tex/luatex-0.60.0
Comment 3 Denis I. Polukarov 2010-04-29 06:20:47 UTC
Created attachment 229619 [details]
build.log
Comment 4 Richard 2010-05-03 11:39:48 UTC
Created attachment 230129 [details]
=dev-tex/luatex-0.60.1 build log

It appears that dev-tex/luatex-0.60.1 is also affected by this bug.
Comment 5 Navid Zamani 2010-05-11 12:51:18 UTC
I’m confirming the problem. Should be an easy fix. Who’s in for it? :)
Comment 6 Arthur.M 2010-05-18 11:24:36 UTC
(In reply to comment #5)
> I’m confirming the problem. Should be an easy fix. Who’s in for it? :)
> 

same error.
update to zlib-1.2.5-r2 fixed the problem.
Comment 7 Navid Zamani 2010-05-18 11:50:16 UTC
(In reply to comment #6)
> update to zlib-1.2.5-r2 fixed the problem.
Seconded. Fixed for me.
Comment 8 Richard 2010-05-22 22:39:21 UTC
Since this bug is fixed, I am closing this bug.