OffchainLabs / arbitrum-classic

Powers fast, private, decentralized applications
https://offchainlabs.com/
Apache License 2.0
1.98k stars 1.39k forks source link

Docker image for ARM #2611

Closed 0xAlcibiades closed 1 month ago

0xAlcibiades commented 10 months ago

As folks move to arm, there is a demand to run classic archive nodes on ARM. Would be sweet to update the build here. I've taken a crack at it, and it presently fails on:

22.83  /bin/bash ./libtool   --mode=install /usr/bin/install -c   libsecp256k1.la '/home/user/arb-avm-cpp/build/lib'
22.83  /usr/bin/install -c -m 644 include/secp256k1.h include/secp256k1_preallocated.h include/secp256k1_recovery.h '/home/user/arb-avm-cpp/build/include'
22.83  /usr/bin/install -c -m 644 libsecp256k1.pc '/home/user/arb-avm-cpp/build/lib/pkgconfig'
22.84 libtool: install: /usr/bin/install -c .libs/libsecp256k1.so.0.0.0 /home/user/arb-avm-cpp/build/lib/libsecp256k1.so.0.0.0
22.84 libtool: install: (cd /home/user/arb-avm-cpp/build/lib && { ln -s -f libsecp256k1.so.0.0.0 libsecp256k1.so.0 || { rm -f libsecp256k1.so.0 && ln -s libsecp256k1.so.0.0.0 libsecp256k1.so.0; }; })
22.84 libtool: install: (cd /home/user/arb-avm-cpp/build/lib && { ln -s -f libsecp256k1.so.0.0.0 libsecp256k1.so || { rm -f libsecp256k1.so && ln -s libsecp256k1.so.0.0.0 libsecp256k1.so; }; })
22.85 libtool: install: /usr/bin/install -c .libs/libsecp256k1.lai /home/user/arb-avm-cpp/build/lib/libsecp256k1.la
22.85 libtool: install: /usr/bin/install -c .libs/libsecp256k1.a /home/user/arb-avm-cpp/build/lib/libsecp256k1.a
22.85 libtool: install: chmod 644 /home/user/arb-avm-cpp/build/lib/libsecp256k1.a
22.85 libtool: install: /usr/bin/ranlib /home/user/arb-avm-cpp/build/lib/libsecp256k1.a
22.87 libtool: finish: PATH="/home/user/bin:/home/user/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/sbin" ldconfig -n /home/user/arb-avm-cpp/build/lib
22.87 ----------------------------------------------------------------------
22.87 Libraries have been installed in:
22.87    /home/user/arb-avm-cpp/build/lib
22.87
22.87 If you ever happen to want to link against installed libraries
22.87 in a given directory, LIBDIR, you must either use libtool, and
22.87 specify the full pathname of the library, or use the '-LLIBDIR'
22.87 flag during linking and do at least one of the following:
22.87    - add LIBDIR to the 'LD_LIBRARY_PATH' environment variable
22.87      during execution
22.87    - add LIBDIR to the 'LD_RUN_PATH' environment variable
22.87      during linking
22.87    - use the '-Wl,-rpath -Wl,LIBDIR' linker flag
22.87    - have your system administrator add LIBDIR to '/etc/ld.so.conf'
22.87
22.87 See any operating system documentation about shared libraries for
22.87 more information, such as the ld(1) and ld.so(8) manual pages.
22.87 ----------------------------------------------------------------------
22.88 [ 23%] Completed 'secp256k1_ext'
22.90 [ 23%] Built target secp256k1_ext
22.90 gmake: *** [Makefile:160: all] Error 2
------
arb-node.Dockerfile:14
--------------------
  13 |     # Build arb-avm-cpp
  14 | >>> RUN mkdir -p arb-avm-cpp/build && cd arb-avm-cpp/build && \
  15 | >>>     cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_TESTING=0 -DENABLE_TCMALLOC=true && \
  16 | >>>     cmake --build . -j $(nproc)
  17 |
--------------------
ERROR: failed to solve: process "/bin/sh -c mkdir -p arb-avm-cpp/build && cd arb-avm-cpp/build &&     cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_TESTING=0 -DENABLE_TCMALLOC=true &&     cmake --build . -j $(nproc)" did not complete successfully: exit code: 2
joshuacolvin0 commented 1 month ago

Nitro Docker images for ARM are currently published on Docker Hub. No plans on adding ARM support for arbitrum classic