Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'wbnoinvdintrin.h' file not found when using @cImport #1634

Closed
DEC05EBA opened this Issue Oct 4, 2018 · 3 comments

Comments

Projects
None yet
2 participants
@DEC05EBA
Copy link

commented Oct 4, 2018

System: Arch Linux
Zig version: 0.3.0 and master build from zig download page

Building and running https://github.com/andrewrk/sdl-zig-demo with zig build run results in error:

/home/dec05eba/git/sdl-zig-demo/src/main.zig:1:11: error: C import failed
const c = @cImport({
          ^
/usr/lib/zig/include/immintrin.h:351:10: note: 'wbnoinvdintrin.h' file not found
#include <wbnoinvdintrin.h>
         ^

I was able to build and run the project with master branch build sometime before 0.3.0 was released

@DEC05EBA

This comment has been minimized.

Copy link
Author

commented Oct 4, 2018

These are the header files that are missing from zig/include directory in the linux zig 0.3.0 static release archive on zig download page:

wbnoinvdintrin.h
cldemoteintrin.h
waitpkgintrin.h
movdirintrin.h
pconfigintrin.h
sgxintrin.h
ptwriteintrin.h
invpcidintrin.h
__clang_cuda_libdevice_declares.h
__clang_cuda_device_functions.h
arm_fp16.h

After copying the files from zig source code (master branch) to zig/include directory, the zig sdl demo builds and runs.

@andrewrk andrewrk added this to the 0.4.0 milestone Oct 4, 2018

@andrewrk andrewrk added the bug label Oct 4, 2018

@andrewrk

This comment has been minimized.

Copy link
Member

commented Oct 4, 2018

Looks like I forgot to add the necessary CMakeLists.txt changes.

@andrewrk andrewrk closed this in d07413f Oct 4, 2018

@andrewrk

This comment has been minimized.

Copy link
Member

commented Oct 4, 2018

Sorry for the trouble. The next static CI builds will have this fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.