hpi-swa / smalltalkCI

Framework for testing Smalltalk projects with GitHub Actions, GitLab CI, Travis CI, AppVeyor, and others.
MIT License
94 stars 68 forks source link

checkImageVersionFrom (Replacement/generated/64/vm/src/gcc3x-cointerp.c:62402):Invalid image format: detected version 6521, expected version 68021 #563

Open vonbecmann opened 2 years ago

vonbecmann commented 2 years ago

the http://files.pharo.org/get-files/90/pharo-vm-Linux-x86_64-stable.zip vm cannot open the image http://files.pharo.org/get-files/90/pharoImage-x86.zip

see https://github.com/vonbecmann/linked-list/runs/7512038823?check_suite_focus=true#step:4:37

vonbecmann commented 2 years ago

im trying to test the project in this Pharo32-9.0 environment, but it doesn't open the image with that vm.

fniephaus commented 2 years ago

It looks like you're trying to open a 32-bit image on a VM for 64-bit images. Does that even work?

vonbecmann commented 2 years ago

does this framework choose the image and vm? im just adding Pharo32-9.0 to the config file.

fniephaus commented 2 years ago

Yes, it does. Maybe the Pharo zeroconf configuration is broken. @estebanlm?

vonbecmann commented 2 years ago

that vm is not the adequate for that image. i'll ask the pharo development team for a suitable vm.

fniephaus commented 2 years ago

Ok, good. If you found out what's wrong, please feel free to update the VM map: https://github.com/hpi-swa/smalltalkCI/blob/b35b5c592c3838fb3e6580896822099cfaffba8c/pharo/run.sh#L137-L208

estebanlm commented 2 years ago

no, that's not an error. You are downloading a 32bit image but the infrastructure where you run the test is 64bit, hence, zeroconf downloads the appropriate VM for that architecture automatically... and your 32bit image wont work.

fniephaus commented 2 years ago

Mh, so how do we force download a 32-bit VM on a 64-bit GitHub action runner? We do install 32-bit dependencies on those machines.

estebanlm commented 2 years ago

we are not interested on support such a feature (which is really hard to maintain). instead, I would require a 32bit machine to test 32bit images.

On Aug 16 2022, at 9:36 am, Fabio Niephaus @.***> wrote:

Mh, so how do we force download a 32-bit VM on a 64-bit GitHub action runner? We do install 32-bit dependencies on those machines. — Reply to this email directly, view it on GitHub (https://github.com/hpi-swa/smalltalkCI/issues/563#issuecomment-1216259986), or unsubscribe (https://github.com/notifications/unsubscribe-auth/AAD5MXSN4IYDD7SVY6ACADDVZNAJPANCNFSM56S5OTIA). You are receiving this because you were mentioned.

fniephaus commented 2 years ago

Ok, well that means that you cannot test Pharo32 anymore on any popular CI provider (I'm not aware of any provider supporting 32-bit machines) unless you provide your own 32-bit machine.

estebanlm commented 2 years ago

well, there is a reason why nobody provides 32bit machines anymore and is that nobody uses 32bit machines anymore. to be honest, we are still producing 32bit images more thinking on arm architectures, some of them still live in 32bit, than on x86 architectures, yet there is a 32bit intel VM, you can force the download and prepare the dependencies... but zeroconf is not prepared anymore to do that...

anyway, I will let @tesonep to answer completely as the detail escapes me. On Aug 16 2022, at 10:05 am, Fabio Niephaus @.***> wrote:

Ok, well that means that you cannot test Pharo32 anymore on any popular CI provider (I'm not aware of any provider supporting 32-bit machines) unless you provide your own 32-bit machine. — Reply to this email directly, view it on GitHub (https://github.com/hpi-swa/smalltalkCI/issues/563#issuecomment-1216287065), or unsubscribe (https://github.com/notifications/unsubscribe-auth/AAD5MXVPVRUJ3NHE5WMDRITVZNDURANCNFSM56S5OTIA). You are receiving this because you were mentioned.

vonbecmann commented 2 years ago

in my opinion, just remove that environment as an option.