Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#43531 - [boost] Missing include file

Attached to Project: Arch Linux
Opened by Peter Spiess-Knafl (cinemast) - Wednesday, 21 January 2015, 14:29 GMT
Last edited by Evangelos Foutras (foutrelis) - Wednesday, 21 January 2015, 16:59 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Ionut Biru (wonder)
Evangelos Foutras (foutrelis)
Bartłomiej Piotrowski (Barthalion)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

I am trying to compile a package with boost unit tests on arch and am encountering the following problem, when compiling the test case:

In file included from /usr/include/boost/test/detail/config.hpp:19:0,
from /usr/include/boost/test/utils/class_properties.hpp:20,
from /usr/include/boost/test/predicate_result.hpp:19,
from /usr/include/boost/test/test_tools.hpp:19,
from /usr/include/boost/test/unit_test.hpp:19,
from /tmp/libjson-rpc-cpp/src/test/test_stubgenerator.cpp:10:
/usr/include/boost/config.hpp:30:29: schwerwiegender Fehler: boost/config/user.hpp: Datei oder Verzeichnis nicht gefunden
# include BOOST_USER_CONFIG
^

The exact same code worked with the boost version of arch linux 2 months ago.

Additional info:
boost 1.57.0-2


Steps to reproduce:

#include <boost/test/unit_test.hpp>

in any C++ project and compile it.
This task depends upon

Closed by  Evangelos Foutras (foutrelis)
Wednesday, 21 January 2015, 16:59 GMT
Reason for closing:  Not a bug
Additional comments about closing:  Partially installed boost package.
Comment by Evangelos Foutras (foutrelis) - Wednesday, 21 January 2015, 16:09 GMT
A .cpp file with "#include <boost/test/unit_test.hpp>" compiles fine here.

Please attach a complete test file and the full compilation command.
Comment by Peter Spiess-Knafl (cinemast) - Wednesday, 21 January 2015, 16:45 GMT
Simple test code attached.

Command + Compileoutput:

g++ sampletest.cpp
In file included from /usr/include/boost/test/detail/config.hpp:19:0,
from /usr/include/boost/test/utils/class_properties.hpp:20,
from /usr/include/boost/test/predicate_result.hpp:19,
from /usr/include/boost/test/test_tools.hpp:19,
from /usr/include/boost/test/unit_test.hpp:19,
from test.cpp:1:
/usr/include/boost/config.hpp:30:29: schwerwiegender Fehler: boost/config/user.hpp: Datei oder Verzeichnis nicht gefunden
# include BOOST_USER_CONFIG
^
Kompilierung beendet.
Comment by Peter Spiess-Knafl (cinemast) - Wednesday, 21 January 2015, 16:55 GMT
Command back. My fault. Somehow i had a messed up package base. And the boost package was only partially installed. Sorry for the false alarm.
Comment by Evangelos Foutras (foutrelis) - Wednesday, 21 January 2015, 16:58 GMT
I still can't reproduce the issue you're seeing. It's also worth noting that /usr/include/boost/config/user.hpp is included in the boost package.

Try reinstalling the boost package and if that doesn't solve it, you'll need to figure out why you're missing /usr/include/boost/config/user.hpp from your system.

Edit: Glad you solved it, my post above was before I saw yours.

Loading...