Open isene opened 6 years ago
:+1:
+1
same error here (VoidLinux) today :-[ so I thought to try again by cloning the sources from a fork, precisely from this repository: https://github.com/Gordin/console-client: repeating the same compilation steps, everything worked at first attempt! :-)
same error here (VoidLinux) today :-[ so I thought to try again by cloning the sources from a fork, precisely from this repository: https://github.com/Gordin/console-client: repeating the same compilation steps, everything worked at first attempt! :-)
The same error occured using the alternative repo (on Ubuntu 18.04).
Same issue, is this repo actively maintained?
In file included from /home/nkj/pcloud-console-client/pCloudCC/pclsync_lib.cpp:30:0:
/home/nkj/pcloud-console-client/pCloudCC/lib/pclsync/pcompat.h:95:0: warning: "_GNU_SOURCE" redefined
#define _GNU_SOURCE
<command-line>:0:0: note: this is the location of the previous definition
In file included from /usr/include/boost/smart_ptr/detail/local_sp_deleter.hpp:20:0,
from /usr/include/boost/smart_ptr/shared_ptr.hpp:1158,
from /usr/include/boost/shared_ptr.hpp:17,
from /home/nkj/pcloud-console-client/pCloudCC/pclsync_lib.cpp:45:
/usr/include/boost/smart_ptr/detail/local_counted_base.hpp: In member function ‘void boost::detail::local_counted_base::add_ref()’:
/usr/include/boost/smart_ptr/detail/local_counted_base.hpp:67:9: error: ‘__builtin_assume’ was not declared in this scope
__builtin_assume( local_use_count_ >= 1 );
^~~~~~~~~~~~~~~~
/usr/include/boost/smart_ptr/detail/local_counted_base.hpp:67:9: note: suggested alternative: ‘__builtin_abs’
__builtin_assume( local_use_count_ >= 1 );
^~~~~~~~~~~~~~~~
__builtin_abs
CMakeFiles/pcloudcc_lib.dir/build.make:86: recipe for target 'CMakeFiles/pcloudcc_lib.dir/pclsync_lib.cpp.o' failed
make[2]: *** [CMakeFiles/pcloudcc_lib.dir/pclsync_lib.cpp.o] Error 1
CMakeFiles/Makefile2:168: recipe for target 'CMakeFiles/pcloudcc_lib.dir/all' failed
make[1]: *** [CMakeFiles/pcloudcc_lib.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
~Same issue. Anyone find a workaround?~
~Figured it out. Don't copy and paste the commands from the README, as they clone an old repo without the fix listed in this issue.~
Acutally, the compilation got further but still failed with the error listed above.
Still same issue here:
drake@ERRY:~/gitrep/pcloud/console-client/pCloudCC$ make [ 20%] Built target sqlite3 [ 30%] Building CXX object CMakeFiles/pcloudcc_lib.dir/pclsync_lib.cpp.o In file included from /home/drake/gitrep/pcloud/console-client/pCloudCC/pclsync_lib.cpp:30:0: /home/drake/gitrep/pcloud/console-client/pCloudCC/lib/pclsync/pcompat.h:95:0: warning: "_GNU_SOURCE" redefined
I'm getting the same error on a fresh Ubuntu 18.04 install
greg@clownpornserver:~/console-client/pCloudCC$ make
Scanning dependencies of target sqlite3
[ 10%] Building C object CMakeFiles/sqlite3.dir/lib/sqlite/sqlite3.c.o
[ 20%] Linking C static library libsqlite3.a
[ 20%] Built target sqlite3
Scanning dependencies of target pcloudcc_lib
[ 30%] Building CXX object CMakeFiles/pcloudcc_lib.dir/pclsync_lib_c.cpp.o
[ 40%] Building CXX object CMakeFiles/pcloudcc_lib.dir/pclsync_lib.cpp.o
In file included from /home/user/console-client/pCloudCC/pclsync_lib.cpp:30:0:
/home/user/console-client/pCloudCC/lib/pclsync/pcompat.h:95:0: warning: "_GNU_SOURCE" redefined
#define _GNU_SOURCE
<command-line>:0:0: note: this is the location of the previous definition
In file included from /usr/include/boost/smart_ptr/detail/local_sp_deleter.hpp:20:0,
from /usr/include/boost/smart_ptr/shared_ptr.hpp:1158,
from /usr/include/boost/shared_ptr.hpp:17,
from /home/user/console-client/pCloudCC/pclsync_lib.cpp:45:
/usr/include/boost/smart_ptr/detail/local_counted_base.hpp: In member function ‘void boost::detail::local_counted_base::add_ref()’:
/usr/include/boost/smart_ptr/detail/local_counted_base.hpp:67:9: error: ‘__builtin_assume’ was not declared in this scope
__builtin_assume( local_use_count_ >= 1 );
^~~~~~~~~~~~~~~~
/usr/include/boost/smart_ptr/detail/local_counted_base.hpp:67:9: note: suggested alternative: ‘__builtin_abs’
__builtin_assume( local_use_count_ >= 1 );
^~~~~~~~~~~~~~~~
__builtin_abs
CMakeFiles/pcloudcc_lib.dir/build.make:86: recipe for target 'CMakeFiles/pcloudcc_lib.dir/pclsync_lib.cpp.o' failed
make[2]: *** [CMakeFiles/pcloudcc_lib.dir/pclsync_lib.cpp.o] Error 1
CMakeFiles/Makefile2:168: recipe for target 'CMakeFiles/pcloudcc_lib.dir/all' failed
make[1]: *** [CMakeFiles/pcloudcc_lib.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
Same error here: make [ 18%] Built target sqlite3 [ 27%] Building CXX object CMakeFiles/pcloudcc_lib.dir/pclsync_lib.cpp.o In file included from /root/console-client/pCloudCC/pclsync_lib.cpp:36:0: /root/console-client/pCloudCC/lib/pclsync/pcompat.h:95:0: warning: "_GNU_SOURCE" redefined
same error
root@server:~/# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.2 LTS
Release: 18.04
Codename: bionic
root@server:~/dev/console-client/pCloudCC# sudo make install
[ 18%] Built target sqlite3
[ 27%] Building CXX object CMakeFiles/pcloudcc_lib.dir/pclsync_lib.cpp.o
In file included from /root/dev/console-client/pCloudCC/pclsync_lib.cpp:36:0:
/root/dev/console-client/pCloudCC/lib/pclsync/pcompat.h:95:0: warning: "_GNU_SOURCE" redefined
#define _GNU_SOURCE
<command-line>:0:0: note: this is the location of the previous definition
In file included from /usr/include/boost/smart_ptr/detail/local_sp_deleter.hpp:20:0,
from /usr/include/boost/smart_ptr/shared_ptr.hpp:1158,
from /usr/include/boost/shared_ptr.hpp:17,
from /root/dev/console-client/pCloudCC/pclsync_lib.cpp:42:
/usr/include/boost/smart_ptr/detail/local_counted_base.hpp: In member function ‘void boost::detail::local_counted_base::add_ref()’:
/usr/include/boost/smart_ptr/detail/local_counted_base.hpp:67:9: error: ‘__builtin_assume’ was not declared in this scope
__builtin_assume( local_use_count_ >= 1 );
^~~~~~~~~~~~~~~~
/usr/include/boost/smart_ptr/detail/local_counted_base.hpp:67:9: note: suggested alternative: ‘__builtin_abs’
__builtin_assume( local_use_count_ >= 1 );
^~~~~~~~~~~~~~~~
__builtin_abs
CMakeFiles/pcloudcc_lib.dir/build.make:86: recipe for target 'CMakeFiles/pcloudcc_lib.dir/pclsync_lib.cpp.o' failed
make[2]: *** [CMakeFiles/pcloudcc_lib.dir/pclsync_lib.cpp.o] Error 1
CMakeFiles/Makefile2:168: recipe for target 'CMakeFiles/pcloudcc_lib.dir/all' failed
make[1]: *** [CMakeFiles/pcloudcc_lib.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
On the final make in the "Build Steps", it fails:
geir@juba: ~/Dropbox/G/GIT/console-client/pCloudCC/ make 21:29:21 Scanning dependencies of target sqlite3 [ 10%] Building C object CMakeFiles/sqlite3.dir/lib/sqlite/sqlite3.c.o [ 20%] Linking C static library libsqlite3.a [ 20%] Built target sqlite3 Scanning dependencies of target pcloudcc_lib [ 30%] Building CXX object CMakeFiles/pcloudcc_lib.dir/pclsync_lib_c.cpp.o [ 40%] Building CXX object CMakeFiles/pcloudcc_lib.dir/pclsync_lib.cpp.o In file included from /home/geir/Dropbox/G/GIT/console-client/pCloudCC/pclsync_lib.cpp:30:0: /home/geir/Dropbox/G/GIT/console-client/pCloudCC/lib/pclsync/pcompat.h:95:0: warning: "_GNU_SOURCE" redefined
define _GNU_SOURCE