Closed aspel closed 2 months ago
Additional info
Step 13/50 : RUN cd /osxcross && ./target/bin/o64-clang++ -v -o test ./oclang/test.cpp
---> Running in bf547e56328c
clang version 9.0.1-svn374861-1~exp1~20191015075537.63 (branches/release_90)
Target: x86_64-apple-darwin19
Thread model: posix
InstalledDir: /usr/bin
"/usr/lib/llvm-9/bin/clang" -cc1 -triple x86_64-apple-macosx10.9.0 -Wdeprecated-objc-isa-usage -Werror=deprecated-objc-isa-usage -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -discard-value-names -main-file-name test.cpp -mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-elim -masm-verbose -munwind-tables -faligned-alloc-unavailable -target-sdk-version=10.15 -target-cpu core2 -dwarf-column-info -debugger-tuning=lldb -ggnu-pubnames -target-linker-version 409.12 -v -nostdinc++ -resource-dir /usr/lib/llvm-9/lib/clang/9.0.1 -isystem /usr/lib/llvm-9/bin/../lib/clang/9.0.1/include -isysroot /osxcross/target/bin/../SDK/MacOSX10.15.sdk -cxx-isystem /osxcross/target/bin/../SDK/MacOSX10.15.sdk/usr/include/c++/v1 -stdlib=libc++ -internal-isystem /osxcross/target/bin/../SDK/MacOSX10.15.sdk/usr/local/include -internal-isystem /usr/lib/llvm-9/lib/clang/9.0.1/include -internal-externc-isystem /osxcross/target/bin/../SDK/MacOSX10.15.sdk/usr/include -Wno-liblto -fdeprecated-macro -fdebug-compilation-dir /osxcross -ferror-limit 19 -fmessage-length 0 -stack-protector 1 -fblocks -fencode-extended-block-signature -fregister-global-dtors-with-atexit -fobjc-runtime=macosx-10.9.0 -fcxx-exceptions -fexceptions -fmax-type-align=16 -fdiagnostics-show-option -o /tmp/test-8fbf72.o -x c++ ./oclang/test.cpp
clang -cc1 version 9.0.1 based upon LLVM 9.0.1 default target x86_64-pc-linux-gnu
ignoring nonexistent directory "/osxcross/target/bin/../SDK/MacOSX10.15.sdk/usr/local/include"
ignoring nonexistent directory "/osxcross/target/bin/../SDK/MacOSX10.15.sdk/Library/Frameworks"
ignoring duplicate directory "/usr/lib/llvm-9/bin/../lib/clang/9.0.1/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/lib/llvm-9/bin/../lib/clang/9.0.1/include
/osxcross/target/bin/../SDK/MacOSX10.15.sdk/usr/include/c++/v1
/osxcross/target/bin/../SDK/MacOSX10.15.sdk/usr/include
/osxcross/target/bin/../SDK/MacOSX10.15.sdk/System/Library/Frameworks (framework directory)
End of search list.
"/osxcross/target/bin/x86_64-apple-darwin19-ld" -demangle -lto_library /usr/lib/llvm-9/lib/libLTO.dylib -no_deduplicate -dynamic -arch x86_64 -macosx_version_min 10.9.0 -syslibroot /osxcross/target/bin/../SDK/MacOSX10.15.sdk -o test /tmp/test-8fbf72.o -lc++ -lSystem
Undefined symbols for architecture x86_64:
"std::ostream::operator<<(std::ostream& (*)(std::ostream&))", referenced from:
_main in test-8fbf72.o
"std::ios_base::Init::Init()", referenced from:
___cxx_global_var_init in test-8fbf72.o
"std::ios_base::Init::~Init()", referenced from:
___cxx_global_var_init in test-8fbf72.o
"std::cout", referenced from:
_main in test-8fbf72.o
"std::basic_ostream<char, std::char_traits<char> >& std::endl<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&)", referenced from:
_main in test-8fbf72.o
"std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)", referenced from:
_main in test-8fbf72.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
The command '/bin/sh -c cd /osxcross && ./target/bin/o64-clang++ -v -o test ./oclang/test.cpp' returned a non-zero code: 1
Looks like a broken SDK to me. Did you follow the README to package the SDK? https://github.com/tpoechtrager/osxcross#packaging-the-sdk
Yes, I used gen_sdk_package.sh to create MacOSX10.15.sdk.tar.xz I will try recreate SDK file directly from Xcode
Hello, Have this error
Docker file