Giter VIP home page Giter VIP logo

Comments (8)

majetideepak avatar majetideepak commented on July 20, 2024 2

@tdcmeehan You can build natively on arm as long as the OS has the dependencies/packages for arm. You can build a macos docker image on Mac M1 but not Centos Stream since that does not provide packages for arm.

from presto.

majetideepak avatar majetideepak commented on July 20, 2024 2

I was able to build the Ubuntu container on my Mac M1. However, some changes are required.
Presto changes: https://github.com/prestodb/presto/pull/23109/files
Velox changes: facebookincubator/velox#10346

I will work towards landing these PRs.

from presto.

majetideepak avatar majetideepak commented on July 20, 2024 1

I see that Ubuntu has an image for arm https://ubuntu.com/download/server/arm. I am testing the build on Mac M1.

from presto.

majetideepak avatar majetideepak commented on July 20, 2024

You can build and run an Centos x86_64 aarch image using qemu on ARM64 Mac M1.
From the log you shared, I see qemu-x86_64-static: QEMU internal SIGSEGV {code=MAPERR, addr=0x20}. Is this local to your setup?
I was able to run x86_64 prestissimo runtime image using both podman and docker-desktop.

from presto.

abevk2023 avatar abevk2023 commented on July 20, 2024

From the log you shared, I see qemu-x86_64-static: QEMU internal SIGSEGV {code=MAPERR, addr=0x20}. Is this local to your setup?

Yes.

I was also able to run x86_64 prestissimo runtime image using podman in Mac M1. But I am not able to build native. If we can build an prestissimo image using qemu on ARM64 Mac M1, can we document the procedure.

from presto.

majetideepak avatar majetideepak commented on July 20, 2024

Qemu is emulating the x86_64 architecture on arm64. Ideally, no additional steps should be required.
qemu-x86_64-static: QEMU internal SIGSEGV {code=MAPERR, addr=0x20} means that this is not a prestissimo issue but a qemu issue.

from presto.

tdcmeehan avatar tdcmeehan commented on July 20, 2024

@majetideepak do we have alignment that it would be ideal to be able to build Prestissimo natively on ARM? Using Qemu seems to require substantial resources, and ideally we would like developers to be able to write and run tests that utilize containers to handle environment setup for testing purposes.

from presto.

abevk2023 avatar abevk2023 commented on July 20, 2024

@majetideepak is it possible to make a presto-native-dependency image for ARM64 by adding required packages on macos docker image.

from presto.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.