Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 184646 - media-gfx/splashutils-1.4.3 failed to build with sys-devel/binutils-2.17.50.0.17
Summary: media-gfx/splashutils-1.4.3 failed to build with sys-devel/binutils-2.17.50.0.17
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Michal Januszewski (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-08 19:18 UTC by Arfrever Frehtes Taifersar Arahesis (RETIRED)
Modified: 2007-08-02 12:57 UTC (History)
2 users (show)

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


Attachments
/var/tmp/portage/media-gfx/splashutils-1.4.3/work/splashutils-1.4.3/objs/freetype2/config.log (config.log,31.37 KB, text/plain)
2007-07-08 19:19 UTC, Arfrever Frehtes Taifersar Arahesis (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-07-08 19:18:33 UTC
media-gfx/splashutils-1.4.3 and 1.4.2.1 fail to build.

make[1]: Wejście do katalogu `/var/tmp/portage/media-gfx/splashutils-1.4.3/work/miscsplashutils-0.1.8/kbd'
cc -march=athlon64 -pipe -O2 -fno-ident -fomit-frame-pointer   -c -o fgconsole.o fgconsole.c
cc -march=athlon64 -pipe -O2 -fno-ident -fomit-frame-pointer   -c -o getfd.o getfd.c
cc -march=athlon64 -pipe -O2 -fno-ident -fomit-frame-pointer -Wl,-O1,--as-needed,--hash-style=gnu,--sort-common,-z,relro fgconsole.o getfd.o -o fgconsole
make[1]: Opuszczenie katalogu `/var/tmp/portage/media-gfx/splashutils-1.4.3/work/miscsplashutils-0.1.8/kbd'
config.h successfully created.
You can run `make` now.
  CC      objs/solibsplash.o
  LD      objs/libsplash.so
  CONF    libjpeg
  MAKE    libjpeg
  CONF    freetype2
configure: error: cannot compute sizeof (int), 77
See `config.log' for more details.
make[1]: *** [/var/tmp/portage/media-gfx/splashutils-1.4.3/work/splashutils-1.4.3/libs/freetype-2.1.9/builds/unix/unix-def.mk] Błąd 1
make[1]: Wejście do katalogu `/var/tmp/portage/media-gfx/splashutils-1.4.3/work/splashutils-1.4.3/objs/freetype2'
make[1]: *** Brak reguł do wykonania obiektu `library'. Stop.
make[1]: Opuszczenie katalogu `/var/tmp/portage/media-gfx/splashutils-1.4.3/work/splashutils-1.4.3/objs/freetype2'
  MAKE    freetype2
make[1]: *** Brak reguł do wykonania obiektu `library'. Stop.
make: *** [ft2] Błąd 2
 *
 * ERROR: media-gfx/splashutils-1.4.3 failed.
 * Call stack:
 *   ebuild.sh, line 1569:   Called dyn_compile
 *   ebuild.sh, line 910:   Called qa_call 'src_compile'
 *   ebuild.sh, line 44:   Called src_compile
 *   splashutils-1.4.3.ebuild, line 128:   Called die
 *
 * failed to build splashutils
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/log/portage/media-gfx:splashutils-1.4.3:20070708-190023.log'.
 *

It's strange, because I managed to build 1.4.2.1 on 2007-06-11 21:39:39. I have klibc-1.5. I reemerged klibc, but splashutils still fail to build. It also fails with klibc-1.4.13.

$ emerge --info
Portage 7202-svn (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.5-r4, 2.6.21-suspend2-r6-AFTA i686)
=================================================================
System uname: 2.6.21-suspend2-r6-AFTA i686 AMD Sempron(tm) Processor 2800+
Gentoo Base System release 1.12.10
Timestamp of tree: Sun, 08 Jul 2007 16:20:01 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17.50.0.17
sys-devel/gcc-config: 1.4.0
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon64 -pipe -O2 -fno-ident -fomit-frame-pointer"
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/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-march=athlon64 -pipe -O2 -fno-ident -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildsyspkg ccache collision-protect distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.prz.rzeszow.pl http://gentoo.zie.pg.gda.pl http://gentoo.po.opole.pl http://gentoo.ynet.sk/pub http://mirror.gentoo.no http://mirrors.evolva.ro/gentoo http://ftp.du.se/pub/os/gentoo http://ftp.linux.ee/pub/gentoo/distfiles ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo http://ftp.lug.ro/gentoo http://src.gentoo.pl"
LANG="pl_PL.UTF-8"
LC_ALL="pl_PL.UTF-8"
LDFLAGS="-Wl,-O1,--as-needed,--hash-style=gnu,--sort-common,-z,relro"
LINGUAS="pl en la lt"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude=/manifest1_obsolete --prune-empty-dirs"
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"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac aalib acl acpi alsa arts audiofile bash-completion berkdb bzip2 cairo caps cddb cdparanoia cdr cracklib crypt cscope ctype cups curl curlwrappers dbus directfb dri dts dvb dvd dvdr dvdread emboss encode exif expat fam fbcon ffmpeg firefox flac foomaticdb ftp gcj gd gdbm ggi gif glut gmp gnutls gpm graphviz gstreamer gtk guile hal hardened iconv idn imagemagick imlib ipv6 java javascript jbig jpeg jpeg2k kde kdeenablefinal kdehiddenvisibility lash lcms ldap libcaca lm_sensors mad matroska matrox memlimit mhash mikmod mime mmap mmx mng motif mp3 mpeg mpi mplayer musepack ncurses netcdf nls nptl nsplugin odbc ogg openal openexr opengl pam pcntl pcre pda pdf perl png portaudio posix ppds profile python qt3 qt4 quicktime rdesktop readline recode ruby scanner sdl session sharedmem shorten simplexml slang slp sndfile soap sockets speex spell sse sse2 ssl svg svga symlink szip tcl tcpd theora threads tiff tk truetype unicode usb vcd vim-syntax vorbis win32codecs wmf wxwindows x264 x86 xcomposite xine xml xmlrpc xpm xprint xsl xv xvid zlib" ALSA_CARDS="hda-intel virmidi" 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="keyboard mouse" KERNEL="linux" LINGUAS="pl en la lt" USERLAND="GNU" VIDEO_CARDS="fbdev nv nvidia vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS


I also tried without LDFLAGS and splashutils still fail to build.
Comment 1 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-07-08 19:19:39 UTC
Created attachment 124276 [details]
/var/tmp/portage/media-gfx/splashutils-1.4.3/work/splashutils-1.4.3/objs/freetype2/config.log
Comment 2 Michal Januszewski (RETIRED) gentoo-dev 2007-07-08 19:29:03 UTC
Are you able to emerge freetype, or do you get the same error?
Comment 3 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-07-08 19:50:18 UTC
(In reply to comment #2)
> Are you able to emerge freetype, or do you get the same error?

I reemerged freetype-2.3.5 and splashutils still fail to build.
I reemerged freetype-2.3.4-r2 and splashutils still fail to build.

But there is:
>>> Unpacking source...
>>> Unpacking splashutils-lite-1.4.3.tar.bz2 to /var/tmp/portage/media-gfx/splashutils-1.4.3/work
>>> Unpacking splashutils-gentoo-1.0.4.tar.bz2 to /var/tmp/portage/media-gfx/splashutils-1.4.3/work
>>> Unpacking miscsplashutils-0.1.8.tar.bz2 to /var/tmp/portage/media-gfx/splashutils-1.4.3/work
>>> Unpacking libpng-1.2.8.tar.bz2 to /var/tmp/portage/media-gfx/splashutils-1.4.3/work
>>> Unpacking jpegsrc.v6b.tar.gz to /var/tmp/portage/media-gfx/splashutils-1.4.3/work
>>> Unpacking freetype-2.1.9.tar.bz2 to /var/tmp/portage/media-gfx/splashutils-1.4.3/work
>>> Unpacking zlib-1.2.3.tar.bz2 to /var/tmp/portage/media-gfx/splashutils-1.4.3/work
>>> Source unpacked.

So maybe splashutils use internal much older freetype-2.1.9. There is also libpng-1.2.18 in the tree.

I can build this file mentioned in config.log without this:
-include /var/tmp/portage/media-gfx/splashutils-1.4.3/work/splashutils-1.4.3/klibc_compat.h

Building with this option causes:
In file included from plik_testowy.c:17:
/usr/include/stdio.h:729: error: expected identifier or ‘(’ before numeric constant

/var/tmp/portage/media-gfx/splashutils-1.4.3/work/splashutils-1.4.3/klibc_compat.h contain only:
#ifndef __KLIBC_COMPAT_H__

#define ferror(f)       0

#endif /* __KLIBC_COMPAT_H__ */


/usr/include/stdio.h contain in line 729:
extern int ferror (FILE *__stream) __THROW __wur;

This is preprocessed into:
extern int 0 __THROW __wur;

Which is broken.

You can try to compile this file:
$ cat test_1.c
#define ferror(f)       0

extern int ferror (FILE *__stream) __THROW __wur;

int main (int argc, char** argv)
{
        return 0;
}
// End of file
$ gcc -E test_1.c
# 1 "test_1.c"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "test_1.c"


extern int 0 __THROW __wur;

int main (int argc, char** argv)
{
 return 0;
}
$ gcc test_1.c -o test_1
test_1.c:3: error: expected identifier or ‘(’ before numeric constant
$ 
Comment 4 Michal Januszewski (RETIRED) gentoo-dev 2007-07-09 21:07:25 UTC
Are you compiling plik_testowy.c with gcc or klcc? klibc_compat.h is meant to be used with source code that is compiled with klcc (note that it uses /usr/lib/klibc/include/stdio.h instead of /usr/include/stdio.h) and as far as I can see, it is still needed to compile freetype (freetype uses ferror, which is unimplemented in klibc).
Comment 5 devsk 2007-07-11 05:49:26 UTC
I am hitting this bug too, with the same config.log in freetype2, but on amd64.
Comment 6 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-07-11 07:58:55 UTC
(In reply to comment #5)
> I am hitting this bug too, with the same config.log in freetype2, but on amd64.

In my case it's probably caused by gcc-config-1.4.0. I will be sure in future when I will have fixed my system.
(Note that downgrading gcc-config seems to be dangerous.)
Comment 7 Jamaludin Ahmad 2007-07-11 10:54:04 UTC
i hit this bug too, my setting is pretty much the same like the original reporter. the notable differences is only i use gcc-config 1.3.16, with LDFLAGS "-Wl,-O1 -Wl,--hash-style=both".

the previous version (1.4.2.1) is built on Jun 11, but it failed now. i'm sure there is no changes on klibc in between. 
Comment 8 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-07-12 13:13:39 UTC
It isn't caused by gcc-config. I'm suspecting some other package.

People with this error, please post the output of `emerge --info`.
Comment 9 Jamaludin Ahmad 2007-07-12 13:48:19 UTC
ok, here is my emerge --info

Portage 2.1.3_rc7 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.5-r4, 2.6.21-gentoo i686)
=================================================================
System uname: 2.6.21-gentoo i686 Intel(R) Pentium(R) 4 CPU 2.00GHz
Gentoo Base System release 1.12.10
Timestamp of tree: Thu, 12 Jul 2007 13:30:10 +0000
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17.50.0.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -march=pentium4 -pipe -fomit-frame-pointer"
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/X11/xkb /usr/share/config /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-Os -march=pentium4 -pipe -fomit-frame-pointer"
DISTDIR="/data/01/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans"
GENTOO_MIRRORS="http://komo.padinet.com/gentoo/ http://gentoo.chem.wisc.edu/gentoo/ http://www.gtlib.gatech.edu/pub/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--hash-style=both"
LINGUAS="id en"
PKGDIR="/data/01/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="/data/01/temp"
PORTDIR="/data/01/portage"
PORTDIR_OVERLAY="/data/01/overlay/layman/sunrise /data/01/overlay/mine"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl alsa asf avi berkdb cli cracklib cups dbus dri dts dvd dvdr fam foomaticdb gdbm gif gtk2 hal iconv ipv6 jpeg kde libg++ mad maildir midi mmx mmxext mng motif mp3 mplayer mudflap musicbrainz ncurses nls nptl nptlonly nsplugin ogg opengl openmp oss pam pcre perl png python qt qt3 quicktime readline reflection samba session spl sqlite sse sse2 ssl tcpd threads tiff truetype truetype-fonts type1-fonts unicode vorbis win32codecs x86 xcomposite xml xorg xv zlib" ALSA_CARDS="intel8x0" 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="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="id en" USERLAND="GNU" VIDEO_CARDS="nv nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 10 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-07-12 17:08:43 UTC
I discovered which package causes this failure of splashutils.
Firstly I was suspecting glibc, next kernel, but it is binutils-2.17.50.0.17.

Other people with this problem, please (at least temporarily) downgrade binutils to e. g. 2.17.50.0.15. (2.17.50.0.16 doesn't build dev-libs/gmp.)

(I will consider reporting this bug on binutils bugzilla.)
Comment 11 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-07-12 23:47:10 UTC
I opened Bug 185111 in Gentoo bugzilla.
Comment 12 Jamaludin Ahmad 2007-07-13 04:36:45 UTC
confirmed your discovery. i could compile it after downgrading binutils to 2.17.50.0.15.
Comment 13 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-07-13 23:09:19 UTC
Reopening to change resolution.
Comment 14 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-08-02 12:57:06 UTC
It seems to be fixed in sys-devel/binutils-2.17.50.0.18.