Giter Club home page Giter Club logo

Comments (2)

fabio-d avatar fabio-d commented on July 29, 2024

Hi! It fails to proceed because you are on a 64 bit system: the script wants to build a 32 bit compiler and expects to run a on 32-bit system (in other words, it is not designed to cross-compile the compiler).

There are three approaches you might want to follow:

  1. Compile on a 32-bit debian system/virtual machine/chroot - I've just tested and it compiles fine on a Debian Stretch 32-bit VM(*); then copy the resulting executables to your 64-bit system;
  2. Try to build a native 64-bit compiler executable;
  3. Try to cross-compile a 32-bit compiler on your 64-bit system (you will need g++-multilib libc6-dev-i386 and a lot of patience to cope with the build errors).

The first approach is what I do for the binaries I release: I compile on a fedora-22-i386 chroot inside a 64-bit system.

To be honest when i wrote the script I chose not to consider the second option at all, given that Microchip's other executables are 32-bit anyway.

The third option would be interesting, I tried to make it work in the past but I gave up because some configure commands seemed to ignore me and stubbornly built 64-bit libraries. If you manage to do it, I will be happy to accept your patch!

(*) = All I had to do was to replace #!/bin/sh with #!/bin/bash in xc16plusplus_only.sh and install packages build-essential bison flex m4.

from xc16plusplus.

marcio-ao avatar marcio-ao commented on July 29, 2024

@fabio-d : Thank you for clarifying what was causing the error and for suggested workarounds!

from xc16plusplus.

Related Issues (4)

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.