Installing 4.0 on Manjaro Linux: Nearly but not quite

Hi,
I am testing kicad for classroom use at UG and PG level at my university. The sudo make install fails after successfully cmaking and making, successfully passing my bzr ID etc. with the following:

[snip = 1000’s of lines of success-type messages]

gcc.compile.c++ bin.v2/libs/regex/build/gcc-5.2.0/release/link-static/threading-multi/usinstances.o
gcc.archive bin.v2/libs/regex/build/gcc-5.2.0/release/link-static/threading-multi/libboost_regex.a
common.copy /home/roger/KiCad4.0/boost_root/lib/libboost_regex.a
failed updating 2 targets…
…skipped 9 targets…
…updated 10887 targets…
CMakeFiles/boost.dir/build.make:140: recipe for target ‘…/.downloads-by-cmake/boost_1_54_0/src/boost-stamp/boost-build’ failed
make[2]: *** […/.downloads-by-cmake/boost_1_54_0/src/boost-stamp/boost-build] Error 1
CMakeFiles/Makefile2:67: recipe for target ‘CMakeFiles/boost.dir/all’ failed
make[1]: *** [CMakeFiles/boost.dir/all] Error 2
Makefile:149: recipe for target ‘all’ failed
make: *** [all] Error 2

Am I being too optimistic? Should I just sudo make install {package} instead of all? Any ideas?

Thanks,

Roger

EDIT: I have included just the compile failures from sudo make --debug=j install
(As a new and thoroughly untrustworthy user I am not allowed to upload attachments.)

>sudo make --debug=j install [snip=big] ** LOTS OF LINES OMITTED HERE **

In file included from ./boost/thread/once.hpp:20:0,
from libs/thread/src/pthread/thread.cpp:17:
./boost/thread/pthread/once_atomic.hpp:121:15: note: candidate: template<class Function, class … ArgTypes> void boost::call_once(boost::once_flag&, boost::detail::thread_move_t, boost::detail::thread_move_t…)
inline void call_once(once_flag& flag, BOOST_THREAD_RV_REF(Function) f, BOOST_THREAD_RV_REF(ArgTypes)… args)
^
./boost/thread/pthread/once_atomic.hpp:121:15: note: template argument deduction/substitution failed:
libs/thread/src/pthread/thread.cpp:140:88: note: mismatched types ‘boost::detail::thread_move_t’ and ‘void (*)()’
boost::call_once(current_thread_tls_init_flag,create_current_thread_tls_key);
^
[snip]

In file included from libs/thread/src/pthread/thread.cpp:17:0:
./boost/thread/once.hpp:35:13: note: candidate: template void boost::call_once(Function, boost::once_flag&)
inline void call_once(Function func,once_flag& flag)
^
./boost/thread/once.hpp:35:13: note: template argument deduction/substitution failed:
libs/thread/src/pthread/thread.cpp:140:88: note: cannot convert ‘boost::detail::{anonymous}::create_current_thread_tls_key’ (type ‘void()’) to type ‘boost::once_flag&’
boost::call_once(current_thread_tls_init_flag,create_current_thread_tls_key);
^
libs/thread/src/pthread/thread.cpp: In function ‘void boost::detail::set_current_thread_data(boost::detail::thread_data_base*)’:
libs/thread/src/pthread/thread.cpp:146:88: error: no matching function for call to ‘call_once(boost::once_flag&, void (&)())’
boost::call_once(current_thread_tls_init_flag,create_current_thread_tls_key);

[snip]

In file included from libs/thread/src/pthread/thread.cpp:17:0:
./boost/thread/once.hpp:35:13: note: candidate: template void boost::call_once(Function, boost::once_flag&)
inline void call_once(Function func,once_flag& flag)
^
./boost/thread/once.hpp:35:13: note: template argument deduction/substitution failed:
libs/thread/src/pthread/thread.cpp:146:88: note: cannot convert ‘boost::detail::{anonymous}::create_current_thread_tls_key’ (type ‘void()’) to type ‘boost::once_flag&’
boost::call_once(current_thread_tls_init_flag,create_current_thread_tls_key);
^
[snip]

failed gcc.compile.c++ bin.v2/libs/thread/build/gcc-5.2.0/release/threading-multi/pthread/thread.o…

[snip]

In file included from ./boost/thread/once.hpp:20:0,
from libs/thread/src/pthread/thread.cpp:17:
./boost/thread/pthread/once_atomic.hpp:121:15: note: candidate: template<class Function, class … ArgTypes> void boost::call_once(boost::once_flag&, boost::detail::thread_move_t, boost::detail::thread_move_t…)
inline void call_once(once_flag& flag, BOOST_THREAD_RV_REF(Function) f, BOOST_THREAD_RV_REF(ArgTypes)… args)
^
./boost/thread/pthread/once_atomic.hpp:121:15: note: template argument deduction/substitution failed:
libs/thread/src/pthread/thread.cpp:140:88: note: mismatched types ‘boost::detail::thread_move_t’ and ‘void (*)()’
boost::call_once(current_thread_tls_init_flag,create_current_thread_tls_key);
^
[snip]

In file included from libs/thread/src/pthread/thread.cpp:17:0:
./boost/thread/once.hpp:35:13: note: candidate: template void boost::call_once(Function, boost::once_flag&)
inline void call_once(Function func,once_flag& flag)
^
./boost/thread/once.hpp:35:13: note: template argument deduction/substitution failed:
libs/thread/src/pthread/thread.cpp:140:88: note: cannot convert ‘boost::detail::{anonymous}::create_current_thread_tls_key’ (type ‘void()’) to type ‘boost::once_flag&’
boost::call_once(current_thread_tls_init_flag,create_current_thread_tls_key);
^
libs/thread/src/pthread/thread.cpp: In function ‘void boost::detail::set_current_thread_data(boost::detail::thread_data_base*)’:
libs/thread/src/pthread/thread.cpp:146:88: error: no matching function for call to ‘call_once(boost::once_flag&, void (&)())’
boost::call_once(current_thread_tls_init_flag,create_current_thread_tls_key);
^
In file included from ./boost/thread/once.hpp:20:0,
from libs/thread/src/pthread/thread.cpp:17:
./boost/thread/pthread/once_atomic.hpp:121:15: note: candidate: template<class Function, class … ArgTypes> void boost::call_once(boost::once_flag&, boost::detail::thread_move_t, boost::detail::thread_move_t…)
inline void call_once(once_flag& flag, BOOST_THREAD_RV_REF(Function) f, BOOST_THREAD_RV_REF(ArgTypes)… args)
^
./boost/thread/pthread/once_atomic.hpp:121:15: note: template argument deduction/substitution failed:
libs/thread/src/pthread/thread.cpp:146:88: note: mismatched types ‘boost::detail::thread_move_t’ and ‘void (*)()’
boost::call_once(current_thread_tls_init_flag,create_current_thread_tls_key);
^
In file included from libs/thread/src/pthread/thread.cpp:17:0:
./boost/thread/once.hpp:35:13: note: candidate: template void boost::call_once(Function, boost::once_flag&)
inline void call_once(Function func,once_flag& flag)
^
./boost/thread/once.hpp:35:13: note: template argument deduction/substitution failed:
libs/thread/src/pthread/thread.cpp:146:88: note: cannot convert ‘boost::detail::{anonymous}::create_current_thread_tls_key’ (type ‘void()’) to type ‘boost::once_flag&’
boost::call_once(current_thread_tls_init_flag,create_current_thread_tls_key);
^
[snip]

"g++"  -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -pedantic -pthread -Wextra -Wno-long-long -Wno-variadic-macros -Wunused-function -fPIC -pedantic -fPIC -DBOOST_ALL_NO_LIB=1 -DBOOST_SYSTEM_STATIC_LINK=1 -DBOOST_THREAD_BUILD_LIB=1 -DBOOST_THREAD_DONT_USE_CHRONO -DBOOST_THREAD_POSIX -DNDEBUG  -I"." -c -o "bin.v2/libs/thread/build/gcc-5.2.0/release/link-static/threading-multi/pthread/thread.o" "libs/thread/src/pthread/thread.cpp"

failed gcc.compile.c++ bin.v2/libs/thread/build/gcc-5.2.0/release/link-static/threading-multi/pthread/thread.o…

[snip]

If I recall correctly from the dev list the included boost fails to build on gcc 5.1 and 5.2.

Install boost and then run cmake with the -DKICAD_SKIP_BOOST=On option and try again. Hopefully that works for you!

Many thanks but it didn’t make any difference (same error). I did a couple of cycles of rm -rf Kicad/*, bzr branch wotsit, cmake, make with the cmake option you specified. boost 1.59 is installed and recently updated. Unfortunately I am too busy to spend much time on this right now. Might get back to it later.

Why do you do bzr branch wotsit? (I don’t know what “wotsit” is).

Also make soure that your system is completely up to date.