Hello,
did build o64-gcc on Linux Mint 22.1.
Wanna build binary for MacOS with Rust and fltk
What I did wrong at build the compiler ?
At compile process got this Error:
error: linking with `/home/developer/osxcross/target/bin/o64-gcc` failed: exit status: 1
|
= note: "/home/developer/osxcross/target/bin/o64-gcc" "/tmp/rustcaK3Nr0/symbols.o" "<1 object files omitted>" "/tmp/rustcaK3Nr0/{libfltk_sys-2858258a1dabde8d.rlib}.rlib" "<sysroot>/lib/rustlib/x86_64-apple-darwin/lib/{libcompiler_builtins-*}.rlib" "-framework" "CoreFoundation" "-framework" "Carbon" "-framework" "Cocoa" "-framework" "ApplicationServices" "-lc++abi" "-lSystem" "-lc" "-lm" "-arch" "x86_64" "-mmacosx-version-min=11.3.0" "-L" "/home/developer/rust/fltkmenu/target/x86_64-apple-darwin/release/build/fltk-sys-23b6b7c39d037c61/out/build" "-L" "/home/developer/rust/fltkmenu/target/x86_64-apple-darwin/release/build/fltk-sys-23b6b7c39d037c61/out/build/Release" "-L" "/home/developer/rust/fltkmenu/target/x86_64-apple-darwin/release/build/fltk-sys-23b6b7c39d037c61/out/lib" "-L" "/home/developer/rust/fltkmenu/target/x86_64-apple-darwin/release/build/fltk-sys-23b6b7c39d037c61/out/lib64" "-L" "/home/developer/rust/fltkmenu/target/x86_64-apple-darwin/release/build/fltk-sys-23b6b7c39d037c61/out/lib/Release" "-L" "/home/developer/rust/fltkmenu/target/x86_64-apple-darwin/release/build/fltk-sys-23b6b7c39d037c61/out/lib64/Release" "-o" "/home/developer/rust/fltkmenu/target/x86_64-apple-darwin/release/deps/fltkmenu-40eb6784cc053e76" "-Wl,-dead_strip" "-nodefaultlibs"
= note: some arguments are omitted. use `--verbose` to show all linker arguments
= note: ld: warning: directory not found for option '-L/home/developer/rust/fltkmenu/target/x86_64-apple-darwin/release/build/fltk-sys-23b6b7c39d037c61/out/build'
ld: warning: directory not found for option '-L/home/developer/rust/fltkmenu/target/x86_64-apple-darwin/release/build/fltk-sys-23b6b7c39d037c61/out/build/Release'
ld: warning: directory not found for option '-L/home/developer/rust/fltkmenu/target/x86_64-apple-darwin/release/build/fltk-sys-23b6b7c39d037c61/out/lib64'
ld: warning: directory not found for option '-L/home/developer/rust/fltkmenu/target/x86_64-apple-darwin/release/build/fltk-sys-23b6b7c39d037c61/out/lib/Release'
ld: warning: directory not found for option '-L/home/developer/rust/fltkmenu/target/x86_64-apple-darwin/release/build/fltk-sys-23b6b7c39d037c61/out/lib64/Release'
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_UTType", referenced from:
objc-class-ref in libfltk_sys-28
58258a1dabde8d.rlib(Fl_Native_File_Chooser_MAC.mm.o)
ld: symbol(s) not found for architecture x86_64
error: could not compile `fltkmenu` (bin "fltkmenu") due to 1 previous error
/tmp$ /home/developer/osxcross/target/bin/o64-g++ hello_world.cc -o hello_world_darwin_x86_64
x86_64-apple-darwin20.4-g++: fatal error: cannot execute 'cc1plus': posix_spawnp: No such file or directory
compilation terminated.
/tmp$ /home/developer/osxcross/target/bin/o64-gcc hello_world.c -o hello_world_darwin_x86_64
x86_64-apple-darwin20.4-gcc: fatal error: cannot execute 'cc1': posix_spawnp: No such file or directory
$ /home/developer/osxcross/target/bin/o64-gcc --version
x86_64-apple-darwin20.4-gcc (GCC) 15.1.0
Copyright (C) 2025 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
/home/developer/osxcross/target/bin/o64-g++ --version
x86_64-apple-darwin20.4-g++ (GCC) 15.1.0
Copyright (C) 2025 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Hello,
did build o64-gcc on Linux Mint 22.1.
Wanna build binary for MacOS with Rust and fltk
What I did wrong at build the compiler ?
At compile process got this Error:
/tmp$ /home/developer/osxcross/target/bin/o64-g++ hello_world.cc -o hello_world_darwin_x86_64
/tmp$ /home/developer/osxcross/target/bin/o64-gcc hello_world.c -o hello_world_darwin_x86_64
x86_64-apple-darwin20.4-gcc: fatal error: cannot execute 'cc1': posix_spawnp: No such file or directory$ /home/developer/osxcross/target/bin/o64-gcc --version
/home/developer/osxcross/target/bin/o64-g++ --version
x86_64-apple-darwin20.4-g++ (GCC) 15.1.0
Copyright (C) 2025 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.