Build errors on CentOS 6.2 x86_64

Jan 9, 2012 at 5:03 PM

Hi, Cristian,

 

Thanks for keeping on keeping on.  I tried building the January 7 zerobugs on CentOS 6.2, and it nearly worked.   There seems to be a missing feature in my build environment, though.  To keep down the volume of output, I ran make after ./build failed.  Complete output from the manual make run follows.

I'd really like to be able to use zerobugs on this machine.  Could you have a squint at it and see what's up?

Thanks

Phil Hobbs

 

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

disassembler=udis
for m in engine /home/pcdh/src/zerobugs/plugin/udis /home/pcdh/src/zerobugs/plugin/dwarf /home/pcdh/src/zerobugs/plugin/stabs /home/pcdh/src/zerobugs/plugin/python /home/pcdh/src/zerobugs/plugin/gui server /home/pcdh/src/zerobugs/plugin/remote-proxy ; do (cd $m; make; ) done
make[1]: Entering directory `/home/pcdh/src/zerobugs/engine'
cd ../dharma && make
make[2]: Entering directory `/home/pcdh/src/zerobugs/dharma'
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 -DHAVE_LAMBDA_SUPPORT -I/usr/local/include -I/usr/include -I.. -I../zdk/include -g -DDEBUG -c -o plugin_manager.o plugin_manager.cpp
plugin_manager.cpp: In member function ‘void<unnamed>::DirectoryScan::operator()(const std::string&) const’:
plugin_manager.cpp:116: error: expected primary-expression before ‘[’ token
plugin_manager.cpp:116: error: expected primary-expression before ‘const’
make[2]: *** [plugin_manager.o] Error 1
make[2]: Leaving directory `/home/pcdh/src/zerobugs/dharma'
make[1]: *** [../lib/libdharma.a] Error 2
make[1]: Leaving directory `/home/pcdh/src/zerobugs/engine'
make[1]: Entering directory `/home/pcdh/src/zerobugs/plugin/udis'
cd ../../dharma && make
make[2]: Entering directory `/home/pcdh/src/zerobugs/dharma'
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 -DHAVE_LAMBDA_SUPPORT -I/usr/local/include -I/usr/include -I.. -I../zdk/include -g -DDEBUG -c -o plugin_manager.o plugin_manager.cpp
plugin_manager.cpp: In member function ‘void<unnamed>::DirectoryScan::operator()(const std::string&) const’:
plugin_manager.cpp:116: error: expected primary-expression before ‘[’ token
plugin_manager.cpp:116: error: expected primary-expression before ‘const’
make[2]: *** [plugin_manager.o] Error 1
make[2]: Leaving directory `/home/pcdh/src/zerobugs/dharma'
make[1]: *** [../../lib/libdharma.a] Error 2
make[1]: Leaving directory `/home/pcdh/src/zerobugs/plugin/udis'
make[1]: Entering directory `/home/pcdh/src/zerobugs/plugin/dwarf'
cd ../../dharma && make
make[2]: Entering directory `/home/pcdh/src/zerobugs/dharma'
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 -DHAVE_LAMBDA_SUPPORT -I/usr/local/include -I/usr/include -I.. -I../zdk/include -g -DDEBUG -c -o plugin_manager.o plugin_manager.cpp
plugin_manager.cpp: In member function ‘void<unnamed>::DirectoryScan::operator()(const std::string&) const’:
plugin_manager.cpp:116: error: expected primary-expression before ‘[’ token
plugin_manager.cpp:116: error: expected primary-expression before ‘const’
make[2]: *** [plugin_manager.o] Error 1
make[2]: Leaving directory `/home/pcdh/src/zerobugs/dharma'
make[1]: *** [../../lib/libdharma.a] Error 2
make[1]: Leaving directory `/home/pcdh/src/zerobugs/plugin/dwarf'
make[1]: Entering directory `/home/pcdh/src/zerobugs/plugin/stabs'
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 -DHAVE_LAMBDA_SUPPORT -I/usr/local/include -I/usr/include -I../.. -I../../zdk/include -g -DDEBUG -c -o reader.o reader.cpp
reader.cpp: In member function ‘virtual size_t Stab::Reader::enum_locals(Thread*, const char*, Frame*, Symbol*, DebugSymbolEvents*, bool)’:
reader.cpp:489: error: expected primary-expression before ‘[’ token
reader.cpp:489: error: expected primary-expression before ‘const’
make[1]: *** [reader.o] Error 1
make[1]: Leaving directory `/home/pcdh/src/zerobugs/plugin/stabs'
make[1]: Entering directory `/home/pcdh/src/zerobugs/plugin/python'
cd ../../dharma && make
make[2]: Entering directory `/home/pcdh/src/zerobugs/dharma'
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 -DHAVE_LAMBDA_SUPPORT -I/usr/local/include -I/usr/include -I.. -I../zdk/include -g -DDEBUG -c -o plugin_manager.o plugin_manager.cpp
plugin_manager.cpp: In member function ‘void<unnamed>::DirectoryScan::operator()(const std::string&) const’:
plugin_manager.cpp:116: error: expected primary-expression before ‘[’ token
plugin_manager.cpp:116: error: expected primary-expression before ‘const’
make[2]: *** [plugin_manager.o] Error 1
make[2]: Leaving directory `/home/pcdh/src/zerobugs/dharma'
make[1]: *** [../../lib/libdharma.a] Error 2
make[1]: Leaving directory `/home/pcdh/src/zerobugs/plugin/python'
make[1]: Entering directory `/home/pcdh/src/zerobugs/plugin/gui'
cd ../../dharma && make
make[2]: Entering directory `/home/pcdh/src/zerobugs/dharma'
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 -DHAVE_LAMBDA_SUPPORT -I/usr/local/include -I/usr/include -I.. -I../zdk/include -g -DDEBUG -c -o plugin_manager.o plugin_manager.cpp
plugin_manager.cpp: In member function ‘void<unnamed>::DirectoryScan::operator()(const std::string&) const’:
plugin_manager.cpp:116: error: expected primary-expression before ‘[’ token
plugin_manager.cpp:116: error: expected primary-expression before ‘const’
make[2]: *** [plugin_manager.o] Error 1
make[2]: Leaving directory `/home/pcdh/src/zerobugs/dharma'
make[1]: *** [../../lib/libdharma.a] Error 2
make[1]: Leaving directory `/home/pcdh/src/zerobugs/plugin/gui'
make[1]: Entering directory `/home/pcdh/src/zerobugs/server'
cd ../dharma && make
make[2]: Entering directory `/home/pcdh/src/zerobugs/dharma'
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 -DHAVE_LAMBDA_SUPPORT -I/usr/local/include -I/usr/include -I.. -I../zdk/include -g -DDEBUG -c -o plugin_manager.o plugin_manager.cpp
plugin_manager.cpp: In member function ‘void<unnamed>::DirectoryScan::operator()(const std::string&) const’:
plugin_manager.cpp:116: error: expected primary-expression before ‘[’ token
plugin_manager.cpp:116: error: expected primary-expression before ‘const’
make[2]: *** [plugin_manager.o] Error 1
make[2]: Leaving directory `/home/pcdh/src/zerobugs/dharma'
make[1]: *** [../lib/libdharma.a] Error 2
make[1]: Leaving directory `/home/pcdh/src/zerobugs/server'
make[1]: Entering directory `/home/pcdh/src/zerobugs/plugin/remote-proxy'
cd ../../dharma && make
make[2]: Entering directory `/home/pcdh/src/zerobugs/dharma'
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 -DHAVE_LAMBDA_SUPPORT -I/usr/local/include -I/usr/include -I.. -I../zdk/include -g -DDEBUG -c -o plugin_manager.o plugin_manager.cpp
plugin_manager.cpp: In member function ‘void<unnamed>::DirectoryScan::operator()(const std::string&) const’:
plugin_manager.cpp:116: error: expected primary-expression before ‘[’ token
plugin_manager.cpp:116: error: expected primary-expression before ‘const’
make[2]: *** [plugin_manager.o] Error 1
make[2]: Leaving directory `/home/pcdh/src/zerobugs/dharma'
make[1]: *** [../../lib/libdharma.a] Error 2
make[1]: Leaving directory `/home/pcdh/src/zerobugs/plugin/remote-proxy'
make: *** [modules] Error 2
Jan 9, 2012 at 8:01 PM

Okay, should have tried a bit harder.  My compiler is gcc 4.4.6, which doesn't have C++11 lambdas, which came in with the 4.5 series.  The zlib/make/Common.mak.in config file defines HAVE_LAMBDA_SUPPORT for all 4.x versions, which isn't quite right, as above.  Commenting out the HAVE_LAMBDA_SUPPORT line in zlib/make/Common.mak.in and doing a clean build seems to have fixed it.   I haven't tried using the debugger yet, but at least it installs and comes up when invoked.

Thanks

Phil Hobbs

Coordinator
Jan 22, 2012 at 8:23 AM

Glad you figured it out. I have limited time to spend on this project. Right now I am focusing almost exclusively on Linux x86_64 on Ubuntu 11.10. I am also guilty of shifting my coding style (quite aggressively) towards C++ 0x (using auto, lambdas, rvalue references...) But please let me know of any compilation issues you are running into and I'll do my best to address them. I also need to figure out how to set up my Codeplex account to automatically email when people post here...

Thanks for using ZeroBugs!

Cristian