Comments (12)
Thanks for trying? :)
Your main problem seems to be this:
$ ./cm3
cm3: ../src/Wrx86.m3:2064: const char* MxConfigC__HOST(): Assertion `strcmp(M3_HOST, result) == 0' failed.
Aborted (core dumped)
I don't have access to aarch64 to test on, but for now I'm going to assume this is a problem with the build and see if I can reproduce it on another platform. I may need to come back and ask you for more details.
The other issues: I've seen Ubuntu barf like that when you install "python27" or "python2", instead of just "python". I can't explain why. It could also be subsequent to the first error. As for clang, we're still playing catch-up there, so I'd prefer to concentrate on getting it working with g++.
from cm3.
$ ./cm3
cm3: ../src/Wrx86.m3:2064: const char* MxConfigC__HOST(): Assertion `strcmp(M3_HOST, result) == 0' failed.
Aborted (core dumped)
What we have is the startup routines are failing to detect your platform. I don't have access to a machine that I can use to debug this, but if you're interested in pursuing it, you could add some debugging to MxConfigC__HOST
to see what the values of M3_HOST
and result
are, and see if you can bring them into agreement.
(Alternatively, you could set the value of result
to M3_HOST
and see if the process gets any further, but then I really can't help you.)
But this is not a problem with the build, that I can tell, I think probably nobody has had much opportunity to develop on aarch64 Linux.
from cm3.
Linux on 64-bit arm reports aarch64 not arm64 which causes problems.
from cm3.
I can confirm this fix works to build boot2min.py, however the giant CPP file and MxConfigC.c need to both have the patched versions in use when compiling, or else the bootstrap will overwrite the working compiler with the broken one. Here's the result:
$ cm3 --version
Critical Mass Modula-3 version d5.11.4
GitInfo: https://github.com/modula3/cm3.git/commit/890a4d8afe330ea733023ba84b84247f9d6d64ac
https://github.com/modula3/cm3.git/commits/master
remote: https://github.com/modula3/cm3.git
revision: 890a4d8
branch: master
last updated: 2021-10-07
compiled: 2021-10-10 19:37:13
configuration: /opt/cm3/bin/cm3.cfg
host: ARM64_LINUX
target: ARM64_LINUX
from cm3.
(Accidentally closed merging pull request.)
I'm preparing a release update including this patch.
from cm3.
I've updated the release to include @Redfoxymoon's fix https://github.com/modula3/cm3/releases/download/d5.11.3/cm3-boot-unix64le-d5.11.3-20211011.cpp.gz but you will still need to copy his config separately for now (edited) https://github.com/modula3/cm3/blob/master/m3-sys/cminstall/src/config-no-install/ARM64_LINUX
I've also verified that the python weirdness you encountered can result from nothing more than a broken cm3.
Hopefully this gets the bootstrap a little further along.
from cm3.
AMD64_LINUX
^^^^^^^^^^^ ? May be ARM64_LINUX?
P.S. see details later {= FIXed, thanks!
from cm3.
Yes, thank you. I spaced out.
from cm3.
AMD64_LINUX
VVM} May be ARM64_LINUX?
FIXed, thanks!
from cm3.
Hopefully this gets the bootstrap a little further along.
It actually builds boot2min and works. However when running ./do-cm3-all.py buildship c
the backend fails with an assert failed message. After trying the same C backend setup on AMD64 Ubuntu 20.04, I can also confirm this happens on there as well and created a bug for it (#758) as this is an unrelated bug that happens on the unix64le C backend setup on AMD64 as well.
from cm3.
I'm glad there's progress. After #758 the next bug you're likely to hit is building the mysql/mariadb library. (Because the fix for that unfortunately didn't make it into the release.) Easiest workaround, edit m3-sys/cminstall/src/config-no-install/Linux.common
and ~/cm3/bin/config/Linux.common
if it exists, to comment out the final line about MYSQL.
%SYSTEM_LIBS{"MYSQL"} = [ MYSQLLIB, MYSQLDB ]
from cm3.
( "for history")
I ( i.e. @Pawlicker) can confirm that using the old tarball with the fixed bootstrap (after adding LINUX_ARM64 and editing MxConfigC.c to include the fix for that platform) works great, and the entire distribution was able to successfully build. The only thing I had to do was install mariadb's libraries for those to build as well.
from cm3.
Related Issues (20)
- illegal recursive declaration crashes frontend HOT 17
- Float literal exceeding type exponent produces error in C backend HOT 9
- Is there any screenshots of Trestle apps running on modern Windows? HOT 1
- Is there any libraries to deal with XML and JSON? HOT 1
- I386_MINGW HOT 2
- Any attempts so resurrect the GCC backend? HOT 1
- Is the LLVM backend working yet?
- The wiki: does mingw-w64-x86_64-gcc is already enough?
- The wiki: add the later steps after the users have bootstrapped cm3
- Is it possible to introduce your own extensions? HOT 18
- Update Trestle GUI toolkit to meet modern real life requirements HOT 5
- An IDE dedicated to Modula-3
- We need a language server for Modula-3 HOT 1
- Update Windows API headers HOT 1
- A modern GUI stack for Modula-3
- Apple Silicon / ARM64_DARWIN support HOT 5
- Modern cmake unable to find COMCTL32 HOT 2
- -g0 option has no effect HOT 2
- BITSIZE of "SET OF SomeEnumeration" has been made flexible? (C backend, ARM64_DARWIN) HOT 2
- [Minor Issue] Bad Cube and Calculator in case cm3 -DM3_BACKEND_MODE=C -DBUILD_DIR=AMD64_LINUX HOT 9
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 cm3.