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: anm_types.h: No such file or directory #122

Open
juujuujj opened this issue Jan 4, 2025 · 2 comments
Open

Fatal Error: anm_types.h: No such file or directory #122

juujuujj opened this issue Jan 4, 2025 · 2 comments

Comments

@juujuujj
Copy link

juujuujj commented Jan 4, 2025

Compilation failure in Debian 12.
Full log:

[  1%] Building C object util/CMakeFiles/util.dir/file.c.o
[  3%] Building C object util/CMakeFiles/util.dir/list.c.o
[  5%] Building C object util/CMakeFiles/util.dir/program.c.o
[  6%] Building C object util/CMakeFiles/util.dir/util.c.o
[  8%] Building C object util/CMakeFiles/util.dir/value.c.o
[ 10%] Building C object util/CMakeFiles/util.dir/mygetopt.c.o
[ 12%] Building C object util/CMakeFiles/util.dir/seqmap.c.o
[ 13%] Building C object util/CMakeFiles/util.dir/path.c.o
[ 15%] Building C object util/CMakeFiles/util.dir/cp932.c.o
[ 17%] Linking C static library libutil.a
[ 17%] Built target util
[ 18%] [FLEX][AnmScan] Building scanner with flex 2.6.4
[ 20%] [BISON][AnmParse] Building parser with bison 3.8.2
[ 22%] Building C object thanm/CMakeFiles/thanm.dir/anmparse.c.o
In file included from /home/sukitumin/thtk/thanm/anmparse.y:41:
/home/sukitumin/thtk/thanm/thanm.h:33:10: fatal error: anm_types.h: No such file or directory
   33 | #include <anm_types.h>
      |          ^~~~~~~~~~~~~
compilation terminated.
make[2]: *** [thanm/CMakeFiles/thanm.dir/build.make:87: thanm/CMakeFiles/thanm.dir/anmparse.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:286: thanm/CMakeFiles/thanm.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
@C0LDfinch
Copy link

The <anm_types.h> file needed by thanm lives in the thtypes submodule (another repo).
I suspect you git cloned without a --recursive flag, preventing git from downloading nested repositories.
This would cause the thtk/extlib/thtypes folder to be empty, leading to the error.

I managed to reproduce your error on Nobara by removing the thtypes directory.
If all the submodules are present, the latest commit 1e38aee of thtk can usually be compiled with the GNU toolchain.

@DankRank
Copy link
Member

DankRank commented Jan 5, 2025

You can run git submodule update --init --recursive to get the submodules.

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

3 participants