fatal error: sys/_types.h: No such file or directory - compilation

When I compile Uranus (an SGX project that rewrites JDK), the following error occurs when I execute the make command
Compiling /home/uranus/hotspot/src/share/vm/gc_implementation/shared/ageTable.cpp
In file included from /home/uranus/hotspot/src/../enclave/panoply/include/struct/sgx_time_struct.h:4:0,
from /home/uranus/hotspot/src/../enclave/panoply/include/sgx/bits/resource.h:179,
from /home/uranus/hotspot/src/../enclave/panoply/include/sgx/sys/resource.h:24,
from /home/uranus/hotspot/src/../enclave/panoply/include/struct/sgx_sysresource_struct.h:1,
from /home/uranus/hotspot/src/share/vm/em/securecompiler_u.h:39,
from /home/uranus/hotspot/src/share/vm/em/CompilerEnclave.cpp:8:
/home/uranus/hotspot/src/../include/tlibc/time.h:45:24: fatal error: sys/_types.h: No such file or directory
compilation terminated.
/home/uranus/hotspot/make/linux/makefiles/rules.make:149: recipe for target 'CompilerEnclave.o' failed
make[6]: *** [CompilerEnclave.o] Error 1
make[6]: *** Waiting for unfinished jobs....
/home/uranus/hotspot/make/linux/makefiles/top.make:119: recipe for target 'the_vm' failed
make[5]: *** [the_vm] Error 2
/home/uranus/hotspot/make/linux/Makefile:284: recipe for target 'product' failed
make[4]: *** [product] Error 2
Makefile:230: recipe for target 'generic_build2' failed
make[3]: *** [generic_build2] Error 2
Makefile:177: recipe for target 'product' failed
make[2]: *** [product] Error 2
HotspotWrapper.gmk:44: recipe for target '/home/uranus/build/linux-x86_64-normal-server-release/hotspot/_hotspot.timestamp' failed
make[1]: *** [/home/uranus/build/linux-x86_64-normal-server-release/hotspot/_hotspot.timestamp] Error 2
/home/uranus//make/Main.gmk:109: recipe for target 'hotspot-only' failed
make: *** [hotspot-only] Error 2
This gives me a headache. Pay attention to the sys here/_ The types. h file is an underlined _. I can only find sys/types. h header file without underline
I have been troubled for a long time. I hope the question can be answered

Related

Cant Make Prepare in Kernel-LT on Centos 7.9

I am trying to merge code with the kernel and then compile, but when I run make prepare, I get the following error:
[root#localhost 5.4.231-1.el7.elrepo.x86_64]# make prepare
/usr/src/kernels/5.4.231-1.el7.elrepo.x86_64/Makefile:678: include/config/auto.conf.cmd: No such file or directory
scripts/kconfig/conf --syncconfig Kconfig
Kconfig:34: can't open file "Documentation/Kconfig"
make[3]: *** [syncconfig] Error 1
make[2]: *** [syncconfig] Error 2
make[1]: *** [include/config/auto.conf.cmd] Error 2
make: *** [sub-make] Error 2
[root#localhost 5.4.231-1.el7.elrepo.x86_64]#
I installed Kernel-LT-Devel and headers, and do not know what package I need to complete this requirement, and so I am stuck. Has anyone seen this error before?
Thanks

"No rule to make target" when compiling glib

I am currently trying to build a software. However during its compilation, it stops with the following error messages:
make[2]: *** No rule to make target `/glib-2.0/include/glibconfig.h', needed by `GLib-2.0.gir'. Stop.
make[2]: Leaving directory `/media/34GB/Arquivos-de-Programas-Linux/gobject-introspection-1.30.0'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/media/34GB/Arquivos-de-Programas-Linux/gobject-introspection-1.30.0'
make: *** [all] Error 2
...
I read a thread about a similar error message here: gcc makefile error: "No rule to make target ..." however, I was not able to use it on my case. All I can say is that the dir where glibconfig.h is found, shows here:
$(GLIB_LIBDIR)/glib-2.0/include/glibconfig.h
I guess I have to edit the Makefile and add something, but what? Not sure what .gir files are

trying to building on OSX but got "No rule to make target antlr4_static" error

trying to build on OSX, got the following antlr error. Need to install antlr-runtime?
[ 43%] Built target antlr4_runtime
[ 43%] Built target csv_infer
[ 45%] Performing build_static step for 'antlr4_runtime'
make[4]: *** No rule to make target `antlr4_static'. Stop.
make[3]: *** [antlr4_runtime/src/antlr4_runtime-stamp/antlr4_runtime-build_static] Error 2
make[2]: *** [CMakeFiles/antlr4_runtime-build_static.dir/all] Error 2
make[1]: *** [all] Error 2
make: *** [dev] Error 2
This has now been fixed.
CMake 3.14 changed where the ExternalProject module builds the source. It was unable to find ANTLR's own CMake files, necessitating a change to the WORKING_DIRECTORY.

Cannot install JModelica on Ububtu

I am following the installation procedure here.
I get the following error
find: ‘Assimulo’: No such file or directory
/bin/bash: line 3: cd: /home/akshay/Downloads/JModelica/build /Assimulo_build/Assimulo: No such file or directory
python: can't open file 'setup.py': [Errno 2] No such file or directory
Makefile:1006: recipe for target 'build-python-packages' failed
make[2]: *** [build-python-packages] Error 2
make[2]: Leaving directory '/home/akshay/Downloads/JModelica/build'
Makefile:427: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/akshay/Downloads/JModelica/build'
Makefile:352: recipe for target 'all' failed
make: *** [all] Error 2
This has been a problem for long time. You need to download the source for Assimulo in the 'external' directory as Assimulo. Even with it. I haven't been able to get JModelica to test successfully with Casadi. Code can't find NLPSolver.

mips gcc toolchain

I was trying to set up a toolchain for Mips on Ubuntu, as per the instructions here. However, when I do make CFLAGS="-Os -w", I get an error as follows :-
...
...
fi
echo timestamp > stmp-fixproto
make[2]: *** No rule to make target `/usr/local/bin/mips-elf-as', needed by `stamp-as'. Stop.
make[2]: Leaving directory `/home/mainuser/mips/gcc-obj/gcc'
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory `/home/mainuser/mips/gcc-obj'
make: *** [all] Error 2
How could I go about correcting this error?
Which occurrence of make CFLAGS="-Os -w" is it failing on? From the error message, it looks like mips-elf-as has not been successfully built by the first stage of the process.

Resources