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

stdlibc++ is not correct in manylinux2014-aarch64 #780

Open
jgillis opened this issue Apr 28, 2023 · 6 comments
Open

stdlibc++ is not correct in manylinux2014-aarch64 #780

jgillis opened this issue Apr 28, 2023 · 6 comments
Labels

Comments

@jgillis
Copy link

jgillis commented Apr 28, 2023

Elaborating on #753, it seems the reported issues has not been conclusively solved.

Test repo: https://github.com/jgillis/dockcross-aarch64-test
Reproduce: ./run.sh on a linux environment

Output from run:

Trying to pull docker.io/dockcross/manylinux2014-aarch64:20230422-a0eaff4...
...
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 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 C compiler identification is GNU 10.3.0
-- The CXX compiler identification is GNU 10.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/xcc/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/xcc/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /work/build
/usr/bin/cmake -S/work -B/work/build --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /work/build/CMakeFiles /work/build//CMakeFiles/progress.marks
/usr/bin/gmake  -f CMakeFiles/Makefile2 all
gmake[1]: Entering directory `/work/build'
/usr/bin/gmake  -f CMakeFiles/mystuff.dir/build.make CMakeFiles/mystuff.dir/depend
gmake[2]: Entering directory `/work/build'
cd /work/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /work /work /work/build /work/build /work/build/CMakeFiles/mystuff.dir/DependInfo.cmake --color=
gmake[2]: Leaving directory `/work/build'
/usr/bin/gmake  -f CMakeFiles/mystuff.dir/build.make CMakeFiles/mystuff.dir/build
gmake[2]: Entering directory `/work/build'
[ 25%] Building CXX object CMakeFiles/mystuff.dir/stuff.cpp.o
/usr/xcc/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-g++ --sysroot=/usr/xcc/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/sysroot -Dmystuff_EXPORTS  -I /usr/xcc/aarch64-unknown-linux-gnu/include/ -fPIC -MD -MT CMakeFiles/mystuff.dir/stuff.cpp.o -MF CMakeFiles/mystuff.dir/stuff.cpp.o.d -o CMakeFiles/mystuff.dir/stuff.cpp.o -c /work/stuff.cpp
[ 50%] Linking CXX shared library libmystuff.so
/usr/bin/cmake -E cmake_link_script CMakeFiles/mystuff.dir/link.txt --verbose=1
/usr/xcc/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-g++ --sysroot=/usr/xcc/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/sysroot -fPIC -I /usr/xcc/aarch64-unknown-linux-gnu/include/ -shared -Wl,-soname,libmystuff.so -o libmystuff.so CMakeFiles/mystuff.dir/stuff.cpp.o 
gmake[2]: Leaving directory `/work/build'
[ 50%] Built target mystuff
/usr/bin/gmake  -f CMakeFiles/main.dir/build.make CMakeFiles/main.dir/depend
gmake[2]: Entering directory `/work/build'
cd /work/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /work /work /work/build /work/build /work/build/CMakeFiles/main.dir/DependInfo.cmake --color=
gmake[2]: Leaving directory `/work/build'
/usr/bin/gmake  -f CMakeFiles/main.dir/build.make CMakeFiles/main.dir/build
gmake[2]: Entering directory `/work/build'
[ 75%] Building CXX object CMakeFiles/main.dir/main.cpp.o
/usr/xcc/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-g++ --sysroot=/usr/xcc/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/sysroot   -I /usr/xcc/aarch64-unknown-linux-gnu/include/ -MD -MT CMakeFiles/main.dir/main.cpp.o -MF CMakeFiles/main.dir/main.cpp.o.d -o CMakeFiles/main.dir/main.cpp.o -c /work/main.cpp
[100%] Linking CXX executable main
/usr/bin/cmake -E cmake_link_script CMakeFiles/main.dir/link.txt --verbose=1
/usr/xcc/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-g++ --sysroot=/usr/xcc/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/sysroot -I /usr/xcc/aarch64-unknown-linux-gnu/include/ -rdynamic CMakeFiles/main.dir/main.cpp.o -o main  -Wl,-rpath,/work/build libmystuff.so 
libmystuff.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()'
libmystuff.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::find(char const*, unsigned long) const'
libmystuff.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&)'
collect2: error: ld returned 1 exit status
gmake[2]: *** [main] Error 1
gmake[1]: *** [CMakeFiles/main.dir/all] Error 2
gmake[2]: Leaving directory `/work/build'
gmake[1]: Leaving directory `/work/build'
gmake: *** [all] Error 2
@thewtex
Copy link
Collaborator

thewtex commented May 4, 2023

I have also observed this.

@github-actions
Copy link

github-actions bot commented Sep 1, 2023

This issue is stale because it has been open 120 days with no activity. Remove stale label or comment or this will be closed in 30 days.

@github-actions github-actions bot added the Stale label Sep 1, 2023
@bensuperpc bensuperpc removed the Stale label Sep 22, 2023
Copy link

This issue is stale because it has been open 120 days with no activity. Remove stale label or comment or this will be closed in 30 days.

@github-actions github-actions bot added the Stale label Jan 20, 2024
@agriyakhetarpal
Copy link

Hi, I am subscribed to this issue – adding a comment here since I currently face this too and would like to get this un-staled

Copy link

This issue is stale because it has been open 120 days with no activity. Remove stale label or comment or this will be closed in 30 days.

@github-actions github-actions bot added the Stale label May 28, 2024
@agriyakhetarpal
Copy link

Still pretty much valid. Commenting on the issue so that it doesn't go stale.

@github-actions github-actions bot removed the Stale label May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants