Public bug reported:
Boost directory is not included when cross compiler is used on ubuntu
14.04 based system; while the original error arouse in AX_BOOST and
BOOST.m4 (both passes in vanilla compile mode) it seems that for some
reasons the BOOST path is not included properly.
EXPECTED: no error message during compile
GOT: fatal error: boost/version.hpp: No such file or directory
SSCCE is below;
---------------------
FAIL: x86_64-w64-mingw32-g++ -v -c -g -O2 -std=c++11 test.cpp test.cpp
PASS: x86_64-w64-mingw32-g++ -I /usr/include/ -c -g -O2 -std=c++11 test.cpp
-----
#include <boost/version.hpp> // content of test.cpp
DETAILS:
----------------------
steven@shikoku ~/tmp/boost_test $ x86_64-w64-mingw32-g++ -v -c -g -O2
-std=c++11 test.cpp
Using built-in specs.
COLLECT_GCC=x86_64-w64-mingw32-g++
Target: x86_64-w64-mingw32
Configured with: ../../src/configure --build=x86_64-linux-gnu --prefix=/usr
--includedir='/usr/include' --mandir='/usr/share/man'
--infodir='/usr/share/info' --sysconfdir=/etc --localstatedir=/var
--libexecdir='/usr/lib/gcc-mingw-w64' --disable-maintainer-mode
--disable-dependency-tracking --prefix=/usr --enable-shared --enable-static
--disable-multilib --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --libdir=/usr/lib --enable-libstdcxx-time=yes
--with-tune=generic --enable-version-specific-runtime-libs
--enable-threads=posix --enable-fully-dynamic-string --enable-sjlj-exceptions
--enable-libgomp --enable-
languages=c,c++,fortran,objc,obj-c++ --enable-lto --with-plugin-ld
--target=x86_64-w64-mingw32 --with-gxx-include-dir=/usr/include/c++/4.8
--with-as=/usr/bin/x86_64-w64-mingw32-as
--with-ld=/usr/bin/x86_64-w64-mingw32-ld
Thread model: posix
gcc version 4.8.2 (GCC)
COLLECT_GCC_OPTIONS='-v' '-c' '-g' '-O2' '-std=c++11' '-shared-libgcc'
'-mtune=generic' '-march=x86-64'
/usr/lib/gcc/x86_64-w64-mingw32/4.8/cc1plus -quiet -v -D_REENTRANT test.cpp
-quiet -dumpbase test.cpp -mtune=generic -march=x86-64 -auxbase test -g -O2
-std=c++11 -version -o /tmp/ccyfJ5O3.s
GNU C++ (GCC) version 4.8.2 (x86_64-w64-mingw32)
compiled by GNU C version 4.8.2, GMP version 5.1.2, MPFR version
3.1.2-p3, MPC version 1.0.1
warning: GMP header version 5.1.2 differs from library version 5.1.3.
warning: MPFR header version 3.1.2-p3 differs from library version 3.1.3.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory
"/usr/lib/gcc/x86_64-w64-mingw32/4.8/../../../../x86_64-w64-mingw32/sys-include"
ignoring duplicate directory "/opt/intel/composer_xe_2013_sp1.0.080/mkl/include"
#include "..." search starts here:
#include <...> search starts here:
/opt/intel/composer_xe_2013_sp1.0.080/mkl/include
/usr/include/c++/4.8
/usr/include/c++/4.8/x86_64-w64-mingw32
/usr/include/c++/4.8/backward
/usr/lib/gcc/x86_64-w64-mingw32/4.8/include
/usr/lib/gcc/x86_64-w64-mingw32/4.8/include-fixed
/usr/lib/gcc/x86_64-w64-mingw32/4.8/../../../../x86_64-w64-mingw32/include
End of search list.
GNU C++ (GCC) version 4.8.2 (x86_64-w64-mingw32)
compiled by GNU C version 4.8.2, GMP version 5.1.2, MPFR version
3.1.2-p3, MPC version 1.0.1
warning: GMP header version 5.1.2 differs from library version 5.1.3.
warning: MPFR header version 3.1.2-p3 differs from library version 3.1.3.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: b870c9189b9ea0e65de6d03d8f8bbc28
test.cpp:1:29: fatal error: boost/version.hpp: No such file or directory
#include <boost/version.hpp>
^
compilation terminated.
** Affects: mingw-w64 (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1550673
Title:
boost headers not found
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mingw-w64/+bug/1550673/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs