P.p.s I just noticed the issue does not occur for GCC/4.9.2 but does occur for
GCC/4.9.3-2.25. This is consistent.
heywood@bnbmgmt2:~/tmp$ module --ignore_cache av
Rebuilding cache, please wait ... (written to file) done.
--------------------------------------------------------------
/sonas-hs/it/hpc/home/easybuild/install_prod/modules/all/Core
---------------------------------------------------------------
GCC/4.4.6 GCC/4.9.3-binutils-2.25 GNU/4.9.3-2.25
foss/2015a gompi/1.4.10-opt-hpc gompi/2015b
GCC/4.8.3 (D) GCC/4.9.3-2.25
SRA-Toolkit/2.8.1-3-centos_linux64 foss/2015b gompi/2014b
(D) gompi/2016a
GCC/4.9.2 GCCcore/4.9.3 foss/2014b
(D) foss/2016a gompi/2015a goolf/1.4.10-opt-hpc
Where:
(D): Default Module
Use "module spider" to find all possible modules.
Use "module keyword key1 key2 ..." to search for all possible modules matching
any of the "keys".
heywood@bnbmgmt2:~/tmp$ module load GCC/4.9.2
heywood@bnbmgmt2:~/tmp$ g++ hello.cpp ; file a.out
a.out: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked
(uses shared libs), for GNU/Linux 2.6.18, not stripped
heywood@bnbmgmt2:~/tmp$ module load GCC/4.9.3-2.25
heywood@bnbmgmt2:~/tmp$ g++ hello.cpp ; file a.out
a.out: data
heywood@bnbmgmt2:~/tmp$
From: Todd Heywood <[email protected]<mailto:[email protected]>>
Date: Tuesday, June 20, 2017 at 5:04 PM
To: "[email protected]<mailto:[email protected]>"
<[email protected]<mailto:[email protected]>>
Subject: Re: [easybuild] install dir on gpfs
P.s. This issue does NOT occur if using g++ from a GCC built outside of the
Easybuild framework.
From:
<[email protected]<mailto:[email protected]>> on
behalf of Todd Heywood <[email protected]<mailto:[email protected]>>
Reply-To: "[email protected]<mailto:[email protected]>"
<[email protected]<mailto:[email protected]>>
Date: Tuesday, June 20, 2017 at 4:52 PM
To: "[email protected]<mailto:[email protected]>"
<[email protected]<mailto:[email protected]>>
Subject: [easybuild] install dir on gpfs
Has anyone installed easybuild on GPFS, not NFS? We just migrated our easybuild
installation to GPFS, and now when we use an Easybuild-built compiler to build
software (on GPFS), the “configure” step fails when tests the compiler to
create an executable, and tests whether the executable works. You can see the
issue here:
xyz@bnbmgmt2:~/tmp$ g++ hello.cpp ; ./a.out
-bash: ./a.out: cannot execute binary file
xyz@bnbmgmt2:~/tmp$ ./a.out # it work a couple seconds later
Hello World!heywood@bnbmgmt2:~/tmp$
xyz@bnbmgmt2:~/tmp$
xyz@bnbmgmt2:~/tmp$ g++ hello.cpp ; file a.out
a.out: data
xyz@bnbmgmt2:~/tmp$ file a.out # gives expected output a couple seconds later
a.out: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked
(uses shared libs), for GNU/Linux 2.6.18, not stripped
xyz@bnbmgmt2:~/tmp$
Thanks,
T