modula3 / cm3

Critical Mass Modula-3
http://modula3.github.io/cm3/
Other
133 stars 26 forks source link

problem bootstrapping cm3 from github images current as of today #1018

Open mikanystrom-intel opened 2 years ago

mikanystrom-intel commented 2 years ago

Tried to email m3devel but maybe the list is dead now?

Hi m3devel,

I am trying to follow the directions at

https://github.com/modula3/cm3/wiki/Getting-Started

that went OK

and then build the distribution through cloning the cm3 repo and

cd scripts/python ./make-dist.py

It all looks pretty good till I get through the build, and then this happens:

no packages left mkdir -p /tmp/tmp1odesum8/cm3-min-AMD64_LINUX-d5.11.9-Linux4.12.14-20220330/license cp -Pv /nfs/site/disks/tfc_fe_zsc7_01/mnystroe/cm3/COPYRIGHT-BSD /tmp/tmp1odesum8/cm3-min-AMD64_LINUX-d5.11.9-Linux4.12.14-20220330/license/COPYRIGHT-BSD cp -Pv /nfs/site/disks/tfc_fe_zsc7_01/mnystroe/cm3/COPYRIGHT-CMASS /tmp/tmp1odesum8/cm3-min-AMD64_LINUX-d5.11.9-Linux4.12.14-20220330/license/COPYRIGHT-CMASS cp -Pv /nfs/site/disks/tfc_fe_zsc7_01/mnystroe/cm3/COPYRIGHT-COLUMBIA /tmp/tmp1odesum8/cm3-min-AMD64_LINUX-d5.11.9-Linux4.12.14-20220330/license/COPYRIGHT-COLUMBIA cp -Pv /nfs/site/disks/tfc_fe_zsc7_01/mnystroe/cm3/COPYRIGHT-DEC /tmp/tmp1odesum8/cm3-min-AMD64_LINUX-d5.11.9-Linux4.12.14-20220330/license/COPYRIGHT-DEC cp -Pv /nfs/site/disks/tfc_fe_zsc7_01/mnystroe/cm3/COPYRIGHT-INTEL /tmp/tmp1odesum8/cm3-min-AMD64_LINUX-d5.11.9-Linux4.12.14-20220330/license/COPYRIGHT-INTEL cp -Pv /nfs/site/disks/tfc_fe_zsc7_01/mnystroe/cm3/COPYRIGHT-JDP /tmp/tmp1odesum8/cm3-min-AMD64_LINUX-d5.11.9-Linux4.12.14-20220330/license/COPYRIGHT-JDP cp -Pv /nfs/site/disks/tfc_fe_zsc7_01/mnystroe/cm3/COPYRIGHT-PURDUE /tmp/tmp1odesum8/cm3-min-AMD64_LINUX-d5.11.9-Linux4.12.14-20220330/license/COPYRIGHT-PURDUE cp -Pv /nfs/site/disks/tfc_fe_zsc7_01/mnystroe/cm3/COPYRIGHT-XEROX /tmp/tmp1odesum8/cm3-min-AMD64_LINUX-d5.11.9-Linux4.12.14-20220330/license/COPYRIGHT-XEROX cp -Pv /nfs/site/disks/tfc_fe_zsc7_01/mnystroe/cm3/COPYRIGHTS /tmp/tmp1odesum8/cm3-min-AMD64_LINUX-d5.11.9-Linux4.12.14-20220330/license/COPYRIGHTS cp -Pv /nfs/site/disks/tfc_fe_zsc7_01/mnystroe/cm3/m3-libs/arithmetic/copyrite.txt /tmp/tmp1odesum8/cm3-min-AMD64_LINUX-d5.11.9-Linux4.12.14-20220330/license/COPYRIGHT-M3NA cp -Pv /nfs/site/disks/tfc_fe_zsc7_01/mnystroe/cm3/m3-tools/cvsup/License /tmp/tmp1odesum8/cm3-min-AMD64_LINUX-d5.11.9-Linux4.12.14-20220330/license/COPYRIGHT-JDP-CVSUP cp -Pv /nfs/site/disks/tfc_fe_zsc7_01/mnystroe/cm3/m3-sys/COPYRIGHT-CMASS /tmp/tmp1odesum8/cm3-min-AMD64_LINUX-d5.11.9-Linux4.12.14-20220330/license/COPYRIGHT-CMASS Traceback (most recent call last): File "./make-dist.py", line 326, in MakeArchives() File "./make-dist.py", line 124, in MakeArchives TarGzip(PackageSetName) File "./make-dist.py", line 114, in TarGzip MakeArchive(PackageSetName, "tar cfvz", "tar.gz") File "./make-dist.py", line 65, in MakeArchive InstallLicense(Root, InstallRoot) File "/nfs/site/disks/tfc_fe_zsc7_01/mnystroe/cm3/scripts/python/pylib.py", line 1952, in InstallLicense os.path.walk(os.path.join(Root, "caltech-parser"), Callback, state) AttributeError: module 'posixpath' has no attribute 'walk'

scfb432501> python --version Python 3.6.3 scfb432501> cm3 -version Critical Mass Modula-3 version d5.11.9 GitInfo: https://github.com/modula3/cm3.git/commit/f952a4931abb9b9f504d97f331bb0dc36e579e66 https://github.com/modula3/cm3.git/commits/master remote: https://github.com/modula3/cm3.git revision: f952a4931abb9b9f504d97f331bb0dc36e579e66 branch: master last updated: 2022-02-05 compiled: 2022-03-30 15:51:34 configuration: /nfs/site/disks/tfc_fe_zsc7_01/mnystroe/cm3-build-2022-03-30/cm3-dist-2022-03-30/bin/cm3.cfg host: AMD64_LINUX target: AMD64_LINUX

What's going on here? I would suspect a python version issue? Or?

 Mika
jaykrell commented 2 years ago

Yeah the python2 to 3 changes really broke all my code. Very disappointing. Can you try python2? Sorry. You don't need make-dist.py to bootstrap though.

jaykrell commented 2 years ago

I continue to think good and bad about Python.

It is an ok language, cross platform, fast enough for many tasks, but the compatibility is not great.

The cross platform-ness has also sort of sort of suffered, i.e. to very old systems..where granted there isn't really anything else..even modern Bash does not run easily on very old systems. Writing code that works with old and new Python isn't easy either. We struggled with Portable sh and BSD and Solaris in the past.

Perhaps we should write tiny C programs and tiny/portable Makefiles. Perhaps.

VictorMiasnikov commented 2 years ago

I continue to think good and bad about Python.

It is an ok language, cross platform, fast enough for many tasks, but the compatibility is not great.

The cross platform-ness has also sort of sort of suffered, i.e. to very old systems..where granted there isn't really anything else..even modern Bash does not run easily on very old systems. Writing code that works with old and new Python isn't easy either. We struggled with Portable sh and BSD and Solaris in the past.

Perhaps we should write tiny C programs and tiny/portable Makefiles. Perhaps.

Alternative of Python ( and "Python scripts" ) -- It is good idea

} old and new Python

On OS DOS we have only Python 2.04

VictorMiasnikov commented 2 years ago

( Todo)

VictorMiasnikov commented 2 years ago

(Todo)

VictorMiasnikov commented 2 years ago

I am trying to follow the directions at

https://github.com/modula3/cm3/wiki/Getting-Started

that went OK

and then build the distribution through cloning the cm3 repo and


cd scripts/python ./make-dist.py

It all looks pretty good till I get through the build, and then this happens: no packages left


mkdir -p /tmp/tmp8/cm3-min-AMD64_LINUX-d5.11.9-Linux4.12.14-20220330/license
cp -Pv /n/se/ds/z/un/cm3/COPYRIGHT-BSD /tmp/tmp8/cm3-min-AMD64_LINUX-d5.11.9-Linux4.12.14-20220330/license/COPYRIGHT-BSD
cp -Pv /n/se/ds/z/un/cm3/COPYRIGHT-CMASS /tmp/tmp8/cm3-min-AMD64_LINUX-d5.11.9-Linux4.12.14-20220330/license/COPYRIGHT-CMASS
cp -Pv /n/se/ds/z/un/cm3/COPYRIGHT-COLUMBIA /tmp/tmp8/cm3-min-AMD64_LINUX-d5.11.9-Linux4.12.14-20220330/license/COPYRIGHT-COLUMBIA
cp -Pv /n/se/ds/z/un/cm3/COPYRIGHT-DEC /tmp/tmp8/cm3-min-AMD64_LINUX-d5.11.9-Linux4.12.14-20220330/license/COPYRIGHT-DEC
cp -Pv /n/se/ds/z/un/cm3/COPYRIGHT-INTEL /tmp/tmp8/cm3-min-AMD64_LINUX-d5.11.9-Linux4.12.14-20220330/license/COPYRIGHT-INTEL
cp -Pv /n/se/ds/z/un/cm3/COPYRIGHT-JDP /tmp/tmp8/cm3-min-AMD64_LINUX-d5.11.9-Linux4.12.14-20220330/license/COPYRIGHT-JDP
cp -Pv /n/se/ds/z/un/cm3/COPYRIGHT-PURDUE /tmp/tmp8/cm3-min-AMD64_LINUX-d5.11.9-Linux4.12.14-20220330/license/COPYRIGHT-PURDUE
cp -Pv /n/se/ds/z/un/cm3/COPYRIGHT-XEROX /tmp/tmp8/cm3-min-AMD64_LINUX-d5.11.9-Linux4.12.14-20220330/license/COPYRIGHT-XEROX
cp -Pv /n/se/ds/z/un/cm3/COPYRIGHTS /tmp/tmp8/cm3-min-AMD64_LINUX-d5.11.9-Linux4.12.14-20220330/license/COPYRIGHTS
cp -Pv /n/se/ds/z/un/cm3/m3-libs/arithmetic/copyrite.txt /tmp/tmp8/cm3-min-AMD64_LINUX-d5.11.9-Linux4.12.14-20220330/license/COPYRIGHT-M3NA
cp -Pv /n/se/ds/z/un/cm3/m3-tools/cvsup/License /tmp/tmp8/cm3-min-AMD64_LINUX-d5.11.9-Linux4.12.14-20220330/license/COPYRIGHT-JDP-CVSUP
cp -Pv /n/se/ds/z/un/cm3/m3-sys/COPYRIGHT-CMASS /tmp/tmp8/cm3-min-AMD64_LINUX-d5.11.9-Linux4.12.14-20220330/license/COPYRIGHT-CMASS
Traceback (most recent call last):
File "./make-dist.py", line 326, in
MakeArchives()
File "./make-dist.py", line 124, in MakeArchives
TarGzip(PackageSetName)
File "./make-dist.py", line 114, in TarGzip
MakeArchive(PackageSetName, "tar cfvz", "tar.gz")
File "./make-dist.py", line 65, in MakeArchive
InstallLicense(Root, InstallRoot)
File "/n/se/ds/z/un/cm3/scripts/python/pylib.py", line 1952, in InstallLicense
os.path.walk(os.path.join(Root, "caltech-parser"), Callback, state)
AttributeError: module 'posixpath' has no attribute 'walk'

scfb432501> python --version
Python 3.6.3
scfb432501> cm3 -version
Critical Mass Modula-3 version d5.11.9
GitInfo: https://github.com/modula3/cm3.git/commit/f952a4931abb9b9f504d97f331bb0dc36e579e66
https://github.com/modula3/cm3.git/commits/master
remote: https://github.com/modula3/cm3.git
revision: https://github.com/modula3/cm3/commit/f952a4931abb9b9f504d97f331bb0dc36e579e66
branch: master
last updated: 2022-02-05
compiled: 2022-03-30 15:51:34
configuration: /n/se/ds/z/un/cm3-build-2022-03-30/cm3-dist-2022-03-30/bin/cm3.cfg
host: AMD64_LINUX
target: AMD64_LINUX

What's going on here? I would suspect a python version issue? Or?

 Mika

I have some "tactic questions": -- commit is principal? -- .py scripts is principal?

P.S. I have couple of binary / distributive files ( cm3 AMD64_LINUX) and algorithm of bootstrapping them.

VictorMiasnikov commented 2 years ago

( ToDo)

VictorMiasnikov commented 2 years ago

( ToDo)

VictorMiasnikov commented 2 years ago

What's going on here? I would suspect a python version issue? Or?

With Python3[.exe] I have some issues.

With Python2 we have "success story":

File

cm3-all-and_cm3cg_with_m3llvm_by{make-dist.sh}-AMD64_LINUX-d5.11.9-AMD64_LINUX(Debian_11.3.0-1_and_{{GCC_11.3.0}})-2022-02-08_13-48__FIXed__by__VVM__2022-05-20_15-19__AMD64_LINUX__Target__cm3-3be819e.7z

that contain inside this:

cm3-AMD64_LINUX-unknown-unknown-Linux5.17.0-2-amd64-2022-06-01-12-57-42.deb
cm3-bin-ws-game-AMD64_LINUX-d5.11.9-unknown-unknown-Linux5.17.0-2-amd64-2022-06-01-12-57-42.tgz
cm3-bin-ws-math-AMD64_LINUX-d5.11.9-unknown-unknown-Linux5.17.0-2-amd64-2022-06-01-12-57-42.tgz
cm3-bin-ws-tool-AMD64_LINUX-d5.11.9-unknown-unknown-Linux5.17.0-2-amd64-2022-06-01-12-57-42.tgz
cm3-bin-ws-caltech-parser-AMD64_LINUX-d5.11.9-unknown-unknown-Linux5.17.0-2-amd64-2022-06-01-12-57-42.tgz
cm3-bin-ws-demo-AMD64_LINUX-d5.11.9-unknown-unknown-Linux5.17.0-2-amd64-2022-06-01-12-57-42.tgz
cm3-bin-ws-juno-AMD64_LINUX-d5.11.9-unknown-unknown-Linux5.17.0-2-amd64-2022-06-01-12-57-42.tgz
cm3-bin-ws-obliq-AMD64_LINUX-d5.11.9-unknown-unknown-Linux5.17.0-2-amd64-2022-06-01-12-57-42.tgz
cm3-bin-ws-cvsup-AMD64_LINUX-d5.11.9-unknown-unknown-Linux5.17.0-2-amd64-2022-06-01-12-57-42.tgz
cm3-bin-ws-database-AMD64_LINUX-d5.11.9-unknown-unknown-Linux5.17.0-2-amd64-2022-06-01-12-57-42.tgz
cm3-bin-ws-anim-AMD64_LINUX-d5.11.9-unknown-unknown-Linux5.17.0-2-amd64-2022-06-01-12-57-42.tgz
cm3-bin-ws-m3devtool-AMD64_LINUX-d5.11.9-unknown-unknown-Linux5.17.0-2-amd64-2022-06-01-12-57-42.tgz
cm3-bin-ws-m3gdb-AMD64_LINUX-d5.11.9-unknown-unknown-Linux5.17.0-2-amd64-2022-06-01-12-57-42.tgz
cm3-bin-ws-webdev-AMD64_LINUX-d5.11.9-unknown-unknown-Linux5.17.0-2-amd64-2022-06-01-12-57-42.tgz
cm3-bin-ws-gui-AMD64_LINUX-d5.11.9-unknown-unknown-Linux5.17.0-2-amd64-2022-06-01-12-57-42.tgz
cm3-bin-ws-devlib-AMD64_LINUX-d5.11.9-unknown-unknown-Linux5.17.0-2-amd64-2022-06-01-12-57-42.tgz
cm3-bin-ws-core-AMD64_LINUX-d5.11.9-unknown-unknown-Linux5.17.0-2-amd64-2022-06-01-12-57-42.tgz
cm3-bin-core-AMD64_LINUX-d5.11.9-unknown-unknown-Linux5.17.0-2-amd64-2022-06-01-12-57-42.tgz
cm3-bin-min-AMD64_LINUX-d5.11.9-unknown-unknown-Linux5.17.0-2-amd64-2022-06-01-12-57-42.tgz

P.S. Python3[.exe] was be replaced to Python2[.exe] . No others changed P.P.S. 2022-07-26: Spelling fixed

VictorMiasnikov commented 2 years ago

There's not Python fork in any key.

Looks like, my smartphone auto-edits Ph to "Phyton" -) Python is "true name"

23.07.2022, 04:48, "3oheicrw" @.***>: @VictorMiasnikov Excuse me please but what is Phyton? Is it your own Python fork?