nightstyles / alembic

Automatically exported from code.google.com/p/alembic
Other
1 stars 0 forks source link

compiling error with boost 1.55 #328

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.python build/bootstrap/alembic_bootstrap.py  
--dependency-install-root=/tmp/DEPENDENTS_DAMB/ 
--with-maya=/mnt/software/maya/maya2013sp2-x64/ --enable-pyalembic --debug 
../alembic_build_1.5.1/

2.
3.

What is the expected output? What do you see instead?
 /tmp/DEPENDENTS_DAMB/boost_1_55_0/lib/libboost_thread-gcc44-mt-1_55.a(thread.o):
  In function `boost::this_thread::hiden::sleep_until(timespec const&)':

  thread.cpp:(.text+0x196b): undefined reference to `clock_gettime'

  thread.cpp:(.text+0x19e1): undefined reference to `clock_gettime'

  thread.cpp:(.text+0x1a48): undefined reference to `clock_gettime'

  thread.cpp:(.text+0x1aaf): undefined reference to `clock_gettime'

  thread.cpp:(.text+0x1b16): undefined reference to `clock_gettime'

  /tmp/DEPENDENTS_DAMB/boost_1_55_0/lib/libboost_thread-gcc44-mt-1_55.a(thread.o):thread.cpp:(.text+0x1b7d):
  more undefined references to `clock_gettime' follow

  /tmp/DEPENDENTS_DAMB/boost_1_55_0/lib/libboost_thread-gcc44-mt-1_55.a(thread.o):
  In function `boost::condition_error::condition_error(int, char const*)':

  thread.cpp:(.text._ZN5boost15condition_errorC2EiPKc[_ZN5boost15condition_errorC5EiPKc]+0x27):
  undefined reference to `boost::system::system_category()'

  /tmp/DEPENDENTS_DAMB/boost_1_55_0/lib/libboost_thread-gcc44-mt-1_55.a(thread.o):
  In function
  `boost::condition_variable::do_wait_until(boost::unique_lock<boost::mutex>&,
  timespec const&)':

  thread.cpp:(.text._ZN5boost18condition_variable13do_wait_untilERNS_11unique_lockINS_5mutexEEERK8timespec[boost::condition_variable::do_wait_until(boost::unique_lock<boost::mutex>&,
  timespec const&)]+0x1d1): undefined reference to
  `boost::system::system_category()'

  collect2: ld returned 1 exit status

  gmake[1]: *** [cmTryCompileExec1974157242] Error 1

  gmake[1]: Leaving directory
  `/tmp/alembic_build_1.5.1/build/bootstrap/boost_trycompile/CMakeFiles/CMakeTmp'

  gmake: *** [cmTryCompileExec1974157242/fast] Error 2

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by jhy13401192277@gmail.com on 9 Dec 2013 at 11:00

GoogleCodeExporter commented 9 years ago
This seems like an issue with how you build boost.

clock_gettime is linked in via -lrt shouldn't libboost_thread-gcc44-mt-1_55.a 
be in charge of that?

Original comment by miller.lucas on 11 Dec 2013 at 12:45

GoogleCodeExporter commented 9 years ago
i'm running into the same exact issue.
boost is compiled as described in the doc (static, versioned, mt).
curious why i'm getting this as well...

Original comment by oliviers...@gmail.com on 30 Mar 2014 at 3:26

GoogleCodeExporter commented 9 years ago
btw, i'm using the same boost version 1.55. thanks.

Original comment by oliviers...@gmail.com on 30 Mar 2014 at 4:11

GoogleCodeExporter commented 9 years ago
I successfully compiled Alembic with Boost 1.44. Boost 1.55 seems to have
some compatible issues with Alembic.

Original comment by jhy13401192277@gmail.com on 30 Mar 2014 at 2:08

GoogleCodeExporter commented 9 years ago
yep. same here. just tried with 1.44 with same compile rules and it works just 
fine.
1.55 does not play nicely with alembic. thanks.

Original comment by oliviers...@gmail.com on 30 Mar 2014 at 5:21

GoogleCodeExporter commented 9 years ago
Does this help?
https://svn.boost.org/trac/boost/ticket/8448

Original comment by miller.lucas on 31 Mar 2014 at 4:35

GoogleCodeExporter commented 9 years ago
I successfully compiled Alembic with Boost 1.55 on Ubuntu 14.04. I only get a 
warning while running the bootstrap, that I ignored; then make && make install 
without any trouble.

Using Alembic 1.5.8 and gcc 4.8.2

Original comment by sylvain.bouxin@whtcorp.com on 21 Feb 2015 at 4:25