Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 75079 - cdrtools-2.01.01_alpha01 fails to build without alias for gcc (upstream bug?)
Summary: cdrtools-2.01.01_alpha01 fails to build without alias for gcc (upstream bug?)
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Optical Media project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-20 11:24 UTC by Ole Craig
Modified: 2005-06-10 08:59 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 Ole Craig 2004-12-20 11:24:24 UTC
Trying to emerge cdrtools... something in Schily's much-vaunted makefile system is b0rken. (Problem occurs even if you build using his "smake" stuff, whether from with portage or by hand. This occurs for both 2.01 and 2.01.01_alpha01.) The configure script ignores the gcc setting and attempts to compile with the nonexistent "cc". 

Workaround: ln -s /usr/bin/gcc /usr/bin/cc, re-emerge.

Reproducible: Always
Steps to Reproduce:
1. emerge cdrtools
2. observe error message "...compiler cannot create executables."
3. curse.

Actual Results:  
[...]
Found gcc
Making gcc the default compiler in 'incs/Dcc.x86-linux'
checking host system type... i686-pc-linux-gnu
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for EMX/OS2 environment... no
checking for executable suffix... configure: error: installation or
configuration problem: compiler cannot create executables.
make: *** [incs/x86-linux-cc/rules.cnf] Error 1
[...]
!!! ERROR: app-cdr/cdrtools-2.01.01_alpha01 failed.
!!! Function src_compile, Line 47, Exitcode 2

...Profanity!

Expected Results:  
[...]
>>> app-cdr/cdrtools-2.01.01_alpha01 merged.
>>> Recording app-cdr/cdrtools in "world" favorites file...
[...]
Smiles!

Portage 2.0.51-r8 (default-linux/x86/2004.2, gcc-3.4.2, glibc-2.3.4.20041102-r0,
2.6.9-gentoo-r10 i686)
=================================================================
System uname: 2.6.9-gentoo-r10 i686 Pentium III (Coppermine)
Gentoo Base System version 1.6.8
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Nov 24 2004, 14:19:42)]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.8.5-r2, 1.5, 1.4_p6, 1.6.3, 1.7.9, 1.9.3
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r2
virtual/os-headers:  2.6.8.1-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium3 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/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=pentium3 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://mirror.averse.net/pub/gentoo/ http://gentoo.ccccom.com
http://gentoo.osuosl.org/ ftp://mirrors.tds.net/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac aalib acl acpi acpi4linux aim alsa apache2 apm arts artworkextra
audiofile avi bash-completion berkdb bitmap-fonts bonobo bzlib cddb cdparanoia
cdr codecs crypt ctype cups curl curlwrappers dba dga dio directfb divx4linux
doc dri dvb dvd dvdr dvdread dxr3 emacs encode esd ethereal exif f77 faac faad
fam fame fbcon ffmpeg fftw flac flash foomaticdb fortran freetype ftp gd gdbm
ggi gif gimp gimpprint glut glx gnome gnomedb gnutls gphoto2 gpm gstreamer gtk
gtk2 gtkhtml guile icq imagemagick imlib insecure-drivers jabber jack java jikes
joystick jpeg jpeg2k junit ladcca lcms ldap lesstif libg++ libwww mad mikmod
ming mitshm mjpeg mmap mmx mng motif mozilla mozp3p mozsvg mp3 mpeg mpeg4 mpi
mplayer msn mysql nas ncurses nls nptl odbc ofx oggvorbis openal opengl oscar
oss pam pcmcia pcntl pcre pda pdflib perl php pic pie png pnp posix ppds python
qt quicktime readline samba scanner sdl session shared sharedmem simplexml slang
slp sndfile snmp soap sockets sox spell sse ssl svg svga sysvipc tcltk tcpd
tetex theora tiff truetype truetype-fonts trusted type1-fonts usb v4l v4l2
videos wmf wxwindows x86 xanim xine xml xml2 xmlrpc xmms xosd xpm xscreensaver
xsl xv xvid xvmc yahoo yv12 zlib video_cards_savage"
Comment 1 Lars Weiler (RETIRED) gentoo-dev 2005-01-07 22:24:24 UTC
Can you run gcc-config and switch to your preferred gcc?  This should set gcc and cc in the correct state.
Comment 2 Ole Craig 2005-01-08 03:28:39 UTC
gcc-config reports I'm already using my preferred gcc:
  pictsie ~ # gcc-config -c
  i686-pc-linux-gnu-3.4.3

...but just for shits'n'giggles, I set and reset:
  pictsie ~ # gcc-config i386-pc-linux-gnu-3.3.4
   * Switching to i386-pc-linux-gnu-3.3.4 compiler ...                                          [ ok ]
   * If you intend to use the gcc from the new profile in an already
   * running shell, please remember to do:
  
   *   # source /etc/profile
  
  pictsie ~ # source /etc/profile
  pictsie ~ # gcc-config i686-pc-linux-gnu-3.4.3
   * Switching to i686-pc-linux-gnu-3.4.3 compiler ...                                          [ ok ]
  pictsie ~ # source /etc/profile

and... kablooie: 

pictsie ~ # emerge cdrtools
Calculating dependencies ...done!
>>> emerge (1 of 1) app-cdr/cdrtools-2.01.01_alpha01 to /
[...]
RULES/rules1.top:234: incs/Dcc.x86-linux: No such file or directory
RULES/rules.cnf:56: incs/x86-linux-cc/Inull: No such file or directory
RULES/rules.cnf:57: incs/x86-linux-cc/rules.cnf: No such file or directory
        ==> MAKING DIRECTORY "incs/x86-linux-cc/Inull"
sh conf/cc-config.sh cc incs/Dcc.x86-linux
Trying to find cc
Trying to find GCC
Found gcc
Making gcc the default compiler in 'incs/Dcc.x86-linux'
        ==> CONFIGURING RULES "incs/x86-linux-cc/rules.cnf"
creating cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for EMX/OS2 environment... no
checking for executable suffix... configure: error: installation or configuration problem: compiler cannot create executables.
make: *** [incs/x86-linux-cc/rules.cnf] Error 1

!!! ERROR: app-cdr/cdrtools-2.01.01_alpha01 failed.
!!! Function src_compile, Line 47, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.


(once again, it builds if I create /usr/bin/cc as a link to /usr/bin/gcc.)
Comment 3 Lars Weiler (RETIRED) gentoo-dev 2005-06-10 08:59:30 UTC
Closing this bug.  If it's still valid, reopen.