2.00 final: emptool FTBFS

Posted by: tms13

2.00 final: emptool FTBFS - 01/04/2003 13:50

emptool fails to build from source:

Compiling dospath2.cpp
In file included from /usr/include/c++/3.2/bits/stl_algobase.h:64,
from /usr/include/c++/3.2/memory:54,
from dnew.h:26,
from config.h:102,
from dospath2.cpp:13:
/usr/include/c++/3.2/i386-linux/bits/c++config.h:77:2: #error __USE_MALLOC should never be defined. Read the release notes.


This is using gcc (GCC) 3.2.3 20030316 (Debian prerelease).

Posted by: mlord

Re: 2.00 final: emptool FTBFS - 01/04/2003 19:17

I would guess that, it is normally built using an older glibc and gcc than on your state-of-the-minute system.
Posted by: peter

Re: 2.00 final: emptool FTBFS - 02/04/2003 08:50

This is using gcc (GCC) 3.2.3 20030316 (Debian prerelease).
For the moment we recommend 2.95.3. I'll look at making it gcc3-clean at some point.

Peter
Posted by: tms13

Re: 2.00 final: emptool FTBFS - 02/04/2003 11:19

I got a bit further by building like:
make BUILD=car2 ARCH=pc CC=gcc-2.95 emptool
but then it fell over with
../../lib/pc-generic-debug2/libempeg_protocol.a(discovery.o)(.gnu.linkonce.t._ZN9CNgLogHexC2EPKcS1_iN6CNgLog8LogLevelE+0x16): In function `CNgLogHex::CNgLogHex[not-in-charge](char const*, char const*, int, CNgLog::LogLevel)':
/usr/include/c++/3.2/i386-linux/bits/gthr-default.h:484: undefined reference to `CNgLog::CNgLog[not-in-charge](char const*, char const*, int, CNgLog::LogLevel)'
../../lib/pc-generic-debug2/libempeg_protocol.a(discovery.o)(.gnu.linkonce.t._ZN9CNgLogHexC1EPKcS1_iN6CNgLog8LogLevelE+0x16): In function `CNgLogHex::CNgLogHex[in-charge](char const*, char const*, int, CNgLog::LogLevel)':
/usr/include/c++/3.2/i386-linux/bits/gthr-default.h:484: undefined reference to `CNgLog::CNgLog[not-in-charge](char const*, char const*, int, CNgLog::LogLevel)'
(and more). Looks like the libc or libstdc++ version comes into it as well, and I don't know how to override that.

The pre-built tools work for me, and I'm not planning any hacking on these, so it's not an urgent issue.
Posted by: jaharkes

Re: 2.00 final: emptool FTBFS - 02/04/2003 15:29

Use CC=g++-2.95, or more likely "CC=gcc-2.95 CXX=g++-2.95"