KeganHollern / MemStream

Efficient DMA Library
44 stars 12 forks source link

CMAke, docker, Mac #8

Open jayunit100 opened 10 months ago

jayunit100 commented 10 months ago

on

Apple M2 Pro

Am seein a funny build error....I guess we need to run Colima or something to do this on a Mac? .... maybe related to docker or xyhve /?

 => [amd64 2/8] RUN arch=$(uname -m) && echo "Architecture: $arch" && if [ "$arch" != "x86_64" ]; then exit 1; fi                                                                0.2s
 => CANCELED [amd64 3/8] RUN apt-get update &&     apt-get install -y wget gcc g++ make ninja-build                                                                             43.3s
 => [arm64 2/8] RUN arch=$(uname -m) && echo "Architecture: $arch" && if [ "$arch" != "aarch64" ]; then exit 1; fi                                                               0.1s
 => [arm64 3/8] RUN apt-get update &&     apt-get install -y wget gcc g++ make ninja-build                                                                                      36.6s
 => [arm64 4/8] RUN wget https://github.com/Kitware/CMake/releases/download/v3.28.1/cmake-3.28.1-Linux-aarch64.sh &&     sh cmake-3.28.1-Linux-aarch64.sh --prefix=/usr/local -  5.9s
 => [arm64 5/8] WORKDIR /src/MemStream                                                                                                                                           0.0s
 => [arm64 6/8] COPY . .                                                                                                                                                         0.0s
 => ERROR [arm64 7/8] RUN cmake -DCMAKE_BUILD_TYPE=Debug -G Ninja -S /src/MemStream -B /src/MemStream/cmake-build-docker                                                         0.3s
------                                                                                                                                                                                
 > [arm64 7/8] RUN cmake -DCMAKE_BUILD_TYPE=Debug -G Ninja -S /src/MemStream -B /src/MemStream/cmake-build-docker:                                                                    
0.127 -- The C compiler identification is GNU 11.4.0                                                                                                                                  
0.163 -- The CXX compiler identification is GNU 11.4.0                                                                                                                                
0.171 -- Detecting C compiler ABI info                                                                                                                                                
0.200 -- Detecting C compiler ABI info - done                                                                                                                                         
0.205 -- Check for working C compiler: /usr/bin/cc - skipped                                                                                                                          
0.206 -- Detecting C compile features                                                                                                                                                 
0.206 -- Detecting C compile features - done                                                                                                                                          
0.211 -- Detecting CXX compiler ABI info
0.246 -- Detecting CXX compiler ABI info - done
0.252 -- Check for working CXX compiler: /usr/bin/c++ - skipped
0.252 -- Detecting CXX compile features
0.252 -- Detecting CXX compile features - done
0.252 Output directory: /src/MemStream/build/aarch64
0.253 CMake Error at CMakeLists.txt:26 (add_subdirectory):
0.253   The source directory
0.253 
0.253     /src/MemStream/deps/zydis
0.253 
0.253   does not contain a CMakeLists.txt file.
0.253 
0.253 
0.253 Linking to Leechcore: 
0.253 Linking to MemProcFS: 
0.256 -- Configuring incomplete, errors occurred!
------
Dockerfile:24
--------------------
  22 |     
  23 |     # generate via ninja
  24 | >>> RUN cmake -DCMAKE_BUILD_TYPE=Debug -G Ninja -S /src/MemStream -B /src/MemStream/cmake-build-docker
  25 |     RUN cmake --build /src/MemStream/cmake-build-docker --target memstream -j 6
  26 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c cmake -DCMAKE_BUILD_TYPE=Debug -G Ninja -S /src/MemStream -B /src/MemStream/cmake-build-docker" did not complete successfully: exit code: 1
make: *** [linux] Error 1

➜ MemStream git:(main) ✗

KeganHollern commented 8 months ago

Will focus again on mac support after features are built out for windows. Leaving this ticket open for others to request earlier prioritization.