Skip to content

Instantly share code, notes, and snippets.

@trylaarsdam
Created January 24, 2021 01:41
Show Gist options
  • Save trylaarsdam/56bced2ea3621779e63d3a3ddcb95a9a to your computer and use it in GitHub Desktop.
Save trylaarsdam/56bced2ea3621779e63d3a3ddcb95a9a to your computer and use it in GitHub Desktop.
Creating cold package with libc,libm,libpros,okapilib [ERRORS]
make: *** [bin/cold.package.elf] Error 1
/opt/homebrew/Cellar/arm-gcc-bin/10-2020-q4-major/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/bin/ld: /opt/homebrew/Cellar/arm-gcc-bin/10-2020-q4-major/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/lib/thumb/v7-a+simd/softfp/libstdc++.a(cow-fs_ops.o): in function `std::filesystem::create_directory_symlink(std::filesystem::path const&, std::filesystem::path const&, std::error_code&)':
cow-fs_ops.cc:(.text._ZNSt10filesystem24create_directory_symlinkERKNS_4pathES2_RSt10error_code+0x8): undefined reference to `symlink'
/opt/homebrew/Cellar/arm-gcc-bin/10-2020-q4-major/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/bin/ld: /opt/homebrew/Cellar/arm-gcc-bin/10-2020-q4-major/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/lib/thumb/v7-a+simd/softfp/libstdc++.a(cow-fs_ops.o): in function `std::filesystem::create_symlink(std::filesystem::path const&, std::filesystem::path const&, std::error_code&)':
cow-fs_ops.cc:(.text._ZNSt10filesystem14create_symlinkERKNS_4pathES2_RSt10error_code+0x8): undefined reference to `symlink'
/opt/homebrew/Cellar/arm-gcc-bin/10-2020-q4-major/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/bin/ld: /opt/homebrew/Cellar/arm-gcc-bin/10-2020-q4-major/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/lib/thumb/v7-a+simd/softfp/libstdc++.a(cow-fs_ops.o): in function `std::filesystem::resize_file(std::filesystem::path const&, unsigned long long, std::error_code&)':
cow-fs_ops.cc:(.text._ZNSt10filesystem11resize_fileERKNS_4pathEyRSt10error_code+0x1e): undefined reference to `truncate'
/opt/homebrew/Cellar/arm-gcc-bin/10-2020-q4-major/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/bin/ld: /opt/homebrew/Cellar/arm-gcc-bin/10-2020-q4-major/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/lib/thumb/v7-a+simd/softfp/libstdc++.a(cow-fs_ops.o): in function `std::filesystem::permissions(std::filesystem::path const&, std::filesystem::perms, std::filesystem::perm_options, std::error_code&)':
Error: Failed to build
cow-fs_ops.cc:(.text._ZNSt10filesystem11permissionsERKNS_4pathENS_5permsENS_12perm_optionsERSt10error_code+0x54): undefined reference to `fchmodat'
/opt/homebrew/Cellar/arm-gcc-bin/10-2020-q4-major/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/bin/ld: cow-fs_ops.cc:(.text._ZNSt10filesystem11permissionsERKNS_4pathENS_5permsENS_12perm_optionsERSt10error_code+0xa4): undefined reference to `fchmodat'
/opt/homebrew/Cellar/arm-gcc-bin/10-2020-q4-major/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/bin/ld: /opt/homebrew/Cellar/arm-gcc-bin/10-2020-q4-major/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/lib/thumb/v7-a+simd/softfp/libstdc++.a(cow-fs_ops.o): in function `std::filesystem::create_directory_symlink(std::filesystem::path const&, std::filesystem::path const&)':
cow-fs_ops.cc:(.text._ZNSt10filesystem24create_directory_symlinkERKNS_4pathES2_+0x12): undefined reference to `symlink'
/opt/homebrew/Cellar/arm-gcc-bin/10-2020-q4-major/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/bin/ld: /opt/homebrew/Cellar/arm-gcc-bin/10-2020-q4-major/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/lib/thumb/v7-a+simd/softfp/libstdc++.a(cow-fs_ops.o): in function `std::filesystem::create_symlink(std::filesystem::path const&, std::filesystem::path const&)':
cow-fs_ops.cc:(.text._ZNSt10filesystem14create_symlinkERKNS_4pathES2_+0x12): undefined reference to `symlink'
/opt/homebrew/Cellar/arm-gcc-bin/10-2020-q4-major/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/bin/ld: /opt/homebrew/Cellar/arm-gcc-bin/10-2020-q4-major/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/lib/thumb/v7-a+simd/softfp/libstdc++.a(cow-fs_ops.o): in function `std::filesystem::resize_file(std::filesystem::path const&, unsigned long long)':
cow-fs_ops.cc:(.text._ZNSt10filesystem11resize_fileERKNS_4pathEy+0x6a): undefined reference to `truncate'
/opt/homebrew/Cellar/arm-gcc-bin/10-2020-q4-major/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/bin/ld: /opt/homebrew/Cellar/arm-gcc-bin/10-2020-q4-major/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/lib/thumb/v7-a+simd/softfp/libstdc++.a(cow-fs_ops.o): in function `std::filesystem::read_symlink(std::filesystem::path const&, std::error_code&)':
cow-fs_ops.cc:(.text._ZNSt10filesystem12read_symlinkERKNS_4pathERSt10error_code+0xd4): undefined reference to `readlink'
/opt/homebrew/Cellar/arm-gcc-bin/10-2020-q4-major/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/bin/ld: /opt/homebrew/Cellar/arm-gcc-bin/10-2020-q4-major/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/lib/thumb/v7-a+simd/softfp/libstdc++.a(cow-fs_ops.o): in function `std::filesystem::copy_symlink(std::filesystem::path const&, std::filesystem::path const&, std::error_code&)':
cow-fs_ops.cc:(.text._ZNSt10filesystem12copy_symlinkERKNS_4pathES2_RSt10error_code+0x1c): undefined reference to `symlink'
/opt/homebrew/Cellar/arm-gcc-bin/10-2020-q4-major/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/bin/ld: /opt/homebrew/Cellar/arm-gcc-bin/10-2020-q4-major/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/lib/thumb/v7-a+simd/softfp/libstdc++.a(cow-fs_ops.o): in function `std::filesystem::copy(std::filesystem::path const&, std::filesystem::path const&, std::filesystem::copy_options, std::error_code&)':
cow-fs_ops.cc:(.text._ZNSt10filesystem4copyERKNS_4pathES2_NS_12copy_optionsERSt10error_code+0x4da): undefined reference to `symlink'
/opt/homebrew/Cellar/arm-gcc-bin/10-2020-q4-major/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/bin/ld: /opt/homebrew/Cellar/arm-gcc-bin/10-2020-q4-major/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/lib/thumb/v7-a+simd/softfp/libstdc++.a(fs_ops.o): in function `std::filesystem::create_directory_symlink(std::filesystem::__cxx11::path const&, std::filesystem::__cxx11::path const&)':
fs_ops.cc:(.text._ZNSt10filesystem24create_directory_symlinkERKNS_7__cxx114pathES3_+0x12): undefined reference to `symlink'
/opt/homebrew/Cellar/arm-gcc-bin/10-2020-q4-major/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/bin/ld: /opt/homebrew/Cellar/arm-gcc-bin/10-2020-q4-major/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/lib/thumb/v7-a+simd/softfp/libstdc++.a(fs_ops.o): in function `std::filesystem::create_directory_symlink(std::filesystem::__cxx11::path const&, std::filesystem::__cxx11::path const&, std::error_code&)':
fs_ops.cc:(.text._ZNSt10filesystem24create_directory_symlinkERKNS_7__cxx114pathES3_RSt10error_code+0x8): undefined reference to `symlink'
/opt/homebrew/Cellar/arm-gcc-bin/10-2020-q4-major/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/bin/ld: /opt/homebrew/Cellar/arm-gcc-bin/10-2020-q4-major/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/lib/thumb/v7-a+simd/softfp/libstdc++.a(fs_ops.o): in function `std::filesystem::create_symlink(std::filesystem::__cxx11::path const&, std::filesystem::__cxx11::path const&)':
fs_ops.cc:(.text._ZNSt10filesystem14create_symlinkERKNS_7__cxx114pathES3_+0x12): undefined reference to `symlink'
/opt/homebrew/Cellar/arm-gcc-bin/10-2020-q4-major/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/bin/ld: /opt/homebrew/Cellar/arm-gcc-bin/10-2020-q4-major/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/lib/thumb/v7-a+simd/softfp/libstdc++.a(fs_ops.o):fs_ops.cc:(.text._ZNSt10filesystem14create_symlinkERKNS_7__cxx114pathES3_RSt10error_code+0x8): more undefined references to `symlink' follow
/opt/homebrew/Cellar/arm-gcc-bin/10-2020-q4-major/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/bin/ld: /opt/homebrew/Cellar/arm-gcc-bin/10-2020-q4-major/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/lib/thumb/v7-a+simd/softfp/libstdc++.a(fs_ops.o): in function `std::filesystem::resize_file(std::filesystem::__cxx11::path const&, unsigned long long)':
fs_ops.cc:(.text._ZNSt10filesystem11resize_fileERKNS_7__cxx114pathEy+0x68): undefined reference to `truncate'
/opt/homebrew/Cellar/arm-gcc-bin/10-2020-q4-major/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/bin/ld: /opt/homebrew/Cellar/arm-gcc-bin/10-2020-q4-major/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/lib/thumb/v7-a+simd/softfp/libstdc++.a(fs_ops.o): in function `std::filesystem::resize_file(std::filesystem::__cxx11::path const&, unsigned long long, std::error_code&)':
fs_ops.cc:(.text._ZNSt10filesystem11resize_fileERKNS_7__cxx114pathEyRSt10error_code+0x1e): undefined reference to `truncate'
/opt/homebrew/Cellar/arm-gcc-bin/10-2020-q4-major/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/bin/ld: /opt/homebrew/Cellar/arm-gcc-bin/10-2020-q4-major/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/lib/thumb/v7-a+simd/softfp/libstdc++.a(fs_ops.o): in function `std::filesystem::permissions(std::filesystem::__cxx11::path const&, std::filesystem::perms, std::filesystem::perm_options, std::error_code&)':
fs_ops.cc:(.text._ZNSt10filesystem11permissionsERKNS_7__cxx114pathENS_5permsENS_12perm_optionsERSt10error_code+0x54): undefined reference to `fchmodat'
/opt/homebrew/Cellar/arm-gcc-bin/10-2020-q4-major/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/bin/ld: fs_ops.cc:(.text._ZNSt10filesystem11permissionsERKNS_7__cxx114pathENS_5permsENS_12perm_optionsERSt10error_code+0xa4): undefined reference to `fchmodat'
/opt/homebrew/Cellar/arm-gcc-bin/10-2020-q4-major/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/bin/ld: /opt/homebrew/Cellar/arm-gcc-bin/10-2020-q4-major/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/lib/thumb/v7-a+simd/softfp/libstdc++.a(fs_ops.o): in function `std::filesystem::read_symlink(std::filesystem::__cxx11::path const&, std::error_code&)':
fs_ops.cc:(.text._ZNSt10filesystem12read_symlinkERKNS_7__cxx114pathERSt10error_code+0xc4): undefined reference to `readlink'
/opt/homebrew/Cellar/arm-gcc-bin/10-2020-q4-major/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/bin/ld: /opt/homebrew/Cellar/arm-gcc-bin/10-2020-q4-major/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/lib/thumb/v7-a+simd/softfp/libstdc++.a(fs_ops.o): in function `std::filesystem::copy_symlink(std::filesystem::__cxx11::path const&, std::filesystem::__cxx11::path const&, std::error_code&)':
fs_ops.cc:(.text._ZNSt10filesystem12copy_symlinkERKNS_7__cxx114pathES3_RSt10error_code+0x1c): undefined reference to `symlink'
/opt/homebrew/Cellar/arm-gcc-bin/10-2020-q4-major/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/bin/ld: /opt/homebrew/Cellar/arm-gcc-bin/10-2020-q4-major/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/lib/thumb/v7-a+simd/softfp/libstdc++.a(fs_ops.o): in function `std::filesystem::do_copy_file(char const*, char const*, std::filesystem::copy_options_existing_file, stat*, stat*, std::error_code&)':
fs_ops.cc:(.text._ZNSt10filesystem12do_copy_fileEPKcS1_NS_26copy_options_existing_fileEP4statS4_RSt10error_code+0xe2): undefined reference to `fchmod'
/opt/homebrew/Cellar/arm-gcc-bin/10-2020-q4-major/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/bin/ld: /opt/homebrew/Cellar/arm-gcc-bin/10-2020-q4-major/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/lib/thumb/v7-a+simd/softfp/libstdc++.a(fs_ops.o): in function `std::filesystem::copy(std::filesystem::__cxx11::path const&, std::filesystem::__cxx11::path const&, std::filesystem::copy_options, std::error_code&)':
fs_ops.cc:(.text._ZNSt10filesystem4copyERKNS_7__cxx114pathES3_NS_12copy_optionsERSt10error_code+0x4ce): undefined reference to `symlink'
collect2: error: ld returned 1 exit status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment