SAGridOps / SoftwareInstallation

The build scripts for SAGrid Application deployment.
Other
0 stars 0 forks source link

error compiling FreeFem++ #34

Open brucellino opened 10 years ago

brucellino commented 10 years ago

rm -f *~ *.o lib*.a common2* parser_yy.c parser_ly.h parser_ll.c *scotch.h *scotchf.h y.output dummysizes
make CC="gcc " CCD="gcc " SCOTCHLIB=scotch  \
                    scotch.h                        \
                    scotchf.h                       \
                    libscotch.a                     \
                    libscotcherr.a                  \
                    libscotcherrexit.a
make[8]: Entering directory `/var/lib/jenkins/workspace/freefem++/ARCH/x86_64/OS/sl6/SITE/generic/VERSION/3.30/freefem++-3.30/download/scotch/scotch_5.1_esmumps/src/libscotch'
gcc  -g  -DNDEBUG -O3 -mmmx -msse -msse2 -fPIC -I'/usr/include/mpich2-x86_64' -DLONG -Drestrict=__restrict -DCOMMON_STUB_FORK  -DCOMMON_RANDOM_FIXED_SEED -DCOMMON_TIMING_OLD -DSCOTCH_RENAME -DSCOTCH_DETERMINISTIC -DSCOTCH_VERSION=\""5.1"\" dummysizes.c -o dummysizes -rdynamic -lm -Wl,-z,noexecstack -L/usr/lib64/mpich2/lib -L/usr/lib64/mpich2/lib -Wl,-rpath -Wl,/usr/lib64/mpich2/lib -lmpichcxx -lmpich -lopa -lpthread -lrt   -lpthread  
/usr/lib64/mpich2/lib/libmpichcxx.so: undefined reference to `operator delete[](void*)'
/usr/lib64/mpich2/lib/libmpichcxx.so: undefined reference to `operator new(unsigned long)'
/usr/lib64/mpich2/lib/libmpichcxx.so: undefined reference to `operator delete(void*)'
/usr/lib64/mpich2/lib/libmpichcxx.so: undefined reference to `operator new[](unsigned long)'
/usr/lib64/mpich2/lib/libmpichcxx.so: undefined reference to `__cxa_pure_virtual'
/usr/lib64/mpich2/lib/libmpichcxx.so: undefined reference to `__cxa_allocate_exception'
/usr/lib64/mpich2/lib/libmpichcxx.so: undefined reference to `__gxx_personality_v0'
/usr/lib64/mpich2/lib/libmpichcxx.so: undefined reference to `__cxa_throw'
/usr/lib64/mpich2/lib/libmpichcxx.so: undefined reference to `vtable for __cxxabiv1::__class_type_info'
/usr/lib64/mpich2/lib/libmpichcxx.so: undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
collect2: ld returned 1 exit status
make[8]: *** [dummysizes] Error 1
brucellino commented 10 years ago

Seems openmpi is incorrectly linked.

brucellino commented 10 years ago

Seems like the GCC builds are not making viable compilers :

checking whether the C compiler works... no

brucellino commented 10 years ago

Figured out that while the build is completed properly, the artifact stored, etc, the resulting application is not unpacked to /apprepo from /repo.

this needs to be done perhaps as a post action of the build, if the build passes.