Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#2544 closed defect (worksforme)

Compilation without precompiled header files fails.

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 intuitively has only key and value, though my boost-header file in /usr/include/ expects four arguments.

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 (6)

comment:1 by Radagast, 10 years ago

Description: modified (diff)

comment:2 by Radagast, 10 years ago

Description: modified (diff)
Summary: Compilation without precompile header files fails.Compilation without precompiled header files fails.

comment:3 by sanderd17, 10 years ago

I don't have any errors or problems. If someone else could confirm, we can close this as being something odd only affecting Rada.

comment:4 by Radagast, 10 years ago

Component: Core engineBuild & Packages
Resolution: worksforme
Status: newclosed

comment:5 by Radagast, 10 years ago

Let's close it. As it works for you and me I have other problems with other projects too, it's very likely that this is nothing important.

comment:6 by historic_bruno, 10 years ago

Keywords: build, without-pch → build without-pch
Milestone: Alpha 16

Worked fine for me on Windows, building with VC++ 2008 and --without-pch.

Note: See TracTickets for help on using tickets.