Dear all,

I am trying to build gem5 in an (arm) mac machine and I am encountering
some problems. If anyone has managed to do so, I would be grateful if
they could share some pointers.

Here are the various methods that I have tried so far: 

        * Using the pre-built docker images (gcr.io/gem5-test/ubuntu*) I can
successfully build and run gem5, but since the images are build for x86,
recompilation takes really long time.

        * When trying to build natively on apple silicon, (python3 and python
development headers/python3-config installed from brew), scons complains
about not finding a working python installation. If could someone write
where the log files of scons are, I might be able to dig deeper.

I have tried also re-building the docker images on mac (using the
dockerfiles from repo) because this way the underline ubuntu image is an
ARM one and emulation of x86 on docker won't be needed. Unfortunately:
        * On ubuntu 20 with gcc-10 and ubuntu 20 with all dependencies images,
scons again reports not finding a working python installation
        * On ubuntu 22 with all dependencies, looks like there is an
incompatibility among protobuf version and the version required by the
headers, so compilation throws an error.
        * On ubuntu 20 with minimum dependencies image, gem builds
successfully but throws an error on runtime since it tries to access the
(dynamically linked? ) qemu-x86_64 (qemu-x86_64: Could not open
'/lib64/ld-linux-x86-64.so.2': No such file or directory). Could this be
recompiled from source too in order to be an arm executable, on par with
the underlying arm ubuntu image?

I find the error where python is not found on the docker images really
strange, since that should work out of the box due to docker. Am I
missing something obvious here? 

Again, if anyone has something to propose it would help a lot,
Regards.
_______________________________________________
gem5-dev mailing list -- gem5-dev@gem5.org
To unsubscribe send an email to gem5-dev-le...@gem5.org

Reply via email to