Skip to content

Linking fails #19

Open
Open
@polluks

Description

@polluks

gcc version 8.3.0 (Debian 8.3.0-6)

$ make
Consolidate compiler generated dependencies of target sjasmplus_lib
[ 97%] Built target sjasmplus_lib
Consolidate compiler generated dependencies of target sjasmplus
[ 98%] Linking CXX executable sjasmplus
/usr/bin/ld: CMakeFiles/sjasmplus_lib.dir/3rdparty/lua5.1/loslib.c.o: in function `os_tmpname':
loslib.c:(.text+0x1d3): warning: the use of `tmpnam' is dangerous, better use `mkstemp'
/usr/bin/ld: CMakeFiles/sjasmplus_lib.dir/src/asm.cpp.o: in function `Assembler::assemble(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
asm.cpp:(.text+0x395): undefined reference to `std::filesystem::absolute(std::filesystem::__cxx11::path const&)'
/usr/bin/ld: asm.cpp:(.text+0x3b3): undefined reference to `std::filesystem::__cxx11::path::parent_path() const'
/usr/bin/ld: asm.cpp:(.text+0x585): undefined reference to `std::filesystem::__cxx11::path::replace_extension(std::filesystem::__cxx11::path const&)'
/usr/bin/ld: CMakeFiles/sjasmplus_lib.dir/src/asm.cpp.o: in function `Assembler::getAbsPath(std::filesystem::__cxx11::path const&)':
asm.cpp:(.text+0x1915): undefined reference to `std::filesystem::absolute(std::filesystem::__cxx11::path const&)'
/usr/bin/ld: CMakeFiles/sjasmplus_lib.dir/src/asm.cpp.o: in function `Assembler::openTopLevelFile(std::filesystem::__cxx11::path const&, bool)':
asm.cpp:(.text+0x19f0): undefined reference to `std::filesystem::__cxx11::path::replace_extension(std::filesystem::__cxx11::path const&)'
/usr/bin/ld: CMakeFiles/sjasmplus_lib.dir/src/asm.cpp.o: in function `Assembler::openFile(std::filesystem::__cxx11::path
 const&)':
asm.cpp:(.text+0x1ca9): undefined reference to `std::filesystem::relative(std::filesystem::__cxx11::path const&, std::filesystem::__cxx11::path const&)'
/usr/bin/ld: CMakeFiles/sjasmplus_lib.dir/src/asm.cpp.o: in function `std::filesystem::__cxx11::path::operator/=(std::filesystem::__cxx11::path const&)':
asm.cpp:(.text._ZNSt10filesystem7__cxx114pathdVERKS1_[_ZNSt10filesystem7__cxx114pathdVERKS1_]+0x3d): undefined reference
 to `std::filesystem::__cxx11::path::has_filename() const'
/usr/bin/ld: asm.cpp:(.text._ZNSt10filesystem7__cxx114pathdVERKS1_[_ZNSt10filesystem7__cxx114pathdVERKS1_]+0x98): undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
/usr/bin/ld: CMakeFiles/sjasmplus_lib.dir/src/asm.cpp.o: in function `std::filesystem::__cxx11::path::clear()':
asm.cpp:(.text._ZNSt10filesystem7__cxx114path5clearEv[_ZNSt10filesystem7__cxx114path5clearEv]+0x20): undefined reference
 to `std::filesystem::__cxx11::path::_M_split_cmpts()'
/usr/bin/ld: CMakeFiles/sjasmplus_lib.dir/src/asm.cpp.o: in function `std::filesystem::__cxx11::path::is_absolute() const':
asm.cpp:(.text._ZNKSt10filesystem7__cxx114path11is_absoluteEv[_ZNKSt10filesystem7__cxx114path11is_absoluteEv]+0x14): undefined reference to `std::filesystem::__cxx11::path::has_root_directory() const'
/usr/bin/ld: CMakeFiles/sjasmplus_lib.dir/src/asm.cpp.o: in function `std::filesystem::__cxx11::operator==(std::filesystem::__cxx11::path const&, std::filesystem::__cxx11::path const&)':
asm.cpp:(.text._ZNSt10filesystem7__cxx11eqERKNS0_4pathES3_[_ZNSt10filesystem7__cxx11eqERKNS0_4pathES3_]+0x1f): undefined
 reference to `std::filesystem::__cxx11::path::compare(std::filesystem::__cxx11::path const&) const'
/usr/bin/ld: CMakeFiles/sjasmplus_lib.dir/src/asm.cpp.o: in function `Assembler::currentDirectory[abi:cxx11]() const':
asm.cpp:(.text._ZNK9Assembler16currentDirectoryB5cxx11Ev[_ZNK9Assembler16currentDirectoryB5cxx11Ev]+0x8f): undefined reference to `std::filesystem::__cxx11::path::parent_path() const'
/usr/bin/ld: asm.cpp:(.text._ZNK9Assembler16currentDirectoryB5cxx11Ev[_ZNK9Assembler16currentDirectoryB5cxx11Ev]+0x9d): undefined reference to `std::filesystem::current_path[abi:cxx11]()'
/usr/bin/ld: CMakeFiles/sjasmplus_lib.dir/src/asm.cpp.o: in function `std::filesystem::__cxx11::path::path<char [5], std::filesystem::__cxx11::path>(char const (&) [5], std::filesystem::__cxx11::path::format)':
asm.cpp:(.text._ZNSt10filesystem7__cxx114pathC2IA5_cS1_EERKT_NS1_6formatE[_ZNSt10filesystem7__cxx114pathC5IA5_cS1_EERKT_NS1_6formatE]+0x5e): undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
/usr/bin/ld: CMakeFiles/sjasmplus_lib.dir/src/asm.cpp.o: in function `std::filesystem::__cxx11::path::path<char [13], std::filesystem::__cxx11::path>(char const (&) [13], std::filesystem::__cxx11::path::format)':
asm.cpp:(.text._ZNSt10filesystem7__cxx114pathC2IA13_cS1_EERKT_NS1_6formatE[_ZNSt10filesystem7__cxx114pathC5IA13_cS1_EERKT_NS1_6formatE]+0x5e): undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
/usr/bin/ld: CMakeFiles/sjasmplus_lib.dir/src/codeemitter.cpp.o: in function `CodeEmitter::enforceFileSize()':
codeemitter.cpp:(.text+0x9de): undefined reference to `std::filesystem::file_size(std::filesystem::__cxx11::path const&)'
/usr/bin/ld: codeemitter.cpp:(.text+0xbb9): undefined reference to `std::filesystem::resize_file(std::filesystem::__cxx11::path const&, unsigned long)'
/usr/bin/ld: CMakeFiles/sjasmplus_lib.dir/src/codeemitter.cpp.o: in function `CodeEmitter::resolveOutputPath(std::filesystem::__cxx11::path const&)':
codeemitter.cpp:(.text+0xcdd): undefined reference to `std::filesystem::absolute(std::filesystem::__cxx11::path const&)'
/usr/bin/ld: CMakeFiles/sjasmplus_lib.dir/src/directives.cpp.o: in function `std::filesystem::__cxx11::path::path<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::filesystem::__cxx11::path>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::filesystem::__cxx11::path::format)':
directives.cpp:(.text._ZNSt10filesystem7__cxx114pathC2INSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES1_EERKT_NS1_6formatE[_ZNSt10filesystem7__cxx114pathC5INSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES1_EERKT_NS1_6formatE]+0x64): undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
/usr/bin/ld: CMakeFiles/sjasmplus_lib.dir/src/lua_sjasm.cpp.o: in function `std::filesystem::exists(std::filesystem::__cxx11::path const&)':
lua_sjasm.cpp:(.text._ZNSt10filesystem6existsERKNS_7__cxx114pathE[_ZNSt10filesystem6existsERKNS_7__cxx114pathE]+0x14): undefined reference to `std::filesystem::status(std::filesystem::__cxx11::path const&)'
/usr/bin/ld: CMakeFiles/sjasmplus_lib.dir/src/lua_sjasm.cpp.o: in function `std::filesystem::__cxx11::path::path<char*, std::filesystem::__cxx11::path>(char* const&, std::filesystem::__cxx11::path::format)':
lua_sjasm.cpp:(.text._ZNSt10filesystem7__cxx114pathC2IPcS1_EERKT_NS1_6formatE[_ZNSt10filesystem7__cxx114pathC5IPcS1_EERKT_NS1_6formatE]+0x64): undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
/usr/bin/ld: CMakeFiles/sjasmplus_lib.dir/src/options.cpp.o: in function `COptions::operator()(int, char**, std::vector<std::filesystem::__cxx11::path, std::allocator<std::filesystem::__cxx11::path> >&)':
options.cpp:(.text+0xc40): undefined reference to `std::filesystem::absolute(std::filesystem::__cxx11::path const&)'
/usr/bin/ld: options.cpp:(.text+0xd3b): undefined reference to `std::filesystem::absolute(std::filesystem::__cxx11::path
 const&)'
/usr/bin/ld: options.cpp:(.text+0x1101): undefined reference to `std::filesystem::__cxx11::path::replace_extension(std::filesystem::__cxx11::path const&)'
/usr/bin/ld: options.cpp:(.text+0x11aa): undefined reference to `std::filesystem::__cxx11::path::replace_extension(std::filesystem::__cxx11::path const&)'
/usr/bin/ld: options.cpp:(.text+0x125c): undefined reference to `std::filesystem::__cxx11::path::replace_extension(std::filesystem::__cxx11::path const&)'
/usr/bin/ld: CMakeFiles/sjasmplus_lib.dir/src/options.cpp.o: in function `std::filesystem::__cxx11::path::path(std::filesystem::__cxx11::path&&)':
options.cpp:(.text._ZNSt10filesystem7__cxx114pathC2EOS1_[_ZNSt10filesystem7__cxx114pathC5EOS1_]+0x53): undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
/usr/bin/ld: CMakeFiles/sjasmplus_lib.dir/src/sjio.cpp.o: in function `resolveIncludeFilename(std::filesystem::__cxx11::path const&)':
sjio.cpp:(.text+0x9ed): undefined reference to `std::filesystem::absolute(std::filesystem::__cxx11::path const&)'
/usr/bin/ld: sjio.cpp:(.text+0xb33): undefined reference to `std::filesystem::absolute(std::filesystem::__cxx11::path const&)'
/usr/bin/ld: CMakeFiles/sjasmplus_lib.dir/src/sjio.cpp.o: in function `std::filesystem::__cxx11::path::path(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&&, std::filesystem::__cxx11::path::format)':
sjio.cpp:(.text._ZNSt10filesystem7__cxx114pathC2EONSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS1_6formatE[_ZNSt10filesystem7__cxx114pathC5EONSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS1_6formatE]+0x4f): undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/sjasmplus.dir/build.make:230: sjasmplus] Error 1
make[1]: *** [CMakeFiles/Makefile2:156: CMakeFiles/sjasmplus.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions