CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

One critical error while compiling lam711

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   October 30, 2006, 04:41
Default when i run the command as the
New Member
Join Date: Mar 2009
Posts: 14
Rep Power: 17
billpeace is on a distinguished road
when i run the command as the following
if [ "$WM_MPLIB" = "LAM" -a ! -r $LAM_ARCH_PATH/lib/libmpi.a -a ! -r $LAM_ARCH_PATH/lib/ ]


gmake distclean

./configure \
--prefix=$LAM_ARCH_PATH \
--enable-shared \
--disable-static \
--without-romio \
--without-mpi2cpp \
--without-profiling \

there are a error:
================================================== ==========================
== Configuring LAM version 7.1.1
================================================== ==========================

*** Initialization, setup
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
configure: builddir: /export/home/heliang/OpenFOAM/OpenFOAM-1.3/src/lam-7.1.1
configure: srcdir: /export/home/heliang/OpenFOAM/OpenFOAM-1.3/src/lam-7.1.1
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
installing to directory "/export/home/heliang/OpenFOAM/OpenFOAM-1.3/src/lam-7.1.1/platforms/linuxGcc4DPO pt"

*** C compiler and preprocessor
checking if want debugging output support... no
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables

the futher information in the config.log

$ ./configure --prefix=/export/home/heliang/OpenFOAM/OpenFOAM-1.3/src/lam-7.1.1/platforms/linu xGcc4DPOpt --enable-shared --disable-static --without-romio --without-mpi2cpp --without-profiling --without-fc

## --------- ##
## Platform. ##
## --------- ##

hostname = console
uname -m = i686
uname -r = 2.4.20-8smp
uname -s = Linux
uname -v = #1 SMP Thu Mar 13 17:45:54 EST 2003

/usr/bin/uname -p = unknown
/bin/uname -X = unknown

/bin/arch = i686
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /export/home/heliang/OpenFOAM/OpenFOAM-1.3/src/lam-7.1.1/platforms/linuxGcc4DPOp t/bin
PATH: /export/home/heliang/OpenFOAM/linux/j2sdk1.4.2_05/bin
PATH: /export/home/heliang/OpenFOAM/linux/gcc-4.1.0/bin
PATH: /export/home/heliang/OpenFOAM/heliang-1.3/applications/bin/linuxGcc4DPOpt
PATH: /export/home/heliang/OpenFOAM/OpenFOAM-1.3/applications/bin/linuxGcc4DPOpt
PATH: /export/home/heliang/OpenFOAM/OpenFOAM-1.3/wmake
PATH: /export/home/heliang/OpenFOAM/OpenFOAM-1.3/bin
PATH: /usr/kerberos/bin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/X11R6/bin
PATH: /usr/java/j2sdk1.4.1_02/bin
PATH: /usr/java/j2sdk1.4.1_02/jre/bin
PATH: /usr/local/jakarta-tomcat-4.1.18/bin
PATH: /export/ljrs/bin
PATH: /export/ljrs/sbin
PATH: /export/home/heliang/OpenFOAM/linux/paraview-2.4.2/bin

## ----------- ##
## Core tests. ##
## ----------- ##

configure:1730: checking for a BSD-compatible install
configure:1785: result: /usr/bin/install -c
configure:1796: checking whether build environment is sane
configure:1839: result: yes
configure:1896: checking for gawk
configure:1912: found /usr/bin/gawk
configure:1922: result: gawk
configure:1932: checking whether make sets $(MAKE)
configure:1952: result: yes
configure:2112: builddir: /export/home/heliang/OpenFOAM/OpenFOAM-1.3/src/lam-7.1.1
configure:2114: srcdir: /export/home/heliang/OpenFOAM/OpenFOAM-1.3/src/lam-7.1.1
configure:2150: checking build system type
configure:2168: result: i686-pc-linux-gnu
configure:2196: checking host system type
configure:2210: result: i686-pc-linux-gnu
configure:2658: checking if want debugging output support
configure:2672: result: no
configure:2733: checking for gcc
configure:2749: found /export/home/heliang/OpenFOAM/linux/gcc-4.1.0/bin/gcc
configure:2759: result: gcc
configure:3003: checking for C compiler version
configure:3006: gcc --version </dev/null>&5
gcc (GCC) 4.1.0
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO

configure:3009: $? = 0
configure:3011: gcc -v </dev/null>&5
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../configure --prefix=/usr/tmp/gcc-4.1.0 --exec-prefix=/usr/tmp/gcc-4.1.0 --enable-languages=c,c++ --enable-shared --enable-__cxa_atexit --disable-checking --with-system-zlib
Thread model: posix
gcc version 4.1.0
configure:3014: $? = 0
configure:3016: gcc -V </dev/null>&5
gcc: '-V' option must have argument
configure:3019: $? = 1
configure:3042: checking for C compiler default output file name
configure:3045: gcc conftest.c >&5
/usr/bin/ld: unrecognized option '--as-needed'
/usr/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status
configure:3048: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define LAM_BETA_VERSION 0
| #define LAM_SVN_VERSION 0
| #define LAM_VERSION "7.1.1"
| #define LAM_DEPENDENCY_PREFIX "/export/home/heliang/OpenFOAM/OpenFOAM-1.3/src/lam-7.1.1/platforms/linuxGcc4DPO pt"
| #define LAM_ARCH "i686-pc-linux-gnu"
| #define LAM_WANT_DEBUG 0
| /* end confdefs.h. */
| int
| main ()
| {
| ;
| return 0;
| }
configure:3087: error: C compiler cannot create executables
See `config.log' for more details.
billpeace is offline   Reply With Quote


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
CRITICAL ERROR on installation OpenFOAM 141 nuovodna OpenFOAM Installation 19 March 22, 2010 22:36
Critical error chris_j_meyer OpenFOAM Installation 2 February 13, 2009 02:39
Installation problem 1 critical error Ervin Adorean (Adorean) OpenFOAM Installation 14 October 23, 2006 03:44
1 critical error GCC Conflicting installations atzaru OpenFOAM Installation 6 April 23, 2006 13:50
Tow Critical Error about GCC amp icoFoam chnrdu OpenFOAM Installation 4 July 8, 2005 06:14

All times are GMT -4. The time now is 06:38.