Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 225079 - media-libs/fontconfig-2.6.0-r1 fails to build (can't find fcalias.h)
Summary: media-libs/fontconfig-2.6.0-r1 fails to build (can't find fcalias.h)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Fonts Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-06 04:35 UTC by Iain Buchanan
Modified: 2008-06-22 16:51 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Iain Buchanan 2008-06-06 04:35:38 UTC
While building fontconfig-2.6.0 this came up but I fixed it manually and couldn't reproduce it.  Now it's here again!

output from emerge just after configure stage:
make  all-recursive
make[1]: Entering directory `/var/tmp/portage/media-libs/fontconfig-2.6.0-r1/work/fontconfig-2.6.0'
Making all in fontconfig
make[2]: Entering directory `/var/tmp/portage/media-libs/fontconfig-2.6.0-r1/work/fontconfig-2.6.0/fontconfig'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/var/tmp/portage/media-libs/fontconfig-2.6.0-r1/work/fontconfig-2.6.0/fontconfig'
Making all in fc-case
make[2]: Entering directory `/var/tmp/portage/media-libs/fontconfig-2.6.0-r1/work/fontconfig-2.6.0/fc-case'
touch fcalias.h fcaliastail.h
touch fcalias.h fcaliastail.h
if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../src -I.. -Wall -Wpointer-arith -Wstrict-prototypes   -Wmissing-prototypes -Wmissing-declarations    -Wnested-externs -fno-strict-aliasing    -O2 -march=i686 -pipe -MT fc-case.o -MD -MP -MF ".deps/fc-case.Tpo" -c -o fc-case.o fc-case.c; \
        then mv -f ".deps/fc-case.Tpo" ".deps/fc-case.Po"; else rm -f ".deps/fc-case.Tpo"; exit 1; fi
In file included from fc-case.c:25:
../src/fcint.h:118:21: error: fcalias.h: No such file or directory
make[2]: *** [fc-case.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/media-libs/fontconfig-2.6.0-r1/work/fontconfig-2.6.0/fc-case'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/media-libs/fontconfig-2.6.0-r1/work/fontconfig-2.6.0'
make: *** [all] Error 2
 * 
 * ERROR: media-libs/fontconfig-2.6.0-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2349:  Called die
 * The specific snippet of code:
 *       emake || die
 *  The die message:
 *   (no error message)
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/media-libs/fontconfig-2.6.0-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-libs/fontconfig-2.6.0-r1/temp/environment'.
 * 

 * GNU info directory index is up-to-date.

fcalias.h actually exists in fc-case/fcalias.h but no src/fcalias.h.  As a workaround you can link/copy it to src/ and the compile completes.  Alternatively I added this to src_compile:

src_compile() {
	CPPFLAGS="${CPPFLAGS} -Ifc-case/"
	...


$ emerge --info
Portage 2.1.5.4 (default/linux/x86/2008.0, gcc-4.1.2, glibc-2.7-r2, 2.6.25-tuxonice-r4 i686)
=================================================================
System uname: 2.6.25-tuxonice-r4 i686 Intel(R) Core(TM)2 Duo CPU T9500 @ 2.60GHz
Timestamp of tree: Fri, 06 Jun 2008 00:52:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r6, 2.5.2-r4
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.62
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.25-r3
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="ftp://morpheus.pcorp.com.au/pub/gentoo-portage/ http://mirror.internode.on.net/pub/gentoo/ http://ftp.swin.edu.au/gentoo/"
LANG="en_AU"
LC_ALL="en_AU"
LDFLAGS=""
LINGUAS="en_AU en en_GB en_US"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
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 /usr/local/portage-synce-overlay"
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"
USE="X aac acl acpi aiglx alsa avahi berkdb bzip2 cli cracklib crypt cups dbus dri esd ffmpeg fortran gdbm gnome gpm gtk hal iconv ipv6 isdnlog jpeg libnotify midi mpeg mudflap ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection samba session smb spl ssl tcpd unicode x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 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 mouse synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_AU en en_GB en_US" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa fbdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Peter Alfredsen (RETIRED) gentoo-dev 2008-06-06 12:48:29 UTC
Can you reproduce this with MAKEOPTS="-j1" ?
How about for -j2?

I can't reproduce that with MAKEOPTS="-j2", but then, my computer is so old that the only race it will participate in is the one to the junkyard...
Comment 2 Iain Buchanan 2008-06-06 14:10:38 UTC
(In reply to comment #1)
> Can you reproduce this with MAKEOPTS="-j1" ?
> How about for -j2?

meh... I can't reproduce it at all!  Same thing happened as last time: error was there when I tried to upgrade, but doesn't reproduce when I remerge...  configure output looks the same... hm will have to look more tomorrow.  any hints?

> I can't reproduce that with MAKEOPTS="-j2", but then, my computer is so old
> that the only race it will participate in is the one to the junkyard...

:)  uuu-mah!
Comment 3 Ryan Hill (RETIRED) gentoo-dev 2008-06-06 22:03:23 UTC
i read through the Makefile but couldn't find a race condition.  i also built with infinite jobs and couldn't reproduce. :/
Comment 4 Peter Alfredsen (RETIRED) gentoo-dev 2008-06-06 22:21:08 UTC
(In reply to comment #3)
> i read through the Makefile but couldn't find a race condition.  i also built
> with infinite jobs and couldn't reproduce. :/

http://tinderbox.freedesktop.org/builds/2008-04-17-0006/longview
http://forum.developers.facebook.com/viewtopic.php?pid=81756

I think it's perhaps a one in a 1000 chance we've hit on here. It's been there since at least 2.3.97, yet there's only three web references. The two above and this one.
Comment 5 Peter Volkov (RETIRED) gentoo-dev 2008-06-22 16:10:22 UTC
For description of the problem and patch take a look at:

https://bugs.freedesktop.org/show_bug.cgi?id=16464

I'll wait a bit for upstream to review my patch and then fix this problem in our tree.
Comment 6 Peter Volkov (RETIRED) gentoo-dev 2008-06-22 16:51:51 UTC
Thank you all guys. Patch was applied upstream and I've put it in our CVS too. FIXED.