bzr1727 fails to compile on ubuntu 9.04

Bug #418107 reported by Janek Kozicki
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Yade
Fix Released
Undecided
Unassigned

Bug Description

I even made a clean ubuntu 9.04 install under vmware to be sure that it's not some broken python configuration. When you type scons to compile you only get this error:

scons: Reading SCconscript files...
@@@ Using profile default (scons.profile default) @@@
TypeError: cannot concatenate 'str' and 'NoneType' objects:
  File "/home/janek/trunk/SConstruct", line 194:
    env['SUFFIX']='-'+env['version']+env['variant']

It doesn't even start checking what libraries are available.

Related branches

Revision history for this message
Anton Gladky (gladky-anton) wrote : Re: [Bug 418107] [NEW] bzr1727 fails to compile on ubuntu 9.04

I am working with Ubuntu 9.04 and it works.

Try my new script for clean install. It installs in the current dir only.
Scripts/installOnUbuntu.sh
______________________________
[ENG] Best Regards
[GER] Mit freundlichen Grüßen
[RUS] С наилучшими пожеланиями
[UKR] З найкращими побажаннями

Anton Gladkyy

2009/8/24 Janek Kozicki <email address hidden>

> Public bug reported:
>
> I even made a clean ubuntu 9.04 install under vmware to be sure that
> it's not some broken python configuration. When you type scons to
> compile you only get this error:
>
> scons: Reading SCconscript files...
> @@@ Using profile default (scons.profile default) @@@
> TypeError: cannot concatenate 'str' and 'NoneType' objects:
> File "/home/janek/trunk/SConstruct", line 194:
> env['SUFFIX']='-'+env['version']+env['variant']
>
>
> It doesn't even start checking what libraries are available.
>
> ** Affects: yade
> Importance: Undecided
> Status: New
>
> --
> bzr1727 fails to compile on ubuntu 9.04
> https://bugs.launchpad.net/bugs/418107
> You received this bug notification because you are subscribed to Yade.
>
> Status in Yet Another Dynamic Engine: New
>
> Bug description:
> I even made a clean ubuntu 9.04 install under vmware to be sure that it's
> not some broken python configuration. When you type scons to compile you
> only get this error:
>
> scons: Reading SCconscript files...
> @@@ Using profile default (scons.profile default) @@@
> TypeError: cannot concatenate 'str' and 'NoneType' objects:
> File "/home/janek/trunk/SConstruct", line 194:
> env['SUFFIX']='-'+env['version']+env['variant']
>
>
> It doesn't even start checking what libraries are available.
>

Revision history for this message
Václav Šmilauer (eudoxos) wrote :

It works for me. Are you sure that trunk is a clear directory? variant is normally defined at the beginning, I don't see how it could be None...

PS. Anton your install script, I don't think that is really useful, you have to download trunk to get the script anyway. Plus it installs into non-standard dirs and I don't want to encourage that. Default number of processes hould be number of cores (I will add code for that, sorry)...

I think the best would be that scons suggests packages to install if it is run on debian-based system and some lib is not found + make the options you use the default (i.e. add openmp, version=trunk and use monolithic).

Revision history for this message
Janek Kozicki (cosurgi) wrote :

sorry for the false alarm. Indeed my bzr tree wasn't clean. And that's because I just copied bzr dir from another computer, because in ubuntu 9.04 we don't have bzr 1.16 so I couldn't download trunk.

So I backported bzr 1.17 to 9.04 and then it worked, but only if I used features=python,opengl otherwise, for "plain" compile (no options at all) I get this error:

janek@janek-desktop:~/Y/trunk$ scons PREFIX=/home/janek/Z/BIN
scons: Reading SConscript files ...
@@@ Using profile default (scons.profile-default) @@@
Yade version is `bzr1726', installed files will be suffixed with `-bzr1726'.
All intermediary files will be in `/home/janek/Y/build-bzr1726'.
Mkdir("/home/janek/Y/build-bzr1726")
Checking whether c++ compiler "g++" works...yes
Checking for pthread_exit(NULL) in C library pthread... yes
Checking for boost::system::error_code(); /* non-essential */ in C++ library boost_system-mt... no
Checking for boost::system::error_code(); /* non-essential */ in C++ library boost_system... no
Checking for boost::thread::thread() in C++ library boost_thread-mt... yes
Checking for boost::posix_time::time_duration::time_duration() in C++ library boost_date_time-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 try{} catch (const boost::archive::archive_exception& e) {} in C++ library boost_serialization-mt... yes
Checking for boost::program_options::options_description o in C++ library boost_program_options-mt... yes
Checking for C++ header file boost/foreach.hpp... yes
Checking for sqlite3_close(0L) in C++ library sqlite3... yes
Checking for glutGetModifiers() in C library glut... yes
Package glib-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glib-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glib-2.0' found
OSError: 'pkg-config glib-2.0 --cflags --libs' exited 1:
  File "/home/janek/Y/trunk/SConstruct", line 333:
    env.ParseConfig('pkg-config glib-2.0 --cflags --libs');
  File "/usr/lib/scons/SCons/Environment.py", line 1447:
    return function(self, self.backtick(command))
  File "/usr/lib/scons/SCons/Environment.py", line 585:
    raise OSError("'%s' exited %d" % (command, status))

so something is missing, but only if I use all the features.
I installed all stuff from http://yade.wikia.com/wiki/Installation_of_yade_on_debian_or_kubuntu for 9.04 so apparently some package isn't listed there :) Remind you - I'm testing this on clean 9.04 install in vmware.

Revision history for this message
Janek Kozicki (cosurgi) wrote :

actually on my regular box the rev1728 it is not compiling either (and two revisions ago it was!)! See this error:

/home/janek/tmp/ZZ/build-ZZ-test-fast/include/yade-ZZ-test/indexing_suite/slice_handler.hpp:48: error: `list' in namespace `boost::python' does not name a type
/home/janek/tmp/ZZ/build-ZZ-test-fast/include/yade-ZZ-test/indexing_suite/slice_handler.hpp: In static member function `static boost::python::api::object boost::python::indexing::slice_handler<Algorithms, Policy>::make_getitem(const Policy&)':
/home/janek/tmp/ZZ/build-ZZ-test-fast/include/yade-ZZ-test/indexing_suite/slice_handler.hpp:92: error: `get_slice' was not declared in this scope
/home/janek/tmp/ZZ/build-ZZ-test-fast/include/yade-ZZ-test/indexing_suite/slice_handler.hpp: At global scope:
/home/janek/tmp/ZZ/build-ZZ-test-fast/include/yade-ZZ-test/indexing_suite/slice_handler.hpp:180: error: expected constructor, destructor, or type conversion before `slice_handler'
In file included from /usr/include/boost/python.hpp:24,
                 from /home/janek/tmp/ZZ/build-ZZ-test-fast/include/yade-ZZ-test/yade/lib-serialization/Serializable.hpp:23,
                 from /home/janek/tmp/ZZ/yade/core/GeometricalModel.hpp:14,
                 from /home/janek/tmp/ZZ/yade/core/Body.hpp:13,
                 from /home/janek/tmp/ZZ/yade/core/Body.cpp:11,
                 from /home/janek/tmp/ZZ/build-ZZ-test-fast/core/core.cpp:1:
/usr/include/boost/python/dict.hpp:38: error: `list' does not name a type
/usr/include/boost/python/dict.hpp:50: error: `list' does not name a type
/usr/include/boost/python/dict.hpp:65: error: `list' does not name a type

Revision history for this message
Janek Kozicki (cosurgi) wrote :

and also on ubuntu 9.04 it doesn't either. sorry for separate post, but this one is from within vmare virtual machine. I had let the

  scons PREFIX=/home/janek/Z/BIN features=python,opengl

to run, to see that it compiles, but instead I get this error:

In file included from /home/janek/Z/build-bzr1728/core/core.cpp:11:
/home/janek/Z/yade/core/InteractionContainer.cpp:29: error: expected declaration before '}' token
C lib/QGLViewer/manipulatedFrame.cpp

(clean ubuntu 9.04, clean checkout)

Revision history for this message
Janek Kozicki (cosurgi) wrote :

To summarise: three above posts that I have sent are three different problems with bzr1728, or just the same problem that exhibits itself in three different ways. Sorry for so many replies to myself.

PS: my regular box is debian squeeze 64bit. The ubuntu 9.04 clean install is 32bit.

Revision history for this message
Anton Gladky (gladky-anton) wrote : Re: [Bug 418107] Re: bzr1727 fails to compile on ubuntu 9.04

Try this:
scons PREFIX=/home/janek/Z/BIN features=python,opengl,openmp

So, adding openmp seems fixes the problem
______________________________
[ENG] Best Regards
[GER] Mit freundlichen Grüßen
[RUS] С наилучшими пожеланиями
[UKR] З найкращими побажаннями

Anton Gladkyy

2009/8/24 Janek Kozicki <email address hidden>

> To summarise: three above posts that I have sent are three different
> problems with bzr1728, or just the same problem that exhibits itself in
> three different ways. Sorry for so many replies to myself.
>
> PS: my regular box is debian squeeze 64bit. The ubuntu 9.04 clean
> install is 32bit.
>
> --
> bzr1727 fails to compile on ubuntu 9.04
> https://bugs.launchpad.net/bugs/418107
> You received this bug notification because you are subscribed to Yade.
>
> Status in Yet Another Dynamic Engine: New
>
> Bug description:
> I even made a clean ubuntu 9.04 install under vmware to be sure that it's
> not some broken python configuration. When you type scons to compile you
> only get this error:
>
> scons: Reading SCconscript files...
> @@@ Using profile default (scons.profile default) @@@
> TypeError: cannot concatenate 'str' and 'NoneType' objects:
> File "/home/janek/trunk/SConstruct", line 194:
> env['SUFFIX']='-'+env['version']+env['variant']
>
>
> It doesn't even start checking what libraries are available.
>

Revision history for this message
Anton Gladky (gladky-anton) wrote :

r1729

Vaclav, please, check it. Have I done it properly?
______________________________

Anton Gladkyy

2009/8/24 Anton Gladky <email address hidden>

> Try this:
> scons PREFIX=/home/janek/Z/BIN features=python,opengl,openmp
>
> So, adding openmp seems fixes the problem
> ______________________________
> [ENG] Best Regards
> [GER] Mit freundlichen Grüßen
> [RUS] С наилучшими пожеланиями
> [UKR] З найкращими побажаннями
>
> Anton Gladkyy
>
>
> 2009/8/24 Janek Kozicki <email address hidden>
>
>> To summarise: three above posts that I have sent are three different
>>
>> problems with bzr1728, or just the same problem that exhibits itself in
>> three different ways. Sorry for so many replies to myself.
>>
>> PS: my regular box is debian squeeze 64bit. The ubuntu 9.04 clean
>> install is 32bit.
>>
>> --
>> bzr1727 fails to compile on ubuntu 9.04
>> https://bugs.launchpad.net/bugs/418107
>> You received this bug notification because you are subscribed to Yade.
>>
>> Status in Yet Another Dynamic Engine: New
>>
>> Bug description:
>> I even made a clean ubuntu 9.04 install under vmware to be sure that it's
>> not some broken python configuration. When you type scons to compile you
>> only get this error:
>>
>> scons: Reading SCconscript files...
>> @@@ Using profile default (scons.profile default) @@@
>> TypeError: cannot concatenate 'str' and 'NoneType' objects:
>> File "/home/janek/trunk/SConstruct", line 194:
>> env['SUFFIX']='-'+env['version']+env['variant']
>>
>>
>> It doesn't even start checking what libraries are available.
>>
>
>

Revision history for this message
Janek Kozicki (cosurgi) wrote :

replying to myself (again). Saying that two revisions ago it was compiling I made a mistake. It was compiling correctly two days ago, on bzr 1717. That's where I was testing pr.py on last friday.

So the bug was introduced between 1717 an 1728.

I could do binary search of this bug trying different revisions, but not now, probably in late evening today.

Revision history for this message
Anton Gladky (gladky-anton) wrote :

Try r1729 and later
______________________________
[ENG] Best Regards
[GER] Mit freundlichen Grüßen
[RUS] С наилучшими пожеланиями
[UKR] З найкращими побажаннями

Anton Gladkyy

2009/8/24 Janek Kozicki <email address hidden>

> replying to myself (again). Saying that two revisions ago it was
> compiling I made a mistake. It was compiling correctly two days ago, on
> bzr 1717. That's where I was testing pr.py on last friday.
>
> So the bug was introduced between 1717 an 1728.
>
> I could do binary search of this bug trying different revisions, but not
> now, probably in late evening today.
>
> --
> bzr1727 fails to compile on ubuntu 9.04
> https://bugs.launchpad.net/bugs/418107
> You received this bug notification because you are subscribed to Yade.
>
> Status in Yet Another Dynamic Engine: New
>
> Bug description:
> I even made a clean ubuntu 9.04 install under vmware to be sure that it's
> not some broken python configuration. When you type scons to compile you
> only get this error:
>
> scons: Reading SCconscript files...
> @@@ Using profile default (scons.profile default) @@@
> TypeError: cannot concatenate 'str' and 'NoneType' objects:
> File "/home/janek/trunk/SConstruct", line 194:
> env['SUFFIX']='-'+env['version']+env['variant']
>
>
> It doesn't even start checking what libraries are available.
>

Revision history for this message
Václav Šmilauer (eudoxos) wrote :

#3: missing libgts-dev in the install script. Fixed r1731.
#4: fixed in r1732. What boost::python version do you have???
#5: fixed (correctly, thanks) by Anton in r1729.

You don't have to backport bzr to jaunty, please RTFM first: http://yade.wikia.com/wiki/Quick_Bazaar_tutorial#Switching_from_SVN (link to download page)

Revision history for this message
Václav Šmilauer (eudoxos) wrote :

Reopen if you still have issues.

Changed in yade:
status: New → Fix Committed
Revision history for this message
Janek Kozicki (cosurgi) wrote :

I'm compiling again, but I guess it it indeed fixed for ubuntu 9.04 clean install.

On my regular box #4 is fixed, but only after a full recompile. I have boost 1.38.

I just noticed that in squeeze I can make a choice between boost 1.38 and 1.39 ;-) So it seems that soon I'll have to migrate to 1.39 ...

Revision history for this message
Václav Šmilauer (eudoxos) wrote :

Sorry for #4, it is _really_ fixed r1733 (it won't bite you if you have clean installation, which you did).

Changed in yade:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.