This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
gcc 3.0 cannot compile pooma
- To: gcc at gcc dot gnu dot org
- Subject: gcc 3.0 cannot compile pooma
- From: Peter Schmid <schmid at snake dot iap dot physik dot tu-darmstadt dot de>
- Date: Wed, 6 Jun 2001 03:36:39 +0200 (CEST)
- cc: libstdc++ at gcc dot gnu dot org
gcc version 3.0 20010604 cannot compile pooma-gcc on
i686-pc-linux-gnu. Compilation of
Serializers.cmpl.cpp stops with the messages:
/home/peter/trans/pooma-gcc/src/IO/Serializers.h: In function `int
streamOut(char*&, const T&) [with T = int]':
/home/peter/trans/pooma-gcc/src/IO/Serializers.h:133: instantiated from `int serialize(Stream&, const T&) [with Stream = char*, T = int]'
/home/peter/trans/pooma-gcc/src/IO/Serializers.cmpl.cpp:111: instantiated from here
/home/peter/trans/pooma-gcc/src/IO/Serializers.h:71: `memcpy' undeclared (first
use this function)
/home/peter/trans/pooma-gcc/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.
A minimal version of the failing source code is shown below:
#include <string>
extern "C"{
#include <string.h>
}
int streamStringOut(char*& s){
int len;
memcpy((void*)s,(const void*)&len, sizeof(len));;
return len;
}
Since the successful compilation of pooma is a milestone for the
release process of the gcc 3.0 compiler, I believe this problem should
be fixed as soon as possible.
I could compile pooma about two weeks ago when I last tried.
Hope this helps,
Peter Schmid