Discussion:
[deprecated list] Compilation problem on Power5 AIX cluster
MarcoDottor
2009-04-06 09:41:06 UTC
Permalink
I don't uderstand very much what is wrong:
Mr Smilauer gave me some advice but aren't so clear to me

setting Yade like this without qt libraries that are not compiled but
excluded from Yade

export QTDIR="/opt/freeware/qt" QTINC="/opt/freeware/qt/include" \
QTLIB="/opt/freeware/qt/lib"

scons \
PREFIX=/opt/yade \
CPPPATH="/opt/sqlite3/include /opt/boost/include/boost-1_38" \
LIBPATH="/opt/sqlite3/lib /opt/boost/lib" \
QTDIR=/opt/freeware/qt \
SHCCFLAGS="-lbz2 -lz" \
LINKFLAGS="-lbz2 -lz" \
SHLINKFLAGS="-lbz2 -lz" \
CXX="g++ -lbz2 -lz -lboost_system" \
jobs=2 \
version=aix \
variant='-power5' \
exclude=gui,qt3,log4cxx,snow \
features=python \
optimize=1 \
openmp=1 \

gives warnings

Checking whether c++ compiler "g++ -lbz2 -lz -lboost_system"
works...yes
Checking for pthread_exit(NULL) in C library pthread... yes Checking for
glutGetModifiers() in C library glut... yes Checking for
boost::posix_time::time_duration::time_duration() in C++ library
boost_date_time-mt... yes Checking for boost::thread::thread() in C++
library boost_thread-mt... yes Checking for boost::filesystem::path() in
C++ library boost_filesystem-mt... yes Checking for
boost::iostreams::file_sink("") in C++ library boost_iostreams-mt... yes
Checking for boost::regex("") in C++ library boost_regex-mt... yes
Checking for C++ header file boost/foreach.hpp... yes Checking for
sqlite3_close(0L) in C++ library sqlite3... yes Checking for qt-mt in
/opt/freeware/qt... no
AttributeError: 'NoneType' object has no attribute 'split':
File "/opt/yade/SConstruct", line 331:
ok=(conf.CheckPython() and conf.CheckIPython() and
CheckLib_maybeMT(conf,'boost_python','boost/python.hpp','c++','boost::python::scope();')
and conf.CheckCXXHeader(['Python.h','numpy/ndarrayobject.h'],'<>'))
File "/opt/freeware/lib/scons-1.2.0/SCons/SConf.py", line 636:
ret = apply(self.test, (context,) + args, kw)
File "/opt/yade/SConstruct", line 255:
context.env.Append(CPPPATH=ds.get_python_inc(),LIBS=ds.get_config_var('LIBS').split())
Checking for Python development files...

If you could tell me something I'll be very thankful.

Marco
--
This message was sent from Launchpad by the user
MarcoDottor (https://launchpad.net/~marcodottor)
using the "Contact this team" link on the yade-users team page.
For more information see
https://help.launchpad.net/YourAccount/ContactingPeople

_______________________________________________
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users-oU9gvf+***@public.gmane.org
Unsubscribe : https://launchpad.net/~yade-users
More help : https://help.launchpad.net/ListHelp
Václav Šmilauer
2009-04-06 10:30:43 UTC
Permalink
Post by MarcoDottor
ok=(conf.CheckPython() and conf.CheckIPython() and
CheckLib_maybeMT(conf,'boost_python','boost/python.hpp','c++','boost::python::scope();')
and conf.CheckCXXHeader(['Python.h','numpy/ndarrayobject.h'],'<>'))
ret = apply(self.test, (context,) + args, kw)
context.env.Append(CPPPATH=ds.get_python_inc(),LIBS=ds.get_config_var('LIBS').split())
Checking for Python development files...
If you could tell me something I'll be very thankful.
OK, it seems that your python installation is weird... can you run this
in the shell, please

python -c 'import distutils.sysconfig,pprint; pprint.pprint(distutils.sysconfig.get_config_vars())' > /tmp/somefile

and send the /tmp/somefile as attachment?

In r1746, we handle empty LIBS now, but I am not sure whether other
distutils attributes can be affected as well. Maybe it will fix your
problem and maybe not.

HTH, Vaclav


_______________________________________________
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users-oU9gvf+***@public.gmane.org
Unsubscribe : https://launchpad.net/~yade-users
More help : https://help.launchpad.net/ListHelp

Loading...