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

Can't build on Alpine Linux aarch64 #961

Open
DvaMishkiLapa opened this issue May 6, 2024 · 0 comments
Open

Can't build on Alpine Linux aarch64 #961

DvaMishkiLapa opened this issue May 6, 2024 · 0 comments

Comments

@DvaMishkiLapa
Copy link

DvaMishkiLapa commented May 6, 2024

Good afternoon. Thank you very much for implementing this project. I am trying to build a library for postmarketOS (Alpine Linux), but I get a compilation error. What could be the problem?

Config:
OS: Linux google-kukui 6.6.25-mt8183 #1-postmarketos-mediatek-mt8183 SMP PREEMPT Fri Apr 12 13:06:02 aarch64 Linux

g++:

Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/aarch64-alpine-linux-musl/13.2.1/lto-wrapper
Target: aarch64-alpine-linux-musl
Configured with: /home/buildozer/aports/main/gcc/src/gcc-13-20240309/configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --build=aarch64-alpine-linux-musl --host=aarch64-alpine-linux-musl --target=aarch64-alpine-linux-musl --enable-checking=release --disable-cet --disable-fixed-point --disable-libstdcxx-pch --disable-multilib --disable-nls --disable-werror --disable-symvers --enable-__cxa_atexit --enable-default-pie --enable-default-ssp --enable-languages=c,c++,d,objc,go,fortran,ada --enable-link-serialization=2 --enable-linker-build-id --with-arch=armv8-a --with-abi=lp64 --disable-libquadmath --disable-libssp --disable-libsanitizer --enable-shared --enable-threads --enable-tls --with-bugurl=https://gitlab.alpinelinux.org/alpine/aports/-/issues --with-system-zlib --with-linker-hash-style=gnu --with-pkgversion='Alpine 13.2.1_git20240309'
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 13.2.1 20240309 (Alpine 13.2.1_git20240309) 

gcc:

Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/aarch64-alpine-linux-musl/13.2.1/lto-wrapper
Target: aarch64-alpine-linux-musl
Configured with: /home/buildozer/aports/main/gcc/src/gcc-13-20240309/configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --build=aarch64-alpine-linux-musl --host=aarch64-alpine-linux-musl --target=aarch64-alpine-linux-musl --enable-checking=release --disable-cet --disable-fixed-point --disable-libstdcxx-pch --disable-multilib --disable-nls --disable-werror --disable-symvers --enable-__cxa_atexit --enable-default-pie --enable-default-ssp --enable-languages=c,c++,d,objc,go,fortran,ada --enable-link-serialization=2 --enable-linker-build-id --with-arch=armv8-a --with-abi=lp64 --disable-libquadmath --disable-libssp --disable-libsanitizer --enable-shared --enable-threads --enable-tls --with-bugurl=https://gitlab.alpinelinux.org/alpine/aports/-/issues --with-system-zlib --with-linker-hash-style=gnu --with-pkgversion='Alpine 13.2.1_git20240309'
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 13.2.1 20240309 (Alpine 13.2.1_git20240309) 

clang:

Alpine clang version 17.0.6
Target: aarch64-alpine-linux-musl
Thread model: posix
InstalledDir: /usr/bin
Configuration file: /etc/clang17/aarch64-alpine-linux-musl.cfg

Build log with clang:

╰─ ./build.sh --compiler=clang
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- The CXX compiler identification is GNU 13.2.1
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Deprecation Warning at regamedll/CMakeLists.txt:20 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- Configuring done (1.1s)
-- Generating done (0.1s)
-- Build files have been written to: /home/thesame/GitProjects/ReGameDLL_CS/build
Updating appversion.h, new version is "5.26.0.698-dev", the old one was
[  0%] Built target appversion
[  0%] Building CXX object regamedll/CMakeFiles/regamedll.dir/dlls/airtank.cpp.o
g++: error: unrecognized command-line option '-m32'
g++: error: unrecognized command-line option '-msse3'
make[2]: *** [regamedll/CMakeFiles/regamedll.dir/build.make:76: regamedll/CMakeFiles/regamedll.dir/dlls/airtank.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:125: regamedll/CMakeFiles/regamedll.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

Build log with gcc:

╰─ ./build.sh --compiler=gcc
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- The CXX compiler identification is GNU 13.2.1
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Deprecation Warning at regamedll/CMakeLists.txt:20 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- Configuring done (0.8s)
-- Generating done (0.1s)
-- Build files have been written to: /home/thesame/GitProjects/ReGameDLL_CS/build
[  0%] Built target appversion
[  0%] Building CXX object regamedll/CMakeFiles/regamedll.dir/dlls/airtank.cpp.o
g++: error: unrecognized command-line option '-m32'
g++: error: unrecognized command-line option '-msse3'
make[2]: *** [regamedll/CMakeFiles/regamedll.dir/build.make:76: regamedll/CMakeFiles/regamedll.dir/dlls/airtank.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:125: regamedll/CMakeFiles/regamedll.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant