Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Issue compiling FFTW 3.1.2
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
phil_r
Apprentice
Apprentice


Joined: 14 Mar 2006
Posts: 264
Location: Omaha, NE, USA

PostPosted: Wed Nov 29, 2006 8:13 pm    Post subject: Issue compiling FFTW 3.1.2 Reply with quote

Guys, when I'm compiling FFTW on AMD64...

checking for isnan... yes
checking whether C compiler accepts -mpreferred-stack-boundary=4... yes
checking whether the stack is at least 8-byte aligned by gcc... checking whether C compiler accepts -malign-double... no
yes
checking for x86_64-pc-linux-gnu-g77... (cached) x86_64-pc-linux-gnu-gfortran
checking whether we are using the GNU Fortran 77 compiler... (cached) no
checking whether x86_64-pc-linux-gnu-gfortran accepts -g... (cached) no
checking how to get verbose linking output from x86_64-pc-linux-gnu-gfortran... configure: WARNING: compilation failed

checking for Fortran 77 libraries of x86_64-pc-linux-gnu-gfortran...
checking for dummy main to link with Fortran 77 libraries... none
checking for Fortran 77 name-mangling scheme... configure: error: cannot compile a simple Fortran program
See `config.log' for more details.

!!! Please attach the following file when filing a report to bugs.gentoo.org:
!!! /var/tmp/portage/sci-libs/fftw-3.1.2/work/fftw-3.1.2-single/config.log

!!! ERROR: sci-libs/fftw-3.1.2 failed.
Call stack:
ebuild.sh, line 1568: Called dyn_compile
ebuild.sh, line 937: Called src_compile
fftw-3.1.2.ebuild, line 58: Called econf '--enable-shared' '--enable-threads' '--enable-float' '--enable-sse'
ebuild.sh, line 540: Called die

!!! econf failed
!!! If you need support, post the topmost build error, and the call stack if relevant.


According to equery:-
undertaker dev # equery u gcc
[ Searching for packages matching gcc... ]
[ Colour Code : set unset ]
[ Legend : Left column (U) - USE flags from make.conf ]
[ : Right column (I) - USE flags packages was installed with ]
[ Found these USE variables for sys-devel/gcc-4.1.1-r3 ]
U I
- - altivec : Adds support for optimizations for G4 and G5/ppc970 processors
- - bootstrap : !!internal use only!! DO NOT SET THIS FLAG YOURSELF!, used during original system bootstrapping
- - build : !!internal use only!! DO NOT SET THIS FLAG YOURSELF!, used for creating build images and the first half of bootstrapping.
- - doc : Adds extra documentation (API, Javadoc, etc)
+ + fortran : Adds support for fortran (formally f77)
- - gcj : Enable building with gcj (The GNU Compiler for the Javatm Programming Language)
+ + gtk : Adds support for x11-libs/gtk+ (The GIMP Toolkit)
- - hardened : activate default security enhancements for toolchain (gcc, glibc, binutils)
- - ip28 : Enable building a compiler capable of building a kernel for SGI Indigo2 Impact R10000 (IP28)
- - ip32r10k : Enable building a compiler capable of building an experimental kernel for SGI O2 w/ R1x000 CPUs (IP32)
- - mudflap : Add support for mudflap, a pointer use checking library
- - multilib : On 64bit systems, if you want to be able to compile 32bit and 64bit binaries
- - multislot : Allow for SLOTs to include minor version (3.3.4 instead of just 3.3)
- - n32 : Enable n32 ABI support on mips
- - n64 : Enable n64 ABI support on mips
+ + nls : Adds Native Language Support (using gettext - GNU locale utilities)
- - nocxx : Disable support for C++ (DON'T USE THIS UNLESS YOU KNOW WHAT YOU'RE DOING)
- - objc : Build support for the Objective C code language
- - objc++ : Build support for the Objective C++ language
- - objc-gc : Build support for the Objective C code language Garbage Collector
- - test : Workaround to pull in packages needed to run with FEATURES=maketest / FEATURES=test
- - vanilla : Do not add extra patches which change default behaviour; DO NOT USE THIS ON A GLOBAL SCALE as the severity of the meaning changes drastically


I have Fortran support selected but fftw can't build a test. Any ideas why?

Phil.
Back to top
View user's profile Send private message
limn
l33t
l33t


Joined: 13 May 2005
Posts: 997

PostPosted: Wed Nov 29, 2006 11:29 pm    Post subject: Reply with quote

Try this
Code:
cd /tmp
echo "END" > test.f95
x86_64-pc-linux-gnu-gfortran test.f95

Perhaps it will give a helpful complaint.
Back to top
View user's profile Send private message
phil_r
Apprentice
Apprentice


Joined: 14 Mar 2006
Posts: 264
Location: Omaha, NE, USA

PostPosted: Wed Nov 29, 2006 11:33 pm    Post subject: Reply with quote

Hmmm, ok... gives me this...

undertaker ~ # cd /tmp
undertaker tmp # echo "END" > test.f95
undertaker tmp # x86_64-pc-linux-gnu-gfortran test.f95
gcc-config error: x86_64-pc-linux-gnu-gfortran wrapper: Could not determine which compiler to use. Invalid CTARGET or CTARGET has no selected profile.
undertaker tmp #

And just in case...
undertaker tmp # gcc-config -l
[1] x86_64-pc-linux-gnu-4.1.1 *
undertaker tmp #


Thanks...
Phil.
Back to top
View user's profile Send private message
limn
l33t
l33t


Joined: 13 May 2005
Posts: 997

PostPosted: Thu Nov 30, 2006 12:22 am    Post subject: Reply with quote

You may want to ask that your post be moved to Portage & Programming as it is a problem with an ebuild.
Code:
which x86_64-pc-linux-gnu-gfortran

should point to the wrapper being called. Does
Code:
/usr/x86_64-pc-linux-gnu/gcc-bin/4.1.1/x86_64-pc-linux-gnu-gfortran /tmp/test.f95

complain?
Back to top
View user's profile Send private message
phil_r
Apprentice
Apprentice


Joined: 14 Mar 2006
Posts: 264
Location: Omaha, NE, USA

PostPosted: Thu Nov 30, 2006 3:15 am    Post subject: (Mods please move to Portage+Programming) FFTW not compiling Reply with quote

Thanks limmn.

This is what I get...
undertaker ~ # which x86_64-pc-linux-gnu-gfortran
/usr/bin/x86_64-pc-linux-gnu-gfortran


The other command produces no output or error message at all. I'll follow the link to get the post moved.

Thanks,
Phil.
Back to top
View user's profile Send private message
limn
l33t
l33t


Joined: 13 May 2005
Posts: 997

PostPosted: Thu Nov 30, 2006 12:38 pm    Post subject: Reply with quote

A work around may be to move /usr/bin/x86_64-pc-linux-gnu-gfortran out of the way.
Code:
which x86_64-pc-linux-gnu-gfortran

Should show /usr/x86_64-pc-linux-gnu/gcc-bin/4.1.1/x86_64-pc-linux-gnu-gfortran which was able to compile /tmp/test.f95.
You can then try emerging fftw again.
You may also want to post
Code:
emerge --info
cd /usr/bin
ls -l *gfortran*
Back to top
View user's profile Send private message
phil_r
Apprentice
Apprentice


Joined: 14 Mar 2006
Posts: 264
Location: Omaha, NE, USA

PostPosted: Thu Nov 30, 2006 4:00 pm    Post subject: Reply with quote

phil@undertaker ~ $ which x86_64-pc-linux-gnu-gfortran
/usr/bin/x86_64-pc-linux-gnu-gfortran
phil@undertaker ~ $

phil@undertaker ~ $ emerge --info
Portage 2.1.2_rc2-r1 (default-linux/amd64/2006.0, gcc-4.1.1, glibc-2.5-r0, 2.6.18-gentoo-r2 x86_64)
=================================================================
System uname: 2.6.18-gentoo-r2 x86_64 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System version 1.12.6
Last Sync: Wed, 29 Nov 2006 17:31:01 +0000
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python: 2.4.4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox: 1.2.18.1
sys-devel/autoconf: 2.13, 2.61
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
sys-devel/gcc-config: 1.3.14
sys-devel/libtool: 1.5.22
virtual/os-headers: 2.6.17-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer -msse3"
CHOST="x86_64-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/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer -msse3"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo http://gentoo.oregonstate.edu ftp://gg3.net/pub/linux/gentoo/"
LINGUAS="en"
PKGDIR="/usr/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"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /opt/overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X a52 aac aalib alsa arts artwiz-fonts asf berkdb bitmap-fonts bzip2 cdparanoia cli corefonts cracklib crypt cups dbus dejavu directfb dlloader dri dts dvd dvdr dvdread dxr3 eds elibc_glibc emboss encode fbcon ffmpeg flac foomaticdb fortran freefonts freetype gif gnome gpm gstreamer gtk gtk2 hal iconv imagemagick imlib imlib2 input_devices_keyboard input_devices_mouse isdnlog jpeg jpeg2k kde kdeenablefinal kerberos kernel_linux krb5 libcaca linguas_en lzo lzw lzw-tiff mikmod mng mp3 mpeg musicbrainz ncurses nls nptl nptlonly nspr nss nvidia offensive opengl oss pam pcre perl png pppd python qt qt3 qt4 quicktime readline reflection samba sametime sdl session sharefonts spell spl ssl tcpd terminus-font theora tiff truetype truetype-fonts ttf-bitstream-vera type1-fonts unifont usb userland_GNU v4l v4l2 video_cards_fbdev video_cards_nv video_cards_nvidia video_cards_vga vorbis xine xinerama xorg xorg-x11 xpm xscreensaver xv xvid zlib"
Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS

phil@undertaker ~ $ cd /usr/bin
phil@undertaker /usr/bin $ ls -l *gfortran*
-rwxr-xr-x 1 root root 18744 Feb 8 2006 gfortran
lrwxrwxrwx 1 root root 67 Nov 29 14:41 gfortran-4.1.1 -> /usr/x86_64-pc-linux-gnu/gcc-bin/4.1.1/x86_64-pc-linux-gnu-gfortran
-rwxr-xr-x 1 root root 18744 Feb 8 2006 i686-pc-linux-gnu-gfortran
-rwxr-xr-x 1 root root 18744 Feb 8 2006 x86_64-pc-linux-gnu-gfortran
lrwxrwxrwx 1 root root 67 Nov 29 14:41 x86_64-pc-linux-gnu-gfortran-4.1.1 -> /usr/x86_64-pc-linux-gnu/gcc-bin/4.1.1/x86_64-pc-linux-gnu-gfortran
phil@undertaker /usr/bin $

I tried compiling it again, same thing. I think you're right - it's either a problem in the ebuild or an issue in the configure script. I'll try a lower version of fftw.

Thanks for your help.
Phil.
Back to top
View user's profile Send private message
limn
l33t
l33t


Joined: 13 May 2005
Posts: 997

PostPosted: Thu Nov 30, 2006 4:17 pm    Post subject: Reply with quote

I was not clear. You would need to do something like
Code:
cd /usr/bin
mv x86_64-pc-linux-gnu-gfortran x86_64-pc-linux-gnu-gfortran.out_of_the_way
which x86_64-pc-linux-gnu-gfortran

Then, if the which shows /usr/x86_64-pc-linux-gnu/gcc-bin/4.1.1/x86_64-pc-linux-gnu-gfortran, try re-emerging fftw.
Now
ls -l *gfortran* wrote:
-rwxr-xr-x 1 root root 18744 Feb 8 2006 i686-pc-linux-gnu-gfortran

but
emerge --info wrote:
CHOST="x86_64-pc-linux-gnu"

Perhaps your underlying problem is related to this. Did you change CHOSTs?
Back to top
View user's profile Send private message
phil_r
Apprentice
Apprentice


Joined: 14 Mar 2006
Posts: 264
Location: Omaha, NE, USA

PostPosted: Fri Dec 01, 2006 2:26 am    Post subject: Reply with quote

I don't remember if I changed CHOSTS or not - I doubt it though.

I did emerge =fftw=3.0.1 and that compiled and installed fine. This was only to get the new TunePimp on and that worked, so it's good enough for me. Now that Diego/Flameyes has so graciously allowed us Amarok users to do MusicBrainz lookups again, had to get a new TunePimp installed :-)

Thanks for your help, Limn.

Phil.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum