Jump to content

Error building test [SOLVED]


Almin
 Share

Recommended Posts

Hi,

I'm using Arch GNU/Linux 64bit.

I'm trying to compile from svn, current revision 11101.

A few days/weeks ago I could do it without any problem.


==== Building pyrogenesis (release) ====
==== Building test (release) ====
Creating obj/pyrogenesis_Release
main.cpp
Creating obj/test_Release
precompiled.h
Linking pyrogenesis
test_root.cpp
test_ScriptConversions.cpp
test_ScriptVal.cpp
test_ScriptInterface.cpp
test_Net.cpp
test_NetMessage.cpp
test_AtlasObjectXML.cpp
test_trace.cpp
/usr/bin/ld: ../../../binaries/system/liblowlevel.a(x.o): undefined reference to symbol 'XConvertSelection'
/usr/bin/ld: note: 'XConvertSelection' is defined in DSO /usr/lib/libX11.so.6 so try adding it to the linker command line
/usr/lib/libX11.so.6: could not read symbols: Invalid operation
collect2: ld gab 1 als Ende-Status zurück
make[1]: *** [../../../binaries/system/pyrogenesis] Fehler 1
make: *** [pyrogenesis] Fehler 2
make: *** Warte auf noch nicht beendete Prozesse...
test_posix.cpp
test_allocators.cpp
test_headerless.cpp
test_topology.cpp
test_sysdep.cpp
test_printf.cpp
test_rtl.cpp
test_tex.cpp
test_secure_crt.cpp
test_cache_adt.cpp
test_bits.cpp
test_base32.cpp
test_wchar.cpp
test_regex.cpp
test_byte_order.cpp
test_lib.cpp
test_fnv_hash.cpp
test_adts.cpp
test_path_util.cpp
test_rand.cpp
test_scripts.cpp
test_CommandQueue.cpp
test_Pathfinder.cpp
test_Position.cpp
test_RangeManager.cpp
test_TerritoryManager.cpp
test_ParamNode.cpp
test_CmpTemplateManager.cpp
test_ComponentManager.cpp
test_Serializer.cpp
test_Simulation2.cpp
test_MeshManager.cpp
test_TextureConverter.cpp
In file included from ../../../source/simulation2/tests/test_Serializer.cpp:15:0:
../../../source/simulation2/tests/../../../source/simulation2/tests/test_Serializer.h: In Elementfunktion »void TestSerializerPerf::test_hash_DISABLED()«:
../../../source/simulation2/tests/../../../source/simulation2/tests/test_Serializer.h:530:3: Warnung: Variable »_qzz_res« gesetzt, aber nicht verwendet [-Wunused-but-set-variable]
../../../source/simulation2/tests/../../../source/simulation2/tests/test_Serializer.h:537:3: Warnung: Variable »_qzz_res« gesetzt, aber nicht verwendet [-Wunused-but-set-variable]
test_LOSTexture.cpp
test_Color.cpp
test_TextureManager.cpp
test_Terrain.cpp
test_CmdLineArgs.cpp
test_Xeromyces.cpp
test_XeroXMB.cpp
test_XMLWriter.cpp
test_RelaxNG.cpp
test_Parser.cpp
stub_impl_hack.cpp
test_CStr.cpp
test_test.cpp
test_CLogger.cpp
test_FixedVector2D.cpp
test_Sqrt.cpp
test_Bound.cpp
test_Matrix3d.cpp
test_Random.cpp
test_FixedVector3D.cpp
test_MD5.cpp
test_Fixed.cpp
precompiled.cpp
test_setup.cpp
../../../source/maths/MD5.h: In Elementfunktion »virtual void TestDescription_TestMD5_test_rfc::runTest()«:
../../../source/maths/MD5.h:45:39: Warnung: Feldindex ist oberhalb der Feldgrenzen [-Warray-bounds]
In file included from ../../../source/maths/tests/test_MD5.cpp:14:0:
../../../source/maths/MD5.h: In Elementfunktion »void TestMD5::test_chunks()«:
../../../source/maths/MD5.h:45:39: Warnung: Feldindex ist oberhalb der Feldgrenzen [-Warray-bounds]
../../../source/maths/MD5.h:45:39: Warnung: Feldindex ist oberhalb der Feldgrenzen [-Warray-bounds]
Linking test
/usr/bin/ld: ../../../binaries/system/liblowlevel.a(x.o): undefined reference to symbol 'XConvertSelection'
/usr/bin/ld: note: 'XConvertSelection' is defined in DSO /usr/lib/libX11.so.6 so try adding it to the linker command line
/usr/lib/libX11.so.6: could not read symbols: Invalid operation
collect2: ld gab 1 als Ende-Status zurück
make[1]: *** [../../../binaries/system/test] Fehler 1
make: *** [test] Fehler 2

The Troubleshooting part on the wiki article didn't help me out.

Edited by Almin
Link to comment
Share on other sites

I have no idea why that would be failing. You're not testing anything related to Android are you? Can you try ./clean-workspaces.sh to force a clean rebuild?

Didn't help. Same error(s) again.

edit: And no, I don't test anything Android-related.

edit2: After trying

./update-workspaces.sh --without-tests

there are other problems:


==== Building pyrogenesis (release) ====
Creating obj/pyrogenesis_Release
main.cpp
Trigger.cpp
ReplaceTerrain.cpp
FlattenElevation.cpp
SmoothElevation.cpp
PaintTerrain.cpp
AlterElevation.cpp
FillTerrain.cpp
PlaceObject.cpp
ActorViewerTool.cpp
TransformObject.cpp
MiscState.cpp
Linking pyrogenesis
Tools.cpp
/usr/bin/ld: ../../../binaries/system/liblowlevel.a(x.o): undefined reference to symbol 'XConvertSelection'
/usr/bin/ld: note: 'XConvertSelection' is defined in DSO /usr/lib/libX11.so.6 so try adding it to the linker command line
/usr/lib/libX11.so.6: could not read symbols: Invalid operation
collect2: ld gab 1 als Ende-Status zurück
make[1]: *** [../../../binaries/system/pyrogenesis] Fehler 1
make: *** [pyrogenesis] Fehler 2
make: *** Warte auf noch nicht beendete Prozesse...
Brushes.cpp
ObjectSettings.cpp
Linking AtlasUI

Edited by Almin
Link to comment
Share on other sites

Even though this is from Fedora documentation, it looks relevant: https://fedoraproject.org/wiki/UnderstandingDSOLinkChange

So basically, our build system is doing something that was allowed in the past, but has now broken (e.g. libX11.so.6 was being linked from some other lib, but no longer). I guess we need to add an explicit link for libX11?

The test-related problems are just warnings so I'm not as concerned about them.

Link to comment
Share on other sites

YAAAAAAAAAAAAAAAAAAAAAAAH!!! ;)


Running 258 tests..........................................................................................................................
........................................................................................................................................OK!

I don't need to tell you how deep in love I am with you, do I? :D:P(y):brow::banana::worship:

edit: Thanks for everyone included, btw!

[sOLVED]

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