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

fatal error: uio.h: No such file or directory #62

Open
topazus opened this issue May 28, 2023 · 1 comment
Open

fatal error: uio.h: No such file or directory #62

topazus opened this issue May 28, 2023 · 1 comment

Comments

@topazus
Copy link

topazus commented May 28, 2023

What library provides the uio.h header file?

[ruby@fedora ffs-909fac816d959a0c48fa33a9373e96eaf56f21ca]$ cmake --build build/ -j20
[  2%] Built target docs
[ 32%] Built target ffs
[ 40%] Built target format_cmd
[ 40%] Built target format_dump
[ 40%] Built target format_server
[ 43%] Built target format_info
[ 46%] Built target compat_test
[ 48%] Building C object ffs/tests/CMakeFiles/context_test.dir/context_test.c.o
[ 53%] Built target align_test
[ 60%] Built target scale_test
[ 60%] Built target FFSdump
[ 61%] Built target format_test
[ 65%] Built target self_format_test
[ 68%] Built target get_set_test
[ 73%] Built target FFSsort
[ 73%] Built target adios2_bug
[ 79%] Built target fortran_test
[ 83%] Built target context_test2
[ 83%] Built target FFScp
[ 87%] Built target ffs_index_test
[ 90%] Built target ffs_write
[ 93%] Built target ffs_file_test
[ 97%] Built target test_file_unique
/home/ruby/rpmbuild/SOURCES/ffs-909fac816d959a0c48fa33a9373e96eaf56f21ca/ffs/tests/context_test.c:12:10: fatal error: uio.h: No such file or directory
   12 | #include <uio.h>
      |          ^~~~~~~
compilation terminated.
gmake[2]: *** [ffs/tests/CMakeFiles/context_test.dir/build.make:76: ffs/tests/CMakeFiles/context_test.dir/context_test.c.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:1411: ffs/tests/CMakeFiles/context_test.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2
@eisenhauer
Copy link
Member

Hi. uio.h is a POSIX system file, cononically sys/uio.h, but include/sys is also searched by many compilers so uio.h tends to work. I'm working on a PR to FFS that will enable builds on windows and which fixes this and many other issues. I should be merging that soon, but if you don't want to wait you can simply change this line to include sys/uio.h rather than simply uio.h.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants