ExaWorks / SDK

ExaWorks SDK
11 stars 12 forks source link

Tutorials Container build fail on ARM chips #158

Closed okilic1 closed 1 year ago

okilic1 commented 1 year ago

The issue is related to EnTK installation

  1. installation with conda

=> ERROR [7/7] RUN conda install -y -c conda-forge radical.entk 25.9s [7/7] RUN conda install -y -c conda-forge radical.entk:

0 1.972 Collecting package metadata (current_repodata.json): ...working... done

0 5.847 Solving environment: ...working... failed with initial frozen solve. Retrying with flexible solve.

0 5.848 Collecting package metadata (repodata.json): ...working... done

0 24.29 Solving environment: ...working... failed with initial frozen solve. Retrying with flexible solve.

0 24.29

0 24.29 PackagesNotFoundError: The following packages are not available from current channels:

0 24.29

0 24.29 - radical.entk

0 24.29

0 24.29 Current channels:

0 24.29

0 24.29 - https://conda.anaconda.org/conda-forge/linux-aarch64

0 24.29 - https://conda.anaconda.org/conda-forge/noarch

0 24.29

0 24.29 To search for alternate channels that may provide the conda package you're

0 24.29 looking for, navigate to

0 24.29

0 24.29 https://anaconda.org

0 24.29

0 24.29 and use the search bar at the top of the page.

0 24.29

0 24.29

  1. installation with pip

0 7.383 building 'netifaces' extension

0 7.383 gcc -pthread -B /opt/conda/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O3 -Wall -fPIC -O3 -isystem /opt/conda/include -fPIC -O3 -isystem /opt/conda/include -fPIC -DNETIFACES_VERSION=0.11.0 -I/opt/conda/include/python3.9 -c netifaces.c -o build/temp.linux-aarch64-cpython-39/netifaces.o

0 7.383 error: command 'gcc' failed: No such file or directory

0 7.383 [end of output]

``` => ERROR [7/7] RUN pip3 install radical.entk 9.4s #0 7.132 Building wheel for netifaces (setup.py): started #0 7.379 Building wheel for netifaces (setup.py): finished with status 'error' #0 7.383 error: subprocess-exited-with-error #0 7.383 #0 7.383 × python setup.py bdist_wheel did not run successfully. #0 7.383 │ exit code: 1 #0 7.383 ╰─> [17 lines of output] #0 7.383 /opt/conda/lib/python3.9/site-packages/setuptools/config/setupcfg.py:508: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead. #0 7.383 warnings.warn(msg, warning_class) #0 7.383 running bdist_wheel #0 7.383 running build #0 7.383 running build_ext #0 7.383 checking for getifaddrs...not found. #0 7.383 checking for getnameinfo...not found. #0 7.383 checking for socket IOCTLs...not found. #0 7.383 checking for optional header files...none found. #0 7.383 checking whether struct sockaddr has a length field...no. #0 7.383 checking which sockaddr_xxx structs are defined...none! #0 7.383 checking for routing socket support...no. #0 7.383 checking for sysctl(CTL_NET...) support...no. #0 7.383 checking for netlink support...no. #0 7.383 building 'netifaces' extension #0 7.383 gcc -pthread -B /opt/conda/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O3 -Wall -fPIC -O3 -isystem /opt/conda/include -fPIC -O3 -isystem /opt/conda/include -fPIC -DNETIFACES_VERSION=0.11.0 -I/opt/conda/include/python3.9 -c netifaces.c -o build/temp.linux-aarch64-cpython-39/netifaces.o #0 7.383 error: command 'gcc' failed: No such file or directory #0 7.383 [end of output] #0 7.383 #0 7.383 note: This error originates from a subprocess, and is likely not a problem with pip. #0 7.384 ERROR: Failed building wheel for netifaces #0 7.384 Running setup.py clean for netifaces #0 7.551 Building wheel for radical.gtod (setup.py): started #0 8.331 Building wheel for radical.gtod (setup.py): finished with status 'done' #0 8.332 Created wheel for radical.gtod: filename=radical.gtod-1.20.1-py3-none-any.whl size=19401 sha256=fea9fe38c63f6ce92a93d6fa21a1b3853fc7071054f2e8e54e48d2f79789a645 #0 8.332 Stored in directory: /home/jovyan/.cache/pip/wheels/1e/c6/77/69b2ce92558bb3c71d27c3563f7bbe286e14d813830224eb46 #0 8.334 Building wheel for parse (setup.py): started #0 8.553 Building wheel for parse (setup.py): finished with status 'done' #0 8.554 Created wheel for parse: filename=parse-1.19.0-py3-none-any.whl size=24571 sha256=cec74c5119de61be1528104b20016a703f01a333d91f9a5f060a35acff8466de #0 8.554 Stored in directory: /home/jovyan/.cache/pip/wheels/d6/9c/58/ee3ba36897e890f3ad81e9b730791a153fce20caa4a8a474df #0 8.556 Successfully built radical.entk radical.pilot radical.utils radical.saga radical.gtod parse #0 8.556 Failed to build netifaces #0 8.985 Installing collected packages: pika, parse, ntplib, netifaces, msgpack, setproctitle, regex, pymongo, radical.utils, apache-libcloud, radical.saga, radical.gtod, radical.pilot, radical.entk #0 9.045 Running setup.py install for netifaces: started #0 9.284 Running setup.py install for netifaces: finished with status 'error' #0 9.286 error: subprocess-exited-with-error #0 9.286 #0 9.286 × Running setup.py install for netifaces did not run successfully. #0 9.286 │ exit code: 1 #0 9.286 ╰─> [19 lines of output] #0 9.286 /opt/conda/lib/python3.9/site-packages/setuptools/config/setupcfg.py:508: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead. #0 9.286 warnings.warn(msg, warning_class) #0 9.286 running install #0 9.286 /opt/conda/lib/python3.9/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. #0 9.286 warnings.warn( #0 9.286 running build #0 9.286 running build_ext #0 9.286 checking for getifaddrs...not found. #0 9.286 checking for getnameinfo...not found. #0 9.286 checking for socket IOCTLs...not found. #0 9.286 checking for optional header files...none found. #0 9.286 checking whether struct sockaddr has a length field...no. #0 9.286 checking which sockaddr_xxx structs are defined...none! #0 9.286 checking for routing socket support...no. #0 9.286 checking for sysctl(CTL_NET...) support...no. #0 9.286 checking for netlink support...no. #0 9.286 building 'netifaces' extension #0 9.286 gcc -pthread -B /opt/conda/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O3 -Wall -fPIC -O3 -isystem /opt/conda/include -fPIC -O3 -isystem /opt/conda/include -fPIC -DNETIFACES_VERSION=0.11.0 -I/opt/conda/include/python3.9 -c netifaces.c -o build/temp.linux-aarch64-cpython-39/netifaces.o #0 9.286 error: command 'gcc' failed: No such file or directory #0 9.286 [end of output] #0 9.286 #0 9.286 note: This error originates from a subprocess, and is likely not a problem with pip. #0 9.288 error: legacy-install-failure #0 9.288 #0 9.288 × Encountered error while trying to install package. #0 9.288 ╰─> netifaces #0 9.288 #0 9.288 note: This is an issue with the package mentioned above, not pip. #0 9.288 hint: See above for output from the failure. failed to solve: executor failed running [/bin/bash -o pipefail -c pip3 install radical.entk]: exit code: 1 ```