Forum Discussion
Quartus crash with "Internal Error: Sub-system: THR"
- 6 years ago
Hi, I actually solved the problem yesterday.
My compile system uses Lustre filesystem. The filesystem setup was a bit broken, and it was returning ENOSYS for fcntl(..., F_SETLK, ...) call.
After fixing the filesystem, compilation works perfectly.
Here is the script I used to debug:
#include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <stdlib.h> #include <stdio.h> #include <errno.h> int main() { int fd = open("a.txt", O_RDWR); if (fd == -1) { printf("open error (errno=%d)\n", errno); exit(1); } struct flock lock; lock.l_type = F_WRLCK; lock.l_whence = SEEK_SET; lock.l_start = 0; lock.l_len = 1; int ret = fcntl(fd, F_SETLK, &lock); if (ret == -1) { printf("fcntl error (errno=%d)\n", errno); exit(1); } printf("no error\n"); return 0; }If someone get "fcntl error (errno=38)", that's the problem.
Hi,
I found that the issues occurred on OPAE with Intel FPGA Basic Building Block. I am sorry that we have no support on this.
i have found that you can report the bugs on http://github.com/OPAE/intel-fpga-bbb/issues.
Thanks
Hi, @MeiYanL_Intel
How do you know the issues come from Intel FPGA BBB?
Because I should have some evidences that the issues come from Intel FPGA BBB, to report issues on their side :)
Thanks in advance.