Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 42196 - xscreensaver does not support ICC compiler
Summary: xscreensaver does not support ICC compiler
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Alastair Tse (RETIRED)
URL:
Whiteboard:
Keywords:
: 42638 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-02-19 15:38 UTC by Andrea Cerrito
Modified: 2004-07-23 22:24 UTC (History)
3 users (show)

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 Andrea Cerrito 2004-02-19 15:38:48 UTC
If you try to use icc to compile xscreensaver, the configure phase will fail with error "checking for C compiler default output file name... configure: error: C compiler cannot create executables"


Reproducible: Always
Steps to Reproduce:
1. USE="+icc" emerge xscreensaver
2.
3.

Actual Results:  
>>> Source unpacked.
gtk
pam
kerberos
krb4
opengl
jpeg
nls
icc
icc
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
current directory: /var/tmp/portage/xscreensaver-4.14-r2/work/xscreensaver-4.14
command line was: ./configure --prefix=/usr --host=i686-pc-linux-gnu
--mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share
--sysconfdir=/etc --localstatedir=/var/lib
--enable-hackdir=/usr/lib/xscreensaver --x-libraries=/usr/X11R6/lib
--x-includes=/usr/X11R6/include --with-mit-ext --with-dpms-ext
--with-xf86vmode-ext --with-xf86gamma-ext --with-proc-interrupts --with-xpm
--with-xshm-ext --with-xdbe-ext --enable-locking --with-fortune=/usr/bin/fortune
--without-motif --with-gtk --with-xml --without-xinerama-ext --with-pam
--with-kerberos --with-gl --with-gle --with-jpeg --enable-nls
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for i686-pc-linux-gnu-gcc... icc
checking for C compiler default output file name... configure: error: C compiler
cannot create executables
See `config.log' for more details.

!!! ERROR: x11-misc/xscreensaver-4.14-r2 failed.
!!! Function econf, Line 365, Exitcode 77
!!! econf failed

From config.log
configure:1676: checking for i686-pc-linux-gnu-gcc
configure:1702: result: icc
configure:1984: checking for C compiler version
configure:1987: icc --version </dev/null >&5
8.0
configure:1990: $? = 0
configure:1992: icc -v </dev/null >&5
Version 8.0
configure:1995: $? = 0
configure:1997: icc -V </dev/null >&5
Intel(R) C++ Compiler for 32-bit applications, Version 8.0   Build 20031016Z
Package ID: l_cc_p_8.0.055
Copyright (C) 1985-2003 Intel Corporation.  All rights reserved.
FOR NON-COMMERCIAL USE ONLY

iccbin: Command line error: no files specified; for help type "iccbin -help"
configure:2000: $? = 1
configure:2023: checking for C compiler default output file name
configure:2026: icc -march=pentium3 -mfpmath=sse -O2 -fPIC -pipe
-fomit-frame-pointer -mmmx -msse -falign-functions=32 -fforce-addr   conftest.c  >&5
iccbin: Command line error: invalid argument for option '-march'
configure:2029: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:2068: error: C compiler cannot create executables
See `config.log' for more details.


Expected Results:  
Compile fine.

cerrito on GSM [00:34:35] xscreensaver-4.14 # emerge info
Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20040207-r0,
2.6.1-gentoo-r1)
=================================================================
System uname: 2.6.1-gentoo-r1 i686 Intel(R) Pentium(R) III Mobile CPU      1200MHz
Gentoo Base System version 1.4.3.13
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -mfpmath=sse -O2 -fPIC -pipe -fomit-frame-pointer -mmmx
-msse -falign-functions=32 -fforce-addr"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config
/usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=pentium3 -mfpmath=sse -O2 -fPIC -pipe -fomit-frame-pointer
-mmmx -msse -falign-functions=32 -fforce-addr"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://212.219.56.162/sites/www.ibiblio.org/gentoo/
http://194.83.57.2/sites/www.ibiblio.org/gentoo/ 
http://194.83.57.3/sites/www.ibiblio.org/gentoo/
http://ftp.snt.utwente.nl/pub/os/linux/gentoo 
ftp://ftp.flashnet.it/mirror/12/sunsite.unc.edu/Gentoo
ftp://ftp.unina.it/pub/linux/sunsite 
http://ibiblio.org/pub/Linux/ftp.edisontel.com/pub/Sunsite_Mirror
http://sunsite.cnlab-switch.ch/ftp/mirror/gentoo 
ftp://sunsite.cnlab-switch.ch/mirror/gentoo
http://www.ibiblio.org/pub/Linux/distributions/gentoo 
http://gentoo.oregonstate.edu"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/portoverlay"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X X509 aalib acl acpi acpi4linux alsa apm arts artswrappersuid avi berkdb
bluetooth bonobo caps cdr chroot crypt cups dga diet directfb dv dvd encode
ethereal evo faad fbcon fbdev ffmpeg foomaticdb foreign-sysvinit freetype fs
gatos gd gdbm gif gnome gpm gtk gtk2 gtkhtml guile hostap-noplx icc idea
imagemagick imap imlib imlib2 innodb ipv6 irda irmc java javascript jikes jpeg
justify kde kerberos krb4 ldap libg++ libgda libwww linguas_it mad maildir
md5sum memlimit mikmod mmx mng motif mozilla moznocompose moznoirc moznomail
mpeg mpeg4 msn mule mysql nas ncurses net nls no-exercises nptl odbc offensive
oggvorbis opengl openssh operanom2 oscar pam parse-clocks pcap pcmcia pdflib
perl pic pie png pnp ppds python qt quicktime radeon readline ruby samba sasl
scanner sdl serial skey slang snmp socks5 speedo spell sse ssl svga tcltk tcpd
tetex tiff transcode truetype type1 usb v4l video_cards_radeon vim-with-x x86
xchattext xine xml2 xmms xosd xv xvid zlib"
Comment 1 SpanKY gentoo-dev 2004-02-20 12:45:52 UTC
it's probably trying to use your CFLAGS with icc and chances are that's causing it to fail
Comment 2 Alastair Tse (RETIRED) gentoo-dev 2004-02-21 04:50:17 UTC
configure:2026: icc -march=pentium3 -mfpmath=sse -O2 -fPIC -pipe
-fomit-frame-pointer -mmmx -msse -falign-functions=32 -fforce-addr   conftest.c  >&5
iccbin: Command line error: invalid argument for option '-march'
configure:2029: $? = 1

that says it all .. -march has an invalid argument. try again with compatible icc cflags.
Comment 3 Andrea Cerrito 2004-02-21 08:54:26 UTC
The ebuild must process the CFLAGS only if using gcc: all CFLAGS set in make.conf will be not valid for icc compiler.
Comment 4 Andrea Cerrito 2004-02-21 09:44:34 UTC
Anyway, the ebuild fail.

icc -c -I. -I. -I./../utils -I..  -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/u                                      sr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libglade-2.0   -I/usr/include/libxml2   -I/usr                                      /include/gtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -DHAVE_CONFIG_H -O1 -xK -ipo -I/usr/X11R6/include passwd-pam.c
icc -c -I. -I. -I./../utils -I..  -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/u                                      sr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libglade-2.0   -I/usr/include/libxml2   -I/usr                                      /include/gtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -DHAVE_CONFIG_H -O1 -xK -ipo -I/usr/X11R6/include passwd-pwent.c
icc -L/usr/lib -o xscreensaver xscreensaver.o windows.o timers.o subprocs.o exec.o xset.o splash.o setuid.o stderr.o prefs.o dpms.o lock.o passwd.o passwd-ke                                      rberos.o passwd-pam.o passwd-pwent.o ../utils/fade.o ../utils/overlay.o ../utils/logo.o ../utils/yarandom.o ../utils/resources.o ../utils/usleep.o ../utils/v                                      isual.o    -L/usr/X11R6/lib -lXmu  -lXss -lXxf86vm -lXxf86misc   -lSM -lICE -lXt -lX11 -lXext  -lpam -ldl -lkrb4 -ldes425 -lkrb5 -lk5crypto -lcom_err -lcrypt                                       -lresolv -lcrypt
/usr/bin/ld:xscreensaver.o: file format not recognized; treating as linker script
/usr/bin/ld:xscreensaver.o:1: syntax error
make[1]: *** [xscreensaver] Error 1
make[1]: Leaving directory `/var/tmp/portage/xscreensaver-4.14-r2/work/xscreensaver-4.14/driver'
make: *** [default] Error 5

!!! ERROR: x11-misc/xscreensaver-4.14-r2 failed.
!!! Function src_compile, Line 134, Exitcode 2
!!! (no error message)

cerrito on GSM [17:56:11] root #
Comment 5 Alastair Tse (RETIRED) gentoo-dev 2004-02-23 14:21:06 UTC
*** Bug 42638 has been marked as a duplicate of this bug. ***
Comment 6 Alastair Tse (RETIRED) gentoo-dev 2004-02-28 14:20:25 UTC
aaron, do you have any ideas about the icc support? i don't have it so i'm not sure what is missing. it looks like a linker problem to me for some reason.
Comment 7 Aron Griffis (RETIRED) gentoo-dev 2004-03-01 12:57:00 UTC
hi liquidx, this isn't related to ia64 at the moment (which is why I assume you cc'd me).  The bug poster is using icc on x86.
Comment 8 Brant Gurganus 2004-03-18 19:08:34 UTC
My build is stopping as well with the ICC compiler:

icc -c -I. -I. -I./../utils -I..  -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libglade-2.0   -I/usr/include/libxml2   -I/usr/include/gtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -DHAVE_CONFIG_H -O3 -march=pentium4 -mcpu=pentium4 -fomit-frame-pointer -pipe -fprefetch-loop-arrays -ftracer -I/usr/X11R6/include passwd-kerberos.c
iccbin: Command line warning: ignoring unknown option '-fomit-frame-pointer'
iccbin: Command line warning: ignoring option '-p'; no argument required
iccbin: Command line warning: ignoring option '-fp'; no argument required
iccbin: Command line warning: ignoring unknown option '-ftracer'
passwd-kerberos.c(125): warning #556: a value of type "const char *" cannot be assigned to an entity of type "char *"
      tk_file = tkt_string();
              ^
 
passwd-kerberos.c(206): error: identifier "newtktfile" is undefined
      if( (fh = mkstemp(newtktfile)) < 0)
                        ^
 
passwd-kerberos.c(213): error: identifier "newtktfile" is undefined
          free(newtktfile);
               ^
 
passwd-kerberos.c(226): warning #167: argument of type "unsigned char *" is incompatible with parameter of type "char *"
                       key_to_key, NULL, mitkey) != 0) {
                                         ^
 
compilation aborted for passwd-kerberos.c (code 2)
make[1]: *** [passwd-kerberos.o] Error 2
make[1]: Leaving directory `/var/tmp/portage/xscreensaver-4.15/work/xscreensaver-4.15/driver'
make: *** [default] Error 5
 
!!! ERROR: x11-misc/xscreensaver-4.15 failed.
!!! Function src_compile, Line 139, Exitcode 2
!!! (no error message)

Portage 2.0.50-r1 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3_pre20040207-r0, 2.6.4-gentoo-r1)
=================================================================
System uname: 2.6.4-gentoo-r1 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 2.20GHz
Gentoo Base System version 1.4.3.13p1
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium4 -mcpu=pentium4 -fomit-frame-pointer -pipe -fprefetch-loop-arrays -ftracer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -mcpu=pentium4 -fomit-frame-pointer -pipe -fprefetch-loop-arrays -ftracer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox strict"
GENTOO_MIRRORS="http://mirrors.tds.net/gentoo http://gentoo.chem.wisc.edu/gentoo/ http://128.213.5.34/gentoo/ http://mirror.cpsc.ucalgary.ca/mirror/gentoo.org"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="X X509 Xaw3d acl acpi alsa arts avi berkdb bonobo caps cdr chroot cjk clisp cmucl crypt cups dga doc dvd emacs encode esd flac foomaticdb gcl gdbm gif gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile icc idea imlib ipv6 java javamail jbig jikes jpeg junit justify kde kerberos krb4 lcms ldap lesstif libg++ libwww mad md5sum mikmod mmap mmx motif mozilla mpeg nas ncurses nls nptl oav offensive oggvorbis opengl oss pam pdflib perl physfs pic png ppds pwdb python qt quicktime readline samba sasl scanner sdl skey slang slp speex spell sse ssl svga tcltk tcpd tetex threads tiff truetype usb wmf wsconvert x86 xml xml2 xmms xv zlib"
Comment 9 Jon Portnoy (RETIRED) gentoo-dev 2004-05-12 15:00:50 UTC
The icc USE flag shouldn't be there; it's not intended to be used to enable ICC support (this is ideally going to be implemented totally separately from ebuilds), it's only intended to apply ICC-specific patches
Comment 10 Alastair Tse (RETIRED) gentoo-dev 2004-07-23 21:51:19 UTC
icc support has been taken out of xscreensaver for a while. no new people complaining, so i'm going to close this as wontfix. 
Comment 11 Alastair Tse (RETIRED) gentoo-dev 2004-07-23 22:24:19 UTC
sorry .. correction about my comment. i've only just taken out icc with the newest xscreensaver 4.16 that is going into portage shortly. unless theres a better patch, i'm not going to support it since i know next to nothing about icc.