FS#49529 - [mingw-w64-gcc] GCC include dirs not correct
Attached to Project:
Community Packages
Opened by Johannes Jordan (FoPref) - Tuesday, 31 May 2016, 22:16 GMT
Last edited by Doug Newgard (Scimmia) - Tuesday, 31 May 2016, 22:31 GMT
Opened by Johannes Jordan (FoPref) - Tuesday, 31 May 2016, 22:16 GMT
Last edited by Doug Newgard (Scimmia) - Tuesday, 31 May 2016, 22:31 GMT
|
Details
Description:
When compiling a CMake C++ project with 6.1-1 version of this package, standard includes fail. E.g. In file included from /usr/x86_64-w64-mingw32/include/c++/6.1.1/ext/string_conversions.h:41:0, from /usr/x86_64-w64-mingw32/include/c++/6.1.1/bits/basic_string.h:5402, from /usr/x86_64-w64-mingw32/include/c++/6.1.1/string:52, from /usr/x86_64-w64-mingw32/include/c++/6.1.1/bits/locale_classes.h:40, from /usr/x86_64-w64-mingw32/include/c++/6.1.1/bits/ios_base.h:41, from /usr/x86_64-w64-mingw32/include/c++/6.1.1/ios:42, from /usr/x86_64-w64-mingw32/include/c++/6.1.1/istream:38, from /usr/x86_64-w64-mingw32/include/c++/6.1.1/sstream:38, from /home/ypnos/work/gerbil/master/core/multi_img/multi_img.h:21, from /home/ypnos/work/gerbil/master/core/multi_img.h:3, from /home/ypnos/work/gerbil/master/core/multi_img/multi_img_ext.cpp:9: /usr/x86_64-w64-mingw32/include/c++/6.1.1/cstdlib:75:25: fatal error: stdlib.h: No such file or directory #include_next <stdlib.h> As you can see, the C++ headers do not find their own corresponding C headers. If you look at the list of included files, you find that stdlib.h is present: mingw-w64-gcc /usr/x86_64-w64-mingw32/include/c++/6.1.1/stdlib.h This problem also occurs when building AUR packages, e.g. https://aur.archlinux.org/packages/mingw-w64-opencv/ As suggested there, I downgraded to version 5.3-1 of this package and everything works as expected. |
This task depends upon
Closed by Doug Newgard (Scimmia)
Tuesday, 31 May 2016, 22:31 GMT
Reason for closing: Duplicate
Additional comments about closing: FS#49313
Tuesday, 31 May 2016, 22:31 GMT
Reason for closing: Duplicate
Additional comments about closing:
/usr/bin/x86_64-w64-mingw32-g++ -DOPENCV_VERSION=3.1.0 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DWITH_BOO
ST -DWITH_BOOST_CHRONO -DWITH_BOOST_DATE_TIME -DWITH_BOOST_FILESYSTEM -DWITH_BOOST_PROGRAM_OPTIONS -DWITH_BOOST_SERIALIZATION -DWITH_BOOST_SYSTEM -DWITH_BOOST
_THREAD -DWITH_CORE -DWITH_GDAL -DWITH_OPENCV -DWITH_OPENCV2 -DWITH_OPENGL -DWITH_QT -DWITH_QT_OPENGL -DWITH_TBB -Dcore_lib_EXPORTS @CMakeFiles/core-lib.dir/i
ncludes_CXX.rsp -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -Wall -Wno-long-long -Wno-reorder -pedantic -O3 -DNDEBUG
-msse2 -std=gnu++11 -o CMakeFiles/core-lib.dir/multi_img/multi_img_ext.cpp.obj -c /home/ypnos/work/gerbil/master/core/multi_img/multi_img_ext.cpp -v
Using built-in specs.
COLLECT_GCC=/usr/bin/x86_64-w64-mingw32-g++
Target: x86_64-w64-mingw32
Configured with: /build/mingw-w64-gcc/src/gcc-5.3.0/configure --prefix=/usr --libexecdir=/usr/lib --target=x86_64-w64-mingw32 --enable-languages=c,lto,c++,obj
c,obj-c++,fortran,ada --enable-shared --enable-static --enable-threads=posix --enable-fully-dynamic-string --enable-libstdcxx-time=yes --with-system-zlib --en
able-cloog-backend=isl --enable-lto --disable-dw2-exceptions --enable-libgomp --disable-multilib --enable-checking=release
Thread model: posix
gcc version 5.3.0 (GCC)
COLLECT_GCC_OPTIONS='-D' 'OPENCV_VERSION=3.1.0' '-D' 'QT_CORE_LIB' '-D' 'QT_GUI_LIB' '-D' 'QT_NO_DEBUG' '-D' 'QT_WIDGETS_LIB' '-D' 'WITH_BOOST' '-D' 'WITH_BOO
ST_CHRONO' '-D' 'WITH_BOOST_DATE_TIME' '-D' 'WITH_BOOST_FILESYSTEM' '-D' 'WITH_BOOST_PROGRAM_OPTIONS' '-D' 'WITH_BOOST_SERIALIZATION' '-D' 'WITH_BOOST_SYSTEM'
'-D' 'WITH_BOOST_THREAD' '-D' 'WITH_CORE' '-D' 'WITH_GDAL' '-D' 'WITH_OPENCV' '-D' 'WITH_OPENCV2' '-D' 'WITH_OPENGL' '-D' 'WITH_QT' '-D' 'WITH_QT_OPENGL' '-D
' 'WITH_TBB' '-D' 'core_lib_EXPORTS' '-isystem' '/usr/x86_64-w64-mingw32/lib/cmake/opencv-3.1.0/include' '-isystem' '/usr/x86_64-w64-mingw32/lib/cmake/opencv-
3.1.0/include/opencv' '-I' '/usr/x86_64-w64-mingw32/include' '-isystem' '/usr/x86_64-w64-mingw32/include/qt' '-isystem' '/usr/x86_64-w64-mingw32/include/qt/Qt
Widgets' '-isystem' '/usr/x86_64-w64-mingw32/include/qt/QtGui' '-isystem' '/usr/x86_64-w64-mingw32/include/qt/QtCore' '-isystem' '/usr/x86_64-w64-mingw32/lib/
qt/mkspecs/win32-g++' '-I' '/usr/x86_64-w64-mingw32/include/qt/QtOpenGL' '-I' '/usr/x86_64-w64-mingw32/include/include' '-I' '/home/ypnos/work/gerbil/master/c
ore' '-I' '/home/ypnos/work/gerbil/master/shell' '-I' '/home/ypnos/work/gerbil/master/csparse' '-I' '/home/ypnos/work/gerbil/master/seg_meanshift' '-I' '/home/ypnos/work/gerbil/master/som' '-I' '/home/ypnos/work/gerbil/master/rgb' '-I' '/home/ypnos/work/gerbil/master/gui' '-I' '/home/ypnos/work/gerbil/master/lsh' '-I' '/home/ypnos/work/gerbil/master/similarity_measures' '-I' '/home/ypnos/work/gerbil/master/seg_felzenszwalb' '-I' '/home/ypnos/work/gerbil/master/seg_graphs' '-I' '/home/ypnos/work/gerbil/master/imginput' '-I' '/home/ypnos/work/gerbil/master/edge_detect' '-I' '/home/ypnos/work/gerbil/master/build-mingw/master/core' '-O2' '-g' '-pipe' '-fexceptions' '--param' 'ssp-buffer-size=4' '-Wall' '-Wno-long-long' '-Wno-reorder' '-Wpedantic' '-O3' '-D' 'NDEBUG' '-msse2' '-std=gnu++11' '-o' 'CMakeFiles/core-lib.dir/multi_img/multi_img_ext.cpp.obj' '-c' '-v' '-shared-libgcc' '-mtune=generic' '-march=x86-64'
/usr/lib/gcc/x86_64-w64-mingw32/5.3.0/cc1plus -quiet -v -I /usr/x86_64-w64-mingw32/include -I /usr/x86_64-w64-mingw32/include/qt/QtOpenGL -I /usr/x86_64-w64-mingw32/include/include -I /home/ypnos/work/gerbil/master/core -I /home/ypnos/work/gerbil/master/shell -I /home/ypnos/work/gerbil/master/csparse -I /home/ypnos/work/gerbil/master/seg_meanshift -I /home/ypnos/work/gerbil/master/som -I /home/ypnos/work/gerbil/master/rgb -I /home/ypnos/work/gerbil/master/gui -I /home/ypnos/work/gerbil/master/lsh -I /home/ypnos/work/gerbil/master/similarity_measures -I /home/ypnos/work/gerbil/master/seg_felzenszwalb -I /home/ypnos/work/gerbil/master/seg_graphs -I /home/ypnos/work/gerbil/master/imginput -I /home/ypnos/work/gerbil/master/edge_detect -I /home/ypnos/work/gerbil/master/build-mingw/master/core -D_REENTRANT -D OPENCV_VERSION=3.1.0 -D QT_CORE_LIB -D QT_GUI_LIB -D QT_NO_DEBUG -D QT_WIDGETS_LIB -D WITH_BOOST -D WITH_BOOST_CHRONO -D WITH_BOOST_DATE_TIME -D WITH_BOOST_FILESYSTEM -D WITH_BOOST_PROGRAM_OPTIONS -D WITH_BOOST_SERIALIZATION -D WITH_BOOST_SYSTEM -D WITH_BOOST_THREAD -D WITH_CORE -D WITH_GDAL -D WITH_OPENCV -D WITH_OPENCV2 -D WITH_OPENGL -D WITH_QT -D WITH_QT_OPENGL -D WITH_TBB -D core_lib_EXPORTS -D NDEBUG -isystem /usr/x86_64-w64-mingw32/lib/cmake/opencv-3.1.0/include -isystem /usr/x86_64-w64-mingw32/lib/cmake/opencv-3.1.0/include/opencv -isystem /usr/x86_64-w64-mingw32/include/qt -isystem /usr/x86_64-w64-mingw32/include/qt/QtWidgets -isystem /usr/x86_64-w64-mingw32/include/qt/QtGui -isystem /usr/x86_64-w64-mingw32/include/qt/QtCore -isystem /usr/x86_64-w64-mingw32/lib/qt/mkspecs/win32-g++ -D_FORTIFY_SOURCE=2 /home/ypnos/work/gerbil/master/core/multi_img/multi_img_ext.cpp -quiet -dumpbase multi_img_ext.cpp -msse2 -mtune=generic -march=x86-64 -auxbase-strip CMakeFiles/core-lib.dir/multi_img/multi_img_ext.cpp.obj -g -O2 -O3 -Wall -Wno-long-long -Wno-reorder -Wpedantic -std=gnu++11 -version -fexceptions --param ssp-buffer-size=4 -o - |
/usr/lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../x86_64-w64-mingw32/bin/as -v -I /usr/x86_64-w64-mingw32/include -I /usr/x86_64-w64-mingw32/include/qt/QtOpenGL -I /usr/x86_64-w64-mingw32/include/include -I /home/ypnos/work/gerbil/master/core -I /home/ypnos/work/gerbil/master/shell -I /home/ypnos/work/gerbil/master/csparse -I /home/ypnos/work/gerbil/master/seg_meanshift -I /home/ypnos/work/gerbil/master/som -I /home/ypnos/work/gerbil/master/rgb -I /home/ypnos/work/gerbil/master/gui -I /home/ypnos/work/gerbil/master/lsh -I /home/ypnos/work/gerbil/master/similarity_measures -I /home/ypnos/work/gerbil/master/seg_felzenszwalb -I /home/ypnos/work/gerbil/master/seg_graphs -I /home/ypnos/work/gerbil/master/imginput -I /home/ypnos/work/gerbil/master/edge_detect -I /home/ypnos/work/gerbil/master/build-mingw/master/core -o CMakeFiles/core-lib.dir/multi_img/multi_img_ext.cpp.obj
GNU assembler version 2.26 (x86_64-w64-mingw32) using BFD version (GNU Binutils) 2.26.20160125
GNU C++11 (GCC) version 5.3.0 (x86_64-w64-mingw32)
compiled by GNU C version 5.3.0, GMP version 6.1.0, MPFR version 3.1.3-p4, MPC version 1.0.3
warning: MPFR header version 3.1.3-p4 differs from library version 3.1.4-p1.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory "/usr/lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../x86_64-w64-mingw32/sys-include"
ignoring duplicate directory "/usr/lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../x86_64-w64-mingw32/include"
ignoring duplicate directory "/usr/x86_64-w64-mingw32/include"
as it is a non-system directory that duplicates a system directory
ignoring nonexistent directory "/usr/x86_64-w64-mingw32/include/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/x86_64-w64-mingw32/include/qt/QtOpenGL
/home/ypnos/work/gerbil/master/core
/home/ypnos/work/gerbil/master/shell
/home/ypnos/work/gerbil/master/csparse
/home/ypnos/work/gerbil/master/seg_meanshift
/home/ypnos/work/gerbil/master/som
/home/ypnos/work/gerbil/master/rgb
/home/ypnos/work/gerbil/master/gui
/home/ypnos/work/gerbil/master/lsh
/home/ypnos/work/gerbil/master/similarity_measures
/home/ypnos/work/gerbil/master/seg_felzenszwalb
/home/ypnos/work/gerbil/master/seg_graphs
/home/ypnos/work/gerbil/master/imginput
/home/ypnos/work/gerbil/master/edge_detect
/home/ypnos/work/gerbil/master/build-mingw/master/core
/usr/x86_64-w64-mingw32/lib/cmake/opencv-3.1.0/include
/usr/x86_64-w64-mingw32/lib/cmake/opencv-3.1.0/include/opencv
/usr/x86_64-w64-mingw32/include/qt
/usr/x86_64-w64-mingw32/include/qt/QtWidgets
/usr/x86_64-w64-mingw32/include/qt/QtGui
/usr/x86_64-w64-mingw32/include/qt/QtCore
/usr/x86_64-w64-mingw32/lib/qt/mkspecs/win32-g++
/usr/lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../x86_64-w64-mingw32/include/c++/5.3.0
/usr/lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../x86_64-w64-mingw32/include/c++/5.3.0/x86_64-w64-mingw32
/usr/lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../x86_64-w64-mingw32/include/c++/5.3.0/backward
/usr/lib/gcc/x86_64-w64-mingw32/5.3.0/include
/usr/lib/gcc/x86_64-w64-mingw32/5.3.0/include-fixed
End of search list.
GNU C++11 (GCC) version 5.3.0 (x86_64-w64-mingw32)
compiled by GNU C version 5.3.0, GMP version 6.1.0, MPFR version 3.1.3-p4, MPC version 1.0.3
warning: MPFR header version 3.1.3-p4 differs from library version 3.1.4-p1.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 4be320e16109a634dfa17750d56b983c
COMPILER_PATH=/usr/lib/gcc/x86_64-w64-mingw32/5.3.0/:/usr/lib/gcc/x86_64-w64-mingw32/5.3.0/:/usr/lib/gcc/x86_64-w64-mingw32/:/usr/lib/gcc/x86_64-w64-mingw32/5.3.0/:/usr/lib/gcc/x86_64-w64-mingw32/:/usr/lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../x86_64-w64-mingw32/bin/
LIBRARY_PATH=/usr/lib/gcc/x86_64-w64-mingw32/5.3.0/:/usr/lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../x86_64-w64-mingw32/lib/../lib/:/usr/lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../x86_64-w64-mingw32/lib/
COLLECT_GCC_OPTIONS='-D' 'OPENCV_VERSION=3.1.0' '-D' 'QT_CORE_LIB' '-D' 'QT_GUI_LIB' '-D' 'QT_NO_DEBUG' '-D' 'QT_WIDGETS_LIB' '-D' 'WITH_BOOST' '-D' 'WITH_BOOST_CHRONO' '-D' 'WITH_BOOST_DATE_TIME' '-D' 'WITH_BOOST_FILESYSTEM' '-D' 'WITH_BOOST_PROGRAM_OPTIONS' '-D' 'WITH_BOOST_SERIALIZATION' '-D' 'WITH_BOOST_SYSTEM' '-D' 'WITH_BOOST_THREAD' '-D' 'WITH_CORE' '-D' 'WITH_GDAL' '-D' 'WITH_OPENCV' '-D' 'WITH_OPENCV2' '-D' 'WITH_OPENGL' '-D' 'WITH_QT' '-D' 'WITH_QT_OPENGL' '-D' 'WITH_TBB' '-D' 'core_lib_EXPORTS' '-isystem' '/usr/x86_64-w64-mingw32/lib/cmake/opencv-3.1.0/include' '-isystem' '/usr/x86_64-w64-mingw32/lib/cmake/opencv-3.1.0/include/opencv' '-I' '/usr/x86_64-w64-mingw32/include' '-isystem' '/usr/x86_64-w64-mingw32/include/qt' '-isystem' '/usr/x86_64-w64-mingw32/include/qt/QtWidgets' '-isystem' '/usr/x86_64-w64-mingw32/include/qt/QtGui' '-isystem' '/usr/x86_64-w64-mingw32/include/qt/QtCore' '-isystem' '/usr/x86_64-w64-mingw32/lib/qt/mkspecs/win32-g++' '-I' '/usr/x86_64-w64-mingw32/include/qt/QtOpenGL' '-I' '/usr/x86_64-w64-mingw32/include/include' '-I' '/home/ypnos/work/gerbil/master/core' '-I' '/home/ypnos/work/gerbil/master/shell' '-I' '/home/ypnos/work/gerbil/master/csparse' '-I' '/home/ypnos/work/gerbil/master/seg_meanshift' '-I' '/home/ypnos/work/gerbil/master/som' '-I' '/home/ypnos/work/gerbil/master/rgb' '-I' '/home/ypnos/work/gerbil/master/gui' '-I' '/home/ypnos/work/gerbil/master/lsh' '-I' '/home/ypnos/work/gerbil/master/similarity_measures' '-I' '/home/ypnos/work/gerbil/master/seg_felzenszwalb' '-I' '/home/ypnos/work/gerbil/master/seg_graphs' '-I' '/home/ypnos/work/gerbil/master/imginput' '-I' '/home/ypnos/work/gerbil/master/edge_detect' '-I' '/home/ypnos/work/gerbil/master/build-mingw/master/core' '-O2' '-g' '-pipe' '-fexceptions' '--param' 'ssp-buffer-size=4' '-Wall' '-Wno-long-long' '-Wno-reorder' '-Wpedantic' '-O3' '-D' 'NDEBUG' '-msse2' '-std=gnu++11' '-o' 'CMakeFiles/core-lib.dir/multi_img/multi_img_ext.cpp.obj' '-c' '-v' '-shared-libgcc' '-mtune=generic' '-march=x86-64'
The use of -isystem comes from CMake, though.