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

[build] mini_al fails to compile on macOS El Capitan CI (CLOCK_MONOTONIC undefined) #475

Closed
a3f opened this issue Feb 20, 2018 · 3 comments
Labels
platform: macOS macOS platform

Comments

@a3f
Copy link
Contributor

a3f commented Feb 20, 2018

homebrew's jenkins CI reported breakage on macOS El Capitan with v.1.9.4-dev (works for me though, but on High Sierra):

https://jenkins.brew.sh/job/Homebrew%20Core%20Pull%20Requests/18901/version=el_capitan/testReport/brew-test-bot/el_capitan/install_raylib/

[ 79%] Building C object release/CMakeFiles/raylib.dir/external/mini_al.c.o
cd /tmp/raylib-20180220-6462-ihgvj8/raylib-1.9.4-dev/release && /usr/local/Homebrew/Library/Homebrew/shims/super/clang -DGRAPHICS_API_OPENGL_33 -DPLATFORM_DESKTOP -I/tmp/raylib-20180220-6462-ihgvj8/raylib-1.9.4-dev/src/external/glfw/include  -Werror=implicit-function-declaration -Werror=pointer-arith  -DNDEBUG -fPIC   -std=gnu99 -o CMakeFiles/raylib.dir/external/mini_al.c.o   -c /tmp/raylib-20180220-6462-ihgvj8/raylib-1.9.4-dev/src/external/mini_al.c
In file included from /tmp/raylib-20180220-6462-ihgvj8/raylib-1.9.4-dev/src/external/mini_al.c:4:
/tmp/raylib-20180220-6462-ihgvj8/raylib-1.9.4-dev/src/external/mini_al.h:2084:19: error: use of undeclared identifier 'CLOCK_MONOTONIC'
    clock_gettime(CLOCK_MONOTONIC, &newTime);
                  ^
/tmp/raylib-20180220-6462-ihgvj8/raylib-1.9.4-dev/src/external/mini_al.h:2092:19: error: use of undeclared identifier 'CLOCK_MONOTONIC'
    clock_gettime(CLOCK_MONOTONIC, &newTime);
                  ^
2 errors generated.
@a3f a3f changed the title [build] mini_al fails to compile on El Capitan CI (CLOCK_MONOTONIC undefined) [build] mini_al fails to compile on macOS El Capitan CI (CLOCK_MONOTONIC undefined) Feb 20, 2018
@raysan5 raysan5 added the platform: macOS macOS platform label Feb 20, 2018
@raysan5
Copy link
Owner

raysan5 commented Feb 20, 2018

Reviewed on commit 11612fc

Waiting for testing.

@a3f
Copy link
Contributor Author

a3f commented Feb 20, 2018

Builds and audio_module_playing works in both configurations (mach and POSIX clock API).

@raysan5
Copy link
Owner

raysan5 commented Feb 20, 2018

That's great @a3f! I'm sending update to mini_al.

@raysan5 raysan5 closed this as completed Feb 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: macOS macOS platform
Projects
None yet
Development

No branches or pull requests

2 participants