[Debichem-devel] Bug#653625: FTBFS with Boost 1.48 (Parse error at "BOOST_JOIN")

Steve M. Robbins smr at debian.org
Thu Dec 29 21:06:11 UTC 2011


Source: avogadro
Severity: normal

Package failed to build with new Boost version 1.48.  The relevant log
portion is:

cd /home/steve/Packages/boost-defaults/rebuilds/build/avogadro/avogadro-1.0.3/obj-x86_64-linux-gnu/libavogadro/src && /usr/bin/lrelease-qt4 -compress -removeidentical -silent /home/steve/Packages/boost-defaults/rebuilds/build/avogadro/avogadro-1.0.3/obj-x86_64-linux-gnu/libavogadro/src/libavogadro_ja.ts -qm /home/steve/Packages/boost-defaults/rebuilds/build/avogadro/avogadro-1.0.3/obj-x86_64-linux-gnu/libavogadro/src/libavogadro_ja.qm
/usr/bin/cmake -E cmake_progress_report /home/steve/Packages/boost-defaults/rebuilds/build/avogadro/avogadro-1.0.3/obj-x86_64-linux-gnu/CMakeFiles 
[  8%] Generating libavogadro_de.qm
cd /home/steve/Packages/boost-defaults/rebuilds/build/avogadro/avogadro-1.0.3/obj-x86_64-linux-gnu/libavogadro/src && /usr/bin/lconvert -i /home/steve/Packages/boost-defaults/rebuilds/build/avogadro/avogadro-1.0.3/i18n/libavogadro-de.po -o /home/steve/Packages/boost-defaults/rebuilds/build/avogadro/avogadro-1.0.3/obj-x86_64-linux-gnu/libavogadro/src/libavogadro_de.ts
usr/include/boost/type_traits/detail/has_binary_operator.hp:50: Parse error at "BOOST_JOIN"
usr/include/boost/type_traits/detail/has_binary_operator.hp:50: Parse error at "BOOST_JOIN"
usr/include/boost/type_traits/detail/has_binary_operator.hp:50: Parse error at "BOOST_JOIN"


Note that this output is from the qt tool lconvert.  I believe this is
because the tool does not handle the entire C++ language; see the Qt
issue https://bugreports.qt.nokia.com/browse/QTBUG-22829

The workaround is to abuse the Boost header guards by defining it
on the moc/lconvert command line, thus avoiding having to parse
the boost headers.  Pass -DBOOST_TT_HAS_OPERATOR_HPP_INCLUDED
to the moc invocation.  If using cmake:

  QT4_WRAP_CPP(sources ${moc-sources} OPTIONS -DBOOST_TT_HAS_OPERATOR_HPP_INCLUDED)




-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.1.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash





More information about the Debichem-devel mailing list