Skip to content

Instantly share code, notes, and snippets.

@nkaretnikov
Created February 6, 2016 23:47
Show Gist options
  • Save nkaretnikov/367e0c7c4e7c8135d229 to your computer and use it in GitHub Desktop.
Save nkaretnikov/367e0c7c4e7c8135d229 to your computer and use it in GitHub Desktop.
Unistd.hsc errors
Unistd.hsc: In function '_hsc2hs_test13':
Unistd.hsc:87:39: error: invalid application of 'sizeof' to incomplete type 'struct utsname'
Unistd.hsc:87:20: warning: unused variable 'test_array' [-Wunused-variable]
In file included from /home/nikita/x86_64/x86_64-elf/include/sys/unistd.h:14:0,
from /home/nikita/x86_64/x86_64-elf/include/unistd.h:4,
from libraries/unix/include/HsUnix.h:51,
from Unistd.hsc:59:
Unistd.hsc: In function '_hsc2hs_test15':
Unistd.hsc:89:48: error: invalid use of undefined type 'struct utsname'
Unistd.hsc:89:20: warning: unused variable 'test_array' [-Wunused-variable]
In file included from /home/nikita/x86_64/x86_64-elf/include/sys/unistd.h:14:0,
from /home/nikita/x86_64/x86_64-elf/include/unistd.h:4,
from libraries/unix/include/HsUnix.h:51,
from Unistd.hsc:59:
Unistd.hsc: In function '_hsc2hs_test17':
Unistd.hsc:90:48: error: invalid use of undefined type 'struct utsname'
Unistd.hsc:90:20: warning: unused variable 'test_array' [-Wunused-variable]
In file included from /home/nikita/x86_64/x86_64-elf/include/sys/unistd.h:14:0,
from /home/nikita/x86_64/x86_64-elf/include/unistd.h:4,
from libraries/unix/include/HsUnix.h:51,
from Unistd.hsc:59:
Unistd.hsc: In function '_hsc2hs_test19':
Unistd.hsc:91:48: error: invalid use of undefined type 'struct utsname'
Unistd.hsc:91:20: warning: unused variable 'test_array' [-Wunused-variable]
In file included from /home/nikita/x86_64/x86_64-elf/include/sys/unistd.h:14:0,
from /home/nikita/x86_64/x86_64-elf/include/unistd.h:4,
from libraries/unix/include/HsUnix.h:51,
from Unistd.hsc:59:
Unistd.hsc: In function '_hsc2hs_test21':
Unistd.hsc:92:48: error: invalid use of undefined type 'struct utsname'
Unistd.hsc:92:20: warning: unused variable 'test_array' [-Wunused-variable]
In file included from /home/nikita/x86_64/x86_64-elf/include/sys/unistd.h:14:0,
from /home/nikita/x86_64/x86_64-elf/include/unistd.h:4,
from libraries/unix/include/HsUnix.h:51,
from Unistd.hsc:59:
Unistd.hsc: In function '_hsc2hs_test23':
Unistd.hsc:93:48: error: invalid use of undefined type 'struct utsname'
Unistd.hsc:93:20: warning: unused variable 'test_array' [-Wunused-variable]
compilation failed
make[1]: *** [libraries/unix/dist-install/build/System/Posix/Unistd.hs] Error 1
libraries/unix/ghc.mk:4: recipe for target 'libraries/unix/dist-install/build/System/Posix/Unistd.hs' failed
make: *** [all] Error 2
Makefile:121: recipe for target 'all' failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment