GithubHelp home page GithubHelp logo

bootstrapping on BSD? about chezscheme HOT 3 CLOSED

rain-1 avatar rain-1 commented on August 18, 2024
bootstrapping on BSD?

from chezscheme.

Comments (3)

dybvig avatar dybvig commented on August 18, 2024 3

It has been a few years since we've tried to build on OpenBSD, FreeBSD, NetBSD, or OpenSolaris, and some of the bits have likely rotted. If you want to give it a try, you'll need to use a host machine supporting one of the currently working machine types to create the boot and header files, debug whatever comes up in that process, then copy the boot files to the target machine and debug whatever comes up when building the executable there.

Here are steps for building the boot and header files, assuming, for concreteness, the host is 64-bit Linux and the target is 64-bit OpenBSD. Replace the machine types (a6le and a6osx) with different machine types as appropriate for your situation.

./configure
make 
./workarea a6ob
(cd a6ob/s ; make -f Mf-cross m=a6le xm=a6ob base=../../a6le)

This should leave the boot and header files in a6ob/boot/a6ob, which you can copy to the target machine's boot/a6ob to complete the build. On the target machine, you can update configure to recognize the target machine following the pattern of the existing entries, then run configure and make as usual. If you don't feel like updating configure, ./configure -m=a6ob might work once the boot and header files are in place.

from chezscheme.

dybvig avatar dybvig commented on August 18, 2024 2

Here's another approach, a bit simpler:

./configure
make
mkdir boot/a6ob
(cd a6le; make -f Mf-boot a6ob.boot)

This should leave boot & header files for a6ob in boot/a6ob.

This commit now describes this approach in the 'make bootfiles' description.

Now that this is documented, I'm closing the issue.

from chezscheme.

rain-1 avatar rain-1 commented on August 18, 2024

Awesome that worked like a dream! I just had to double time-t-bits and use gmake instead of make.

I don't have the tests succeeding yet but I'm working on it.

https://github.com/rain-1/ChezScheme

from chezscheme.

Related Issues (20)

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.