Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 496046 - media-tv/mythtv-0.27_p20131124 - x86_64-pc-linux-gnu-gcc: error: l1-cache-line-size=64: No such file or directory
Summary: media-tv/mythtv-0.27_p20131124 - x86_64-pc-linux-gnu-gcc: error: l1-cache-lin...
Status: RESOLVED DUPLICATE of bug 489912
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-26 03:21 UTC by NA
Modified: 2013-12-29 02:19 UTC (History)
0 users

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


Attachments
build.log (build.log,67.39 KB, text/plain)
2013-12-26 20:43 UTC, NA
Details
build.log, funtoo machine, distcc off. Similar failure. (0.27_p20131124.build.log,39.65 KB, text/plain)
2013-12-26 23:17 UTC, NA
Details

Note You need to log in before you can comment on or make changes to this bug.
Description NA 2013-12-26 03:21:47 UTC
I want to try the 0.27 version of mythtv but it fails to compile on this system and also a system running funtoo. Version 0.26 compiles ok.

emerge --info =media-tv/mythtv-0.27_p20131124
Portage 2.2.7 (default/linux/amd64/13.0/desktop/kde, gcc-4.6.3, glibc-2.16.0, 3.10.7-gentoo-r1 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.10.7-gentoo-r1-x86_64-AMD_A8-3850_APU_with_Radeon-tm-_HD_Graphics-with-gentoo-2.2
KiB Mem:     7634496 total,   3451952 free
KiB Swap:   10485756 total,  10485756 free
Timestamp of tree: Wed, 25 Dec 2013 14:00:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
distcc 3.1 x86_64-pc-linux-gnu [enabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.5-r3, 3.1.4-r3, 3.2.5-r3, 3.3.2-r2
dev-util/cmake:           2.8.11.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.16.0
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA AdobeFlash-11.x PUEL"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=amdfam10 -mcx16 -msahf -mno-movbe -mno-aes -mno-pclmul -mpopcnt -mabm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-tbm -mno-avx -mno-sse4.2 -mno-sse4.1 --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=1024 -mtune=amdfam10"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=amdfam10 -mcx16 -msahf -mno-movbe -mno-aes -mno-pclmul -mpopcnt -mabm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-tbm -mno-avx -mno-sse4.2 -mno-sse4.1 --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=1024 -mtune=amdfam10"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distcc distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.swin.edu.au/gentoo"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j11"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://gateway/gentoo-portage"
USE="3dnow X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif gpm gtk iconv ipv6 jpeg kde kipi lcms ldap libnotify mad mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds qt3support qt4 readline sdl semantic-desktop session spell sse sse2 ssl startup-notification svg tcpd threads tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xcb xcomposite xinerama xml xscreensaver xv xvid zlib" ABI_X86="64" 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" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 sheets stage tables krita karbon braindump author" 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 ublox ubx" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_GB" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby18" SANE_BACKENDS="epson2" USERLAND="GNU" VIDEO_CARDS="radeon" 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, USE_PYTHON

****************************************************************************
...
YASM    libswscale/x86/scale.o
CC      ffmpeg.o
CC      ffmpeg_opt.o
CC      ffmpeg_filter.o
CC      cmdutils.o
CC      ffprobe.o
CC      ffserver.o
LD      libavutil/libmythavutil.so.52
LD      libswresample/libmythswresample.so.0
LD      libpostproc/libmythpostproc.so.52
LD      libavcodec/libmythavcodec.so.54
LD      libavformat/libmythavformat.so.54
LD      libswscale/libmythswscale.so.2
LD      libavfilter/libmythavfilter.so.3
LD      libavdevice/libmythavdevice.so.54
LD      ffprobe_g
LD      ffserver_g
CP      ffprobe
CP      ffserver
STRIP   ffprobe
skipping strip ffprobe
STRIP   ffserver
skipping strip ffserver
LD      ffmpeg_g
CP      ffmpeg
STRIP   ffmpeg
skipping strip ffmpeg
make[2]: Leaving directory `/var/tmp/portage/media-tv/mythtv-0.27_p20131124/work/mythtv-0.27/mythtv/external/FFmpeg'
make[1]: Leaving directory `/var/tmp/portage/media-tv/mythtv-0.27_p20131124/work/mythtv-0.27/mythtv/external'
make: *** [external] Error 2
 * ERROR: media-tv/mythtv-0.27_p20131124::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=media-tv/mythtv-0.27_p20131124::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=media-tv/mythtv-0.27_p20131124::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/media-tv/mythtv-0.27_p20131124/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-tv/mythtv-0.27_p20131124/temp/environment'.
 * Working directory: '/var/tmp/portage/media-tv/mythtv-0.27_p20131124/work/mythtv-0.27/mythtv'
 * S: '/var/tmp/portage/media-tv/mythtv-0.27_p20131124/work/mythtv-0.27/mythtv'
Comment 1 Rafał Mużyło 2013-12-26 05:16:52 UTC
Attach full build log - the error is missing in this snippet.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2013-12-26 15:28:08 UTC
Please attach the entire build log to this bug report.
Comment 3 NA 2013-12-26 20:43:14 UTC
Created attachment 366238 [details]
build.log

Version 0.26 builds ok on the same machine. I could get you a log for that if it would help.
Comment 4 NA 2013-12-26 23:17:06 UTC
Created attachment 366246 [details]
build.log, funtoo machine, distcc off. Similar failure.

I'm going to be away and off line so I won't be able to try anything or provide more info for a few days.
Comment 5 Rafał Mużyło 2013-12-27 01:22:52 UTC
Buils system complains about this part of your C{XX}FLAGS: '--param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=1024'.
Comment 6 NA 2013-12-27 01:44:59 UTC
The gentoo distcc documentation https://wiki.gentoo.org/wiki/Distcc suggests the following command:

gcc -march=native -E -v - </dev/null 2>&1 | grep cc1

to determine what cpu optimisations that would be evoked with -march=native on a particular machine.  You need to do this when there are different cpu's within a distcc pool so that machine controlling the compile passes the correct optimisations to the slaves.  That is where those optimisations have come from.

gcc -march=native -E -v - </dev/null 2>&1 | grep cc1
 /usr/libexec/gcc/x86_64-pc-linux-gnu/4.6.4/cc1 -E -quiet -v - -march=k8-sse3 -mcx16 -msahf -mno-movbe -mno-aes -mno-pclmul -mno-popcnt -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-tbm -mno-avx -mno-sse4.2 -mno-sse4.1 -mno-rdrnd -mno-f16c -mno-fsgsbase --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtune=k8
Comment 7 NA 2013-12-27 01:48:56 UTC
Sorry, mixed up machines. This is for the machine the bug was logged against.

gcc -march=native -E -v - </dev/null 2>&1 | grep cc1
 /usr/libexec/gcc/x86_64-pc-linux-gnu/4.6.3/cc1 -E -quiet -v - -march=amdfam10 -mcx16 -msahf -mno-movbe -mno-aes -mno-pclmul -mpopcnt -mabm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-tbm -mno-avx -mno-sse4.2 -mno-sse4.1 --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=1024 -mtune=amdfam10
Comment 8 Jeroen Roovers (RETIRED) gentoo-dev 2013-12-27 15:24:07 UTC
Comment on attachment 366246 [details]
build.log, funtoo machine, distcc off. Similar failure.

We don't support Funtoo.
Comment 9 Jeroen Roovers (RETIRED) gentoo-dev 2013-12-27 15:25:32 UTC
Ah, CFLAGS mangling.

*** This bug has been marked as a duplicate of bug 489912 ***
Comment 10 NA 2013-12-29 02:19:16 UTC
Workaround. Disable distcc and set 

CFLAGS="-O2 -pipe -march=native"

Thanks.