Open thielema opened 10 months ago
We are start going step by step...
1) I propose use most modern reliases.
I.e. mine -)
They are combo of 2-3 modern branch of cm3 team. ( I edit they as minimum as possible)
2) Are You really need stripping?
This can be done by editing source code of cm3
I can prepare special release
But see my latest issue
https://github.com/modula3/cm3/issues/1163
( I can not edit messages from smartphone -( )
Plese try do this: A) Build cm3[.exe] from cm3-boot-unix64le.cpp (?) ( This is mono-source_code file) B) Run Boot2min.py c AMD64_LINUX C) Compile m3cc D) Upgrade all ( I may be add command later)
On Fri, 27 Oct 2023, VictorMiasnikov wrote:
- Are You really need stripping?
This can be done by editing source code of cm3
I do not know what Nix does and why, I can just refer to what they tell me: https://nixos.org/manual/nixpkgs/stable/#chap-quick-start
The issue is not super-important. I just wanted to put my attempt in the public. It could be a way to distribute cm3 as a package for convenient installation. Even more, you can package Modula-3 projects and make them dependent on the cm3 toolchain and system libraries, if required.
( formatting will be fixed later)We have both .rpm and .deb packages of cm3 Modula-3I and others even public packages time to time.But Nix , as I know, use only compiling from source?31.10.2023, 13:35, "thielema" @.***>:
On Fri, 27 Oct 2023, VictorMiasnikov wrote:
- Are You really need stripping?
This can be done by editing source code of cm3
I do not know what Nix does and why, I can just refer to what they tell me: https://nixos.org/manual/nixpkgs/stable/#chap-quick-start
The issue is not super-important. I just wanted to put my attempt in the public. It could be a way to distribute cm3 as a package for convenient installation. Even more, you can package Modula-3 projects and make them dependent on the cm3 toolchain and system libraries, if required.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>
On Tue, 31 Oct 2023, VictorMiasnikov wrote:
( formatting will be fixed later)We have both .rpm and .deb packages of cm3 Modula-3I and others even public packages time to time.
But Nix , as I know, use only compiling from source?
Nix supports both. A compiled package is considered a cashed version of a compiled source package. If we add a Nix package description to the repo at https://github.com/NixOS/nixpkgs, then the package will be precompiled for Linux and Darwin on both Intel and ARM.
Do You can add cm3-boot-unix64le.cpp ( please name it cm3-exe-only or vice versa as "Nix package description"?4 binary as result are interested31.10.2023, 19:18, "thielema" @.***>:
On Tue, 31 Oct 2023, VictorMiasnikov wrote:
( formatting will be fixed later)We have both .rpm and .deb packages of cm3 Modula-3I and others even public packages time to time.
But Nix , as I know, use only compiling from source?
Nix supports both. A compiled package is considered a -lcashed version of a compiled source package. If we add a Nix package description to the repo at https://github.com/NixOS/nixpkgs, then the package will be precompiled for Linux and Darwin on both Intel and ARM.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>
For now I think there is no more intervention required, because despite the warnings, cm3 seems to work.
It tried packaging CM3 for the Nix package manager and NixOS by writing this
default.nix
file: https://github.com/thielema/cm3/blob/nixos/default.nixnix-build
tries to utilize the shipped CMake files itself, but fails because there is something non-standard. Thus I skip Nix's configuration phase.nix-build
then buildscm3
but finally fails in its fixup phase with: