public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* C++ problem with 3.4.3 on Yellow Dog Linux 3.0.1
@ 2004-12-03  8:39 Gwynne
  0 siblings, 0 replies; only message in thread
From: Gwynne @ 2004-12-03  8:39 UTC (permalink / raw)
  To: gcc-help

I have a Yellow Dog Linux 3.0.1 installation on my PowerPC 750 machine  
(Power Macintosh G3, OldWorld). I built and installed the latest  
binutils (2.15) and then gcc-3.4.3. ./configure guessed my system type  
as powerpc-unknown-linux-gnu, so I overrode with  
--host=powerpc-yelldog-linux as pointed out by the buildstat of 3.4.2  
on the same system. gcc, C and C++ only, built and installed  
succesfully.

I then downloaded and built Berkeley's BOINC application from source  
with no problem at all. After that, I downloaded the Berkeley  
seti_boinc source and attempted to build that. I'm seeing the following  
error message:

In file included from  
/usr/lib/gcc/powerpc-yellowdog-linux/3.4.3/../../../../include/c++/ 
3.4.3/bits/std_algobase.h:67,
                  from  
/usr/lib/gcc/powerpc-yellowdog-linux/3.4.3/../../../../include/c++/ 
3.4.3/bits/char_traits.h:46,
                  from  
/usr/lib/gcc/powerpc-yellowdog-linux/3.4.3/../../../../include/c++/ 
3.4.3/string:46
                  from /home/gwynne/src/boinc/lib/diagnostics.h:20
                  from main.cpp:43
/usr/lib/gcc/powerpc-yellowdog-linux/3.4.3/../../../../include/c++/ 
3.4.3/cstdlib:103: error: '::malloc' has not been declared
/usr/lib/gcc/powerpc-yellowdog-linux/3.4.3/../../../../include/c++/ 
3.4.3/cstdlib:111: error: '::realloc' has not been declared

The gcc command was:
powerpc-yellowdog-linux-g++ -g -O2 -I/include -DHAVE_CONFIG_H -DTEXT_UI  
-DNDEBUG -DCLIENT -pthread -I/home/gwynne/src/boinc/api  
-I/home/gwynne/src/boinc/lib -I/home/gwynne/src/boinc/image_libs/ -I..  
-I../db -c -o main.o main.cpp

seti_boinc was configured with:
./configure --prefix=/usr/local --host=powerpc-yellowdog-linux

gcc -v output:
Reading specs from /usr/lib/gcc/powerpc-yellowdog-linux/3.4.3/specs
Configured with: ../gcc-3.4.3/configure --prefix=/usr  
--enable-languages=c,c++ --enable-__cxa_atexit  
--host=powerpc-yellowdog-linux
Thread model: posix
gcc verion 3.4.3

uname -a output:
Linux x1-6-00-<MAC address> 2.4.22-2f #1 Sun Nov 9 16:49:49 EST 2003  
ppc ppc ppc GNU/Linux

gcc was built using:
make CFLAGS='-O' LIBCFLAGS='-g -O2' LIBCXXFLAGS='-g -O2  
-fno-implicit-templates' bootstrap

This looks like a headers issue with GCC, rather than an issue with  
seti_boinc, which is why I'm asking here. Does anyone have any advice?

-- Gwynne, key to the Code
Email: squasar@eternalviper.net
Web: http://musicimage.plasticchicken.com/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-12-03  8:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-03  8:39 C++ problem with 3.4.3 on Yellow Dog Linux 3.0.1 Gwynne

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).