1

Closed

compilation failes

description

g++ -DHAVE_EXTRA_UI_FEATURES -O2 test_interface_cast.cpp -L../../lib/ -lzdk -lpthread -o test_interface_cast
g++ -D_LARGEFILE64_SOURCE -fPIC -I/home/jcd/src/local/include -I../../zdk/include -I../../engine -g -fPIC -D_REENTRANT -D__STDC_CONSTANT_MACROS -ftemplate-depth-64 -Wall -Wno-non-virtual-dtor -Wno-deprecated -Woverloaded-virtual -Wno-attributes -std=c++0x -I/usr/local/include -I/usr/include -I../.. -I../../zdk/include -g -DNDEBUG -O3 -felide-constructors -fno-strict-aliasing -DHAVE_EXTRA_UI_FEATURES -O2 test_ref_ptr.cpp -L../../lib/ -lzdk -lpthread -o test_ref_ptr
g++ -D_LARGEFILE64_SOURCE -fPIC -I/home/jcd/src/local/include -I../../zdk/include -I../../engine -g -fPIC -D_REENTRANT -D__STDC_CONSTANT_MACROS -ftemplate-depth-64 -Wall -Wno-non-virtual-dtor -Wno-deprecated -Woverloaded-virtual -Wno-attributes -std=c++0x -I/usr/local/include -I/usr/include -I../.. -I../../zdk/include -g -DNDEBUG -O3 -felide-constructors -fno-strict-aliasing -DHAVE_EXTRA_UI_FEATURES -O2 test_shared_string.cpp -L../../lib/ -lzdk -lpthread -o test_shared_string
g++ -D_LARGEFILE64_SOURCE -fPIC -I/home/jcd/src/local/include -I../../zdk/include -I../../engine -g -fPIC -D_REENTRANT -D__STDC_CONSTANT_MACROS -ftemplate-depth-64 -Wall -Wno-non-virtual-dtor -Wno-deprecated -Woverloaded-virtual -Wno-attributes -std=c++0x -I/usr/local/include -I/usr/include -I../.. -I../../zdk/include -g -DNDEBUG -O3 -felide-constructors -fno-strict-aliasing -DHAVE_EXTRA_UI_FEATURES -O2 teststr.cpp -L../../lib/ -lzdk -lpthread -o teststr
g++ -D_LARGEFILE64_SOURCE -fPIC -I/home/jcd/src/local/include -I../../zdk/include -I../../engine -g -fPIC -D_REENTRANT -D__STDC_CONSTANT_MACROS -ftemplate-depth-64 -Wall -Wno-non-virtual-dtor -Wno-deprecated -Woverloaded-virtual -Wno-attributes -std=c++0x -I/usr/local/include -I/usr/include -I../.. -I../../zdk/include -g -DNDEBUG -O3 -felide-constructors -fno-strict-aliasing -DHAVE_EXTRA_UI_FEATURES -O2 test_uuid.cpp -L../../lib/ -lzdk -lpthread -o test_uuid
for i in test_interface_cast test_ref_ptr test_shared_string teststr test_uuid ; do echo $i; ./$i; done
test_interface_cast
bad interface cast: Baz
test_ref_ptr
sizeof(RefCountedImpl<>)=24
sizeof(atomic_t)=8
sizeof(SupportsWeakRef<>)=16
test_shared_string
32
32
48
48, 32
teststr
test_uuid
c8b602e3-ec01-4936-8413-ec379932e92b
c8b602e3-ec01-4936-8413-ec379932e92b
make[5]: Leaving directory /home/jcd/src/zdk/src'
make[4]: Leaving directory
/home/jcd/src/zdk'
cd ../../dharma && make
make[4]: Entering directory `/home/jcd/src/dharma'
g++ -D_LARGEFILE64_SOURCE -fPIC -I/home/jcd/src/local/include -I../../zdk/include -I../../engine -g -fPIC -D_REENTRANT -D__STDC_CONSTANT_MACROS -ftemplate-depth-64 -Wall -Wno-non-virtual-dtor -Wno-deprecated -Woverloaded-virtual -Wno-attributes -std=c++0x -I/usr/local/include -I/usr/include -I.. -I../zdk/include -g -DNDEBUG -O3 -felide-constructors -fno-strict-aliasing -DHAVE_EXTRA_UI_FEATURES -O3 -c -o plugin_manager.o plugin_manager.cpp
In file included from /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.0/../../../../include/c++/4.6.0/algorithm:63:0,
             from plugin_manager.cpp:13:
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.0/../../../../include/c++/4.6.0/bits/stl_algo.h: In function ‘_Funct std::for_each(_IIter, _IIter, _Funct) [with _IIter = Directory::Iterator, _Funct = {anonymous}::QueryLibrary&]’:
plugin_manager.cpp:113:50: instantiated from here
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.0/../../../../include/c++/4.6.0/bits/stl_algo.h:4303:14: error: invalid initialization of non-const reference of type ‘{anonymous}::QueryLibrary&’ from an rvalue of type ‘std::remove_reference<{anonymous}::QueryLibrary&>::type’
make[4]: *** [plugin_manager.o] Error 1
make[4]: Leaving directory /home/jcd/src/dharma'
make[3]: *** [../../lib/libdharma.a] Error 2
make[3]: Leaving directory
/home/jcd/src/symbolz/tests'
/bin/sh: ./tests: No such file or directory
make[2]: *** [test] Error 127
make[2]: Leaving directory /home/jcd/src/symbolz'
make[1]: *** [../../lib/libsymbolz.a] Error 2
make[1]: Leaving directory
/home/jcd/src/plugin/remote-proxy'
make[1]: Entering directory /home/jcd/src/plugin/autotest'
cd ../../dharma && make
make[2]: Entering directory
/home/jcd/src/dharma'
g++ -D_LARGEFILE64_SOURCE -fPIC -I/home/jcd/src/local/include -fPIC -D_REENTRANT -D__STDC_CONSTANT_MACROS -ftemplate-depth-64 -Wall -Wno-non-virtual-dtor -Wno-deprecated -Woverloaded-virtual -Wno-attributes -std=c++0x -I/usr/local/include -I/usr/include -I.. -I../zdk/include -g -DNDEBUG -O3 -felide-constructors -fno-strict-aliasing -DHAVE_EXTRA_UI_FEATURES -O3 -c -o plugin_manager.o plugin_manager.cpp
In file included from /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.0/../../../../include/c++/4.6.0/algorithm:63:0,
             from plugin_manager.cpp:13:
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.0/../../../../include/c++/4.6.0/bits/stl_algo.h: In function ‘_Funct std::for_each(_IIter, _IIter, _Funct) [with _IIter = Directory::Iterator, _Funct = {anonymous}::QueryLibrary&]’:
plugin_manager.cpp:113:50: instantiated from here
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.0/../../../../include/c++/4.6.0/bits/stl_algo.h:4303:14: error: invalid initialization of non-const reference of type ‘{anonymous}::QueryLibrary&’ from an rvalue of type ‘std::remove_reference<{anonymous}::QueryLibrary&>::type’
make[2]: *** [plugin_manager.o] Error 1
make[2]: Leaving directory /home/jcd/src/dharma'
make[1]: *** [../../lib/libdharma.a] Error 2
make[1]: Leaving directory
/home/jcd/src/plugin/autotest'

make: *** [modules] Error 2

i am running Arch linux, uname -a:
Linux akoya 2.6.38.3 #2 SMP Sun Apr 24 20:43:51 CEST 2011 x86_64 Intel(R) Core(TM)2 Duo CPU P7350 @ 2.00GHz GenuineIntel GNU/Linux
 
Here is a list of installed packages
Closed Jan 11, 2012 at 9:01 AM by cristiv
Fixed

comments