Comments (2)
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:
- 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;
- Try to build a native 64-bit compiler executable;
- 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.
@fabio-d : Thank you for clarifying what was causing the error and for suggested workarounds!
from xc16plusplus.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xc16plusplus.