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

Build Error #28

Open
deep5050 opened this issue May 19, 2021 · 4 comments
Open

Build Error #28

deep5050 opened this issue May 19, 2021 · 4 comments

Comments

@deep5050
Copy link

deep5050 commented May 19, 2021

can anyone help me?
my system Linux deepneon 5.10.29-amd64-desktop #2 SMP Mon Apr 26 09:48:13 CST 2021 x86_64 GNU/Linux

deep@deepneon:~/Downloads/peaclock-0.4.3$ ./RUNME.sh build -- -DCMAKE_CXX_COMPILER=/usr/bin/g++
Build type: release
-- The CXX compiler identification is GNU 8.3.0
-- Check for working CXX compiler: /usr/bin/g++
-- Check for working CXX compiler: /usr/bin/g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building peaclock 0.4.3 in release mode:
     System: Linux-5.10.29-amd64-desktop
     CXX compiler: GNU 8.3.0
-- Configuring done
-- Generating done
-- Build files have been written to: /home/deep/Downloads/peaclock-0.4.3/build/release
Scanning dependencies of target peaclock
[ 33%] Building CXX object CMakeFiles/peaclock.dir/src/ob/string.cc.o
[ 33%] Building CXX object CMakeFiles/peaclock.dir/src/main.cc.o
[ 50%] Building CXX object CMakeFiles/peaclock.dir/src/ob/readline.cc.o
[ 83%] Building CXX object CMakeFiles/peaclock.dir/src/peaclock/tui.cc.o
[ 83%] Building CXX object CMakeFiles/peaclock.dir/src/peaclock/peaclock.cc.o
[100%] Linking CXX executable peaclock
/usr/bin/ld: /tmp/cc4aWbJQ.ltrans0.ltrans.o: in function `std::filesystem::__cxx11::path::path<char [5], std::filesystem::__cxx11::path>(char const (&) [5], std::filesystem::__cxx11::path::format) [clone .constprop.134]':
<artificial>:(.text+0x7d56): undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
/usr/bin/ld: /tmp/cc4aWbJQ.ltrans2.ltrans.o: in function `Tui::command(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
<artificial>:(.text+0x35c): undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
/usr/bin/ld: <artificial>:(.text+0x364): undefined reference to `std::filesystem::status(std::filesystem::__cxx11::path const&)'
/usr/bin/ld: <artificial>:(.text+0x4c7): undefined reference to `std::filesystem::__cxx11::path::lexically_normal() const'
/usr/bin/ld: <artificial>:(.text+0x219c): undefined reference to `std::filesystem::__cxx11::path::lexically_normal() const'
/usr/bin/ld: <artificial>:(.text+0x3281): undefined reference to `std::filesystem::status(std::filesystem::__cxx11::path const&)'
/usr/bin/ld: <artificial>:(.text+0x329e): undefined reference to `std::filesystem::__cxx11::path::lexically_normal() const'
/usr/bin/ld: <artificial>:(.text+0x3392): undefined reference to `std::filesystem::__cxx11::path::lexically_normal() const'
/usr/bin/ld: <artificial>:(.text+0x347f): undefined reference to `std::filesystem::__cxx11::path::lexically_normal() const'
/usr/bin/ld: /tmp/cc4aWbJQ.ltrans3.ltrans.o: in function `Tui::load_config(std::filesystem::__cxx11::path const&)':
<artificial>:(.text+0x6a05): undefined reference to `std::filesystem::__cxx11::path::compare(std::filesystem::__cxx11::path const&) const'
/usr/bin/ld: <artificial>:(.text+0x6a4a): undefined reference to `std::filesystem::status(std::filesystem::__cxx11::path const&)'
/usr/bin/ld: /tmp/cc4aWbJQ.ltrans5.ltrans.o: in function `std::filesystem::__cxx11::path OB::Parg::get<std::filesystem::__cxx11::path, 0>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
<artificial>:(.text+0x8134): undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
/usr/bin/ld: /tmp/cc4aWbJQ.ltrans9.ltrans.o: in function `std::filesystem::__cxx11::path::operator/=(std::filesystem::__cxx11::path const&)':
<artificial>:(.text+0x3960): undefined reference to `std::filesystem::__cxx11::path::has_root_directory() const'
/usr/bin/ld: <artificial>:(.text+0x3995): undefined reference to `std::filesystem::__cxx11::path::has_filename() const'
/usr/bin/ld: <artificial>:(.text+0x39b7): undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
/usr/bin/ld: /tmp/cc4aWbJQ.ltrans7.ltrans.o: in function `main':
<artificial>:(.text.startup+0x784): undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
/usr/bin/ld: <artificial>:(.text.startup+0x83d): undefined reference to `std::filesystem::__cxx11::path::compare(std::filesystem::__cxx11::path const&) const'
/usr/bin/ld: <artificial>:(.text.startup+0x849): undefined reference to `std::filesystem::status(std::filesystem::__cxx11::path const&)'
/usr/bin/ld: <artificial>:(.text.startup+0x41ba): undefined reference to `std::filesystem::status(std::filesystem::__cxx11::path const&)'
/usr/bin/ld: <artificial>:(.text.startup+0x4257): undefined reference to `std::filesystem::status(std::filesystem::__cxx11::path const&)'
/usr/bin/ld: <artificial>:(.text.startup+0x426e): undefined reference to `std::filesystem::create_directory(std::filesystem::__cxx11::path const&)'
/usr/bin/ld: <artificial>:(.text.startup+0x44ca): undefined reference to `std::filesystem::status(std::filesystem::__cxx11::path const&)'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/peaclock.dir/build.make:144: peaclock] Error 1
make[1]: *** [CMakeFiles/Makefile2:73: CMakeFiles/peaclock.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
@rielinux
Copy link

rielinux commented Jul 11, 2021

Me too....I have problem when build

./RUNME.sh build 2 ⨯
Build type: release
-- Building peaclock 0.4.3 in release mode:
System: Linux-5.10.0-kali9-amd64
CXX compiler: GNU 10.2.1
-- Configuring done
-- Generating done
-- Build files have been written to: /root/peaclock/build/release
[ 16%] Building CXX object CMakeFiles/peaclock.dir/src/ob/readline.cc.o
[ 33%] Building CXX object CMakeFiles/peaclock.dir/src/main.cc.o
In file included from /root/peaclock/./src/ob/readline.hh:4,
from /root/peaclock/src/ob/readline.cc:1:
/root/peaclock/./src/ob/text.hh:6:10: fatal error: unicode/coll.h: No such file or directory
6 | #include <unicode/coll.h>
| ^~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/peaclock.dir/build.make:108: CMakeFiles/peaclock.dir/src/ob/readline.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /root/peaclock/./src/ob/rect.hh:5,
from /root/peaclock/./src/peaclock/peaclock.hh:5,
from /root/peaclock/src/peaclock/tui.hh:4,
from /root/peaclock/src/main.cc:10:
/root/peaclock/./src/ob/text.hh:6:10: fatal error: unicode/coll.h: No such file or directory
6 | #include <unicode/coll.h>
| ^~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/peaclock.dir/build.make:82: CMakeFiles/peaclock.dir/src/main.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:95: CMakeFiles/peaclock.dir/all] Error 2
make: *** [Makefile:149: all] Error 2

@deep5050
Copy link
Author

This project is dead!!

@jose-sampedro
Copy link

En ubuntu WSL saltaba el mismo error, falta la librería, instala y funciona perfectamente

https://packages.debian.org/buster/libicu-dev

@bhibb
Copy link

bhibb commented Nov 17, 2023

To anyone still wanting to compile this, I can confirm that the libicu-dev package (or on Solus, libicu-devel) fixes these compiling errors on my system, along with the other dependencies and system-specific build packages. Great project and fits my need perfectly!

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

4 participants