Opened 10 years ago

Last modified 10 years ago

#2544 closed defect

Compilation without precompile header files fails. — at Version 1

Reported by: Radagast Owned by:
Priority: Should Have Milestone:
Component: Build & Packages Keywords: build without-pch
Cc: historicbruno Patch:

Description (last modified by Radagast)

cd build/workspaces/
./clean-workspaces.sh
./update-workspaces.sh --without-pch
make clean
make

Fails at NetMessageSim.cpp with boost error 2 instead of 4 template-parameters for std::map. A map has key and value usually, though my boost-header file in /usr/include/ expects four.

administrator@pc01:~/0ad/build/workspaces/gcc$ make clean
Cleaning pyrogenesis
Cleaning network
Cleaning tinygettext
Cleaning lobby
Cleaning glooxwrapper
Cleaning simulation2
Cleaning scriptinterface
Cleaning engine
Cleaning graphics
Cleaning atlas
Cleaning gui
Cleaning lowlevel
Cleaning mongoose
Cleaning mocks_real
Cleaning mocks_test
Cleaning AtlasObject
Cleaning AtlasUI
Cleaning ActorEditor
Cleaning Collada
Cleaning test
administrator@pc01:~/0ad/build/workspaces/gcc$ make all
==== Building mocks_real (release) ====
Creating obj/mocks_real_Release
mocks_real.cpp
Linking mocks_real
==== Building network (release) ====
Creating obj/network_Release
NetMessageSim.cpp
In file included from ../../../source/network/NetMessageSim.cpp:23:0:
../../../source/scriptinterface/ScriptInterface.h:424:34: error: wrong number of template arguments (2, should be 4)
/usr/include/boost/detail/container_fwd.hpp:87:73: error: provided for ‘template<class Key, class T, class Compare, class Allocator> struct std::map’
make[1]: *** [obj/network_Release/NetMessageSim.o] Error 1
make: *** [network] Error 2

administrator@pc01:~/0ad/build/workspaces/gcc$ uname -a
Linux pc01 3.2.0-57-generic #87-Ubuntu SMP Tue Nov 12 21:35:10 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

administrator@pc01:~/0ad/build/workspaces/gcc$ whereis boost
boost: /usr/include/boost

administrator@pc01:~/0ad/build/workspaces/gcc$ dpkg -s libboost-dev | grep 'Version'
Version: 1.48.0.2

I hope it's just my system which is broken.

Change History (1)

comment:1 by Radagast, 10 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.