Jump to content

Error Building Simulation2.cpp Revision: 10850


hausundboot
 Share

Recommended Posts

I do this:

svn co http://svn.wildfireg...ublic/ps/trunk/ 0ad

cd 0ad/build/workspaces

./update-workspaces.sh

cd gcc

make config=release

Result:

==== Building mocks_real (release) ====

Creating obj/mocks_real_Release

mocks_real.cpp

Linking mocks_real

==== Building network (release) ====

Creating obj/network_Release

precompiled.h

NetSession.cpp

NetHost.cpp

NetMessageSim.cpp

NetFileTransfer.cpp

NetTurnManager.cpp

NetServer.cpp

NetMessage.cpp

fsm.cpp

NetStats.cpp

NetClient.cpp

precompiled.cpp

Linking network

==== Building simulation2 (release) ====

Creating obj/simulation2_Release

precompiled.h

Simulation2.cpp

In file included from ../../../source/lib/file/io/io.h:39:0,

from ../../../source/ps/Filesystem.h:22,

from ../../../source/ps/FileIo.h:35,

from ../../../source/graphics/MapReader.h:25,

from ../../../source/simulation2/Simulation2.cpp:30:

../../../source/lib/allocators/unique_range.h:46:9: Fehler: »NOTHROW_DECL ARE« bezeichnet keinen Typ

../../../source/lib/allocators/unique_range.h: In Elementfunktion »void U niqueRange::Delete()«:

../../../source/lib/allocators/unique_range.h:166:54: Fehler: »CallUnique RangeDeleter« wurde in diesem Gültigkeitsbereich nicht definiert

make[1]: *** [obj/simulation2_Release/Simulation2.o] Fehler 1 make: *** [simulation2] Fehler 2

I cleaned up and do it again, the same result.

Iam on 64bit Mashine using Gentoo.

System uname: Linux-3.1.6-gentoo-x86_64-Intel-R-_Core-TM-_i5-2500K_CPU_@_3.30GHz-with-gentoo-2.0.3

app-shells/bash: 4.1_p9

dev-java/java-config: 2.1.11-r3

dev-lang/python: 2.7.2-r3, 3.1.4-r3

dev-util/cmake: 2.8.6-r4

dev-util/pkgconfig: 0.26

sys-apps/baselayout: 2.0.3

sys-apps/openrc: 0.9.4

sys-apps/sandbox: 2.5

sys-devel/autoconf: 2.13, 2.68

sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.1

sys-devel/binutils: 2.21.1-r1

sys-devel/gcc: 4.5.3-r1

sys-devel/gcc-config: 1.4.1-r1

sys-devel/libtool: 2.4-r1

sys-devel/make: 3.82-r1

sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)

sys-libs/glibc: 2.13-r4

Repositories: gentoo

ACCEPT_KEYWORDS="amd64"

ACCEPT_LICENSE="*"

CBUILD="x86_64-pc-linux-gnu"

CFLAGS="-O2 -pipe"

CHOST="x86_64-pc-linux-gnu"

$svn info

Pfad: .

URL: http://svn.wildfireg...public/ps/trunk

Basis des Projektarchivs: http://svn.wildfiregames.com/public

UUID des Projektarchivs: 3db68df2-c116-0410-a063-a993310a9797

Revision: 10850

Knotentyp: Verzeichnis

Plan: normal

Letzter Autor: michael

Letzte geänderte Rev: 10850

Letztes Änderungsdatum: 2012-01-02 02:22:43 +0100 (Mo, 02. Jan 2012)

First i compiled it with -j5 but at the end i didnt find the test and pyrogenesis executable, so next time didnt used the -j5 and see clearly the error.

Thank you.

Edited by hausundboot
Link to comment
Share on other sites

Keep running 'svn up' until is says "Already at revision XXXXX" (where XXXXX is the revision number).

When you clone the SVN repo for the first time, it might errors out. When I initially clones the repo, it took 4 hours and 7 retries to get it all.

Link to comment
Share on other sites

I changed in "lib/code_annotation.h"

#if GCC_VERSION >= 303 to #if GCC_VERSION <= 303

This makes non-true then the defines would not set from the Precompiler.

The Result is its compiling. But i think its not good to do that. Please Fix this Problem.

The Game starts and is playable, no crash. In Map Editor i have some little slow down speed in some case.

One time i must send a SIGKILL to the editor while hanging.

Link to comment
Share on other sites

Hmm, so GCC_VERSION has an incorrect value? That seems weird... Could you add a line like


printf("### major=%d minor=%d\n", __GNUC__ + 0, __GNUC_MINOR__ + 0);

to source/main.cpp line 514 (just before the "EarlyInit();" line), then compile and run the game and see what message it prints out?

Link to comment
Share on other sites

...

int main(int argc, char* argv[])

{

printf("### major=%d minor=%d\n", __GNUC__ + 0, __GNUC_MINOR__ + 0);

EarlyInit(); // must come at beginning of main

RunGameOrAtlas(argc, const_cast<const char**>(argv));

// Shut down profiler initialised by EarlyInit

g_Profiler2.Shutdown();

return EXIT_SUCCESS;}

....

$ make config=release

==== Building mocks_real (release) ====

==== Building network (release) ====

==== Building simulation2 (release) ====

==== Building scriptinterface (release) ====

==== Building engine (release) ====

==== Building graphics (release) ====

==== Building atlas (release) ====

==== Building gui (release) ====

==== Building lowlevel (release) ====

==== Building mongoose (release) ====

==== Building pyrogenesis (release) ====

main.cpp

Linking pyrogenesis

==== Building mocks_test (release) ====

==== Building AtlasObject (release) ====

==== Building AtlasScript (release) ====

==== Building AtlasUI (release) ====

==== Building ActorEditor (release) ====

==== Building Collada (release) ====

==== Building test (release) ====

$ ../../../binaries/system/test

Running 255 tests...............................................................................................................................................................................................................................................................OK!

$ ../../../binaries/system/pyrogenesis

### major=4 minor=5

Cache: 500 (total: 3939) MiB

TIMER| InitVfs: 27.0326 ms

TIMER| InitScripting: 1.28702 ms

TIMER| CONFIG_Init: 26.5266 ms

TIMER| RunHardwareDetection: 41.8641 ms

TIMER| write_sys_info: 16.4792 ms

TIMER| InitRenderer: 11.5044 ms

TIMER| ps_console: 22.1736 ms

TIMER| ps_lang_hotkeys: 1.12226 ms

TIMER| common/setup.xml: 8.9549 ms

TIMER| common/styles.xml: 238.24 us

TIMER| common/sprite1.xml: 10.3608 ms

TIMER| common/init.xml: 23.2629 ms

TIMER| common/common_sprites.xml: 2.09208 ms

TIMER| common/common_styles.xml: 440.703 us

TIMER| pregame/sprites.xml: 927.312 us

TIMER| pregame/styles.xml: 192.917 us

TIMER| pregame/mainmenu.xml: 15.1219 ms

TIMER| common/global.xml: 571.183 us

SND| alc_init: success, using ALSA Default

TIMER| common/setup.xml: 638.184 us

TIMER| common/styles.xml: 41.942 us

TIMER| common/sprite1.xml: 1.43243 ms

TIMER| common/common_sprites.xml: 1.65162 ms

TIMER| common/common_styles.xml: 211.593 us

TIMER| msgbox/msgbox.xml: 8.59055 ms

TIMER| shutdown actor stuff: 1.448 us

TIMER| shutdown TexMan: 1.328 us

TIMER| shutdown Renderer: 2.10235 ms

TIMER| shutdown SDL: 39.8054 ms

TIMER| shutdown UserReporter: 288.363 us

TIMER| shutdown ScriptingHost: 2.09395 ms

TIMER| shutdown ConfigDB: 0.399 us

TIMER| resource modules: 26.6373 ms

TIMER TOTALS (9 clients)

-----------------------------------------------------

xml_validation: 2853.42 kc (12x)

tc_ShaderValidation: 5829.96 kc (12x)

tc_linkProgram: 0 c (0x)

tc_compileShader: 0 c (0x)

tc_transform: 96.981 kc (3x)

tc_plain_transform: 30.167 kc (3x)

tc_pool_alloc: 1637.45 kc (249x)

tc_dds_transform: 52.645 kc (9x)

tc_png_decode: 25.1594 Mc (8x)

-----------------------------------------------------

TIMER| shutdown misc: 160.584 us

Thank you.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...