Skip to content

dictionary not easy to build during cross-compilation #86

Open

Description

@jpellegrini

Hello!

I have made an (unofficial) package of PForth for OpenWRT, and while cross-compiling, I noticed that the dictionary buillt on the compiling machine (amd64) had a cell size not compatible with the device I was compiling to (32 bit big-endian MIPS).
So I made the package installer do this:

  • install the source system (.fth files) to /tmp/pforth-install/fth (/tmp is mounted on RAM - I did this because even those ~300k may be too much for some devices)
  • source the files to build the dictionary
  • copy the dictionary where PForth can use it
  • delete /tmp/pforth-install/fth

However, it would be easier if one could cross-build the dictionary. Would it be too hard to implement?

Activity

  1. letoh commented on Aug 18, 2021

    @letoh
    Contributor

    How about using qemu user mode emulation to build the dictionary on the host machine? just like the use of wine in the mingw build:
    https://github.com/philburk/pforth/blob/master/platforms/mingw-crossbuild-linux/Makefile#L108

  2. letoh commented on Aug 24, 2021

    @letoh
    Contributor
  3. jpellegrini commented on Apr 4, 2022

    @jpellegrini
    ContributorAuthor

    How about using qemu user mode emulation to build the dictionary on the host machine? just like the use of wine in the mingw build:

    I'll check... But although technically the OpenWRT build system allows this, the OpenWRT project itself doesn't allow us to use anything besides what comes out of the box in buildroot.

  4. added this to the Version_2.1.0 milestone on Jan 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions