https://bugs.winehq.org/show_bug.cgi?id=50996
Bug ID: 50996 Summary: GCC11 & wineg++ fatal error: stdlib.h: No such file Product: Wine Version: 6.6 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: patrick+winehq.org@laimbock.com Distribution: ---
Created attachment 69835 --> https://bugs.winehq.org/attachment.cgi?id=69835 Yabridge: add missing #include <optional>
Thank you for wine. On Fedora 34 with GCC11 I'm trying to build yabridge which uses wineg++. Requires headers (glibc-devel, stdc++-devel, boost-devel, etc are all installed)
Builds (not) with GCC11 (wine means wine+staging):
Wine 6.3 | Wine 6.6 ------------------------------------ Yabridge 3.0.2 Y [1] | N Yabridge HEAD Y [1] | N
[1] requires attached patch which adds a missing #include <optional> which was not required with GCC10.
Error:
FAILED: libvst3_base_wine_64bit.a.p/subprojects_vst3_base_source_fbuffer.cpp.o wineg++ -Ilibvst3_base_wine_64bit.a.p -I. -I.. -I/usr/include -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -std=c++2a -O3 -fPIC -isystem../subprojects/vst3 -isystemsubprojects/vst3 -DRELEASE=1 -DNOMINMAX -DWINE_NOWINSOCK -m64 -Wno-cpp -MD -MQ libvst3_base_wine_64bit.a.p/subprojects_vst3_base_source_fbuffer.cpp.o -MF libvst3_base_wine_64bit.a.p/subprojects_vst3_base_source_fbuffer.cpp.o.d -o libvst3_base_wine_64bit.a.p/subprojects_vst3_base_source_fbuffer.cpp.o -c ../subprojects/vst3/base/source/fbuffer.cpp In file included from ../subprojects/vst3/base/source/fbuffer.cpp:40: /usr/include/c++/11/cstdlib:75:15: fatal error: stdlib.h: No such file or directory 75 | #include_next <stdlib.h> | ^~~~~~~~~~ compilation terminated. winegcc: /usr/bin/g++ failed
My wine/gcc/c++ foo is limited but I'm happy to provide additional information you require. Thanks.
https://bugs.winehq.org/show_bug.cgi?id=50996
--- Comment #1 from Patrick patrick+winehq.org@laimbock.com --- Yabridge: https://github.com/robbert-vdh/yabridge
Commit where the missing include is committed for GCC11: https://github.com/robbert-vdh/yabridge/commit/6746b2b924cce99850e2f96c88b4d...
https://bugs.winehq.org/show_bug.cgi?id=50996
Robbert van der Helm mail@robbertvanderhelm.nl changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mail@robbertvanderhelm.nl
https://bugs.winehq.org/show_bug.cgi?id=50996
Patrick patrick+winehq.org@laimbock.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Distribution|--- |Fedora
--- Comment #2 from Patrick patrick+winehq.org@laimbock.com --- Building yabridge against wine-6.5 (and wine-6.3) is succesful so AFAICT it's a regression in wine-6.6.
Could it be that /usr/include as an include path got lost somewhere in wine-6.6? Possibly related? The fix for https://bugs.winehq.org/show_bug.cgi?id=50811
https://github.com/wine-mirror/wine/commit/4f04994ef47b5077e13c1b770ed0f818f...
https://bugs.winehq.org/show_bug.cgi?id=50996
--- Comment #3 from Robbert van der Helm mail@robbertvanderhelm.nl --- As mentioned on IRC, 4f787812999b3b26f04b322fa0d78724596878c0 is very likely the culprit here. As a consequence of prioritizing Wine's own include path, this also seems to throw out all of the other include paths.
https://source.winehq.org/git/wine.git/commit/4f787812999b3b26f04b322fa0d787...
https://bugs.winehq.org/show_bug.cgi?id=50996
Patrick patrick+winehq.org@laimbock.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|GCC11 & wineg++ fatal |GCC11 & wineg++ regression: |error: stdlib.h: No such |missing /usr/include path |file |
https://bugs.winehq.org/show_bug.cgi?id=50996
Patrick patrick+winehq.org@laimbock.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Regression SHA1| |4f787812999b3b26f04b322fa0d | |78724596878c0
https://bugs.winehq.org/show_bug.cgi?id=50996
Konstantin Voinov kv@kott.no-ip.biz changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |kv@kott.no-ip.biz
--- Comment #4 from Konstantin Voinov kv@kott.no-ip.biz --- Hi,
Is there any workaround or patch? I have this problem with building yabridge too.
https://bugs.winehq.org/show_bug.cgi?id=50996
--- Comment #5 from Patrick patrick+winehq.org@laimbock.com --- Created attachment 69869 --> https://bugs.winehq.org/attachment.cgi?id=69869 wine-6.6 revert commit 4f78781
https://bugs.winehq.org/show_bug.cgi?id=50996
--- Comment #6 from Patrick patrick+winehq.org@laimbock.com --- Hi Konstantin,
I rebuilt wine-6.6 with commit 4f78781 reverted and then built yabridge-3.1.0 against that wine. Which succeeds :-) If you use Fedora then you can use my wine & yabridge coprs at https://copr.fedorainfracloud.org/coprs/patrickl/ or use the attached patch.
https://bugs.winehq.org/show_bug.cgi?id=50996
--- Comment #7 from Konstantin Voinov kv@kott.no-ip.biz --- I'm on openSUSE but has the directions now. Thank You, Patrick!
https://bugs.winehq.org/show_bug.cgi?id=50996
Dave Plater davejplater@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |davejplater@gmail.com
--- Comment #8 from Dave Plater davejplater@gmail.com --- The regression patch fixes Carla and Lmms builds as well. Identical problem.
https://bugs.winehq.org/show_bug.cgi?id=50996
Jacek Caban jacek@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jacek@codeweavers.com
--- Comment #9 from Jacek Caban jacek@codeweavers.com --- Created attachment 69883 --> https://bugs.winehq.org/attachment.cgi?id=69883 fix
The attached patch should help. We previously used -I/usr/include, which was no-op because it was already in system dirs path. Now that we use -isystem, it successfully changes include order in a way that C++ headers can't handle. With the attached patch, we should have proper behavior again. I'm not sure if we should explicitly specify those anyway, we could just live it to GCC.
https://bugs.winehq.org/show_bug.cgi?id=50996
--- Comment #10 from Patrick patrick+winehq.org@laimbock.com --- Hi Jacek,
Thank you for the patch. Using GCC11 I rebuilt wine-6.6 with the patch but when rebuilding yabridge after that it fails with the same error (see #c0) so something isn't right, at least for me. Can anyone else please verify that the patch works plus GCC version?
https://bugs.winehq.org/show_bug.cgi?id=50996
--- Comment #11 from Dave Plater davejplater@gmail.com --- (In reply to Patrick from comment #10)
Hi Jacek,
Thank you for the patch. Using GCC11 I rebuilt wine-6.6 with the patch but when rebuilding yabridge after that it fails with the same error (see #c0) so something isn't right, at least for me. Can anyone else please verify that the patch works plus GCC version?
I can confirm that this patch doesn't fix the winegcc build problem in either carla/jackbridge or lmms. Using gcc10. The regression patch does fix the problem. I've tried -isystem, -idirafter and -nostdinc++ in the hope of fixing the build without patching wine 6.6. winegcc JackBridge1.cpp -Wall -Wextra -pipe -DBUILDING_CARLA -DREAL_BUILD -MD -MP -fno-common -fPIC -DPIC -DNDEBUG -O3 -ffast-math -mtune=generic -msse -msse2 -mfpmath=sse -fdata-sections -ffunction-sections -fvisibility=hidden -DHAVE_DGL -DDGL_NAMESPACE=CarlaDGL -DDGL_FILE_BROWSER_DISABLED -DDGL_NO_SHARED_RESOURCES -DHAVE_FLUIDSYNTH -DHAVE_HYLIA -DHAVE_LIBLO -DHAVE_LIBMAGIC -DHAVE_PYQT -DHAVE_SNDFILE -DHAVE_X11 -DUSING_JUCE -DUSING_JUCE_GUI_EXTRA -DCARLA_LIB_EXT=".so" -std=gnu++0x -O2 -Wall -D_FORTIFY_SOURCE=2 -funwind-tables -fasynchronous-unwind-tables -Werror=return-type -DJUCE_APP_CONFIG_HEADER='<AppConfig.h>' -I. -I../includes -I../utils -m32 -fpermissive -I/usr/include/wine/wine/windows -I/usr/include/wine-development/windows -I/opt/wine-devel/include/wine/windows -L/usr/lib32/wine -L/usr/lib/i386-linux-gnu/wine -L/usr/lib/i386-linux-gnu/wine-development -L/opt/wine-stable/lib -L/opt/wine-stable/lib/wine -L/opt/wine-staging/lib -L/opt/wine-staging/lib/wine -c -o ../../build/jackbridge/Release/JackBridge1.cpp.wine32.o
/usr/include/c++/10/cstdlib:75:15: fatal error: stdlib.h: No such file or directory 75 | #include_next <stdlib.h>
https://bugs.winehq.org/show_bug.cgi?id=50996
--- Comment #12 from Jacek Caban jacek@codeweavers.com --- It works here, but it's possibly config-sensitive. Please attach output of failing wineg++ invocation with additional '-v' argument.
https://bugs.winehq.org/show_bug.cgi?id=50996
--- Comment #13 from Patrick patrick+winehq.org@laimbock.com --- (In reply to Jacek Caban from comment #12)
It works here, but it's possibly config-sensitive. Please attach output of failing wineg++ invocation with additional '-v' argument.
$ wineg++ -v /usr/bin/g++ -m64 -v Using built-in specs. COLLECT_GCC=/usr/bin/g++ COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/11/lto-wrapper OFFLOAD_TARGET_NAMES=nvptx-none OFFLOAD_TARGET_DEFAULT=1 Target: x86_64-redhat-linux Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,fortran,objc,obj-c++,ada,go,d,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --with-isl=/builddir/build/BUILD/gcc-11.0.1-20210405/obj-x86_64-redhat-linux/isl-install --enable-offload-targets=nvptx-none --without-cuda-driver --enable-gnu-indirect-function --enable-cet --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 11.0.1 20210405 (Red Hat 11.0.1-0) (GCC)
https://bugs.winehq.org/show_bug.cgi?id=50996
--- Comment #14 from Jacek Caban jacek@codeweavers.com --- Please use full failing command with additional '-v'. Using the command from comment 1, it would be something like:
wineg++ -Ilibvst3_base_wine_64bit.a.p -I. -I.. -I/usr/include -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -std=c++2a -O3 -fPIC -isystem../subprojects/vst3 -isystemsubprojects/vst3 -DRELEASE=1 -DNOMINMAX -DWINE_NOWINSOCK -m64 -Wno-cpp -MD -MQ libvst3_base_wine_64bit.a.p/subprojects_vst3_base_source_fbuffer.cpp.o -MF libvst3_base_wine_64bit.a.p/subprojects_vst3_base_source_fbuffer.cpp.o.d -o libvst3_base_wine_64bit.a.p/subprojects_vst3_base_source_fbuffer.cpp.o -c ../subprojects/vst3/base/source/fbuffer.cpp -v
https://bugs.winehq.org/show_bug.cgi?id=50996
--- Comment #15 from Patrick patrick+winehq.org@laimbock.com --- (In reply to Jacek Caban from comment #14)
Please use full failing command with additional '-v'. Using the command from comment 1, it would be something like:
wineg++ -Ilibvst3_base_wine_64bit.a.p -I. -I.. -I/usr/include -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -std=c++2a -O3 -fPIC -isystem../subprojects/vst3 -isystemsubprojects/vst3 -DRELEASE=1 -DNOMINMAX -DWINE_NOWINSOCK -m64 -Wno-cpp -MD -MQ libvst3_base_wine_64bit.a.p/subprojects_vst3_base_source_fbuffer.cpp.o -MF libvst3_base_wine_64bit.a.p/subprojects_vst3_base_source_fbuffer.cpp.o.d -o libvst3_base_wine_64bit.a.p/subprojects_vst3_base_source_fbuffer.cpp.o -c ../subprojects/vst3/base/source/fbuffer.cpp -v
Sorry, here you go:
[40/490] wineg++ -Ilibvst3_base_wine_64bit.a.p -I. -I.. -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -std=c++2a -O3 -fPIC -isystem../subprojects/vst3 -isystemsubprojects/vst3 -DRELEASE=1 -DNOMINMAX -DWINE_NOWINSOCK -m64 -Wno-cpp -MD -MQ libvst3_base_wine_64bit.a.p/subprojects_vst3_base_source_baseiids.cpp.o -MF libvst3_base_wine_64bit.a.p/subprojects_vst3_base_source_baseiids.cpp.o.d -o libvst3_base_wine_64bit.a.p/subprojects_vst3_base_source_baseiids.cpp.o -c ../subprojects/vst3/base/source/baseiids.cpp [41/490] wineg++ -Ilibvst3_base_wine_64bit.a.p -I. -I.. -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -std=c++2a -O3 -fPIC -isystem../subprojects/vst3 -isystemsubprojects/vst3 -DRELEASE=1 -DNOMINMAX -DWINE_NOWINSOCK -m64 -Wno-cpp -MD -MQ libvst3_base_wine_64bit.a.p/subprojects_vst3_base_source_fbuffer.cpp.o -MF libvst3_base_wine_64bit.a.p/subprojects_vst3_base_source_fbuffer.cpp.o.d -o libvst3_base_wine_64bit.a.p/subprojects_vst3_base_source_fbuffer.cpp.o -c ../subprojects/vst3/base/source/fbuffer.cpp FAILED: libvst3_base_wine_64bit.a.p/subprojects_vst3_base_source_fbuffer.cpp.o wineg++ -Ilibvst3_base_wine_64bit.a.p -I. -I.. -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -std=c++2a -O3 -fPIC -isystem../subprojects/vst3 -isystemsubprojects/vst3 -DRELEASE=1 -DNOMINMAX -DWINE_NOWINSOCK -m64 -Wno-cpp -MD -MQ libvst3_base_wine_64bit.a.p/subprojects_vst3_base_source_fbuffer.cpp.o -MF libvst3_base_wine_64bit.a.p/subprojects_vst3_base_source_fbuffer.cpp.o.d -o libvst3_base_wine_64bit.a.p/subprojects_vst3_base_source_fbuffer.cpp.o -c ../subprojects/vst3/base/source/fbuffer.cpp In file included from ../subprojects/vst3/base/source/fbuffer.cpp:40: /usr/include/c++/11/cstdlib:75:15: fatal error: stdlib.h: No such file or directory 75 | #include_next <stdlib.h> | ^~~~~~~~~~ compilation terminated. winegcc: /usr/bin/g++ failed
https://bugs.winehq.org/show_bug.cgi?id=50996
--- Comment #16 from Robbert van der Helm mail@robbertvanderhelm.nl --- @Patrick I don't know where you tried to add -v, but the easiest way to add this would be to just append the following line to cross-wine.cfg:
cpp_args = ['-v']
https://bugs.winehq.org/show_bug.cgi?id=50996
--- Comment #17 from Jacek Caban jacek@codeweavers.com --- You could also try if something like following command reproduces the problem: echo '#include <cstdlib>' |wineg++ -c -xc++ -o /tmp/test.o - -v
https://bugs.winehq.org/show_bug.cgi?id=50996
--- Comment #18 from Patrick patrick+winehq.org@laimbock.com --- (In reply to Jacek Caban from comment #14)
Please use full failing command with additional '-v'. Using the command from comment 1, it would be something like:
wineg++ -Ilibvst3_base_wine_64bit.a.p -I. -I.. -I/usr/include -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -std=c++2a -O3 -fPIC -isystem../subprojects/vst3 -isystemsubprojects/vst3 -DRELEASE=1 -DNOMINMAX -DWINE_NOWINSOCK -m64 -Wno-cpp -MD -MQ libvst3_base_wine_64bit.a.p/subprojects_vst3_base_source_fbuffer.cpp.o -MF libvst3_base_wine_64bit.a.p/subprojects_vst3_base_source_fbuffer.cpp.o.d -o libvst3_base_wine_64bit.a.p/subprojects_vst3_base_source_fbuffer.cpp.o -c ../subprojects/vst3/base/source/fbuffer.cpp -v
This time with '-v':
[41/490] wineg++ -Ilibvst3_base_wine_64bit.a.p -I. -I.. -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -std=c++2a -O3 -v -fPIC -isystem../subprojects/vst3 -isystemsubprojects/vst3 -DRELEASE=1 -DNOMINMAX -DWINE_NOWINSOCK -m64 -Wno-cpp -MD -MQ libvst3_base_wine_64bit.a.p/subprojects_vst3_base_source_fbuffer.cpp.o -MF libvst3_base_wine_64bit.a.p/subprojects_vst3_base_source_fbuffer.cpp.o.d -o libvst3_base_wine_64bit.a.p/subprojects_vst3_base_source_fbuffer.cpp.o -c ../subprojects/vst3/base/source/fbuffer.cpp FAILED: libvst3_base_wine_64bit.a.p/subprojects_vst3_base_source_fbuffer.cpp.o wineg++ -Ilibvst3_base_wine_64bit.a.p -I. -I.. -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -std=c++2a -O3 -v -fPIC -isystem../subprojects/vst3 -isystemsubprojects/vst3 -DRELEASE=1 -DNOMINMAX -DWINE_NOWINSOCK -m64 -Wno-cpp -MD -MQ libvst3_base_wine_64bit.a.p/subprojects_vst3_base_source_fbuffer.cpp.o -MF libvst3_base_wine_64bit.a.p/subprojects_vst3_base_source_fbuffer.cpp.o.d -o libvst3_base_wine_64bit.a.p/subprojects_vst3_base_source_fbuffer.cpp.o -c ../subprojects/vst3/base/source/fbuffer.cpp Using built-in specs. COLLECT_GCC=/usr/bin/g++ OFFLOAD_TARGET_NAMES=nvptx-none OFFLOAD_TARGET_DEFAULT=1 Target: x86_64-redhat-linux Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,fortran,objc,obj-c++,ada,go,d,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --with-isl=/builddir/build/BUILD/gcc-11.0.1-20210324/obj-x86_64-redhat-linux/isl-install --enable-offload-targets=nvptx-none --without-cuda-driver --enable-gnu-indirect-function --enable-cet --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 11.0.1 20210324 (Red Hat 11.0.1-0) (GCC) COLLECT_GCC_OPTIONS='-fdiagnostics-color=always' '-fshort-wchar' '-D' 'WINE_UNICODE_NATIVE' '-D' '_REENTRANT' '-D' 'WIN64' '-D' '_WIN64' '-D' '__WIN64' '-D' '__WIN64__' '-D' 'WIN32' '-D' '_WIN32' '-D' '__WIN32' '-D' '__WIN32__' '-D' '__WINNT' '-D' '__WINNT__' '-D' '__stdcall=__attribute__((ms_abi))' '-D' '__cdecl=__stdcall' '-D' '__fastcall=__stdcall' '-D' '_stdcall=__stdcall' '-D' '_cdecl=__cdecl' '-D' '_fastcall=__fastcall' '-D' '__declspec(x)=__declspec_##x' '-D' '__declspec_align(x)=__attribute__((aligned(x)))' '-D' '__declspec_allocate(x)=__attribute__((section(x)))' '-D' '__declspec_deprecated=__attribute__((deprecated))' '-D' '__declspec_dllimport=__attribute__((dllimport))' '-D' '__declspec_dllexport=__attribute__((dllexport))' '-D' '__declspec_naked=__attribute__((naked))' '-D' '__declspec_noinline=__attribute__((noinline))' '-D' '__declspec_noreturn=__attribute__((noreturn))' '-D' '__declspec_nothrow=__attribute__((nothrow))' '-D' '__declspec_novtable=__attribute__(())' '-D' '__declspec_selectany=__attribute__((weak))' '-D' '__declspec_thread=__thread' '-D' '__int8=char' '-D' '__int16=short' '-D' '__int32=int' '-D' '__int64=long' '-D' '__WINE__' '-c' '-o' 'libvst3_base_wine_64bit.a.p/subprojects_vst3_base_source_fbuffer.cpp.o' '-I' 'libvst3_base_wine_64bit.a.p' '-I' '.' '-I' '..' '-pipe' '-D' '_FILE_OFFSET_BITS=64' '-std=c++20' '-O3' '-v' '-fPIC' '-isystem' '../subprojects/vst3' '-isystem' 'subprojects/vst3' '-D' 'RELEASE=1' '-D' 'NOMINMAX' '-D' 'WINE_NOWINSOCK' '-m64' '-Wno-cpp' '-MD' '-MQ' 'libvst3_base_wine_64bit.a.p/subprojects_vst3_base_source_fbuffer.cpp.o' '-MF' 'libvst3_base_wine_64bit.a.p/subprojects_vst3_base_source_fbuffer.cpp.o.d' '-isystem' '/usr/bin/../include/wine/windows' '-isystem' '/usr/include/wine/windows' '-isystem' '/usr/local/include/wine/windows' '-isystem' '/usr/bin/../include' '-idirafter' '/usr/include' '-idirafter' '/usr/local/include' '-shared-libgcc' '-mtune=generic' '-march=x86-64' '-dumpdir' 'libvst3_base_wine_64bit.a.p/' /usr/libexec/gcc/x86_64-redhat-linux/11/cc1plus -quiet -v -I libvst3_base_wine_64bit.a.p -I . -I .. -MD libvst3_base_wine_64bit.a.p/subprojects_vst3_base_source_fbuffer.cpp.d -MF libvst3_base_wine_64bit.a.p/subprojects_vst3_base_source_fbuffer.cpp.o.d -MQ libvst3_base_wine_64bit.a.p/subprojects_vst3_base_source_fbuffer.cpp.o -D_GNU_SOURCE -D WINE_UNICODE_NATIVE -D _REENTRANT -D WIN64 -D _WIN64 -D __WIN64 -D __WIN64__ -D WIN32 -D _WIN32 -D __WIN32 -D __WIN32__ -D __WINNT -D __WINNT__ -D __stdcall=__attribute__((ms_abi)) -D __cdecl=__stdcall -D __fastcall=__stdcall -D _stdcall=__stdcall -D _cdecl=__cdecl -D _fastcall=__fastcall -D __declspec(x)=__declspec_##x -D __declspec_align(x)=__attribute__((aligned(x))) -D __declspec_allocate(x)=__attribute__((section(x))) -D __declspec_deprecated=__attribute__((deprecated)) -D __declspec_dllimport=__attribute__((dllimport)) -D __declspec_dllexport=__attribute__((dllexport)) -D __declspec_naked=__attribute__((naked)) -D __declspec_noinline=__attribute__((noinline)) -D __declspec_noreturn=__attribute__((noreturn)) -D __declspec_nothrow=__attribute__((nothrow)) -D __declspec_novtable=__attribute__(()) -D __declspec_selectany=__attribute__((weak)) -D __declspec_thread=__thread -D __int8=char -D __int16=short -D __int32=int -D __int64=long -D __WINE__ -D _FILE_OFFSET_BITS=64 -D RELEASE=1 -D NOMINMAX -D WINE_NOWINSOCK -isystem ../subprojects/vst3 -isystem subprojects/vst3 -isystem /usr/bin/../include/wine/windows -isystem /usr/include/wine/windows -isystem /usr/local/include/wine/windows -isystem /usr/bin/../include -idirafter /usr/include -idirafter /usr/local/include ../subprojects/vst3/base/source/fbuffer.cpp -quiet -dumpdir libvst3_base_wine_64bit.a.p/ -dumpbase subprojects_vst3_base_source_fbuffer.cpp.cpp -dumpbase-ext .cpp -m64 -mtune=generic -march=x86-64 -O3 -Wno-cpp -std=c++20 -version -fdiagnostics-color=always -fshort-wchar -fPIC -o - | as -v -I libvst3_base_wine_64bit.a.p -I . -I .. --64 -o libvst3_base_wine_64bit.a.p/subprojects_vst3_base_source_fbuffer.cpp.o GNU C++20 (GCC) version 11.0.1 20210324 (Red Hat 11.0.1-0) (x86_64-redhat-linux) compiled by GNU C version 11.0.1 20210324 (Red Hat 11.0.1-0), GMP version 6.2.0, MPFR version 4.1.0-p9, MPC version 1.2.1, isl version isl-0.18-GMP
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 ignoring duplicate directory "/usr/include/wine/windows" ignoring nonexistent directory "/usr/local/include/wine/windows" ignoring nonexistent directory "/usr/lib/gcc/x86_64-redhat-linux/11/include-fixed" ignoring nonexistent directory "/usr/lib/gcc/x86_64-redhat-linux/11/../../../../x86_64-redhat-linux/include" ignoring duplicate directory "/usr/include" ignoring duplicate directory "/usr/include" ignoring duplicate directory "/usr/local/include" #include "..." search starts here: #include <...> search starts here: libvst3_base_wine_64bit.a.p . .. ../subprojects/vst3 subprojects/vst3 /usr/bin/../include/wine/windows /usr/bin/../include /usr/lib/gcc/x86_64-redhat-linux/11/../../../../include/c++/11
/usr/lib/gcc/x86_64-redhat-linux/11/../../../../include/c++/11/x86_64-redhat-linux /usr/lib/gcc/x86_64-redhat-linux/11/../../../../include/c++/11/backward /usr/lib/gcc/x86_64-redhat-linux/11/include /usr/local/include End of search list. GNU C++20 (GCC) version 11.0.1 20210324 (Red Hat 11.0.1-0) (x86_64-redhat-linux) compiled by GNU C version 11.0.1 20210324 (Red Hat 11.0.1-0), GMP version 6.2.0, MPFR version 4.1.0-p9, MPC version 1.2.1, isl version isl-0.18-GMP
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 Compiler executable checksum: 01a409437dec5babdefb90791aacbce0 GNU assembler version 2.35.1 (x86_64-redhat-linux) using BFD version version 2.35.1-41.fc34 In file included from ../subprojects/vst3/base/source/fbuffer.cpp:40: /usr/include/c++/11/cstdlib:75:15: fatal error: stdlib.h: No such file or directory 75 | #include_next <stdlib.h> | ^~~~~~~~~~ compilation terminated. winegcc: /usr/bin/g++ failed /usr/bin/g++ -m64 -m64 -fshort-wchar -DWINE_UNICODE_NATIVE -D_REENTRANT -fPIC -DWIN64 -D_WIN64 -D__WIN64 -D__WIN64__ -DWIN32 -D_WIN32 -D__WIN32 -D__WIN32__ -D__WINNT -D__WINNT__ -D__stdcall=__attribute__((ms_abi)) -D__cdecl=__stdcall -D__fastcall=__stdcall -D_stdcall=__stdcall -D_cdecl=__cdecl -D_fastcall=__fastcall -D__declspec(x)=__declspec_##x -D__declspec_align(x)=__attribute__((aligned(x))) -D__declspec_allocate(x)=__attribute__((section(x))) -D__declspec_deprecated=__attribute__((deprecated)) -D__declspec_dllimport=__attribute__((dllimport)) -D__declspec_dllexport=__attribute__((dllexport)) -D__declspec_naked=__attribute__((naked)) -D__declspec_noinline=__attribute__((noinline)) -D__declspec_noreturn=__attribute__((noreturn)) -D__declspec_nothrow=__attribute__((nothrow)) -D__declspec_novtable=__attribute__(()) -D__declspec_selectany=__attribute__((weak)) -D__declspec_thread=__thread -D__int8=char -D__int16=short -D__int32=int -D__int64=long -D__WINE__ -c -o libvst3_base_wine_64bit.a.p/subprojects_vst3_base_source_fbuffer.cpp.o -Ilibvst3_base_wine_64bit.a.p -I. -I.. -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -std=c++2a -O3 -v -fPIC -isystem../subprojects/vst3 -isystemsubprojects/vst3 -DRELEASE=1 -DNOMINMAX -DWINE_NOWINSOCK -m64 -Wno-cpp -MD -MQ libvst3_base_wine_64bit.a.p/subprojects_vst3_base_source_fbuffer.cpp.o -MF libvst3_base_wine_64bit.a.p/subprojects_vst3_base_source_fbuffer.cpp.o.d ../subprojects/vst3/base/source/fbuffer.cpp -isystem/usr/bin/../include/wine/windows -isystem/usr/include/wine/windows -isystem/usr/local/include/wine/windows -isystem/usr/bin/../include -idirafter/usr/include -idirafter/usr/local/include
https://bugs.winehq.org/show_bug.cgi?id=50996
--- Comment #19 from Patrick patrick+winehq.org@laimbock.com --- (In reply to Jacek Caban from comment #17)
You could also try if something like following command reproduces the problem: echo '#include <cstdlib>' |wineg++ -c -xc++ -o /tmp/test.o - -v
It does reproduce the problem. Output:
$ echo '#include <cstdlib>' |wineg++ -c -xc++ -o /tmp/test.o - -v /usr/bin/g++ -m64 -fshort-wchar -DWINE_UNICODE_NATIVE -D_REENTRANT -fPIC -DWIN64 -D_WIN64 -D__WIN64 -D__WIN64__ -DWIN32 -D_WIN32 -D__WIN32 -D__WIN32__ -D__WINNT -D__WINNT__ -D__stdcall=__attribute__((ms_abi)) -D__cdecl=__stdcall -D__fastcall=__stdcall -D_stdcall=__stdcall -D_cdecl=__cdecl -D_fastcall=__fastcall -D__declspec(x)=__declspec_##x -D__declspec_align(x)=__attribute__((aligned(x))) -D__declspec_allocate(x)=__attribute__((section(x))) -D__declspec_deprecated=__attribute__((deprecated)) -D__declspec_dllimport=__attribute__((dllimport)) -D__declspec_dllexport=__attribute__((dllexport)) -D__declspec_naked=__attribute__((naked)) -D__declspec_noinline=__attribute__((noinline)) -D__declspec_noreturn=__attribute__((noreturn)) -D__declspec_nothrow=__attribute__((nothrow)) -D__declspec_novtable=__attribute__(()) -D__declspec_selectany=__attribute__((weak)) -D__declspec_thread=__thread -D__int8=char -D__int16=short -D__int32=int -D__int64=long -D__WINE__ -c -o /tmp/test.o -v -xc++ - -isystem/usr/bin/../include/wine/windows -isystem/usr/include/wine/windows -isystem/usr/local/include/wine/windows -isystem/usr/bin/../include -idirafter/usr/include -idirafter/usr/local/include Using built-in specs. COLLECT_GCC=/usr/bin/g++ OFFLOAD_TARGET_NAMES=nvptx-none OFFLOAD_TARGET_DEFAULT=1 Target: x86_64-redhat-linux Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,fortran,objc,obj-c++,ada,go,d,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --with-isl=/builddir/build/BUILD/gcc-11.0.1-20210405/obj-x86_64-redhat-linux/isl-install --enable-offload-targets=nvptx-none --without-cuda-driver --enable-gnu-indirect-function --enable-cet --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 11.0.1 20210405 (Red Hat 11.0.1-0) (GCC) COLLECT_GCC_OPTIONS='-m64' '-fshort-wchar' '-D' 'WINE_UNICODE_NATIVE' '-D' '_REENTRANT' '-fPIC' '-D' 'WIN64' '-D' '_WIN64' '-D' '__WIN64' '-D' '__WIN64__' '-D' 'WIN32' '-D' '_WIN32' '-D' '__WIN32' '-D' '__WIN32__' '-D' '__WINNT' '-D' '__WINNT__' '-D' '__stdcall=__attribute__((ms_abi))' '-D' '__cdecl=__stdcall' '-D' '__fastcall=__stdcall' '-D' '_stdcall=__stdcall' '-D' '_cdecl=__cdecl' '-D' '_fastcall=__fastcall' '-D' '__declspec(x)=__declspec_##x' '-D' '__declspec_align(x)=__attribute__((aligned(x)))' '-D' '__declspec_allocate(x)=__attribute__((section(x)))' '-D' '__declspec_deprecated=__attribute__((deprecated))' '-D' '__declspec_dllimport=__attribute__((dllimport))' '-D' '__declspec_dllexport=__attribute__((dllexport))' '-D' '__declspec_naked=__attribute__((naked))' '-D' '__declspec_noinline=__attribute__((noinline))' '-D' '__declspec_noreturn=__attribute__((noreturn))' '-D' '__declspec_nothrow=__attribute__((nothrow))' '-D' '__declspec_novtable=__attribute__(())' '-D' '__declspec_selectany=__attribute__((weak))' '-D' '__declspec_thread=__thread' '-D' '__int8=char' '-D' '__int16=short' '-D' '__int32=int' '-D' '__int64=long' '-D' '__WINE__' '-c' '-o' '/tmp/test.o' '-v' '-isystem' '/usr/bin/../include/wine/windows' '-isystem' '/usr/include/wine/windows' '-isystem' '/usr/local/include/wine/windows' '-isystem' '/usr/bin/../include' '-idirafter' '/usr/include' '-idirafter' '/usr/local/include' '-shared-libgcc' '-mtune=generic' '-march=x86-64' '-dumpdir' '/tmp/' /usr/libexec/gcc/x86_64-redhat-linux/11/cc1plus -quiet -v -D_GNU_SOURCE -D WINE_UNICODE_NATIVE -D _REENTRANT -D WIN64 -D _WIN64 -D __WIN64 -D __WIN64__ -D WIN32 -D _WIN32 -D __WIN32 -D __WIN32__ -D __WINNT -D __WINNT__ -D __stdcall=__attribute__((ms_abi)) -D __cdecl=__stdcall -D __fastcall=__stdcall -D _stdcall=__stdcall -D _cdecl=__cdecl -D _fastcall=__fastcall -D __declspec(x)=__declspec_##x -D __declspec_align(x)=__attribute__((aligned(x))) -D __declspec_allocate(x)=__attribute__((section(x))) -D __declspec_deprecated=__attribute__((deprecated)) -D __declspec_dllimport=__attribute__((dllimport)) -D __declspec_dllexport=__attribute__((dllexport)) -D __declspec_naked=__attribute__((naked)) -D __declspec_noinline=__attribute__((noinline)) -D __declspec_noreturn=__attribute__((noreturn)) -D __declspec_nothrow=__attribute__((nothrow)) -D __declspec_novtable=__attribute__(()) -D __declspec_selectany=__attribute__((weak)) -D __declspec_thread=__thread -D __int8=char -D __int16=short -D __int32=int -D __int64=long -D __WINE__ -isystem /usr/bin/../include/wine/windows -isystem /usr/include/wine/windows -isystem /usr/local/include/wine/windows -isystem /usr/bin/../include -idirafter /usr/include -idirafter /usr/local/include - -quiet -dumpdir /tmp/ -dumpbase test -m64 -mtune=generic -march=x86-64 -version -fshort-wchar -fPIC -o /tmp/cc5objL4.s GNU C++17 (GCC) version 11.0.1 20210405 (Red Hat 11.0.1-0) (x86_64-redhat-linux) compiled by GNU C version 11.0.1 20210405 (Red Hat 11.0.1-0), GMP version 6.2.0, MPFR version 4.1.0-p9, MPC version 1.2.1, isl version isl-0.18-GMP
warning: MPFR header version 4.1.0-p9 differs from library version 4.1.0-p11. GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 ignoring duplicate directory "/usr/include/wine/windows" ignoring nonexistent directory "/usr/local/include/wine/windows" ignoring nonexistent directory "/usr/lib/gcc/x86_64-redhat-linux/11/include-fixed" ignoring nonexistent directory "/usr/lib/gcc/x86_64-redhat-linux/11/../../../../x86_64-redhat-linux/include" ignoring duplicate directory "/usr/include" ignoring duplicate directory "/usr/include" ignoring duplicate directory "/usr/local/include" #include "..." search starts here: #include <...> search starts here: /usr/bin/../include/wine/windows /usr/bin/../include /usr/lib/gcc/x86_64-redhat-linux/11/../../../../include/c++/11
/usr/lib/gcc/x86_64-redhat-linux/11/../../../../include/c++/11/x86_64-redhat-linux /usr/lib/gcc/x86_64-redhat-linux/11/../../../../include/c++/11/backward /usr/lib/gcc/x86_64-redhat-linux/11/include /usr/local/include End of search list. GNU C++17 (GCC) version 11.0.1 20210405 (Red Hat 11.0.1-0) (x86_64-redhat-linux) compiled by GNU C version 11.0.1 20210405 (Red Hat 11.0.1-0), GMP version 6.2.0, MPFR version 4.1.0-p9, MPC version 1.2.1, isl version isl-0.18-GMP
warning: MPFR header version 4.1.0-p9 differs from library version 4.1.0-p11. GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 Compiler executable checksum: 4f3028bfea29b99091114eff5870fb8a In file included from <stdin>:1: /usr/include/c++/11/cstdlib:75:15: fatal error: stdlib.h: No such file or directory 75 | #include_next <stdlib.h> | ^~~~~~~~~~ compilation terminated. winegcc: /usr/bin/g++ failed
https://bugs.winehq.org/show_bug.cgi?id=50996
Jacek Caban jacek@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #69883|0 |1 is obsolete| |
--- Comment #20 from Jacek Caban jacek@codeweavers.com --- Created attachment 69889 --> https://bugs.winehq.org/attachment.cgi?id=69889 fix
I see, we may need to use idirafter in one more place. Please try this version.
https://bugs.winehq.org/show_bug.cgi?id=50996
--- Comment #21 from Patrick patrick+winehq.org@laimbock.com --- That fix works for me as yabridge built without any issues. Thanks Jacek!
https://bugs.winehq.org/show_bug.cgi?id=50996
--- Comment #22 from Dave Plater davejplater@gmail.com --- Thanks for the fix, can confirm that carla and lmms's wine components now build correctly in openSUSE and wine patched with the supplied patch is on it's way to Factory
https://bugs.winehq.org/show_bug.cgi?id=50996
Jacek Caban jacek@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|UNCONFIRMED |RESOLVED Fixed by SHA1| |5a1d836def24043b4e7afcdc8cf | |1342223957edf
--- Comment #23 from Jacek Caban jacek@codeweavers.com --- Fixed in git: https://source.winehq.org/git/wine.git/commitdiff/5a1d836def24043b4e7afcdc8c...
Thanks for the report and testing.
https://bugs.winehq.org/show_bug.cgi?id=50996
Jacek Caban jacek@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |tools
https://bugs.winehq.org/show_bug.cgi?id=50996
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #24 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 6.7.