Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Docker / Apple Silicon host #758

Closed
1 task done
loretoparisi opened this issue Sep 12, 2023 · 3 comments
Closed
1 task done

[Feature Request] Docker / Apple Silicon host #758

loretoparisi opened this issue Sep 12, 2023 · 3 comments
Labels
enhancement New feature or request modular-cli modular tool issues mojo-repo Tag all issues with this label

Comments

@loretoparisi
Copy link

Review Mojo's priorities

What is your request?

When running modular install mojo

root@3870e28c2a09:/app# modular install mojo
modular: error: no packages found for the current target hardware - please run `modular host-info` and file a ticket at https://github.com/modularml/mojo with your hardware information

Host Information:

  Host Information
  ================

  Target Triple: arm64-unknown-linux
  CPU: generic
  CPU Features: crc, crypto, fp-armv8, lse, neon

What is your motivation for this change?

Support Docker / host Apple Silicon

Any other details?

Following the Dockerfile used

FROM ubuntu:23.04

ENV ROOT_APPLICATION /app
ENV HOST=0.0.0.0
ENV PORT=8000

WORKDIR $ROOT_APPLICATION

RUN apt-get update && apt-get install -y \
    software-properties-common \
    build-essential \
    pkg-config \
    ninja-build \
    libopenblas-dev \
    python3-pip \
    curl

COPY . $ROOT_APPLICATION

RUN curl https://get.modular.com | \
  MODULAR_AUTH=mut_c6464664cc674dcbaaee3f8027305b46 \
  sh -
#RUN modular install mojo

EXPOSE 8000

CMD ["bash"]
@loretoparisi loretoparisi added enhancement New feature or request mojo Issues that are related to mojo labels Sep 12, 2023
@DmarshalTU
Copy link

DmarshalTU commented Sep 12, 2023

i will add my two cent, i tried to run the mojo instalation om mac m1 based on limactl and "fake" my arch with local ubuntu vm, module cli was installed :

modular 0.1.4 (6b54d308)

but when i tried to run modular install mojo:

PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace. Stack dump: 0. Program arguments: modular install mojo #0 0x000055bb4b6fb567 (/usr/bin/modular+0x4ee567) #1 0x000055bb4b6f921e (/usr/bin/modular+0x4ec21e) #2 0x000055bb4b6fbc2f (/usr/bin/modular+0x4eec2f) #3 0x00007f34dfa3c4b0 (/lib/x86_64-linux-gnu/libc.so.6+0x3c4b0) #4 0x000055bb4c72c710 (/usr/bin/modular+0x151f710) #5 0x000055bb4bab6e78 (/usr/bin/modular+0x8a9e78) #6 0x000055bb4b6b74ad (/usr/bin/modular+0x4aa4ad) #7 0x000055bb4b6b5fe0 (/usr/bin/modular+0x4a8fe0) #8 0x00007f34dfa23a90 (/lib/x86_64-linux-gnu/libc.so.6+0x23a90) #9 0x00007f34dfa23b49 __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x23b49) #10 0x000055bb4b6b568e (/usr/bin/modular+0x4a868e) Illegal instruction (core dumped)

`(gdb) run install mojo
Starting program: /usr/bin/modular install mojo
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

Program received signal SIGILL, Illegal instruction.
0x0000555556a73710 in ?? ()
(gdb) bt
#0 0x0000555556a73710 in ?? ()
#1 0x0000555555dfde78 in ?? ()
#2 0x00005555559fe4ad in ?? ()
#3 0x00005555559fcfe0 in ?? ()
#4 0x00007ffff7823a90 in __libc_start_call_main (main=main@entry=0x5555559fc890, argc=argc@entry=3, argv=argv@entry=0x7fffffffe3b8)
at ../sysdeps/nptl/libc_start_call_main.h:58
#5 0x00007ffff7823b49 in __libc_start_main_impl (main=0x5555559fc890, argc=3, argv=0x7fffffffe3b8, init=, fini=,
rtld_fini=, stack_end=0x7fffffffe3a8) at ../csu/libc-start.c:360
#6 0x00005555559fc68e in ?? ()
(gdb) print variable_name
No symbol "variable_name" in current context.
(gdb) disassemble
No function contains program counter for selected frame.
(gdb) x/20i 0x0000555556a73710
=> 0x555556a73710: pextrb $0x1,%xmm1,%ebp
0x555556a73716: test $0x1,%bpl
0x555556a7371a: jne 0x555556a73780
0x555556a7371c: pextrb $0x2,%xmm1,%ebp
0x555556a73722: test $0x1,%bpl
0x555556a73726: jne 0x555556a73791
0x555556a73728: pextrb $0x3,%xmm1,%ebp
0x555556a7372e: test $0x1,%bpl
0x555556a73732: jne 0x555556a737a2
0x555556a73734: pextrb $0x4,%xmm1,%ebp
0x555556a7373a: test $0x1,%bpl
0x555556a7373e: jne 0x555556a737b3
0x555556a73740: pextrb $0x5,%xmm1,%ebp
0x555556a73746: test $0x1,%bpl
0x555556a7374a: jne 0x555556a737c4
0x555556a7374c: pextrb $0x6,%xmm1,%ebp
0x555556a73752: test $0x1,%bpl
0x555556a73756: jne 0x555556a737d9
0x555556a7375c: pextrb $0x7,%xmm1,%ebp
0x555556a73762: test $0x1,%bpl
(gdb) Quit`

@ematejska ematejska added modular-cli modular tool issues and removed mojo Issues that are related to mojo labels Sep 12, 2023
@jackos
Copy link
Collaborator

jackos commented Sep 13, 2023

That's a really cool experiment @DmarshalTU, unfortunately it won't work through QEMU or Rosetta emulation, but please upvote this ticket to show support for native Apple Silicon support: #510

@jackos jackos closed this as completed Sep 13, 2023
@DmarshalTU
Copy link

@jackos Yes I know, I was just curious and with some hope that maybe it will run, will upvote for sure!

@ematejska ematejska added the mojo-repo Tag all issues with this label label May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request modular-cli modular tool issues mojo-repo Tag all issues with this label
Projects
None yet
Development

No branches or pull requests

4 participants