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,
May I know that do you trying to open project which is created in a different version of Quartus(example if the project is created in sdt version and trying to open in pro version)?
May you try to open the project with an appropriate auto upgrade?(if all the IP are supported in the Quartus version, Project will be opened without and any error)
Thanks
- HKim277 years ago
Occasional Contributor
Hi, @MeiYanL_Intel .
I use OPAE included in Intel Acceleration Stack Version 1.2, so the project is created and compiled automatically with the following script.
afu_synth_setup --source hw/rtl/sources.txt --platform discrete_pcie3 build_synth cd build_synth $(OPAE_PLATFORM_ROOT)/bin/run.shSo I guess it is not version mismatch problem. (will be created and compiled in Quartus Prime Pro 17.1.1)
I opened the project with Quartus, and all IPs seem fine.