boost::python::throw_error_already_set()

Questions, problems and discussion about compiling FreeOrion.

Moderator: Oberlus

Message
Author
iceprince
Space Floater
Posts: 19
Joined: Wed May 14, 2008 6:26 am
Location: Norway

boost::python::throw_error_already_set()

#1 Post by iceprince »

scons: Reading SConscript files ...
Configuring for POSIX system...
Checking for Py_Initialize() in C library python2.5... yes
Checking for pkg-config... yes
Checking for GiGiSDL >= 0.6.0... yes
Checking for C++ header file boost/shared_ptr.hpp... yes
Checking Boost version >= 1.34... (cached) yes
Checking for C++ header file boost/graph/dijkstra_shortest_paths.hpp... yes
Looking for boost lib boost_serialization...
Checking for boost::archive::binary_iarchive::is_saving() in C++ library boost_serialization... yes
Looking for boost lib boost_iostreams...
Checking for C++ library boost_iostreams... yes
Looking for boost lib boost_python...
Checking for boost::python::throw_error_already_set() in C++ library boost_python... no
Checking for boost::python::throw_error_already_set() in C++ library boost_python-mt... no
Boost configuration... (cached) no
root@isprins-desktop:~/freeorion/FreeOrion#

what's wrong ?

User avatar
kroddn
Static Linker
Posts: 347
Joined: Thu Jun 28, 2007 10:28 am

Re: boost::python::throw_error_already_set()

#2 Post by kroddn »

Maybe you do not have installe boost-python.

Which linux are you using? On debian based distros (like ubuntu) you can do that by typing:

Code: Select all

sudo apt-get install libboost-python-dev

iceprince
Space Floater
Posts: 19
Joined: Wed May 14, 2008 6:26 am
Location: Norway

Re: boost::python::throw_error_already_set()

#3 Post by iceprince »

Reading package lists... Done
Building dependency tree
Reading state information... Done
libboost-python-dev is already the newest version.
libboost-python-dev set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

So libboost is installed,thats for sure. I compiled it from source.

User avatar
kroddn
Static Linker
Posts: 347
Joined: Thu Jun 28, 2007 10:28 am

Re: boost::python::throw_error_already_set()

#4 Post by kroddn »

Can you post the output of config.log ?

iceprince
Space Floater
Posts: 19
Joined: Wed May 14, 2008 6:26 am
Location: Norway

Re: boost::python::throw_error_already_set()

#5 Post by iceprince »

here it is:
Attachments
config.txt.tar.gz
(19.48 KiB) Downloaded 135 times

User avatar
kroddn
Static Linker
Posts: 347
Joined: Thu Jun 28, 2007 10:28 am

Re: boost::python::throw_error_already_set()

#6 Post by kroddn »

Huuuh, whats that? Is that the file "config.log" out of your FreeOrion svn-checkout? I never saw such an output before...

iceprince
Space Floater
Posts: 19
Joined: Wed May 14, 2008 6:26 am
Location: Norway

Re: boost::python::throw_error_already_set()

#7 Post by iceprince »

Yes.

quote untarred file:


This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by python configure 2.5, which was
generated by GNU Autoconf 2.61. Invocation command line was

$ ./configure --enable-shared --with-gcc --with-threads --with-cxx-main=c++

## --------- ##
## Platform. ##
## --------- ##

hostname = isprins-desktop
uname -m = i686
uname -r = 2.6.24-18-generic
uname -s = Linux
uname -v = #1 SMP Wed May 28 20:27:26 UTC 2008

/usr/bin/uname -p = unknown
/bin/uname -X = unknown

/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1967: checking MACHDEP
configure:2126: result: linux2
configure:2132: checking EXTRAPLATDIR
configure:2147: result:
configure:2168: checking for --without-gcc
configure:2217: result: no
configure:2278: checking for gcc
configure:2305: result: gcc
configure:2543: checking for C compiler version
configure:2550: gcc --version >&5
gcc (GCC) 4.2.3 (Ubuntu 4.2.3-2ubuntu7)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2553: $? = 0
configure:2560: gcc -v >&5
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.2 --program-suffix=-4.2 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-targets=all --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.2.3 (Ubuntu 4.2.3-2ubuntu7)
configure:2563: $? = 0
configure:2570: gcc -V >&5
gcc: '-V' option must have argument
configure:2573: $? = 1
configure:2596: checking for C compiler default output file name
configure:2623: gcc conftest.c >&5
configure:2626: $? = 0
configure:2664: result: a.out
configure:2681: checking whether the C compiler works
configure:2691: ./a.out
configure:2694: $? = 0
configure:2711: result: yes
configure:2718: checking whether we are cross compiling
configure:2720: result: no
configure:2723: checking for suffix of executables
configure:2730: gcc -o conftest conftest.c >&5
configure:2733: $? = 0
configure:2757: result:
configure:2763: checking for suffix of object files
configure:2789: gcc -c conftest.c >&5
configure:2792: $? = 0
configure:2815: result: o
configure:2819: checking whether we are using the GNU C compiler
configure:2848: gcc -c conftest.c >&5
configure:2854: $? = 0

and so on..

I run Kubuntu 8.04 (Hardy Heron).

iceprince
Space Floater
Posts: 19
Joined: Wed May 14, 2008 6:26 am
Location: Norway

Re: boost::python::throw_error_already_set()

#8 Post by iceprince »

It looks like it has some problems with the boost libs.

i have reinstalled all the required packages and even tried:

root@isprins-desktop:~/freeorion/FreeOrion# scons with_boost_include=:/usr/local/include/boost-1_35/boost with_boost_libdir=/usr/local/lib boost_lib_suffix=-gcc41-mt-1_3
scons: Reading SConscript files ...
Configuring for POSIX system...
Checking for Py_Initialize() in C library python2.5... yes
Checking for pkg-config... yes
Checking for GiGiSDL >= 0.6.0... yes
Checking for C++ header file boost/shared_ptr.hpp... yes
Checking Boost version >= 1.34... (cached) yes
Checking for C++ header file boost/graph/dijkstra_shortest_paths.hpp... yes
Looking for boost lib boost_serialization-gcc41-mt-1_3...
Checking for boost::archive::binary_iarchive::is_saving() in C++ library boost_serialization-gcc41-mt-1_3... no
Checking for boost::archive::binary_iarchive::is_saving() in C++ library boost_serialization-gcc41-mt-1_3-mt... no
Boost configuration... (cached) no

:cry:

tzlaine
Programming Lead Emeritus
Posts: 1092
Joined: Thu Jun 26, 2003 1:33 pm

Re: boost::python::throw_error_already_set()

#9 Post by tzlaine »

iceprince wrote:boost_lib_suffix=-gcc41-mt-1_3
That's not a valid suffix for boost libs. It should include "1_34_1" instead of "1_3" for Boost 1.34.1.

iceprince
Space Floater
Posts: 19
Joined: Wed May 14, 2008 6:26 am
Location: Norway

Re: boost::python::throw_error_already_set()

#10 Post by iceprince »

well, the directory where boost is located is :

/usr/include/boost
and /usr/local/lib
so i tried:


scons with_boost_include=:/usr/local/include/boost with_boost_libdir=:/usr/local/lib boost_lib_suffix=-gcc42-mt-1_35
scons: Reading SConscript files ...
Configuring for POSIX system...
Checking for Py_Initialize() in C library python2.5... yes
Checking for pkg-config... yes
Checking for GiGiSDL >= 0.6.0... yes
Checking for C++ header file boost/shared_ptr.hpp... yes
Checking Boost version >= 1.34... (cached) yes
Checking for C++ header file boost/graph/dijkstra_shortest_paths.hpp... yes
Looking for boost lib boost_serialization-gcc42-mt-1_35...
Checking for boost::archive::binary_iarchive::is_saving() in C++ library boost_serialization-gcc42-mt-1_35... yes
Looking for boost lib boost_iostreams-gcc42-mt-1_35...
Checking for C++ library boost_iostreams-gcc42-mt-1_35... yes
Looking for boost lib boost_python-gcc42-mt-1_35...
Checking for boost::python::throw_error_already_set() in C++ library boost_python-gcc42-mt-1_35... yes
Boost configuration... (cached) ok
Checking for openal >= 0.0.8... yes
Checking for freealut >= 1.1.0... yes
Checking for vorbisfile >= 1.1.2... yes
Checking for libgraph >= 2.8... yes
Checking for libgvc >= 2.8... yes
Checking for log4cpp >= 0.3.4b... yes
Checking for C++ header file log4cpp/Category.hh... yes
Checking for log4cpp::Category::getRoot() in C++ library log4cpp... yes
Configuration successful... (cached) yes

that fixed it!
:D

User avatar
kroddn
Static Linker
Posts: 347
Joined: Thu Jun 28, 2007 10:28 am

Re: boost::python::throw_error_already_set()

#11 Post by kroddn »

iceprince wrote:Yes.

quote untarred file:


This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by python configure 2.5, which was
generated by GNU Autoconf 2.61. Invocation command line was
I was able to read the contents, but I have never then those output. My config.log does contain other things, but maybe that depends on the version of scons one uses.

It this problem fixed now, specifying the right boost-suffix? (X/K)Ubuntu seem to have a very new version of boost installed.

User avatar
loonycyborg
Compilation Expert
Posts: 219
Joined: Thu Jul 06, 2006 10:30 pm
Location: Russia/Moscow

Re: boost::python::throw_error_already_set()

#12 Post by loonycyborg »

No. This is config.log from autoconf. There's no way scons could produce it.

EDIT:
It was created by python configure 2.5, which was
generated by GNU Autoconf 2.61. Invocation command line was
This is config.log created when configuring python. I have no idea how config.h from custom python compile got there!
In Soviet Russia, forum posts YOU!!

User avatar
kroddn
Static Linker
Posts: 347
Joined: Thu Jun 28, 2007 10:28 am

Re: boost::python::throw_error_already_set()

#13 Post by kroddn »

man scons sais, that you can configure a enviroment variable:
CONFIGURELOG
The name of the Configure context log file. The default is config.log in the top-level directory containing the SConstruct file.
So, if that is not configured, the logs should be in config.log - maybe on other systems that is different.

tzlaine
Programming Lead Emeritus
Posts: 1092
Joined: Thu Jun 26, 2003 1:33 pm

Re: boost::python::throw_error_already_set()

#14 Post by tzlaine »

iceprince wrote:that fixed it!
:D
Only for the moment. You are using the wrong version of Boost. You should be using 1.34.1, not 1.35. GG and FO won't compile against 1.35.

User avatar
loonycyborg
Compilation Expert
Posts: 219
Joined: Thu Jul 06, 2006 10:30 pm
Location: Russia/Moscow

Re: boost::python::throw_error_already_set()

#15 Post by loonycyborg »

tzlaine wrote: GG and FO won't compile against 1.35.
Does this have something to do with you using built-in boost asio?
In Soviet Russia, forum posts YOU!!

Post Reply