Tim,
I compiled perfectly fine with ICC using CC=icc and CXX=icc flags. I will start testing to see if it fixes some of my problems tonight, and maybe try some other flags for different optimizations. Results to this list soon.
Tim Blechmann wrote:
but it still starts with GCC. Also tried various other combinations of directories etc, but still the same. The only way to get it to use ICC is with CC or CXX flags.
could you send me the output of ./configure? maybe you have to run autoconf again ... (just a guess)
It is a completely normal configure, except that it ignores ICC and uses GCC. See for yourself below. I even tried --disable-gcc, and it ignored that. The two flags you mention: --enable-optimize=pentium4 and --enable-icc do *not* appear when I type ./configure --help, although many others do.
I also recall that I could not set the OPT_CFLAGS in the ./configure stage, I actually had to enter them manually in the "configure" file. According to ./configure --help, this should be possible.
Of course, I am still just a voodoo programmer, throwing flags and variables around without ever being totally sure what I am doing, so it could be I missed something important alongh the way!
root 18:39:41> ./configure --enable-jack --enable-fftw --enable-icc --enable-optimize=pentium4 checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for a BSD-compatible install... /bin/install -c checking whether make sets $(MAKE)... yes checking how to run the C preprocessor... gcc -E checking for an ANSI C-conforming const... yes checking for egrep... grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for pid_t... yes checking for size_t... yes checking whether time.h and sys/time.h may both be included... yes checking for ANSI C header files... (cached) yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking malloc.h usability... yes checking malloc.h presence... yes checking for malloc.h... yes checking sys/ioctl.h usability... yes checking sys/ioctl.h presence... yes checking for sys/ioctl.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking for unistd.h... (cached) yes checking bstring.h usability... no checking bstring.h presence... no checking for bstring.h... no checking whether gcc needs -traditional... no checking return type of signal handlers... void checking for vprintf... yes checking for _doprnt... no checking for gettimeofday... yes checking for select... yes checking for socket... yes checking for strerror... yes checking for dlopen in -ldl... yes checking for sin in -lm... yes checking for pthread_create in -lpthread... yes checking for X... libraries /usr/X11R6/lib, headers checking for XCreateWindow in -lX11... yes checking for main in -ltcl8.7... no checking for main in -ltcl8.6... no checking for main in -ltcl8.5... no checking for main in -ltcl8.4... yes checking for main in -ltk8.4... yes checking tcl.h usability... yes checking tcl.h presence... yes checking for tcl.h... yes yes ... alsa is... yes checking for snd_pcm_info in -lasound... yes checking for shm_open in -lrt... yes checking for jack_set_xrun_callback in -ljack... yes checking for jack_set_error_function in -ljack... yes checking for fftwf_plan_dft_r2c_1d in -lfftw3f... yes OPT_CFLAGS --------------- -O2 -pipe -fomit-frame-pointer -march=pentium4 configure: creating ./config.status config.status: creating makefile
[Please note that the OPT_CFLAGS above was hand-coded into 'configure'. I forgot to remove it just now, and I can't exactly remember what was there before, anyway ;-) But curiously, I don't see any sign of --enable-optimize=pentium4 anywhere here, nor in the output of 'make'!]
cheers, d.