pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Rust still broken on 9.0-STABLE i386



> Attached is a diff which caused my attempted mostly-static cross
> build for i386 to succeed.  This is an optional thing, not
> enabled by default, ref. the commented-out remark, and only works
> in conjunction with the modified gcc-wrap script, which is only
> used when cross-building.  I'm currently uploading the build
> result, it'll be a while till it's there.

The bootstrap is now mostly-static:

: {13} ldd cargo
cargo:
        -lgcc_s.1 => /usr/lib/libgcc_s.so.1
        -lc.12 => /usr/lib/libc.so.12
        -lm.0 => /usr/lib/libm.so.0
: {14} pwd
/usr/pkgsrc/lang/rust/work/rust-bootstrap/bin
: {15} 

However...

running: /usr/pkgsrc/lang/rust/work/rust-bootstrap/bin/cargo build --manifest-path /usr/pkgsrc/lang/rust/work/rustc-1.45.2-src/src/bootstrap/Cargo.toml --frozen
/usr/pkgsrc/lang/rust/work/rust-bootstrap/bin/cargo: text relocations
/usr/pkgsrc/lang/rust/work/rust-bootstrap/bin/cargo: text relocations
/usr/pkgsrc/lang/rust/work/rust-bootstrap/bin/cargo: text relocations
error: process didn't exit successfully: `/usr/pkgsrc/lang/rust/work/rust-bootstrap/bin/rustc -vV` (signal: 6, SIGABRT: process abort signal)

and

: {47} setenv LD_LIBRARY_PATH `pwd`/work/rust-bootstrap/lib
: {48} work/rust-bootstrap/bin/rustc
/usr/pkgsrc/lang/rust/work/rust-bootstrap/lib/librustc_driver-c4aa8c2d5ae1470c.so: text relocations
Abort (core dumped)
: {49} readelf -a /usr/pkgsrc/lang/rust/work/rust-bootstrap/lib/librustc_driver-c4aa8c2d5ae1470c.so | grep TEXTREL
 0x00000016 (TEXTREL)                    0x0
 0x0000001e (FLAGS)                      TEXTREL BIND_NOW STATIC_TLS
: {50} 

Dang!  Any advice?  Was it a bad idea to try to do libstdc++
statically, or is this perhaps something else entirely?

Regards,

- Håvard


Home | Main Index | Thread Index | Old Index