Skip to content
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

Support Solaris 11 #1599

Open
2 tasks done
ahqsoftwares opened this issue Dec 30, 2024 · 0 comments
Open
2 tasks done

Support Solaris 11 #1599

ahqsoftwares opened this issue Dec 30, 2024 · 0 comments

Comments

@ahqsoftwares
Copy link

ahqsoftwares commented Dec 30, 2024

Checklist

Describe your request

Cross should also support solaris 11 as some rust programs cannot be built with solaris 10, example below:

https://github.com/leadlang/lead/actions/runs/12541529005/job/34970191833
error: linking with x86_64-pc-solaris2.10-gcc failed: exit status: 1
|
= note: LC_ALL="C" PATH="/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin" VSLANG="1033" "x86_64-pc-solaris2.10-gcc" "-m64" "/tmp/rustcRWuq7U/symbols.o" "<8 object files omitted>" "-Wl,-z,ignore" "-Wl,-Bstatic" "/target/x86_64-pc-solaris/release/deps/{libtokio-48d78071756076d6.rlib,libpin_project_lite-1f304ae2cd6fa47f.rlib,libserde_json-eb3540b8f0cee5f4.rlib,libmemchr-b441dc4829067595.rlib,libitoa-bdc8ae38baebf684.rlib,libryu-500bc468dedaf378.rlib,libserde-b29b0dfb2ffb3c96.rlib,libchalk_rs-b1de7c7ee943377b.rlib,libstd-2cf4ebb76746864f.rlib,libpanic_unwind-7473c54edc44f9f4.rlib,libobject-0f2aa0e98d763207.rlib,libmemchr-0ef51ebff9688d03.rlib,libaddr2line-03849be05ae4c538.rlib,libgimli-97c3a64e1da0fe8d.rlib,librustc_demangle-2bdab8fc2a2d6028.rlib,libstd_detect-f0eda42faf8a106f.rlib,libhashbrown-18232027f73bd43e.rlib,librustc_std_workspace_alloc-f5a5558290c37c1d.rlib,libminiz_oxide-d884056c259b71ed.rlib,libadler-8515b497f6fd3154.rlib,libunwind-9b770ca153ff9641.rlib,libcfg_if-ff45a228e7c263ff.rlib,liblibc-837998e014863b5b.rlib,liballoc-bcccd6f397387c15.rlib,librustc_std_workspace_core-316a9f1958dfc1ea.rlib,libcore-0ffeea4d1b36ab18.rlib,libcompiler_builtins-155b88a487a6f9ff.rlib}" "-Wl,-Bdynamic" "-lsocket" "-lposix4" "-lpthread" "-lresolv" "-lgcc_s" "-lc" "-lm" "-lrt" "-lpthread" "-lsendfile" "-llgrp" "-o" "/target/x86_64-pc-solaris/release/deps/lead-7f26675f86a0b023" "-nodefaultlibs"
= note: some arguments are omitted. use --verbose to show all linker arguments
= note: /usr/local/lib/gcc/x86_64-pc-solaris2.10/8.4.0/../../../../x86_64-pc-solaris2.10/bin/ld: warning: -z ignore ignored.
/target/x86_64-pc-solaris/release/deps/libstd-2cf4ebb76746864f.rlib(std-2cf4ebb76746864f.std.706136ba1a783734-cgu.07.rcgu.o): In function std::sys::pal::unix::os::page_size': std.706136ba1a783734-cgu.07:(.text._ZN3std3sys3pal4unix2os9page_size17he6d0dba46385598bE+0x6): undefined reference to __sysconf_xpg7'
/target/x86_64-pc-solaris/release/deps/libstd-2cf4ebb76746864f.rlib(std-2cf4ebb76746864f.std.706136ba1a783734-cgu.07.rcgu.o): In function std::sys::pal::unix::os::home_dir': std.706136ba1a783734-cgu.07:(.text._ZN3std3sys3pal4unix2os8home_dir17h7c1c1b6407797e2fE+0x3a): undefined reference to __sysconf_xpg7'
/target/x86_64-pc-solaris/release/deps/libstd-2cf4ebb76746864f.rlib(std-2cf4ebb76746864f.std.706136ba1a783734-cgu.15.rcgu.o): In function std::sys_common::net::TcpStream::connect': std.706136ba1a783734-cgu.15:(.text._ZN3std10sys_common3net9TcpStream7connect17h4ac57a2f1d35ee4aE+0x3f): undefined reference to __xnet7_socket'
/target/x86_64-pc-solaris/release/deps/libstd-2cf4ebb76746864f.rlib(std-2cf4ebb76746864f.std.706136ba1a783734-cgu.15.rcgu.o): In function std::sys_common::net::TcpStream::connect_timeout': std.706136ba1a783734-cgu.15:(.text._ZN3std10sys_common3net9TcpStream15connect_timeout17h68aa89bf6b9e82d7E+0x30): undefined reference to __xnet7_socket'
/target/x86_64-pc-solaris/release/deps/libstd-2cf4ebb76746864f.rlib(std-2cf4ebb76746864f.std.706136ba1a783734-cgu.15.rcgu.o): In function std::sys_common::net::TcpListener::bind': std.706136ba1a783734-cgu.15:(.text._ZN3std10sys_common3net11TcpListener4bind17hce318e2ad89e3b3bE+0x3c): undefined reference to __xnet7_socket'
/target/x86_64-pc-solaris/release/deps/libstd-2cf4ebb76746864f.rlib(std-2cf4ebb76746864f.std.706136ba1a783734-cgu.15.rcgu.o): In function std::sys_common::net::UdpSocket::bind': std.706136ba1a783734-cgu.15:(.text._ZN3std10sys_common3net9UdpSocket4bind17ha7f6e186fbc1b557E+0x3d): undefined reference to __xnet7_socket'
/target/x86_64-pc-solaris/release/deps/libstd-2cf4ebb76746864f.rlib(std-2cf4ebb76746864f.std.706136ba1a783734-cgu.04.rcgu.o): In function std::os::unix::net::datagram::UnixDatagram::bind_addr': std.706136ba1a783734-cgu.04:(.text._ZN3std2os4unix3net8datagram12UnixDatagram9bind_addr17h59122c94a3e952b4E+0x17): undefined reference to __xnet7_socket'
/target/x86_64-pc-solaris/release/deps/libstd-2cf4ebb76746864f.rlib(std-2cf4ebb76746864f.std.706136ba1a783734-cgu.04.rcgu.o):std.706136ba1a783734-cgu.04:(.text._ZN3std2os4unix3net8datagram12UnixDatagram7unbound17he71fa8f0914d2966E+0x15): more undefined references to __xnet7_socket' follow /target/x86_64-pc-solaris/release/deps/libstd-2cf4ebb76746864f.rlib(std-2cf4ebb76746864f.std.706136ba1a783734-cgu.04.rcgu.o): In function std::sys::pal::unix::stack_overflow::imp::init':
std.706136ba1a783734-cgu.04:(.text._ZN3std3sys3pal4unix14stack_overflow3imp4init17h454067e5ca069e97E+0xf): undefined reference to __sysconf_xpg7' /target/x86_64-pc-solaris/release/deps/libstd-2cf4ebb76746864f.rlib(std-2cf4ebb76746864f.std.706136ba1a783734-cgu.04.rcgu.o): In function std::sys::pal::unix::thread::Thread::new':
std.706136ba1a783734-cgu.04:(.text._ZN3std3sys3pal4unix6thread6Thread3new17hbdc05396a00ef9a6E+0xa1): undefined reference to __sysconf_xpg7' /target/x86_64-pc-solaris/release/deps/libstd-2cf4ebb76746864f.rlib(std-2cf4ebb76746864f.std.706136ba1a783734-cgu.10.rcgu.o): In function std::os::unix::net::listener::UnixListener::bind_addr':
std.706136ba1a783734-cgu.10:(.text._ZN3std2os4unix3net8listener12UnixListener9bind_addr17h27d118a953d25286E+0x17): undefined reference to __xnet7_socket' /target/x86_64-pc-solaris/release/deps/libstd-2cf4ebb76746864f.rlib(std-2cf4ebb76746864f.std.706136ba1a783734-cgu.10.rcgu.o): In function std::sys::pal::unix::net::Socket::new':
std.706136ba1a783734-cgu.10:(.text._ZN3std3sys3pal4unix3net6Socket3new17h896aeb8f43d34615E+0x26): undefined reference to __xnet7_socket' /target/x86_64-pc-solaris/release/deps/libstd-2cf4ebb76746864f.rlib(std-2cf4ebb76746864f.std.706136ba1a783734-cgu.10.rcgu.o): In function std::sys::pal::unix::net::Socket::new_raw':
std.706136ba1a783734-cgu.10:(.text._ZN3std3sys3pal4unix3net6Socket7new_raw17h5c2edf4c28863eaaE+0x15): undefined reference to `__xnet7_socket'
collect2: error: ld returned 1 exit status

= note: some extern functions couldn't be found; some native libraries may need to be installed or have their path specified
= note: use the -l flag to specify native libraries to link
= note: use the cargo:rustc-link-lib directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#rustc-link-lib)

error: could not compile lead_cli (bin "lead") due to 1 previous error
thread 'main' panicked at src/main.rs:114:13:
Failed to build
stack backtrace:
0: rust_begin_unwind
1: core::panicking::panic_fmt
2: pack::main
note: Some details are omitted, run with RUST_BACKTRACE=full for a verbose backtrace.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant