-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
-Dtests=true fails to build on BSDs due to -I= instead of -I or -isystem #66
Comments
Note, on FreeBSD cross-compilation is often done via poudriere (as used by official package builders) which already isolates host from target. I don't have/use Linux, so don't understand "host leakage" being fixed by d0cf159. |
Generally, |
The man page entry for
I can see how it's hard to find because the string Could it be that the sysroot of your environment is set to an unexpected value? |
I don't use sysroot. $ cat a.c
#include <libdrm/drm_fourcc.h>
int main() {}
$ cc -I=/usr/local/include a.c
a.c:1:10: fatal error: 'libdrm/drm_fourcc.h' file not found
#include <libdrm/drm_fourcc.h>
^~~~~~~~~~~~~~~~~~~~~
1 error generated. If Meson is run with
However, when building without tests something else (e.g., |
Hmm, I had assumed that if gcc wasn't built with sysroot, the = would be replaced with an empty string. That's probably not the case. If you set |
Makes |
If you need to get libdrm flags from pkg-config without overriding search order try using |
I think this might be the solution: https://mesonbuild.com/Reference-manual_returned_dep.html#deppartial_dependency |
I pushed a |
Not yet due to missing FAILED: test/pixels.p/test-pixels.c.o
cc -Itest/pixels.p -Itest -Itest -Iinclude -I/usr/local/include/pixman-1 -fcolor-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=gnu11 -O0 -g '-DPROJECT_VERSION="0.5.0"' -D_GNU_SOURCE -fvisibility=hidden -Wmissing-prototypes '-DGIT_VERSION="v0.5.0-2-gf4f8f0b (master)"' -MD -MQ test/pixels.p/test-pixels.c.o -MF test/pixels.p/test-pixels.c.o.d -o test/pixels.p/test-pixels.c.o -c test/test-pixels.c
test/test-pixels.c:8:10: fatal error: 'libdrm/drm_fourcc.h' file not found
#include <libdrm/drm_fourcc.h>
^~~~~~~~~~~~~~~~~~~~~
1 error generated.
FAILED: test/pixels.p/.._src_pixels.c.o
cc -Itest/pixels.p -Itest -Itest -Iinclude -I/usr/local/include/pixman-1 -fcolor-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=gnu11 -O0 -g '-DPROJECT_VERSION="0.5.0"' -D_GNU_SOURCE -fvisi
bility=hidden -Wmissing-prototypes '-DGIT_VERSION="v0.5.0-2-gf4f8f0b (master)"' -MD -MQ test/pixels.p/.._src_pixels.c.o -MF test/pixels.p/.._src_pixels.c.o.d -o test/pixels.p/.._src_pixels.c.o -c src/pixels.c
src/pixels.c:21:10: fatal error: 'libdrm/drm_fourcc.h' file not found
#include <libdrm/drm_fourcc.h>
^~~~~~~~~~~~~~~~~~~~~
1 error generated. |
Ahh, that was a bit hasty of me. Fixed now. |
Builds fine now, so packaged. |
Thanks! |
Regressed by d0cf159. Doesn't affect
-Dtests=false
(default) builds.The text was updated successfully, but these errors were encountered: