Closed
Description
This is likely something no one else is attempting.., Testing out rust on a PS3 running T2SDE linux
Related:
rust-lang/cargo#6320
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=788720
Code
fn main() {
println!("Hello World!");
}
Meta
rustc --version --verbose
:
rustc 1.52.1 (9bc8c42bb 2021-05-09)
binary: rustc
commit-hash: 9bc8c42bb2f19e745a63f3445f1ac248fb015e53
commit-date: 2021-05-09
host: powerpc-unknown-linux-gnu
release: 1.52.1
LLVM version: 12.0.0
Error output
rustc ./hello.rs
Illegal instruction (core dumped)
GDB Backtrace
root@localhost:~/rust# gdb rustc
GNU gdb (GDB) 10.1
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "powerpc64-t2-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from rustc...
r(gdb) run ./hello.rs
Starting program: /root/.cargo/bin/rustc ./hello.rs
warning: Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code.
warning: Could not load shared library symbols for 7 libraries, e.g. /usr/lib/libgcc_s.so.1.
Use the "info sharedlibrary" command to see the complete listing.
Do you need "set solib-search-path" or "set sysroot"?
Program received signal SIGILL, Illegal instruction.
0x00a87060 in OPENSSL_crypto207_probe ()
(gdb)
(gdb) backtrace
#0 0x00a87060 in OPENSSL_crypto207_probe ()
#1 0x004a3764 in OPENSSL_cpuid_setup ()
#2 0x00b2e118 in __do_global_ctors_aux ()
#3 0x004a2084 in _init ()
#4 0x00b2dfd4 in __libc_csu_init ()
#5 0x40062f5c in ?? ()
#6 0x40063040 in ?? ()
#7 0x00000000 in ?? ()
Dump of assembler code from 0xa87040 to 0xa87080:
0x00a87040 <OPENSSL_altivec_probe+0>: vmr v0,v0
0x00a87044 <OPENSSL_altivec_probe+4>: blr
0x00a87048 <OPENSSL_altivec_probe+8>: .long 0x0
0x00a8704c <OPENSSL_altivec_probe+12>: .long 0xc1400
0x00a87050 <OPENSSL_altivec_probe+16>: .long 0x0
0x00a87054: nop
0x00a87058: nop
0x00a8705c: nop
=> 0x00a87060 <OPENSSL_crypto207_probe+0>: lxvd2x vs32,0,r1
0x00a87064 <OPENSSL_crypto207_probe+4>: vcipher v0,v0,v0
0x00a87068 <OPENSSL_crypto207_probe+8>: blr
0x00a8706c <OPENSSL_crypto207_probe+12>: .long 0x0
0x00a87070 <OPENSSL_crypto207_probe+16>: .long 0xc1400
0x00a87074 <OPENSSL_crypto207_probe+20>: .long 0x0
0x00a87078: nop
0x00a8707c: nop