GithubHelp home page GithubHelp logo

ytomino / headmaster Goto Github PK

View Code? Open in Web Editor NEW
19.0 19.0 2.0 1.29 MB

the translator from C headers to another language (currently, Ada only)

Home Page: https://github.com/ytomino/headmaster/wiki

License: BSD 2-Clause "Simplified" License

Makefile 0.27% OCaml 99.70% Shell 0.02% Standard ML 0.01%

headmaster's People

Contributors

ytomino avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

kjseefried irvise

headmaster's Issues

Build failure with invalid options for ln

Quick note, I'm getting a build failure with make -C main with the following error:

ln -sfh ../source source
ln: invalid option -- 'h'
Try 'ln --help' for more information.

This appears to originate from these commands:

$(BINLN):
	ln -sfh $(BUILDDIR) $@

$(SOURCELN):
	ln -sfh $(SOURCEDIR) $@

Note, -h is not available in either GNU ln or POSIX ln so I'm not sure what it's supposed to do.

Check existence of $HOME/bin

The Makefile doesn't check the existence of ~/bin.
If you call make -C main install BINDIR=$HOME/bin (without trailing slash) it will create a binary called bin in your home directory or if you call it with trailing slash it will fail to install the binary.
Afaik if you call install -D instead of install in your install target it should generate the correct behaviour.

Unbound value Unix.map_file

After manually correcting #3 by simply removing the -h flags I've run into this next issue:

Some system details:

  • x86_64-pc-linux-gnu
  • gcc (GCC) 7.2.0
  • ocamlbuild 0.11.0
  • ocaml 4.05.0
ocamlbuild -build-dir x86_64-pc-linux-gnu.build -X x86_64-pc-linux-gnu.build -X bin -I source -I source/ada -cflags "-g -safe-string -w Aer-48" main.native
Finished, 1 target (0 cached) in 00:00:01.
+ /usr/bin/ocamlc.opt -c -g -safe-string -w Aer-48 -I source -I source/ada -o source/textFile.cmo source/textFile.ml
File "source/textFile.ml", line 80, characters 4-17:
Error: Unbound value Unix.map_file
Command exited with code 2.
Compilation unsuccessful after building 60 targets (0 cached) in 00:00:04.
make: *** [Makefile;45: x86_64-pc-linux-gnu.build/headmaster] Error 10

I'm fairly unfamiliar with ocaml so I'm not entirely sure what this means.

Unbound value find_opt

When I try to build headmaster I get the following error on Debian 9:

ocamlbuild -build-dir x86_64-linux-gnu.build -X x86_64-linux-gnu.build -X bin -I source -I source/ada -cflags "-g -safe-string -w Aer-48" main.native
Finished, 0 targets (0 cached) in 00:00:00.
+ /usr/bin/ocamlc.opt -c -g -safe-string -w Aer-48 -I source -I source/ada -o source/c_semantics.cmo source/c_semantics.ml
File "source/c_semantics.ml", line 9, characters 8-16:
Error: Unbound value find_opt
Command exited with code 2.
Compilation unsuccessful after building 19 targets (18 cached) in 00:00:00.

Unclear how to build

While there are dependencies on at least gmp and mpfr, it is not clear what to do with them in order to build headmaster.

I already have the developer packages for each installed on Ubuntu 11.10, but the headmaster build process appears to require these be separately retrieved, and placed in some particular location, which is not specified.

Please provide sufficient information about what to do with these dependencies to allow one to execute the make file and build this tool, as I am very interested in its capabilities.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.