Git Product home page Git Product logo

hitsumabushi's Introduction

Hitsumabushi (ひつまぶし)

Package hitsumabushi provides APIs to generate JSON for go-build's -overlay option. Hitsumabushi aims to make Go programs work on almost everywhere by overwriting system calls with C function calls. Now the generated JSON works only for Linux/Arm64 and Windows/Amd64 so far. For GOOS=windows, Hitsumabushi replaces some functions that don't work on some special Windows-like systems.

Go version: 1.19-1.21

Example

On Arm Linux, run these commands:

cd example/helloworld
./run.sh

Tips

With VC++, you might have to call _rt0_amd64_windows_lib() at the beginning of the entry point explicitly. See also golang/go#42190.

hitsumabushi's People

Contributors

dennwc avatar hajimehoshi avatar samhocevar avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

hitsumabushi's Issues

open /usr/lib/go-1.19/src/syscall/rlimit.go: no such file or directory

On the latest commit, the title message appears when running example/helloworld/run.sh.
/usr/lib/go-1.19/src/syscall/ has indeed no file named rlimit.go, but it can be found in /usr/share/go-1.19/src/os/rlimit.go.

worth noting i am using amd64 (not trying to run just yet, i'd prefer compiling outside a VM)
Config:
debian 12 up to date
golang-1.19-go/stable,now 1.19.8-2 amd64

full output:

❯ ./run.sh
open /usr/lib/go-1.19/src/syscall/rlimit.go: no such file or directory
exit status 1

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.