LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-10-2013, 05:59 AM   #1
Robert84
LQ Newbie
 
Registered: Feb 2013
Posts: 21

Rep: Reputation: Disabled
Installing a numerical code on ubuntu 12.04


I am compiling a numerical code on ubuntu 12.04 (osgeo.live-Xubuntu) I have a 32-bit windows 7 OS.
When the compilation arrive to the command make, I got this error:

make[3]: Entering directory `/home/user/bob/titan-2.0.1/src/main'
/usr/local/bin/mpicxx -I../gisapi/ -g -O2 -w -g -O2 -DMPICH_IGNORE_CXX_SEEK -I/usr/include -D__HAVE_HDF5__ -L/usr/lib -o titan titan-compare_key.o titan-delete_tab.o titan-hpfem.o titan-datread.o titan-hilbert.o titan-init_piles.o titan-update_topo.o titan-restart.o ../gisapi/libgisapi.a ../adapt/libadapt.a -L/usr/lib/gcc/i686-linux-gnu/4.6 -L/usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu -L/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib -L/lib/i386-linux-gnu -L/lib/../lib -L/usr/lib/i386-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/i686-linux-gnu/4.6/../../.. -lgfortran -lm -lquadmath ../datstr/libdatstr.a ../geoflow/libgeoflow.a ../useful/libuseful.a ../repartition/librepartition.a ../tecplot/libtecplot.a -lnsl -lz -lm -lhdf5 -lmpich -lpthread
../datstr/libdatstr.a(element2.o): In function `Element::correct(HashTable*, HashTable*, double, MatProps*, FluxProps*, TimeProps*, double*, double*, double*, double*)':
/home/user/bob/titan-2.0.1/src/datstr/element2.C:2463: undefined reference to `correct_'
../geoflow/libgeoflow.a(Correct.o): In function `correct(HashTable*, HashTable*, double, MatProps*, FluxProps*, TimeProps*, void*, double*, double*, double*, double*)':
/home/user/bob/titan-2.0.1/src/geoflow/Correct.C:107: undefined reference to `correct_'
collect2: ld returned 1 exit status
make[3]: *** [titan] Error 1
make[3]: Leaving directory `/home/user/bob/titan-2.0.1/src/main'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/user/bob/titan-2.0.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/user/bob/titan-2.0.1'
make: *** [all] Error 2

Can someone help me?
much appreciation
 
Old 03-10-2013, 03:38 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,818

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
can you please post a link to where you got this program

is it this ?
" Titan Message Scheduler 2.0.1. "
or something else
 
Old 03-10-2013, 08:36 PM   #3
Robert84
LQ Newbie
 
Registered: Feb 2013
Posts: 21

Original Poster
Rep: Reputation: Disabled
The program is Called Titan-2.0.1 and is from New York State University (Geophysical Mass flow Group). I hope it helps.


any help much appreciate
 
Old 03-10-2013, 09:17 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,818

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
so this is then hacked together Univ. research code ( as in wrote by some non cs majors but the standard under-grad /post-grad )

if so
this type of code can be "fun" at times

i have not used this program so
but i do use other "Geophysical" type software -- from the USGS and NASA and JPL/AMES


some questions
Quote:
osgeo.live-Xubuntu
so you are using a live cd/dvd and not a real install to the hard drive ?
or is this a USB install
or running in say VMware or virtual-box

from the error it looks like you do not have some dependency installed
or
this software is rather old and is in need of updating for the current GCC compiler
it looks like you are using gcc-4.6 if this program is say 4 years old then you will need an older version of gcc

There should be a text file called "README" and "INSTALL"
and / or a folder called "Doc"

or the website where you got it will will have instructions
 
Old 03-10-2013, 09:44 PM   #5
Robert84
LQ Newbie
 
Registered: Feb 2013
Posts: 21

Original Poster
Rep: Reputation: Disabled
for osgeo-live-Xubuntu installation, I used an Oracle Virtual Machine.
yes, I have installed gcc-4.6.3-1ubuntu5. What version of gcc do you think I have to install?

help appreciated
 
Old 03-11-2013, 12:41 AM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,818

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
without testing the software
it is only a guess
gcc 4.1 ( but if version of titan 2.0.1 IS the gcc 4.3 patched version then gcc 4.3 )


off hand i have no idea other than building the source for an older version of gcc on this OS

you can have many different versions installed side by side
on opensuse 12.2 right now i have gcc3.4,gcc4.1,gcc4.3, and gcc4.7
but please do some research on having multiple installs. It is rather easy to royally mess things up .

There is a built in program in most distros called " alternatives" .This can be set to allow having different versions of programs installed BUT set to the one you need at the moment. Or write a shell script to set the version you need at any time .

sometimes it is just easier to use an older compiler than hack the source code for a program , but not always .

the codding rules have gotten more strict , this is to try to force developers to write less buggy and more secure code .


some googling
http://www.gmfg.buffalo.edu/software.php
did you see this warning ?
Quote:
UPDATE (Jan 26,2009): titan-2.0.0 will not compile with GCC 4.3. Please patch your Titan source code or download the updated version after completing the registration.
the word "patch" is a link to a "diff" file
that difference needs to be applied , but that is for the older 2.0.0 and not the 2.0.1

so i am guessing that titan 2.0.1 has that patch



Also for GDAL ( if you are using it )
the testing " FWTools 3 " is what i use
it includes gdal and proj4 with python wrappers
and the same code runs just fine in ScientificLinuc 6.3 ( a RHEL 6.3 rebuild) as in OpenSUSE 12.2
http://fwtools.maptools.org/linux-experimental.html
-- direct DL
http://home.gdal.org/fwtools/
i am using
FWTools-linux-x86_64-3.1.0.tar.gz
 
Old 03-11-2013, 01:58 AM   #7
Robert84
LQ Newbie
 
Registered: Feb 2013
Posts: 21

Original Poster
Rep: Reputation: Disabled
Yes, titan-2.0.1 is the code patch from the version 2.0.0. I have made a search on the web, it says that it is possible to install gcc mutilibrary on ubuntu. Now, I have tried to use the Synaptic package manager gui which is equivalent to apt command but in my search command, I do not find gcc version older than 4.4. Should download the library from the web and compiling from the source?
I have also tried the apt-get command, but I do not find gcc 4.3
on my linux ubuntu 12.04, I have installed gcc 4.4 and 4.6 throug the synaptic package manager, both ubuntu version.

best
 
Old 03-12-2013, 04:00 AM   #8
Robert84
LQ Newbie
 
Registered: Feb 2013
Posts: 21

Original Poster
Rep: Reputation: Disabled
I have tried your suggestion, but it did not work?

any help
 
Old 03-12-2013, 05:03 AM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
The default Ubuntu 12.04 g++ versions: sudo apt-get install g++-4.4 g++-4.5 g++-4.6

Building gcc-4.3, post #2 here ..
http://www.linuxquestions.org/questi...i3-4175452215/

Or may be use g++ version 4.1.2 ?
http://www.linuxquestions.org/questi...532/page4.html > #47

'/usr/local/bin/mpicxx' : mpicxx uses g++.
( mpicxx is a script, please read the "mpicxx text".)
When you anyway are building a homemade mpicxx, why not build it
(mpich2 or openmpi) by using a compiler that fits the old titan code ?
(Example: cd *mpi*/ && export CXX=g++41 && ./configure && make.)
So that mpixx is going to use the old g++, when you compile titan.

-

Last edited by knudfl; 03-12-2013 at 08:59 AM.
 
Old 03-12-2013, 06:34 AM   #10
Robert84
LQ Newbie
 
Registered: Feb 2013
Posts: 21

Original Poster
Rep: Reputation: Disabled
Dear Knudfl,

can you please be more specific on the command
Quote:
cd *mpi*/ && export CXX=g++41 && ./configure && make
I use the sh commnand for installing my program, because it automatically look for all the dependencies.

I am really new to linux, so when I type your suggestion.
$ cd *mpi*/ && export CXX=g++41 && ./configure && make
bash: cd: *mpi*/: No such file or directory

I am sure that I miss something,
I did also
sudo apt-get install g++-4.4 g++-4.5 g++-4.6

I have also installed all the old g++ version 4.1.2 as you suggested me,

any help appreciated

best
 
Old 03-12-2013, 07:05 AM   #11
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
# 10 :

Where / how did you get the "/usr/local/bin/mpicxx" ?
I assumed it was a home made install of mpich2 or OpenMPI.
And that you know how to install the mpich2 or Openmpi software.

The suggestion was to reinstall mpich2 or OpenMPI :
'cd *mpi*/' means 'cd mpich2-<version>/' or 'cd openmpi-<version>/'.

-
 
Old 03-12-2013, 08:19 AM   #12
Robert84
LQ Newbie
 
Registered: Feb 2013
Posts: 21

Original Poster
Rep: Reputation: Disabled
Dear Knudfl,

I am sorry I should have gotten this, anyhow, I did it and this is what I get:


Code:
user@osgeolive:~/bob$ cd mpich2-1.3.2 / && export CXX=g++41 && ./configure && make 
Configuring MPICH2 version 1.3.2 with  'CXX=g++41'
Running on system: Linux osgeolive 3.2.0-38-generic #61-Ubuntu SMP Tue Feb 19 12:20:02 UTC 2013 i686 i686 i386 GNU/Linux
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for grep that handles long lines and -e... /bin/grep
checking for fgrep... /bin/grep -F
Executing mpich2prereq in /home/user/bob/mpich2-1.3.2/src/mpid/ch3 with 
Executing mpich2prereq in /home/user/bob/mpich2-1.3.2/src/mpid/ch3/channels/nemesis
configure: ===== configuring src/mpl =====
configure: executing: /home/user/bob/mpich2-1.3.2/src/mpl/configure  'CXX=g++41' --disable-option-checking
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... no, using cp -p
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking for an ANSI C-conforming const... yes
checking for C/C++ restrict keyword... __restrict
checking for variable argument list macro functionality... yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking valgrind.h usability... no
checking valgrind.h presence... no
checking for valgrind.h... no
checking memcheck.h usability... no
checking memcheck.h presence... no
checking for memcheck.h... no
checking valgrind/valgrind.h usability... no
checking valgrind/valgrind.h presence... no
checking for valgrind/valgrind.h... no
checking valgrind/memcheck.h usability... no
checking valgrind/memcheck.h presence... no
checking for valgrind/memcheck.h... no
checking helgrind.h usability... no
checking helgrind.h presence... no
checking for helgrind.h... no
checking valgrind/helgrind.h usability... no
checking valgrind/helgrind.h presence... no
checking for valgrind/helgrind.h... no
checking drd.h usability... no
checking drd.h presence... no
checking for drd.h... no
checking valgrind/drd.h usability... no
checking valgrind/drd.h presence... no
checking for valgrind/drd.h... no
checking whether the valgrind headers are broken or too old... yes
checking for strdup... yes
checking whether strdup needs a declaration... no
checking for snprintf... yes
checking whether snprintf needs a declaration... no
checking for strncmp... yes
checking whether strncmp needs a declaration... no
checking for putenv... yes
checking whether putenv needs a declaration... no
checking whether __attribute__ allowed... yes
checking whether __attribute__((format)) allowed... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating localdefs
config.status: creating include/config.h
config.status: include/config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing include/mplconfig.h commands
config.status: creating include/mplconfig.h - prefix MPL for include/config.h defines
config.status: include/mplconfig.h is unchanged
configure: ===== done with src/mpl configure =====
configure: ===== configuring src/openpa =====
configure: executing: /home/user/bob/mpich2-1.3.2/src/openpa/configure --with-atomic-primitives=auto_allow_emulation 'CXX=g++41' --disable-option-checking
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... no, using cp -p
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking whether to enable assertions... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking atomic.h usability... no
checking atomic.h presence... no
checking for atomic.h... no
checking intrin.h usability... no
checking intrin.h presence... no
checking for intrin.h... no
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for C/C++ restrict keyword... __restrict
checking for inline... inline
checking for an ANSI C-conforming const... yes
checking for pthread_create in -lpthread... yes
checking for pthread_yield... yes
checking if 100 threads can be run at once... yes
checking size of void *... 4
checking size of int... 4
checking whether __attribute__ allowed... yes
checking whether __attribute__((format)) allowed... yes
checking if compiler rejects bogus asm statements... yes
checking for support for gcc x86/x86_64 primitives... yes
checking for support for gcc x86 primitives for pre-Pentium 4... yes
checking for support for gcc ia64 primitives... no
checking for support for gcc PowerPC atomics... no
checking for support for gcc SiCortex atomics... no
checking for support for gcc atomic intrinsics... yes
checking for support for Windows NT atomic intrinsics... no
checking for support for Sun atomic operations library... no
checking whether to enable strict fairness checks... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating test/Makefile
config.status: creating openpa.pc
config.status: creating src/config.h
config.status: src/config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing src/opa_config.h commands
config.status: creating src/opa_config.h - prefix OPA for src/config.h defines
config.status: src/opa_config.h is unchanged
configure: ===== done with src/openpa configure =====
sourcing /home/user/bob/mpich2-1.3.2/src/pm/hydra/mpich2prereq
checking whether the compiler defines __func__... yes
checking whether the compiler defines __FUNC__... no
checking whether the compiler sets __FUNCTION__... yes
checking whether C compiler accepts option -O2... yes
checking whether routines compiled with -O2 can be linked with ones compiled without -O2... yes
checking for type of weak symbol alias support... pragma weak
checking whether __attribute__ ((weak)) allowed... yes
checking whether __attribute__ ((weak_import)) allowed... yes
checking whether __attribute__((weak,alias(...))) allowed... no
checking for multiple weak symbol support... yes
checking for ifort... no
checking for pgf77... no
checking for af77... no
checking for xlf... no
checking for frt... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for fort... no
checking for ifc... no
checking for efc... no
checking for ftn... no
checking for gfortran... gfortran
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether gfortran accepts -g... yes
checking whether Fortran 77 compiler accepts option -O2... yes
checking whether routines compiled with -O2 can be linked with ones compiled without -O2... yes
checking how to get verbose linking output from gfortran... -v
checking for Fortran 77 libraries of gfortran...  -L/usr/lib/gcc/i686-linux-gnu/4.6 -L/usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu -L/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib -L/lib/i386-linux-gnu -L/lib/../lib -L/usr/lib/i386-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/i686-linux-gnu/4.6/../../.. -lgfortran -lm -lquadmath
checking whether gfortran accepts the FLIBS found by autoconf... yes
checking whether C can link with  -L/usr/lib/gcc/i686-linux-gnu/4.6 -L/usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu -L/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib -L/lib/i386-linux-gnu -L/lib/../lib -L/usr/lib/i386-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/i686-linux-gnu/4.6/../../.. -lgfortran -lm -lquadmath... yes
checking for linker for Fortran main programs... Use Fortran to link programs
checking whether Fortran 77 and C objects are compatible... yes
checking for Fortran 77 name mangling... lower underscore
checking what libraries are needed to link Fortran programs with C routines that use stdio... none
checking whether Fortran init will work with C... yes
checking for ifort... no
checking for pgf90... no
checking for pathf90... no
checking for pathf95... no
checking for xlf90... no
checking for xlf95... no
checking for f90... no
checking for epcf90... no
checking for f95... f95
checking whether we are using the GNU Fortran compiler... yes
checking whether f95 accepts -g... yes
checking for extension for Fortran 90 programs... f90
checking whether the Fortran 90 compiler (f95    ) works... yes
checking whether the Fortran 90 compiler (f95    ) is a cross-compiler... no
checking whether Fortran 90 compiler works with Fortran 77 compiler... yes
checking whether Fortran accepts ! for comments... yes
checking for include directory flag for Fortran... -I
checking for Fortran 77 flag for library directories... -L
checking for which Fortran libraries are needed to link C with Fortran... none
checking whether Fortran 77 compiler processes .F files with C preprocessor... yes
checking whether we are using the GNU Fortran compiler... (cached) yes
checking whether f95 accepts -g... (cached) yes
checking whether the Fortran 90 compiler (f95    ) works... yes
checking whether the Fortran 90 compiler (f95    ) is a cross-compiler... no
checking for Fortran 90 module extension... mod
checking for Fortran 90 module include flag... -I
checking whether Fortran 90 compiler accepts option -O2... yes
checking whether routines compiled with -O2 can be linked with ones compiled without -O2... yes
checking whether Fortran 90 compiler processes .F90 files with C preprocessor... yes
checking what libraries are needed to link Fortran90 programs with C routines that use stdio... none
checking for Fortran 90 compiler vendor... gnu
checking for c++... g++41
checking whether we are using the GNU C++ compiler... no
checking whether g++41 accepts -g... no
checking whether the C++ compiler g++41 can build an executable... 
configure: error: Aborting because C++ compiler does not work.  If you do not need a C++ compiler, configure with --disable-cxx

any help appreciated!

Last edited by Robert84; 03-15-2013 at 04:53 AM.
 
Old 03-12-2013, 08:54 AM   #13
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
# 12 : Please edit post #12 to use code tags.
Type [/code] at text end, and [code] at text start.

? May be the 2009 titan code could use g++-4.4 :
$ cd mpich2-1.3.2/
$ export CC=gcc-4.4 CXX=g++-4.4 FC=gfortran-4.4 && ./configure && make

Required : sudo apt-get install g++-4.4 gfortran-4.4

( Required for g++41 : gcc41-compat-4.1.2-ubuntu1210_i386.deb ).

-

Last edited by knudfl; 03-12-2013 at 08:58 AM.
 
Old 03-13-2013, 12:20 AM   #14
Robert84
LQ Newbie
 
Registered: Feb 2013
Posts: 21

Original Poster
Rep: Reputation: Disabled
Quote:
Required for g++41 : gcc41-compat-4.1.2-ubuntu1210_i386.deb
I have already installed the g++41-compat together with gcc31-compat as you described in your post.
 
Old 03-13-2013, 01:02 AM   #15
Robert84
LQ Newbie
 
Registered: Feb 2013
Posts: 21

Original Poster
Rep: Reputation: Disabled
Quote:
May be the 2009 titan code could use g++-4.4 :
$ cd mpich2-1.3.2/
$ export CC=gcc-4.4 CXX=g++-4.4 FC=gfortran-4.4 && ./configure && make
I did this as well but I have always the same error:
../datstr/libdatstr.a(element2.o): In function `Element::correct(HashTable*, HashTable*, double, MatProps*, FluxProps*, TimeProps*, double*, double*, double*, double*)':
/home/user/bob/titan-2.0.1/src/datstr/element2.C:2463: undefined reference to `correct_'
../geoflow/libgeoflow.a(Correct.o): In function `correct(HashTable*, HashTable*, double, MatProps*, FluxProps*, TimeProps*, void*, double*, double*, double*, double*)':
/home/user/bob/titan-2.0.1/src/geoflow/Correct.C:107: undefined reference to `correct_'
collect2: ld returned 1 exit status
make[3]: *** [titan] Error 1
make[3]: Leaving directory `/home/user/bob/titan-2.0.1/src/main'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/user/bob/titan-2.0.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/user/bob/titan-2.0.1'
make: *** [all] Error 2

help please, I do not think that is a problem with the C library?!
 
  


Reply

Tags
titan, titan201, titan2d


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Numerical precision on different architectures kishan.kaje Programming 9 04-21-2012 05:56 PM
what is the Scalable numerical algorithms ztdep Linux - Software 1 01-15-2006 02:32 AM
The maximum numerical value of the user's ID ken80 Linux - Newbie 3 03-26-2005 12:36 PM
Numerical keypad Craqon Linux - General 2 12-15-2004 01:42 AM
Numerical recipes in C++ marios_auth Programming 0 07-08-2004 03:19 AM


All times are GMT -5. The time now is 10:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration