Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] cmake can't be compiled for Raspberry Pi 3 B+
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM
View previous topic :: View next topic  
Author Message
crocket
Guru
Guru


Joined: 29 Apr 2017
Posts: 558

PostPosted: Fri Jul 12, 2019 11:08 pm    Post subject: [SOLVED] cmake can't be compiled for Raspberry Pi 3 B+ Reply with quote

I tried to upgrade gentoo for Raspberry Pi 3 B+ on qemu aarch64 chroot with distcc cross-compilation. I got the following error while cmake was compiled.

Code:
-- The C compiler identification is GNU 8.2.0
-- The CXX compiler identification is GNU 8.2.0
-- Check for working C compiler: /usr/lib/distcc/bin/aarch64-unknown-linux-gnu-gcc
-- Check for working C compiler: /usr/lib/distcc/bin/aarch64-unknown-linux-gnu-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/lib/distcc/bin/aarch64-unknown-linux-gnu-g++
-- Check for working CXX compiler: /usr/lib/distcc/bin/aarch64-unknown-linux-gnu-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Checking if compiler supports C11 _Thread_local
-- Checking if compiler supports C11 _Thread_local - yes
-- Checking if compiler supports needed C++17 constructs
-- Checking if compiler supports needed C++17 constructs - yes
-- Checking if compiler supports C++ make_unique
-- Checking if compiler supports C++ make_unique - no
-- Checking if compiler supports C++ unique_ptr
-- Checking if compiler supports C++ unique_ptr - no
CMake Error at CMakeLists.txt:92 (message):
  The C++ compiler does not support C++11 (e.g.  std::unique_ptr).


/var/tmp/portage/dev-util/cmake-3.14.3/work/cmake-3.14.3_build/CMakeFiles/CMakeError.log

Code:
Determining if compiler supports C++ make_unique failed with the following output:
Change Dir: /var/tmp/portage/dev-util/cmake-3.14.3/work/cmake-3.14.3_build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/gmake" "cmTC_b1ce4/fast"
/usr/bin/gmake -f CMakeFiles/cmTC_b1ce4.dir/build.make CMakeFiles/cmTC_b1ce4.dir/build
gmake[1]: Entering directory '/var/tmp/portage/dev-util/cmake-3.14.3/work/cmake-3.14.3_build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_b1ce4.dir/cm_cxx_make_unique.cxx.o
/usr/lib/distcc/bin/aarch64-unknown-linux-gnu-g++    -DNDEBUG -O2 -pipe    -std=gnu++1z -o CMakeFiles/cmTC_b1ce4.dir/cm_cxx_make_unique.cxx.o -c /var/tmp/portage/dev-util/cmake-3.14.3/work/cmake-3.14.3/Source/Checks/cm_cxx_make_unique.cxx
distcc[13344] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
Linking CXX executable cmTC_b1ce4
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_b1ce4.dir/link.txt --verbose=1
/usr/lib/distcc/bin/aarch64-unknown-linux-gnu-g++  -O2 -pipe   -Wl,-O1 -Wl,--as-needed  -rdynamic CMakeFiles/cmTC_b1ce4.dir/cm_cxx_make_unique.cxx.o  -o cmTC_b1ce4
gmake[1]: Leaving directory '/var/tmp/portage/dev-util/cmake-3.14.3/work/cmake-3.14.3_build/CMakeFiles/CMakeTmp'


Determining if compiler supports C++ unique_ptr failed with the following output:
Change Dir: /var/tmp/portage/dev-util/cmake-3.14.3/work/cmake-3.14.3_build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/gmake" "cmTC_7e0e1/fast"
/usr/bin/gmake -f CMakeFiles/cmTC_7e0e1.dir/build.make CMakeFiles/cmTC_7e0e1.dir/build
gmake[1]: Entering directory '/var/tmp/portage/dev-util/cmake-3.14.3/work/cmake-3.14.3_build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_7e0e1.dir/cm_cxx_unique_ptr.cxx.o
/usr/lib/distcc/bin/aarch64-unknown-linux-gnu-g++    -DNDEBUG -O2 -pipe    -std=gnu++1z -o CMakeFiles/cmTC_7e0e1.dir/cm_cxx_unique_ptr.cxx.o -c /var/tmp/portage/dev-util/cmake-3.14.3/work/cmake-3.14.3/Source/Checks/cm_cxx_unique_ptr.cxx
distcc[13476] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
Linking CXX executable cmTC_7e0e1
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_7e0e1.dir/link.txt --verbose=1
/usr/lib/distcc/bin/aarch64-unknown-linux-gnu-g++  -O2 -pipe   -Wl,-O1 -Wl,--as-needed  -rdynamic CMakeFiles/cmTC_7e0e1.dir/cm_cxx_unique_ptr.cxx.o  -o cmTC_7e0e1
gmake[1]: Leaving directory '/var/tmp/portage/dev-util/cmake-3.14.3/work/cmake-3.14.3_build/CMakeFiles/CMakeTmp'


distccd crashed according to rc-status.


Last edited by crocket on Wed Dec 18, 2019 7:26 am; edited 1 time in total
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 4438
Location: Frankfurt, Germany

PostPosted: Fri Jul 12, 2019 11:55 pm    Post subject: Reply with quote

Does this help: https://forums.gentoo.org/viewtopic-t-1098272.html ?
Back to top
View user's profile Send private message
crocket
Guru
Guru


Joined: 29 Apr 2017
Posts: 558

PostPosted: Sat Jul 13, 2019 12:22 am    Post subject: Reply with quote

mike155 wrote:
Does this help: https://forums.gentoo.org/viewtopic-t-1098272.html ?


It seems distcc cannot compile cmake, yet.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum