Thank you all for your responses.

First of all, I tried to go to freenode and I was getting error 522.

I went ahead and built GCC 4.7.3 via the premade easyconfig file. That seemed 
to work fine. I then went on to create my own openmpi easyconfig file using the 
GCC toolchain. Here is the file:

name = 'openmpi'
version = '1.7.4'

homepage = 'http://www.open-mpi.org/'
description = "abc"

toolchain = {'name': 'GCC', 'version': '4.7.3'}
toolchainopts = {'shared': True, 'static': True}

sources = ['openmpi-1.7.4.tar.bz2']

moduleclass = 'library'


I am getting this error:

== temporary log file in case of crash 
/tmp/easybuild-7xKDe8/easybuild-04bhaY.log
== resolving dependencies ...
== processing EasyBuild easyconfig 
/afs/crc.nd.edu/x86_64_linux/easybuild-soft/src/openmpi/1.7.4/openmpi-1.7.4.eb
== building and installing openmpi/1.7.4-GCC-4.7.3...
== fetching files...
== creating build dir, resetting environment...
== unpacking...
== patching...
== preparing...
== configuring...
ERROR: EasyBuild encountered an exception (at easybuild/main.py:809 in 
build_and_install_software): autoBuild Failed (last 300 chars): 
86_64-unknown-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in 
`/afs/crc.nd.edu/user/k/khostetl/.local/easybuild/build/openmpi/1.7.4/GCC-4.7.3.1/openmpi-1.7.4':
configure: error: C compiler cannot create executables
See `config.log' for more details


I am not sure what the problem is for sure. I have easybuild installed on my 
local space on our network, but I am making the compilations on a shared space 
on our network, including GCC 4.7.3. So one thought of mine was that the GCC 
4.7.3 was not being found, but I would have expected a failure during fetching 
or resolving dependencies. Another thought was that I needed to have GCC 4.7.3 
module loaded, but I tried that to no avail. The configure error is what is 
really confusing. I have no idea what it means.


________________________________________
From: [email protected] [[email protected]] On 
Behalf Of Fotis Georgatos [[email protected]]
Sent: Friday, March 07, 2014 2:28 PM
To: [email protected]
Subject: Re: [easybuild] GCC

Hi,

On Mar 7, 2014, at 5:32 PM, <[email protected]> 
<[email protected]> wrote:
> sources = ['gcc-4.7.3.tar.gz']

just for the record, the above would never work,
simply because upstream instruction (from gcc folks)
dictate that the sources of a gcc build are a more rich set of sources (mpfr 
etc).

Going with the by-default provided easyconfigs is the recommended approach
if you are a newcomer in this business, and inspecting the easyblocks
gives you a good idea of what EB does for you under the hood.
Esp. the GCC easyblock is a very good one and an educating read for newcomers.
(N.B. defined class is "EB_GCC", which is calculated from the package name)

enjoy,
Fotis

--
echo "sysadmin know better bash than english" | sed s/min/mins/ \
        | sed 's/better bash/bash better/' # Yelling in a CERN forum



Reply via email to