First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 197396
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Science Related Packages <sci@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Joshua Rich <joshua.rich@gmail.com>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
ds9-ebuild.patch patch to ebuild to fix compiler issue patch Joshua Rich 2007-10-29 10:55 0000 820 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 197396 depends on: Show dependency tree
Bug 197396 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-10-29 10:54 0000
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

------- Comment #1 From Joshua Rich 2007-10-29 10:55:58 0000 -------
Created an attachment (id=134622) [edit]
patch to ebuild to fix compiler issue

------- Comment #2 From Sébastien Fabbro 2007-11-02 13:16:11 0000 -------
Fixed. Thanks!

First Last Prev Next    No search results available      Search page      Enter new bug