Jump to content

Build on OpenIndiana


Recommended Posts

Inspired by the Build on FreeBSD thread i decided to try and build 0ad on OpenIndiana. I'm currently doing this in a x86 VM.

Add SFE repository

pkg set-publisher -p http://pkg.openindiana.org/sfe

Needed packages


g++/wxwidgets (from sfe) (the graphics/wxwidgets version misses a gl library)
gcc (from sfe)
subversion
boost
openal
system/header
header-math
gettext (for pkg-config)
developer/library/lint

other needed packages like libxml2 are included in the default install.

After installing these packages checkout the svn repo with

svn co http://svn.wildfiregames.com/public/ps/trunk/ 0ad

and apply the patch i created to get fcollada to build without errors.

NOTE:

The spidermonkey build still fails but i'm trying to fix those errors too.

EDIT:

The error messages from spidermonkey

In file included from ../v8-dtoa/v8.h:47:0,
from ../v8-dtoa/conversions.cc:30:
../v8-dtoa/platform.h:70:5: error: expected unqualified-id before '__extension__'
In file included from ../v8-dtoa/platform.h:77:0,
from ../v8-dtoa/v8.h:47,
from ../v8-dtoa/conversions.cc:30:
./dist/system_wrappers_js/stdarg.h:2:37: error: expected declaration before end of line
gmake[1]: *** [conversions.o] Error 1
gmake[1]: *** Waiting for unfinished jobs....
gmake[1]: Leaving directory `/home/test/build/0ad/libraries/spidermonkey/js-1.8.5/js/src/build-debug'
gmake: *** [default] Error 2
ERROR: SpiderMonkey build failed

EDIT2:

I managed to get nvtt to build (while using the same header file as linux...)

The patch to get nvtt to build and for fcollada is openindiana_support_fcollada_and_nvtt-2012-01-07.patch

EDIT3: fixed wxwidgets dependency

0ad-openindiana-support-fcollada_2012-01-07.patch

openindiana_support_fcollada_and_nvtt-2012-01-07.patch

Edited by leper
Link to comment
Share on other sites

Nice job :) Do you think it would work on other Solaris/OpenSolaris variants?

Thanks. I think it should work without any real problems if all the dependencies are satisfied. When there is a .iso of StormOS available it shouldn't be a lot of work to get 0ad running (due to the availability of the Debian repositiories).

Now the promised patch for 0ad on OpenIndiana:

openindiana_support-2012-01-12.patch is applied to the clone of the svn repo.

openindiana-support-spidermonkey-2012-01-09.patch is applied to 0ad/libraries/spidermonkey/js185-1.0.0.tar.gz (NOTE: i saved it as js185-1.0.0-leper-fix.tar.gz as it is referenced in the other patch)

To build 0ad (Building Atlas is not working at the moment)

cd 0ad/build/workspaces
./update-workspaces.sh -j3
cd gcc
gmake Collada pyrogenesis config=release -j3

Now we just need to fix a misnamed library (I don't know where to put that in the buildfiles as I am not sure when this file is copied there):

cd ../../../binaries/system # or cd to 0ad/binaries/system
ln -s libmozjs185-ps-release.so.1.0 libmozjs185-ps-release.so

In an ideal world we could now just run 0ad with ./pyrogenesis but since that complains about not found libraries we need to specify those to run it:

LD_PRELOAD=./libmozjs185-ps-release.so:/usr/g++/lib/libboost_signals.so.1.47.0:/usr/g++/lib/libboost_filesystem.so.1.47.0:/usr/g++/lib/libboost_system.so.1.47.0:./libenet.so.1:./libnvcore.so:./libnvmath.so:./libnvimage.so:./libnvtt.so:./libCollada.so ./pyrogenesis

Link to comment
Share on other sites

  • 3 weeks later...

UPDATE: Modified (or rather simplified) my patch (only the build scripts) due to the better support for FreeBSD in svn. Got AtlasUI to compile (see the changes in update-workspaces.sh in the 2012-01-31.patch) if I remove the wxUSE_DEBUGREPORT block from source/tools/atlas/AtlasUI/Misc/DLLInterface.cpp. The two tests are still failing and I couldn't solve the elf class mismatch.

As some of the FreeBSD patches are going into trunk I got motivated again and cleaned up some of the build modifications in my patch. To get spidermonkey to compile you still need the patch from my previous post.

Now everything is compiling fine with the one exception being AtlasUI:

test@openindiana:~/build/0ad/build/workspaces/gcc$ gmake
==== 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) ====
==== Building mocks_test (release) ====
==== Building AtlasObject (release) ====
==== Building AtlasScript (release) ====
==== Building AtlasUI (release) ====
DLLInterface.cpp
../../../source/tools/atlas/AtlasUI/Misc/DLLInterface.cpp: In member function 'virtual void AtlasDLLApp::OnFatalException()':
../../../source/tools/atlas/AtlasUI/Misc/DLLInterface.cpp:248:3: error: 'wxDebugReport' was not declared in this scope
../../../source/tools/atlas/AtlasUI/Misc/DLLInterface.cpp:248:17: error: expected ';' before 'report'
../../../source/tools/atlas/AtlasUI/Misc/DLLInterface.cpp:249:3: error: 'wxDebugReportPreviewStd' was not declared in this scope
../../../source/tools/atlas/AtlasUI/Misc/DLLInterface.cpp:249:27: error: expected ';' before 'preview'
../../../source/tools/atlas/AtlasUI/Misc/DLLInterface.cpp:251:3: error: 'report' was not declared in this scope
../../../source/tools/atlas/AtlasUI/Misc/DLLInterface.cpp:253:7: error: 'preview' was not declared in this scope
gmake[1]: *** [obj/AtlasUI_Release/DLLInterface.o] Error 1
gmake: *** [AtlasUI] Error 2

That code is only compiled if wxUSE_DEBUGREPORT is set. If it isn't set you just need to add -mimpure-text to the LDFLAGS and remove -fstack-protector-all from the CFLAGS in AtlasUI.make to make AtlasUI compile and link properly.

So to compile the game just use:

gmake Collada pyrogenesis test

Now just cd to binaries/system and run test with:

LD_PRELOAD=/usr/g++/lib/libboost_system.so.1.48.0 ./test

2 tests are failing

Running 258 tests..................................................................................................trace.cpp(67): Assertion failed: "dummy == ':'"
Assertion failed: "dummy == ':'"
Location: trace.cpp:67 (TraceEntry)

Call stack:

(85252af) /home/test/build/0ad/binaries/system/test'_Z15debug_DumpStackPwjPvPKw+0x2f [0x85252af]
(84d1164) /home/test/build/0ad/binaries/system/test'_Z23debug_BuildErrorMessagePKwS0_iPKcPvS0_P15ErrorMessageMem.constprop.59+0x1a4 [0x84d1164]
(84d1f13) /home/test/build/0ad/binaries/system/test'_Z18debug_DisplayErrorPKwjPvS0_S0_iPKcPVi.part.47+0xd3 [0x84d1f13]
(84d2219) /home/test/build/0ad/binaries/system/test'_Z24debug_OnAssertionFailurePKwPViS0_iPKc+0xd9 [0x84d2219]
(84ded82) /home/test/build/0ad/binaries/system/test'_ZN10TraceEntryC2ERKSbIwSt11char_traitsIwESaIwEE+0x302 [0x84ded82]
(81c8965) /home/test/build/0ad/binaries/system/test'_ZN14TestTraceEntry10test_entryEv+0x925 [0x81c8965]
(8159b34) /home/test/build/0ad/binaries/system/test'_ZN7CxxTest19RealTestDescription3runEv+0x24 [0x8159b34]
(816198f) /home/test/build/0ad/binaries/system/test'_ZN7CxxTest13PsTestWrapper6runGuiERiPPcRNS_12TestListenerE+0x23f [0x816198f]
(85a2cd7) /home/test/build/0ad/binaries/system/test'main+0xc7 [0x85a2cd7]
(81547b3) /home/test/build/0ad/binaries/system/test'_start+0x83 [0x81547b3]

errno = 0 (Invalid alignment)
OS error = ?


(C)ontinue, (S)uppress, (B)reak, Launch (D)ebugger, or (E)xit?
C
trace.cpp(70): Assertion failed: "action == 'L' || action == 'S'"
Assertion failed: "action == 'L' || action == 'S'"
Location: trace.cpp:70 (TraceEntry)

Call stack:

(85252af) /home/test/build/0ad/binaries/system/test'_Z15debug_DumpStackPwjPvPKw+0x2f [0x85252af]
(84d1164) /home/test/build/0ad/binaries/system/test'_Z23debug_BuildErrorMessagePKwS0_iPKcPvS0_P15ErrorMessageMem.constprop.59+0x1a4 [0x84d1164]
(84d1f13) /home/test/build/0ad/binaries/system/test'_Z18debug_DisplayErrorPKwjPvS0_S0_iPKcPVi.part.47+0xd3 [0x84d1f13]
(84d2219) /home/test/build/0ad/binaries/system/test'_Z24debug_OnAssertionFailurePKwPViS0_iPKc+0xd9 [0x84d2219]
(84def34) /home/test/build/0ad/binaries/system/test'_ZN10TraceEntryC2ERKSbIwSt11char_traitsIwESaIwEE+0x4b4 [0x84def34]
(81c8965) /home/test/build/0ad/binaries/system/test'_ZN14TestTraceEntry10test_entryEv+0x925 [0x81c8965]
(8159b34) /home/test/build/0ad/binaries/system/test'_ZN7CxxTest19RealTestDescription3runEv+0x24 [0x8159b34]
(816198f) /home/test/build/0ad/binaries/system/test'_ZN7CxxTest13PsTestWrapper6runGuiERiPPcRNS_12TestListenerE+0x23f [0x816198f]
(85a2cd7) /home/test/build/0ad/binaries/system/test'main+0xc7 [0x85a2cd7]
(81547b3) /home/test/build/0ad/binaries/system/test'_start+0x83 [0x81547b3]

errno = 0 (No error reported here)
OS error = ?


(C)ontinue, (S)uppress, (B)reak, Launch (D)ebugger, or (E)xit?
(C)ontinue, (S)uppress, (B)reak, Launch (D)ebugger, or (E)xit?
C
trace.cpp(74): Assertion failed: "dummy == '"'"
Assertion failed: "dummy == '"'"
Location: trace.cpp:74 (TraceEntry)

Call stack:

(85252af) /home/test/build/0ad/binaries/system/test'_Z15debug_DumpStackPwjPvPKw+0x2f [0x85252af]
(84d1164) /home/test/build/0ad/binaries/system/test'_Z23debug_BuildErrorMessagePKwS0_iPKcPvS0_P15ErrorMessageMem.constprop.59+0x1a4 [0x84d1164]
(84d1f13) /home/test/build/0ad/binaries/system/test'_Z18debug_DisplayErrorPKwjPvS0_S0_iPKcPVi.part.47+0xd3 [0x84d1f13]
(84d2219) /home/test/build/0ad/binaries/system/test'_Z24debug_OnAssertionFailurePKwPViS0_iPKc+0xd9 [0x84d2219]
(84dedfc) /home/test/build/0ad/binaries/system/test'_ZN10TraceEntryC2ERKSbIwSt11char_traitsIwESaIwEE+0x37c [0x84dedfc]
(81c8965) /home/test/build/0ad/binaries/system/test'_ZN14TestTraceEntry10test_entryEv+0x925 [0x81c8965]
(8159b34) /home/test/build/0ad/binaries/system/test'_ZN7CxxTest19RealTestDescription3runEv+0x24 [0x8159b34]
(816198f) /home/test/build/0ad/binaries/system/test'_ZN7CxxTest13PsTestWrapper6runGuiERiPPcRNS_12TestListenerE+0x23f [0x816198f]
(85a2cd7) /home/test/build/0ad/binaries/system/test'main+0xc7 [0x85a2cd7]
(81547b3) /home/test/build/0ad/binaries/system/test'_start+0x83 [0x81547b3]

errno = 0 (No error reported here)
OS error = ?


(C)ontinue, (S)uppress, (B)reak, Launch (D)ebugger, or (E)xit?
(C)ontinue, (S)uppress, (B)reak, Launch (D)ebugger, or (E)xit?
C
trace.cpp(82): Assertion failed: "stream.get() == '\n'"
Assertion failed: "stream.get() == '\n'"
Location: trace.cpp:82 (TraceEntry)

Call stack:

(85252af) /home/test/build/0ad/binaries/system/test'_Z15debug_DumpStackPwjPvPKw+0x2f [0x85252af]
(84d1164) /home/test/build/0ad/binaries/system/test'_Z23debug_BuildErrorMessagePKwS0_iPKcPvS0_P15ErrorMessageMem.constprop.59+0x1a4 [0x84d1164]
(84d1f13) /home/test/build/0ad/binaries/system/test'_Z18debug_DisplayErrorPKwjPvS0_S0_iPKcPVi.part.47+0xd3 [0x84d1f13]
(84d2219) /home/test/build/0ad/binaries/system/test'_Z24debug_OnAssertionFailurePKwPViS0_iPKc+0xd9 [0x84d2219]
(84df0a2) /home/test/build/0ad/binaries/system/test'_ZN10TraceEntryC2ERKSbIwSt11char_traitsIwESaIwEE+0x622 [0x84df0a2]
(81c8965) /home/test/build/0ad/binaries/system/test'_ZN14TestTraceEntry10test_entryEv+0x925 [0x81c8965]
(8159b34) /home/test/build/0ad/binaries/system/test'_ZN7CxxTest19RealTestDescription3runEv+0x24 [0x8159b34]
(816198f) /home/test/build/0ad/binaries/system/test'_ZN7CxxTest13PsTestWrapper6runGuiERiPPcRNS_12TestListenerE+0x23f [0x816198f]
(85a2cd7) /home/test/build/0ad/binaries/system/test'main+0xc7 [0x85a2cd7]
(81547b3) /home/test/build/0ad/binaries/system/test'_start+0x83 [0x81547b3]

errno = 0 (No error reported here)
OS error = ?


(C)ontinue, (S)uppress, (B)reak, Launch (D)ebugger, or (E)xit?
(C)ontinue, (S)uppress, (B)reak, Launch (D)ebugger, or (E)xit?
C
trace.cpp(83): Assertion failed: "stream.good()"
Assertion failed: "stream.good()"
Location: trace.cpp:83 (TraceEntry)

Call stack:

(85252af) /home/test/build/0ad/binaries/system/test'_Z15debug_DumpStackPwjPvPKw+0x2f [0x85252af]
(84d1164) /home/test/build/0ad/binaries/system/test'_Z23debug_BuildErrorMessagePKwS0_iPKcPvS0_P15ErrorMessageMem.constprop.59+0x1a4 [0x84d1164]
(84d1f13) /home/test/build/0ad/binaries/system/test'_Z18debug_DisplayErrorPKwjPvS0_S0_iPKcPVi.part.47+0xd3 [0x84d1f13]
(84d2219) /home/test/build/0ad/binaries/system/test'_Z24debug_OnAssertionFailurePKwPViS0_iPKc+0xd9 [0x84d2219]
(84df0e6) /home/test/build/0ad/binaries/system/test'_ZN10TraceEntryC2ERKSbIwSt11char_traitsIwESaIwEE+0x666 [0x84df0e6]
(81c8965) /home/test/build/0ad/binaries/system/test'_ZN14TestTraceEntry10test_entryEv+0x925 [0x81c8965]
(8159b34) /home/test/build/0ad/binaries/system/test'_ZN7CxxTest19RealTestDescription3runEv+0x24 [0x8159b34]
(816198f) /home/test/build/0ad/binaries/system/test'_ZN7CxxTest13PsTestWrapper6runGuiERiPPcRNS_12TestListenerE+0x23f [0x816198f]
(85a2cd7) /home/test/build/0ad/binaries/system/test'main+0xc7 [0x85a2cd7]
(81547b3) /home/test/build/0ad/binaries/system/test'_start+0x83 [0x81547b3]

errno = 0 (No error reported here)
OS error = ?


(C)ontinue, (S)uppress, (B)reak, Launch (D)ebugger, or (E)xit?
(C)ontinue, (S)uppress, (B)reak, Launch (D)ebugger, or (E)xit?
C

In TestTraceEntry::test_entry:
../../../libraries/boost/include/../../../source/lib/file/common/tests/test_trace.h:54: Error: Expected (t3.Action() == TraceEntry::Load), found ({ 30 00 00 00 } != { 4C 00 00 00 })
../../../libraries/boost/include/../../../source/lib/file/common/tests/test_trace.h:55: Error: Expected ((t3.Pathname()).string() == (OsPath(L"example.txt")).string()), found (L"7052: L " != L"example.txt")
../../../libraries/boost/include/../../../source/lib/file/common/tests/test_trace.h:56: Error: Expected (t3.Size() == (size_t)1234), found (0 != 1234)
trace.cpp(67): Assertion failed: "dummy == ':'"
Assertion failed: "dummy == ':'"
Location: trace.cpp:67 (TraceEntry)

Call stack:

(85252af) /home/test/build/0ad/binaries/system/test'_Z15debug_DumpStackPwjPvPKw+0x2f [0x85252af]
(84d1164) /home/test/build/0ad/binaries/system/test'_Z23debug_BuildErrorMessagePKwS0_iPKcPvS0_P15ErrorMessageMem.constprop.59+0x1a4 [0x84d1164]
(84d1f13) /home/test/build/0ad/binaries/system/test'_Z18debug_DisplayErrorPKwjPvS0_S0_iPKcPVi.part.47+0xd3 [0x84d1f13]
(84d2219) /home/test/build/0ad/binaries/system/test'_Z24debug_OnAssertionFailurePKwPViS0_iPKc+0xd9 [0x84d2219]
(84ded82) /home/test/build/0ad/binaries/system/test'_ZN10TraceEntryC2ERKSbIwSt11char_traitsIwESaIwEE+0x302 [0x84ded82]
(81c8b73) /home/test/build/0ad/binaries/system/test'_ZN14TestTraceEntry10test_entryEv+0xb33 [0x81c8b73]
(8159b34) /home/test/build/0ad/binaries/system/test'_ZN7CxxTest19RealTestDescription3runEv+0x24 [0x8159b34]
(816198f) /home/test/build/0ad/binaries/system/test'_ZN7CxxTest13PsTestWrapper6runGuiERiPPcRNS_12TestListenerE+0x23f [0x816198f]
(85a2cd7) /home/test/build/0ad/binaries/system/test'main+0xc7 [0x85a2cd7]
(81547b3) /home/test/build/0ad/binaries/system/test'_start+0x83 [0x81547b3]

errno = 0 (No error reported here)
OS error = ?


(C)ontinue, (S)uppress, (B)reak, Launch (D)ebugger, or (E)xit?
(C)ontinue, (S)uppress, (B)reak, Launch (D)ebugger, or (E)xit?
C
trace.cpp(70): Assertion failed: "action == 'L' || action == 'S'"
Assertion failed: "action == 'L' || action == 'S'"
Location: trace.cpp:70 (TraceEntry)

Call stack:

(85252af) /home/test/build/0ad/binaries/system/test'_Z15debug_DumpStackPwjPvPKw+0x2f [0x85252af]
(84d1164) /home/test/build/0ad/binaries/system/test'_Z23debug_BuildErrorMessagePKwS0_iPKcPvS0_P15ErrorMessageMem.constprop.59+0x1a4 [0x84d1164]
(84d1f13) /home/test/build/0ad/binaries/system/test'_Z18debug_DisplayErrorPKwjPvS0_S0_iPKcPVi.part.47+0xd3 [0x84d1f13]
(84d2219) /home/test/build/0ad/binaries/system/test'_Z24debug_OnAssertionFailurePKwPViS0_iPKc+0xd9 [0x84d2219]
(84def34) /home/test/build/0ad/binaries/system/test'_ZN10TraceEntryC2ERKSbIwSt11char_traitsIwESaIwEE+0x4b4 [0x84def34]
(81c8b73) /home/test/build/0ad/binaries/system/test'_ZN14TestTraceEntry10test_entryEv+0xb33 [0x81c8b73]
(8159b34) /home/test/build/0ad/binaries/system/test'_ZN7CxxTest19RealTestDescription3runEv+0x24 [0x8159b34]
(816198f) /home/test/build/0ad/binaries/system/test'_ZN7CxxTest13PsTestWrapper6runGuiERiPPcRNS_12TestListenerE+0x23f [0x816198f]
(85a2cd7) /home/test/build/0ad/binaries/system/test'main+0xc7 [0x85a2cd7]
(81547b3) /home/test/build/0ad/binaries/system/test'_start+0x83 [0x81547b3]

errno = 0 (No error reported here)
OS error = ?


(C)ontinue, (S)uppress, (B)reak, Launch (D)ebugger, or (E)xit?
(C)ontinue, (S)uppress, (B)reak, Launch (D)ebugger, or (E)xit?
C
trace.cpp(74): Assertion failed: "dummy == '"'"
Assertion failed: "dummy == '"'"
Location: trace.cpp:74 (TraceEntry)

Call stack:

(85252af) /home/test/build/0ad/binaries/system/test'_Z15debug_DumpStackPwjPvPKw+0x2f [0x85252af]
(84d1164) /home/test/build/0ad/binaries/system/test'_Z23debug_BuildErrorMessagePKwS0_iPKcPvS0_P15ErrorMessageMem.constprop.59+0x1a4 [0x84d1164]
(84d1f13) /home/test/build/0ad/binaries/system/test'_Z18debug_DisplayErrorPKwjPvS0_S0_iPKcPVi.part.47+0xd3 [0x84d1f13]
(84d2219) /home/test/build/0ad/binaries/system/test'_Z24debug_OnAssertionFailurePKwPViS0_iPKc+0xd9 [0x84d2219]
(84dedfc) /home/test/build/0ad/binaries/system/test'_ZN10TraceEntryC2ERKSbIwSt11char_traitsIwESaIwEE+0x37c [0x84dedfc]
(81c8b73) /home/test/build/0ad/binaries/system/test'_ZN14TestTraceEntry10test_entryEv+0xb33 [0x81c8b73]
(8159b34) /home/test/build/0ad/binaries/system/test'_ZN7CxxTest19RealTestDescription3runEv+0x24 [0x8159b34]
(816198f) /home/test/build/0ad/binaries/system/test'_ZN7CxxTest13PsTestWrapper6runGuiERiPPcRNS_12TestListenerE+0x23f [0x816198f]
(85a2cd7) /home/test/build/0ad/binaries/system/test'main+0xc7 [0x85a2cd7]
(81547b3) /home/test/build/0ad/binaries/system/test'_start+0x83 [0x81547b3]

errno = 0 (No error reported here)
OS error = ?


(C)ontinue, (S)uppress, (B)reak, Launch (D)ebugger, or (E)xit?
(C)ontinue, (S)uppress, (B)reak, Launch (D)ebugger, or (E)xit?
C
trace.cpp(82): Assertion failed: "stream.get() == '\n'"
Assertion failed: "stream.get() == '\n'"
Location: trace.cpp:82 (TraceEntry)

Call stack:

(85252af) /home/test/build/0ad/binaries/system/test'_Z15debug_DumpStackPwjPvPKw+0x2f [0x85252af]
(84d1164) /home/test/build/0ad/binaries/system/test'_Z23debug_BuildErrorMessagePKwS0_iPKcPvS0_P15ErrorMessageMem.constprop.59+0x1a4 [0x84d1164]
(84d1f13) /home/test/build/0ad/binaries/system/test'_Z18debug_DisplayErrorPKwjPvS0_S0_iPKcPVi.part.47+0xd3 [0x84d1f13]
(84d2219) /home/test/build/0ad/binaries/system/test'_Z24debug_OnAssertionFailurePKwPViS0_iPKc+0xd9 [0x84d2219]
(84df0a2) /home/test/build/0ad/binaries/system/test'_ZN10TraceEntryC2ERKSbIwSt11char_traitsIwESaIwEE+0x622 [0x84df0a2]
(81c8b73) /home/test/build/0ad/binaries/system/test'_ZN14TestTraceEntry10test_entryEv+0xb33 [0x81c8b73]
(8159b34) /home/test/build/0ad/binaries/system/test'_ZN7CxxTest19RealTestDescription3runEv+0x24 [0x8159b34]
(816198f) /home/test/build/0ad/binaries/system/test'_ZN7CxxTest13PsTestWrapper6runGuiERiPPcRNS_12TestListenerE+0x23f [0x816198f]
(85a2cd7) /home/test/build/0ad/binaries/system/test'main+0xc7 [0x85a2cd7]
(81547b3) /home/test/build/0ad/binaries/system/test'_start+0x83 [0x81547b3]

errno = 0 (No error reported here)
OS error = ?


(C)ontinue, (S)uppress, (B)reak, Launch (D)ebugger, or (E)xit?
(C)ontinue, (S)uppress, (B)reak, Launch (D)ebugger, or (E)xit?
C
trace.cpp(83): Assertion failed: "stream.good()"
Assertion failed: "stream.good()"
Location: trace.cpp:83 (TraceEntry)

Call stack:

(85252af) /home/test/build/0ad/binaries/system/test'_Z15debug_DumpStackPwjPvPKw+0x2f [0x85252af]
(84d1164) /home/test/build/0ad/binaries/system/test'_Z23debug_BuildErrorMessagePKwS0_iPKcPvS0_P15ErrorMessageMem.constprop.59+0x1a4 [0x84d1164]
(84d1f13) /home/test/build/0ad/binaries/system/test'_Z18debug_DisplayErrorPKwjPvS0_S0_iPKcPVi.part.47+0xd3 [0x84d1f13]
(84d2219) /home/test/build/0ad/binaries/system/test'_Z24debug_OnAssertionFailurePKwPViS0_iPKc+0xd9 [0x84d2219]
(84df0e6) /home/test/build/0ad/binaries/system/test'_ZN10TraceEntryC2ERKSbIwSt11char_traitsIwESaIwEE+0x666 [0x84df0e6]
(81c8b73) /home/test/build/0ad/binaries/system/test'_ZN14TestTraceEntry10test_entryEv+0xb33 [0x81c8b73]
(8159b34) /home/test/build/0ad/binaries/system/test'_ZN7CxxTest19RealTestDescription3runEv+0x24 [0x8159b34]
(816198f) /home/test/build/0ad/binaries/system/test'_ZN7CxxTest13PsTestWrapper6runGuiERiPPcRNS_12TestListenerE+0x23f [0x816198f]
(85a2cd7) /home/test/build/0ad/binaries/system/test'main+0xc7 [0x85a2cd7]
(81547b3) /home/test/build/0ad/binaries/system/test'_start+0x83 [0x81547b3]

errno = 0 (No error reported here)
OS error = ?


(C)ontinue, (S)uppress, (B)reak, Launch (D)ebugger, or (E)xit?
(C)ontinue, (S)uppress, (B)reak, Launch (D)ebugger, or (E)xit?
C
../../../libraries/boost/include/../../../source/lib/file/common/tests/test_trace.h:59: Error: Expected (t4.Action() == TraceEntry::Store), found ({ 30 00 00 00 } != { 53 00 00 00 })
../../../libraries/boost/include/../../../source/lib/file/common/tests/test_trace.h:60: Error: Expected ((t4.Pathname()).string() == (OsPath(L"example two.txt")).string()), found (L"7139: S " != L"example two.txt")
../../../libraries/boost/include/../../../source/lib/file/common/tests/test_trace.h:61: Error: Expected (t4.Size() == (size_t)16777216), found (0 != 16777216)
....
In TestMatrix::test_getRotation:
../../../source/maths/tests/../../../source/maths/tests/test_Matrix3d.h:140: Error: Expected (m.GetYRotation() == a) up to 0.001f (0.0010), found (3.1415 != -3.1415)
..........................................................................................................................................................
Failed 2 of 258 tests
Success rate: 99%

Now (probably due to a version bump of the available boost library to 1.48) executing

LD_PRELOAD=/usr/g++/lib/libboost_signals.so.1.48.0:/usr/g++/lib/libboost_filesystem.so.1.48.0:/usr/g++/lib/libboost_system.so.1.48.0 ./pyrogenesis

results in a elf class mismatch:

WARNING: Invalid locale settings
WARNING: LC_ALL="(unset)"
WARNING: LC_COLLATE="(unset)"
WARNING: LC_CTYPE="(unset)"
WARNING: LC_MONETARY="(unset)"
WARNING: LC_NUMERIC="(unset)"
WARNING: LC_TIME="(unset)"
WARNING: LC_MESSAGES="(unset)"
WARNING: LANG="en_US.UTF-8"
WARNING: Setting LC_ALL env variable to: C
Cache: 200 (total: 2047) MiB
TIMER| InitVfs: 4.60571 ms
TIMER| InitScripting: 25.5709 ms
TIMER| CONFIG_Init: 14.4873 ms
ld.so.1: ps: fatal: /usr/g++/lib/libboost_signals.so.1.48.0: wrong ELF class: ELFCLASS32
OpenGL Warning: Failed to connect to host. Make sure 3D acceleration is enabled for this VM.
OpenGL Warning: glXChooseVisual: ignoring attribute 0x22
ld.so.1: ps: fatal: /usr/g++/lib/libboost_signals.so.1.48.0: wrong ELF class: ELFCLASS32
OpenGL Warning: Failed to connect to host. Make sure 3D acceleration is enabled for this VM.
Segmentation Fault (core dumped)

even though pyrogenesis and libboost_signals.so.1.48.0 are both ELFCLASS32.

elfdump -e pyrogenesis
ELF Header
ei_magic: { 0x7f, E, L, F }
ei_class: ELFCLASS32 ei_data: ELFDATA2LSB
ei_osabi: ELFOSABI_SOLARIS ei_abiversion: EAV_SUNW_CURRENT
e_machine: EM_386 e_version: EV_CURRENT
e_type: ET_EXEC
e_flags: 0
e_entry: 0x8127d10 e_ehsize: 52 e_shstrndx: 2726
e_shoff: 0x4f73d0c e_shentsize: 40 e_shnum: 2727
e_phoff: 0x34 e_phentsize: 32 e_phnum: 7

elfdump -e /usr/g++/lib/libboost_signals.so.1.48.0 

ELF Header
ei_magic: { 0x7f, E, L, F }
ei_class: ELFCLASS32 ei_data: ELFDATA2LSB
ei_osabi: ELFOSABI_SOLARIS ei_abiversion: EAV_SUNW_CURRENT
e_machine: EM_386 e_version: EV_CURRENT
e_type: ET_DYN
e_flags: 0
e_entry: 0 e_ehsize: 52 e_shstrndx: 60
e_shoff: 0x19c04 e_shentsize: 40 e_shnum: 61
e_phoff: 0x34 e_phentsize: 32 e_phnum: 4

EDIT: Fixed AtlasUI build

openindiana_support-2012-01-29.patch

openindiana_support-2012-01-31.patch

Edited by leper
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...