Problems Compiling Pooma 2 with gcc snapshot dated 5/27/01
Dave Nystrom
wdn at lanl.gov
Wed Jun 13 17:38:18 UTC 2001
I tried building Pooma 2 with the 5/27/01 snapshot of gcc from the
CodeSourcery web site that Jeffrey recommended. I'm having compilation
problems trying to build Pooma 2 with this snapshot of gcc. Here is how I'm
trying to build Pooma 2:
#######################################################################
# Build a debug version of Pooma 2 for Linux using GCC.
if [ "$BUILD_LINUX_GCC_DEBUG" = "true" ]; then
configure \
--arch LINUXgcc \
--suite LINUX_GCC_DEBUG \
--static \
--debug \
--bounds \
--printdebug \
--oneper \
--with-fortran \
--pool \
--ex
SUITE=LINUX_GCC_DEBUG
export SUITE
make -j $NPROCS_FOR_COMPILES
cd lib/$SUITE
ln -s libpooma-gcc-ex.a libpooma.a
cd ../..
fi
Here is the translation unit that is failing to build and it's associated
error messages.
saltydog % more src/IO/LINUX_GCC_DEBUG/Serializers.cmpl.o_1.info
Wed Jun 13 10:53:43 MDT 2001
Compiler location: /home/wdn/bin/g++
cd /home/wdn/blanca/packages/Pooma2/r2_2001_05_23; \
TMPDIR=/scratch/wdn/tmp/LINUX_GCC_DEBUG; \
/usr/bin/time g++ -c /home/wdn/blanca/packages/Pooma2/r2_2001_05_23/src/IO/Serializers.cmpl.cpp \
-o /home/wdn/blanca/packages/Pooma2/r2_2001_05_23/src/IO/LINUX_GCC_DEBUG/Serializers.cmpl.o \
-ftemplate-depth-60 \
-Drestrict=__restrict__ -g \
-I/home/wdn/blanca/packages/Pooma2/r2_2001_05_23/src \
-I/home/wdn/blanca/packages/Pooma2/r2_2001_05_23/lib/LINUX_GCC_DEBUG
/home/wdn/blanca/packages/Pooma2/r2_2001_05_23/src/IO/Serializers.h: In
function `int streamOut(char*&, const T&) [with T = int]':
/home/wdn/blanca/packages/Pooma2/r2_2001_05_23/src/IO/Serializers.h:133: instantiated from `int serialize(Stream&, const T&) [with Stream = ch
ar*, T = int]'
/home/wdn/blanca/packages/Pooma2/r2_2001_05_23/src/IO/Serializers.cmpl.cpp:111: instantiated from here
/home/wdn/blanca/packages/Pooma2/r2_2001_05_23/src/IO/Serializers.h:71: `memcpy'
undeclared (first use this function)
/home/wdn/blanca/packages/Pooma2/r2_2001_05_23/src/IO/Serializers.h:71: (Each
undeclared identifier is reported only once for each function it appears
in.)
Command exited with non-zero status 1
1.76user 0.07system 0:03.69elapsed 49%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (941major+3059minor)pagefaults 0swaps
Let me know if I am doing something wrong. I think I am using the right
g++. Could I be configuring wrong? BTW, I'm using gcc on my Linux laptop
which is running RedHat 7.1.
saltydog % which g++
~/bin/g++
saltydog % ll ~/bin/g++
lrwxrwxrwx 1 wdn x10 8 Jun 10 17:18 /home/wdn/bin/g++ -> g++_3pt0*
saltydog % ll ~/bin/g++_3pt0
lrwxrwxrwx 1 wdn x10 36 Jun 10 17:16 /home/wdn/bin/g++_3pt0 -> ../packages/gcc-3.0-20010527/bin/g++*
--
Dave Nystrom email: wdn at lanl.gov
LANL X-3 phone: 505-667-7913 fax: 505-665-3046
More information about the pooma-dev
mailing list