It looks like mpicxx is not set up correctly?
I copied the main part of config.log below.
configure:2800: result: ---------------------------------------------
configure:2802: result: ----------- Configuring libMesh -------------
configure:2804: result: ---------------------------------------------
configure:2847: checking build system type
configure:2861: result: x86_64-unknown-linux-gnu
configure:2881: checking host system type
configure:2894: result: x86_64-unknown-linux-gnu
configure:2914: checking target system type
configure:2927: result: x86_64-unknown-linux-gnu
configure:3042: checking for mpicxx
configure:3058: found /share/apps/intel_11/mvapich/1.2/bin/mpicxx
configure:3069: result: mpicxx
configure:3096: checking for C++ compiler version
configure:3105: mpicxx --version >&5
icc (ICC) 11.1 20100806
Copyright (C) 1985-2010 Intel Corporation. All rights reserved.
configure:3116: $? = 0
configure:3105: mpicxx -v >&5
mpiCC for 1.2.7 (release) of : 2005/06/22 16:33:49
Version 11.1
ld /usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../lib64/crt1.o
/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../lib64/crti.o
/usr/lib/gcc/x86_64-redhat-linux/3.4.6/crtbegin.o --eh-frame-hdr
-dynamic-linker /lib64/ld-linux-x86-64.so.2 -o a.out
-L/share/apps/intel_11/mvapich/1.2/lib -lmpich -L/usr/lib64
-rpath=/usr/lib64 -libverbs -libumad -lpthread
-L/share/apps/intel_11.1/lib/intel64
-L/usr/lib/gcc/x86_64-redhat-linux/3.4.6
-L/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../lib64
-L/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../.. -L/lib64 -L/lib
-L/usr/lib64 -L/usr/lib -Bstatic -limf -lsvml -Bdynamic -lm -Bstatic
-lipgo -ldecimal -Bdynamic -lgcc_s -lgcc -Bstatic -lirc -Bdynamic -lc
-lgcc_s -lgcc -Bstatic -lirc_s -Bdynamic -ldl -lc
/usr/lib/gcc/x86_64-redhat-linux/3.4.6/crtend.o
/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../lib64/crtn.o
/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../lib64/crt1.o(.text+0x21):
In function `_start':
: undefined reference to `main'
rm /tmp/icc3GEi8Mlibgcc
rm /tmp/iccNAc2Rhgnudirs
rm /tmp/icczJ89lhgnudirs
configure:3116: $? = 1
configure:3105: mpicxx -V >&5
Intel(R) C Intel(R) 64 Compiler Professional for applications running on
Intel(R) 64, Version 11.1 Build 20100806 Package ID: l_cproc_p_11.1.073
Copyright (C) 1985-2010 Intel Corporation. All rights reserved.
configure:3116: $? = 0
configure:3105: mpicxx -qversion >&5
icc: command line warning #10006: ignoring unknown option '-qversion'
/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../lib64/crt1.o(.text+0x21):
In function `_start':
: undefined reference to `main'
configure:3116: $? = 1
configure:3136: checking whether the C++ compiler works
configure:3158: mpicxx conftest.cpp >&5
conftest.o(.eh_frame+0x12): undefined reference to `__gxx_personality_v0'
configure:3162: $? = 1
configure:3200: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define CONFIGURE_INFO "./configure run on Thu May 3 11:55:06 CDT 2012"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3205: error: in `/bevo2/ysakamoto/dev/libmesh-0.7.3.1/libmesh':
configure:3207: error: C++ compiler cannot create executables
See `config.log' for more details
On 05/03/2012 08:08 AM, John Peterson wrote:
> On Thu, May 3, 2012 at 12:03 AM, Yusuke Sakamoto
> <[email protected]> wrote:
>> Hello,
>>
>> I am trying to compile libmesh on bevo2 cluster.
>>
>> I first compiled petsc with this configuration:
>> ./configure --with-mpi-dir=/share/apps/intel_11/mvapich/1.2/
>>
>> I tested a couple of example petsc programs and they worked fine.
>>
>> Now, I am trying to compile libmesh with the same compilers. However,
>> when I tried to configure, C++ compiler seems not working.
>> Here is the output for ./configure
>>
>> ---------------------------------------------
>> ----------- Configuring libMesh -------------
>> ---------------------------------------------
>> checking build system type... x86_64-unknown-linux-gnu
>> checking host system type... x86_64-unknown-linux-gnu
>> checking target system type... x86_64-unknown-linux-gnu
>> checking for mpicxx... mpicxx
>> checking whether the C++ compiler works... no
>> configure: error: in `/bevo2/ysakamoto/src_3/libmesh-0.7.2/libmesh':
>> configure: error: C++ compiler cannot create executables
>> See `config.log' for more details
>>
>> I am not sure why this is failing. Can you help me with this issue?
> Probably a bad mpicxx is in your PATH.
>
> Try configuring again with the command (I'm guessing here)
>
> CXX=/share/apps/intel_11/mvapich/1.2/bin/mpicxx \
> CC=/share/apps/intel_11/mvapich/1.2/bin/mpicc \
> ./configure
>
> and see if you can get any further...
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users