-
Notifications
You must be signed in to change notification settings - Fork 7
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
Fails to compile on Debian #10
Comments
Would it be possible to have a dependencies check? |
Thanks for the report! Re: the first issue, it should be fixed now via 31a0694 As for the second, sorry, but your GCC version is just very old. From what I can tell, the |
Thanks for the update, now it compile but something still missing:
$ uname -ra |
Could you maybe build in Debug mode, and get a stacktrace from gdb? For clarity:
|
|
Ah, yes, when using gdb, you need to do a "run" command inside gdb. So it would be |
Just compiled last version:
|
Ah, looks like this is some problem with linking std::filesystem: https://stackoverflow.com/a/57760267/681026, should be possible for me to tweak compile flags to get this working.
…On Mon, Jun 7, 2021, at 8:13 AM, Summer88 wrote:
Just compiled last version:
`
(gdb) run /source /dest
Starting program: /source /dest
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fff2fa7b700 (LWP 15530)]
[New Thread 0x7fff27fff700 (LWP 15531)]
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
Elapsed: 00s
0.00 B / ???
0.00 B/s ETA: ???
Calculating, found: 0.00 B
Thread 1 "wcp" received signal SIGABRT, Aborted.
0x00007ffff7abd081 in raise () from /lib/x86_64-linux-gnu/libc.so.6
` `(gdb) bt
#0 0x00007ffff7abd081 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x00007ffff7aa8535 in abort () from /lib/x86_64-linux-gnu/libc.so.6
#2 0x00007ffff7e3c643 in ?? () from
/lib/x86_64-linux-gnu/libstdc++.so.6
#3 0x00007ffff7e47fd6 in ?? () from
/lib/x86_64-linux-gnu/libstdc++.so.6
#4 0x00007ffff7e48041 in std::terminate() () from
/lib/x86_64-linux-gnu/libstdc++.so.6
#5 0x00007ffff7e48295 in __cxa_throw () from
/lib/x86_64-linux-gnu/libstdc++.so.6
#6 0x00007ffff7e3ec09 in std::__throw_bad_alloc() () from
/lib/x86_64-linux-gnu/libstdc++.so.6
#7 0x000055555555e9b8 in
__gnu_cxx::new_allocator<std::filesystem::__cxx11::path::_Cmpt>::allocate (this=0x7fffffffd510, __n=10248189848935966038)
at /usr/include/c++/8/ext/new_allocator.h:102
#8 0x000055555555e1da in
std::allocator_traits<std::allocator<std::filesystem::__cxx11::path::_Cmpt> >::allocate (__a=..., __n=10248189848935966038)
at /usr/include/c++/8/bits/alloc_traits.h:436
#9 0x000055555555d664 in
std::_Vector_base<std::filesystem::__cxx11::path::_Cmpt,
std::allocator<std::filesystem::__cxx11::path::_Cmpt> >::_M_allocate (
this=0x7fffffffd510, __n=10248189848935966038) at
/usr/include/c++/8/bits/stl_vector.h:296
#10 0x000055555555ca44 in
std::vector<std::filesystem::__cxx11::path::_Cmpt,
std::allocator<std::filesystem::__cxx11::path::_Cmpt>
>::_M_allocate_and_copy<__gnu_cxx::__normal_iterator<std::filesystem::__cxx11::path::_Cmpt const*, std::vector<std::filesystem::__cxx11::path::_Cmpt, std::allocator<std::filesystem::__cxx11::path::_Cmpt> > > > (
this=0x7fffffffd510, __n=10248189848935966038, __first=...,
__last=...) at /usr/include/c++/8/bits/stl_vector.h:1398
#11 0x000055555555b935 in
std::vector<std::filesystem::__cxx11::path::_Cmpt,
std::allocator<std::filesystem::__cxx11::path::_Cmpt> >::operator=
(this=0x7fffffffd510,
__x=...) at /usr/include/c++/8/bits/vector.tcc:214
#12 0x000055555555a95e in std::filesystem::__cxx11::path::operator=
(this=0x7fffffffd4f0, __p=...) at /usr/include/c++/8/bits/fs_path.h:66
#13 0x000055555555a9a7 in std::filesystem::__cxx11::path::operator/=
(this=0x7fffffffd4f0, __p=...) at /usr/include/c++/8/bits/fs_path.h:254
#14 0x00007ffff7efaa98 in
std::filesystem::absolute(std::filesystem::__cxx11::path const&) ()
from /lib/x86_64-linux-gnu/libstdc++.so.6
#15 0x0000555555559e88 in wcpMain (argc=3, argv=0x7fffffffde78) at
/home/tec1/Scaricati/wcp/src/wcpMain.cpp:127
#16 0x00005555555596a5 in main (argc=3, argv=0x7fffffffde78) at
/home/tec1/Scaricati/wcp/src/main.cpp:5
` `(gdb) info locals
No symbol table info available.
`
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#10 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAIK5GTVNTB3DPMYPWZRM2LTRRWQDANCNFSM4ZGC2F5A>.
|
This worked for me:
|
the edit of CMakeLists.txt has solved the issue for me too. |
Linux test 4.19.0-14-amd64 #1 SMP Debian 4.19.171-2 (2021-01-30) x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered: