I want to use icc for LAM 7. I found that CC=icc does not configure
correctlz because -lpthread fails with the icc on redhat 9:
[sfricken_at_lincl0 lam-7.0]# icc -lpthread
/lib/libpthread.so.0(*IND*+0x0): multiple definition of
`pthread_cond_signal'
/lib/libpthread.so.0(*IND*+0x0): multiple definition of
`pthread_cond_broadcast'
/lib/libpthread.so.0(.text+0xdd0): In function
`pthread_cond_wait_at_GLIBC_2.0':
: multiple definition of `pthread_cond_wait_at_GLIBC_2.0'
/lib/libpthread.so.0(.text+0xd90): In function
`pthread_cond_init_at_GLIBC_2.0':
: multiple definition of `pthread_cond_init_at_GLIBC_2.0'
/lib/libpthread.so.0(*IND*+0x0): multiple definition of
`pthread_cond_destroy'
/usr/lib/crt1.o(.text+0x18): In function `_start':
../sysdeps/i386/elf/start.S:77: undefined reference to `main'
/lib/libpthread.so.0: undefined reference to
`__libc_pthread_init_at_GLIBC_PRIVATE'
/lib/libpthread.so.0: undefined reference to
`__libc_allocate_rtsig_private_at_GLIBC_PRIVATE'
/lib/libpthread.so.0: undefined reference to
`__libc_thread_freeres_at_GLIBC_PRIVATE'
/lib/libpthread.so.0: undefined reference to `__register_atfork_at_GLIBC_2.3.2'
/lib/libpthread.so.0: undefined reference to
`__libc_current_sigrtmin_private_at_GLIBC_PRIVATE'
/lib/libpthread.so.0: undefined reference to
`__libc_current_sigrtmax_private_at_GLIBC_PRIVATE'
/lib/libpthread.so.0: undefined reference to `__uselocale_at_GLIBC_2.3'
do you have any hints / workarounds?
can I also change the CC only for the mpicc to be icc?
I guess, then I still have to use thredas.
So far I will try with --without-threads.
Thanks in advance,
Stephan
|