Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed build problem #2 for GCC 4.6 #5

Merged
merged 1 commit into from
Jun 18, 2015
Merged

Conversation

jswiergo
Copy link
Member

I had build problem similar to #2 using gcc 4.6. This fix should help, though I have not checked other instalations.

jacek@ubuntu-js ~/github/cogutils/build $ (master) make
[ 5%] Building CXX object opencog/util/CMakeFiles/cogutil.dir/Config.cc.o
In file included from /home/jacek/github/cogutils/opencog/util/Config.cc:50:0:
/home/jacek/github/cogutils/opencog/util/exceptions.h:76:13: error: looser throw specifier for ‘virtual opencog::StandardException::~StandardException()’
/usr/include/c++/4.6/exception:65:13: error: overriding ‘virtual std::exception::~exception() throw ()’
/home/jacek/github/cogutils/opencog/util/exceptions.h:77:25: error: looser throw specifier for ‘virtual const char* opencog::StandardException::what() const’
/usr/include/c++/4.6/exception:69:25: error: overriding ‘virtual const char* std::exception::what() const throw ()’
make[2]: *** [opencog/util/CMakeFiles/cogutil.dir/Config.cc.o] Błąd 1
make[1]: *** [opencog/util/CMakeFiles/cogutil.dir/all] Błąd 2
make: *** [all] Błąd 2

jacek@ubuntu-js ~/github/cogutils/build $ (master) gcc -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.6/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.6.3-1ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --enable-objc-gc --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)

linas added a commit that referenced this pull request Jun 18, 2015
Fixed build problem #2 for GCC 4.6
@linas linas merged commit d41448c into opencog:master Jun 18, 2015
@linas
Copy link
Member

linas commented Jun 18, 2015

thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants