Skip to content

Instantly share code, notes, and snippets.

@infinisil
Created July 20, 2018 21:40
Show Gist options
  • Save infinisil/022d514fa2f8cd3c88a98d021f12da54 to your computer and use it in GitHub Desktop.
Save infinisil/022d514fa2f8cd3c88a98d021f12da54 to your computer and use it in GitHub Desktop.
gcc failed with code 1:
HARDENING: disabled flags: fortify stackprotector strictoverflow format pic pie
extra flags before to /nix/store/bkl2zbbvhq8ykn7536gi5y17q2sb0wnd-gcc-7.3.0/bin/gcc:
-Wl\,-dynamic-linker
-Wl\,/nix/store/l0adcz8y05vajfi483a7qv31i03rspqq-glibc-2.27/lib/ld-linux-x86-64.so.2
original flags to /nix/store/bkl2zbbvhq8ykn7536gi5y17q2sb0wnd-gcc-7.3.0/bin/gcc:
test.c
-O3
-std=c99
-lm
-o
test
-lOpenCL
extra flags after to /nix/store/bkl2zbbvhq8ykn7536gi5y17q2sb0wnd-gcc-7.3.0/bin/gcc:
-B/nix/store/i5znwsdi9yybfydd1kbdrsq5s4phjm93-gcc-7.3.0-lib/lib
-B/nix/store/l0adcz8y05vajfi483a7qv31i03rspqq-glibc-2.27/lib/
-idirafter
/nix/store/q9d0m57yy26ih2sn1xpjs22q4y2039kw-glibc-2.27-dev/include
-idirafter
/nix/store/bkl2zbbvhq8ykn7536gi5y17q2sb0wnd-gcc-7.3.0/lib/gcc/x86_64-unknown-linux-gnu/7.3.0/include-fixed
-B/nix/store/38picpf5cl6d7lj38h8191vmxlxjbgq3-gcc-wrapper-7.3.0/bin/
-L/nix/store/l0adcz8y05vajfi483a7qv31i03rspqq-glibc-2.27/lib
-L/nix/store/i5znwsdi9yybfydd1kbdrsq5s4phjm93-gcc-7.3.0-lib/lib
test.c:1290:12: fatal error: CL/cl.h: No such file or directory
#include <CL/cl.h>
^~~~~~~~~
compilation terminated.
If you find this error message confusing, uninformative, or wrong, please open an issue at https://github.com/diku-dk/futhark/issues.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment