When attempting to emerge sci-astronomy/ds9, the emerge fails because somewhere in the source makefiles, it assumes a default compiler name of 'gcc34' (and g++34). A simple patch to the ds9-4.13.ebuild file is attached which fixes this problem. Reproducible: Always Steps to Reproduce: 1. Add 'sci-astronomy/ds9 to /etc/portage/package.keywords 2. emerge sci-astronomy/ds9 Actual Results: >>> Compiling source in /var/tmp/portage/sci-astronomy/ds9-4.13/work/saods9 ... Installing Directories... Installing Tcl noshared... cd tcl8.4.14/unix; CC='gcc34 -march=prescott -O2 -pipe -fomit-frame-pointer ' ./configure --enable-gcc --prefix /var/tmp/portage/sci-astronomy/ds9-4.13/work/saods9 --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib --disable-shared creating cache ./config.cache checking whether to use symlinks for manpages... no checking whether to compress the manpages... no checking whether to add a package name suffix for the manpages... no checking for gcc... gcc34 -march=prescott -O2 -pipe -fomit-frame-pointer checking whether the C compiler (gcc34 -march=prescott -O2 -pipe -fomit-frame-pointer -march=prescott -O2 -pipe -fomit-frame-pointer ) works... no configure: error: installation or configuration problem: C compiler cannot create executables. make: *** [tcl] Error 1 * * ERROR: sci-astronomy/ds9-4.13 failed. * Call stack: * ebuild.sh, line 1695: Called dyn_compile * ebuild.sh, line 1033: Called qa_call 'src_compile' * ebuild.sh, line 44: Called src_compile * ds9-4.13.ebuild, line 46: Called die * The specific snippet of code: * emake -j1 OPTS="${CXXFLAGS}" || die "emake failed" * The die message: * emake failed I'm unsure whether I should have the CC and CXX environment variables set, I don't think I unset them anywhere. I don't know if I should have a gcc-3.4 version installed, as it appears this is what ds9 expects. I still think the ebuild would be incorrect (and fail) anyway. Here is my emerge --info: Portage 2.1.3.16 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.22-gentoo-r8 i686) ================================================================= System uname: 2.6.22-gentoo-r8 i686 Genuine Intel(R) CPU T2500 @ 2.00GHz Timestamp of tree: Mon, 29 Oct 2007 04:50:01 +0000 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.4 [enabled] app-shells/bash: 3.2_p17 dev-java/java-config: 1.3.7, 2.0.33-r1 dev-lang/python: 2.4.4-r6 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 1.12.9-r2 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.22-r2 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/te xmf/web2c /etc/udev/rules.d" CXXFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distcc distlocks metadata-transfer noinfo parallel-fetch sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://ftp.swin.edu.au/gentoo http://ftp.planetmirror.com/pub/gentoo http://mirror.pacific.net.a u/linux/Gentoo ftp://ftp.swin.edu.au/gentoo ftp://ftp.planetmirror.com/pub/gentoo ftp://mirror.pacific.net.au/lin ux/Gentoo" LANG="en_AU.UTF-8" LC_ALL="en_AU.UTF-8" LINGUAS="en" MAKEOPTS="-j3 -l 2.0" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes --prune-empty-dirs" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --d elete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/d igest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /usr/portage/local/layman/science /usr/portage/local/layman/li ve-ebuilds /usr/portage/local/layman/joshuarich-gentoo-overlay" SYNC="rsync://ftp.swin.edu.au/gentoo-portage" USE="X acpi alsa audiofile bash-completion berkdb bitmap-fonts bzip2 cairo cdr cli cracklib crypt cups curl dbus directfb dri dvd dvdr dvdread encode fam firefox flac foomaticdb fortran gdbm gif gmp gpm gs gstreamer gtk hal ic onv isdnlog jpeg lcms logrotate mad midi minimal mmx mng mp3 mudflap ncurses network-cron nptl nptlonly nsplugin opengl openmp pam pcmcia pcre pdf perl png pppd python readline reflection sdl session shorten spell spl sqlite s se sse2 ssl startup-notification svg tcpd tetex threads tiff truetype truetype-fonts type1-fonts unicode x86 xine rama xml xorg xpm zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty ex tplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELI BC="glibc" INPUT_DEVICES="keyboard mouse evdev synaptics ps2mouse linuxinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="nvidia v esa nv" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Created attachment 134622 [details, diff] patch to ebuild to fix compiler issue
Fixed. Thanks!