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

Add qemu-system support for more targets #166

Merged
merged 24 commits into from
Oct 18, 2018

Conversation

malbarbo
Copy link
Contributor

@malbarbo malbarbo commented Dec 3, 2017

Add qemu-system support for the following targets:

  • aarch64-unknown-linux-gnu
  • armv7-unknown-linux-gnueabihf
  • i686-unknown-linux-gnu
  • mips-unknown-linux-gnu
  • mipsel-unknown-linux-gnu
  • mips64el-unknown-linux-gnuabi64
  • powerpc-unknown-linux-gnu
  • powerpc64-unknown-linux-gnu
  • powerpc64le-unknown-linux-gnu
  • s390x-unknown-linux-gnu
  • sparc64-unknown-linux-gnu
  • x86_64-unknown-linux-gnu

Running cross test fails for s390x-unknown-linux-gnu and sparc64-unknown-linux-gnu, but cargo run works. This maybe be a bug in qemu or rustc.

Debian does not have a port for mips64-unknown-linux-gnuabi64. Support for arm targets can be add later, but I think a custom kernel will be need.

musl targets can get qemu-system support latter.

@malbarbo
Copy link
Contributor Author

malbarbo commented Dec 3, 2017

The qemu parameters and cpu type was found using trial an error. We must decide which cpu type to use by default. Maybe @gnzlbg can help with this? We can also allow the user to specify the cpu type, memory and numbers of cpus.

To show the qemu cpu type and boot time, I executed the following script

#!/bin/bash

set -e

if [ ! -e xx ]; then
    cargo new xx --bin
fi

cd xx

cat << EOF > src/main.rs
use std::process::Command;

fn main() {
    let output = Command::new("cat").arg("/proc/cpuinfo").output().expect("exec cat command");
    print!("{}", String::from_utf8_lossy(&output.stdout));
}
EOF

for target in aarch64-unknown-linux-gnu \
              armv7-unknown-linux-gnueabihf \
              i686-unknown-linux-gnu \
              mips-unknown-linux-gnu \
              mipsel-unknown-linux-gnu \
              mips64el-unknown-linux-gnuabi64 \
              powerpc-unknown-linux-gnu \
              powerpc64-unknown-linux-gnu \
              powerpc64le-unknown-linux-gnu \
              s390x-unknown-linux-gnu \
              sparc64-unknown-linux-gnu \
              x86_64-unknown-linux-gnu; do
    echo -e "[target.$target]\nrunner = \"qemu-system\"" > Cross.toml
    cross run --target $target
done

which outputs:

�[m�[m�[32m�[1m   Compiling�[m xx v0.1.0 (file:///project)
�[m�[m�[32m�[1m    Finished�[m dev [unoptimized + debuginfo] target(s) in 0.89 secs
�[m�[m�[32m�[1m     Running�[m `/linux-runner aarch64 /target/aarch64-unknown-linux-gnu/debug/xx`
Booting QEMU virtual machine with 4 cpus...
Booted in 6 seconds
processor	: 0
BogoMIPS	: 125.00
Features	: fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer	: 0x41
CPU architecture: 8
CPU variant	: 0x1
CPU part	: 0xd07
CPU revision	: 0

processor	: 1
BogoMIPS	: 125.00
Features	: fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer	: 0x41
CPU architecture: 8
CPU variant	: 0x1
CPU part	: 0xd07
CPU revision	: 0

processor	: 2
BogoMIPS	: 125.00
Features	: fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer	: 0x41
CPU architecture: 8
CPU variant	: 0x1
CPU part	: 0xd07
CPU revision	: 0

processor	: 3
BogoMIPS	: 125.00
Features	: fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer	: 0x41
CPU architecture: 8
CPU variant	: 0x1
CPU part	: 0xd07
CPU revision	: 0

�[m�[m�[32m�[1m   Compiling�[m xx v0.1.0 (file:///project)
�[m�[m�[32m�[1m    Finished�[m dev [unoptimized + debuginfo] target(s) in 1.29 secs
�[m�[m�[32m�[1m     Running�[m `/linux-runner armv7 /target/armv7-unknown-linux-gnueabihf/debug/xx`
Booting QEMU virtual machine with 4 cpus...
Booted in 13 seconds
processor	: 0
model name	: ARMv7 Processor rev 1 (v7l)
BogoMIPS	: 125.00
Features	: half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm 
CPU implementer	: 0x41
CPU architecture: 7
CPU variant	: 0x2
CPU part	: 0xc0f
CPU revision	: 1

processor	: 1
model name	: ARMv7 Processor rev 1 (v7l)
BogoMIPS	: 125.00
Features	: half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm 
CPU implementer	: 0x41
CPU architecture: 7
CPU variant	: 0x2
CPU part	: 0xc0f
CPU revision	: 1

processor	: 2
model name	: ARMv7 Processor rev 1 (v7l)
BogoMIPS	: 125.00
Features	: half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm 
CPU implementer	: 0x41
CPU architecture: 7
CPU variant	: 0x2
CPU part	: 0xc0f
CPU revision	: 1

processor	: 3
model name	: ARMv7 Processor rev 1 (v7l)
BogoMIPS	: 125.00
Features	: half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm 
CPU implementer	: 0x41
CPU architecture: 7
CPU variant	: 0x2
CPU part	: 0xc0f
CPU revision	: 1

Hardware	: Generic DT based system
Revision	: 0000
Serial		: 0000000000000000
�[m�[m�[32m�[1m   Compiling�[m xx v0.1.0 (file:///project)
�[m�[m�[32m�[1m    Finished�[m dev [unoptimized + debuginfo] target(s) in 1.13 secs
�[m�[m�[32m�[1m     Running�[m `/linux-runner i686 /target/i686-unknown-linux-gnu/debug/xx`
Booting QEMU virtual machine with 4 cpus...
Booted in 10 seconds
processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 2.5+
stepping	: 3
cpu MHz		: 2393.903
cache size	: 16384 KB
physical id	: 0
siblings	: 1
core id		: 0
cpu cores	: 1
apicid		: 0
initial apicid	: 0
fdiv_bug	: no
f00f_bug	: no
coma_bug	: no
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic sep pge cmov mmx fxsr sse sse2 eagerfpu pni hypervisor
bugs		:
bogomips	: 4787.80
clflush size	: 32
cache_alignment	: 32
address sizes	: 36 bits physical, 32 bits virtual
power management:

processor	: 1
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 2.5+
stepping	: 3
cpu MHz		: 2393.903
cache size	: 16384 KB
physical id	: 1
siblings	: 1
core id		: 0
cpu cores	: 1
apicid		: 1
initial apicid	: 1
fdiv_bug	: no
f00f_bug	: no
coma_bug	: no
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic sep pge cmov mmx fxsr sse sse2 eagerfpu pni hypervisor
bugs		:
bogomips	: 0.15
clflush size	: 32
cache_alignment	: 32
address sizes	: 36 bits physical, 32 bits virtual
power management:

processor	: 2
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 2.5+
stepping	: 3
cpu MHz		: 2393.903
cache size	: 16384 KB
physical id	: 2
siblings	: 1
core id		: 0
cpu cores	: 1
apicid		: 2
initial apicid	: 2
fdiv_bug	: no
f00f_bug	: no
coma_bug	: no
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic sep pge cmov mmx fxsr sse sse2 eagerfpu pni hypervisor
bugs		:
bogomips	: 3.40
clflush size	: 32
cache_alignment	: 32
address sizes	: 36 bits physical, 32 bits virtual
power management:

processor	: 3
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 2.5+
stepping	: 3
cpu MHz		: 2393.903
cache size	: 16384 KB
physical id	: 3
siblings	: 1
core id		: 0
cpu cores	: 1
apicid		: 3
initial apicid	: 3
fdiv_bug	: no
f00f_bug	: no
coma_bug	: no
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic sep pge cmov mmx fxsr sse sse2 eagerfpu pni hypervisor
bugs		:
bogomips	: 847.18
clflush size	: 32
cache_alignment	: 32
address sizes	: 36 bits physical, 32 bits virtual
power management:

�[m�[m�[32m�[1m   Compiling�[m xx v0.1.0 (file:///project)
�[m�[m�[32m�[1m    Finished�[m dev [unoptimized + debuginfo] target(s) in 0.98 secs
�[m�[m�[32m�[1m     Running�[m `/linux-runner mips /target/mips-unknown-linux-gnu/debug/xx`
Booting QEMU virtual machine with 1 cpus...
Booted in 5 seconds
system type		: MIPS Malta
machine			: mti,malta
processor		: 0
cpu model		: MIPS 24Kc V0.0  FPU V0.0
BogoMIPS		: 746.49
wait instruction	: yes
microsecond timers	: yes
tlb_entries		: 16
extra interrupt vector	: yes
hardware watchpoint	: yes, count: 1, address/irw mask: [0x0ff8]
isa			: mips1 mips2 mips32r1 mips32r2
ASEs implemented	: mips16
shadow register sets	: 1
kscratch registers	: 0
package			: 0
core			: 0
VCED exceptions		: not available
VCEI exceptions		: not available

�[m�[m�[32m�[1m   Compiling�[m xx v0.1.0 (file:///project)
�[m�[m�[32m�[1m    Finished�[m dev [unoptimized + debuginfo] target(s) in 0.95 secs
�[m�[m�[32m�[1m     Running�[m `/linux-runner mipsel /target/mipsel-unknown-linux-gnu/debug/xx`
Booting QEMU virtual machine with 1 cpus...
Booted in 5 seconds
system type		: MIPS Malta
machine			: mti,malta
processor		: 0
cpu model		: MIPS 24Kc V0.0  FPU V0.0
BogoMIPS		: 768.00
wait instruction	: yes
microsecond timers	: yes
tlb_entries		: 16
extra interrupt vector	: yes
hardware watchpoint	: yes, count: 1, address/irw mask: [0x0ff8]
isa			: mips1 mips2 mips32r1 mips32r2
ASEs implemented	: mips16
shadow register sets	: 1
kscratch registers	: 0
package			: 0
core			: 0
VCED exceptions		: not available
VCEI exceptions		: not available

�[m�[m�[32m�[1m   Compiling�[m xx v0.1.0 (file:///project)
�[m�[m�[32m�[1m    Finished�[m dev [unoptimized + debuginfo] target(s) in 1.4 secs
�[m�[m�[32m�[1m     Running�[m `/linux-runner mips64el /target/mips64el-unknown-linux-gnuabi64/debug/xx`
Booting QEMU virtual machine with 1 cpus...
Booted in 5 seconds
system type		: MIPS Malta
machine			: mti,malta
processor		: 0
cpu model		: MIPS GENERIC QEMU V0.0  FPU V0.0
BogoMIPS		: 752.64
wait instruction	: yes
microsecond timers	: yes
tlb_entries		: 64
extra interrupt vector	: yes
hardware watchpoint	: yes, count: 1, address/irw mask: [0x0ff8]
isa			: mips1 mips2 mips3 mips4 mips5 mips32r1 mips32r2 mips64r1 mips64r2
ASEs implemented	: mips3d
shadow register sets	: 1
kscratch registers	: 0
package			: 0
core			: 0
VCED exceptions		: not available
VCEI exceptions		: not available

�[m�[m�[32m�[1m   Compiling�[m xx v0.1.0 (file:///project)
�[m�[m�[32m�[1m    Finished�[m dev [unoptimized + debuginfo] target(s) in 0.91 secs
�[m�[m�[32m�[1m     Running�[m `/linux-runner powerpc /target/powerpc-unknown-linux-gnu/debug/xx`
Booting QEMU virtual machine with 1 cpus...
Booted in 14 seconds
processor	: 0
cpu		: 740/750
temperature 	: 34-94 C (uncalibrated)
clock		: 266.000000MHz
revision	: 3.1 (pvr 0008 0301)
bogomips	: 33.18
timebase	: 16594266
platform	: PowerMac
model		: Power Macintosh
machine		: Power Macintosh
motherboard	: AAPL,PowerMac G3 MacRISC
detected as	: 49 (PowerMac G3 (Silk))
pmac flags	: 00000000
pmac-generation	: OldWorld
Memory		: 1024 MB
�[m�[m�[32m�[1m   Compiling�[m xx v0.1.0 (file:///project)
�[m�[m�[32m�[1m    Finished�[m dev [unoptimized + debuginfo] target(s) in 1.0 secs
�[m�[m�[32m�[1m     Running�[m `/linux-runner powerpc64 /target/powerpc64-unknown-linux-gnu/debug/xx`
Booting QEMU virtual machine with 4 cpus...
Booted in 29 seconds
processor	: 0
cpu		: POWER8 (architected), altivec supported
clock		: 1000.000000MHz
revision	: 2.0 (pvr 004d 0200)

processor	: 1
cpu		: POWER8 (architected), altivec supported
clock		: 1000.000000MHz
revision	: 2.0 (pvr 004d 0200)

processor	: 2
cpu		: POWER8 (architected), altivec supported
clock		: 1000.000000MHz
revision	: 2.0 (pvr 004d 0200)

processor	: 3
cpu		: POWER8 (architected), altivec supported
clock		: 1000.000000MHz
revision	: 2.0 (pvr 004d 0200)

timebase	: 512000000
platform	: pSeries
model		: IBM pSeries (emulated by qemu)
machine		: CHRP IBM pSeries (emulated by qemu)
MMU		: Hash
�[m�[m�[32m�[1m   Compiling�[m xx v0.1.0 (file:///project)
�[m�[m�[32m�[1m    Finished�[m dev [unoptimized + debuginfo] target(s) in 1.6 secs
�[m�[m�[32m�[1m     Running�[m `/linux-runner powerpc64le /target/powerpc64le-unknown-linux-gnu/debug/xx`
Booting QEMU virtual machine with 4 cpus...
Booted in 31 seconds
processor	: 0
cpu		: POWER8 (architected), altivec supported
clock		: 1000.000000MHz
revision	: 2.0 (pvr 004d 0200)

processor	: 1
cpu		: POWER8 (architected), altivec supported
clock		: 1000.000000MHz
revision	: 2.0 (pvr 004d 0200)

processor	: 2
cpu		: POWER8 (architected), altivec supported
clock		: 1000.000000MHz
revision	: 2.0 (pvr 004d 0200)

processor	: 3
cpu		: POWER8 (architected), altivec supported
clock		: 1000.000000MHz
revision	: 2.0 (pvr 004d 0200)

timebase	: 512000000
platform	: pSeries
model		: IBM pSeries (emulated by qemu)
machine		: CHRP IBM pSeries (emulated by qemu)
�[m�[m�[32m�[1m   Compiling�[m xx v0.1.0 (file:///project)
�[m�[m�[32m�[1m    Finished�[m dev [unoptimized + debuginfo] target(s) in 1.0 secs
�[m�[m�[32m�[1m     Running�[m `/linux-runner s390x /target/s390x-unknown-linux-gnu/debug/xx`
Booting QEMU virtual machine with 1 cpus...
Booted in 4 seconds
vendor_id       : IBM/S390
# processors    : 1
bogomips per cpu: 13370.00
max thread id   : 0
features	: esan3 zarch highgprs 
processor 0: version = 00,  identification = 000000,  machine = 2064
�[m�[m�[32m�[1m   Compiling�[m xx v0.1.0 (file:///project)
�[m�[m�[32m�[1m    Finished�[m dev [unoptimized + debuginfo] target(s) in 0.96 secs
�[m�[m�[32m�[1m     Running�[m `/linux-runner sparc64 /target/sparc64-unknown-linux-gnu/debug/xx`
Booting QEMU virtual machine with 1 cpus...
Booted in 14 seconds
cpu		: TI UltraSparc IIi (Sabre)
fpu		: UltraSparc IIi integrated FPU
pmu		: ultra12
prom		: OBP 3.10.24 1999/01/01 01:01
type		: sun4u
ncpus probed	: 1
ncpus active	: 1
D$ parity tl1	: 0
I$ parity tl1	: 0
Cpu0ClkTck	: 0000000005f5e100
cpucaps		: flush,stbar,swap,muldiv,v9,mul32,div32,v8plus,vis
MMU Type	: Spitfire
MMU PGSZs	: 8K,64K,512K,4MB
�[m�[m�[32m�[1m   Compiling�[m xx v0.1.0 (file:///project)
�[m�[m�[32m�[1m    Finished�[m dev [unoptimized + debuginfo] target(s) in 1.13 secs
�[m�[m�[32m�[1m     Running�[m `/linux-runner x86_64 /target/x86_64-unknown-linux-gnu/debug/xx`
Booting QEMU virtual machine with 4 cpus...
Booted in 10 seconds
processor	: 0
vendor_id	: AuthenticAMD
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 2.5+
stepping	: 3
cpu MHz		: 2393.926
cache size	: 512 KB
physical id	: 0
siblings	: 1
core id		: 0
cpu cores	: 1
apicid		: 0
initial apicid	: 0
fpu		: yes
fpu_exception	: yes
cpuid level	: 13
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx lm nopl eagerfpu pni cx16 hypervisor lahf_lm svm 3dnowprefetch vmmcall
bugs		: fxsave_leak sysret_ss_attrs
bogomips	: 4787.85
TLB size	: 1024 4K pages
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 1
vendor_id	: AuthenticAMD
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 2.5+
stepping	: 3
cpu MHz		: 2393.926
cache size	: 512 KB
physical id	: 1
siblings	: 1
core id		: 0
cpu cores	: 1
apicid		: 1
initial apicid	: 1
fpu		: yes
fpu_exception	: yes
cpuid level	: 13
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx lm nopl eagerfpu pni cx16 hypervisor lahf_lm svm 3dnowprefetch vmmcall
bugs		: fxsave_leak sysret_ss_attrs
bogomips	: 0.09
TLB size	: 1024 4K pages
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 2
vendor_id	: AuthenticAMD
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 2.5+
stepping	: 3
cpu MHz		: 2393.926
cache size	: 512 KB
physical id	: 2
siblings	: 1
core id		: 0
cpu cores	: 1
apicid		: 2
initial apicid	: 2
fpu		: yes
fpu_exception	: yes
cpuid level	: 13
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx lm nopl eagerfpu pni cx16 hypervisor lahf_lm svm 3dnowprefetch vmmcall
bugs		: fxsave_leak sysret_ss_attrs
bogomips	: 1.35
TLB size	: 1024 4K pages
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 3
vendor_id	: AuthenticAMD
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 2.5+
stepping	: 3
cpu MHz		: 2393.926
cache size	: 512 KB
physical id	: 3
siblings	: 1
core id		: 0
cpu cores	: 1
apicid		: 3
initial apicid	: 3
fpu		: yes
fpu_exception	: yes
cpuid level	: 13
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx lm nopl eagerfpu pni cx16 hypervisor lahf_lm svm 3dnowprefetch vmmcall
bugs		: fxsave_leak sysret_ss_attrs
bogomips	: 4950.45
TLB size	: 1024 4K pages
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

@gnzlbg
Copy link
Contributor

gnzlbg commented Dec 6, 2017

I think that having a single CPU that is known to "work" is a good start. In the longer term it might be better if the user could specify their own (maybe from a list of CPUs that are known to work?).

japaric
japaric previously approved these changes Mar 10, 2018
Copy link
Contributor

@japaric japaric left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will r+ after #153 lands

@Dylan-DPC-zz
Copy link

@malbarbo need to resolve conflicts with this. next in line

@malbarbo
Copy link
Contributor Author

Pushed fixes for the two failing targets.

@Dylan-DPC-zz
Copy link

bors: try

@bors
Copy link
Contributor

bors bot commented Oct 16, 2018

try

Not awaiting review

@bors
Copy link
Contributor

bors bot commented Oct 16, 2018

try

Build failed

@Dylan-DPC-zz
Copy link

bors: try

bors bot added a commit that referenced this pull request Oct 16, 2018
@malbarbo
Copy link
Contributor Author

Spurious failure for sparc64 https://travis-ci.org/rust-embedded/cross/jobs/442351783#L9340

@Dylan-DPC-zz
Copy link

bors: stop

@Dylan-DPC-zz
Copy link

bors: r+

@bors
Copy link
Contributor

bors bot commented Oct 16, 2018

👎 Rejected by too few approved reviews

@Dylan-DPC-zz
Copy link

bors: r-

@Dylan-DPC-zz
Copy link

bors: try

@bors
Copy link
Contributor

bors bot commented Oct 16, 2018

try

Not awaiting review

@bors
Copy link
Contributor

bors bot commented Oct 16, 2018

try

Build failed

@Dylan-DPC-zz
Copy link

bors: try

bors bot added a commit that referenced this pull request Oct 16, 2018
@bors
Copy link
Contributor

bors bot commented Oct 17, 2018

try

Build succeeded

@Dylan-DPC-zz
Copy link

bors: r+

bors bot added a commit that referenced this pull request Oct 17, 2018
166: Add  qemu-system support for more targets r=Dylan-DPC a=malbarbo

Add qemu-system support for the following targets:

- aarch64-unknown-linux-gnu
- armv7-unknown-linux-gnueabihf
- i686-unknown-linux-gnu
- mips-unknown-linux-gnu
- mipsel-unknown-linux-gnu
- mips64el-unknown-linux-gnuabi64
- powerpc-unknown-linux-gnu
- powerpc64-unknown-linux-gnu
- powerpc64le-unknown-linux-gnu
- s390x-unknown-linux-gnu
- sparc64-unknown-linux-gnu
- x86_64-unknown-linux-gnu

Running `cross test` fails for `s390x-unknown-linux-gnu` and `sparc64-unknown-linux-gnu`, but `cargo run` works. This maybe be a bug in qemu or rustc.

Debian does not have a port for `mips64-unknown-linux-gnuabi64`. Support for arm targets can be add later, but I think a custom kernel will be need.

musl targets can get qemu-system support latter.

Co-authored-by: Marco A L Barbosa <malbarbo@gmail.com>
@bors
Copy link
Contributor

bors bot commented Oct 17, 2018

Timed out

@Dylan-DPC-zz
Copy link

bors: r+

bors bot added a commit that referenced this pull request Oct 17, 2018
166: Add  qemu-system support for more targets r=Dylan-DPC a=malbarbo

Add qemu-system support for the following targets:

- aarch64-unknown-linux-gnu
- armv7-unknown-linux-gnueabihf
- i686-unknown-linux-gnu
- mips-unknown-linux-gnu
- mipsel-unknown-linux-gnu
- mips64el-unknown-linux-gnuabi64
- powerpc-unknown-linux-gnu
- powerpc64-unknown-linux-gnu
- powerpc64le-unknown-linux-gnu
- s390x-unknown-linux-gnu
- sparc64-unknown-linux-gnu
- x86_64-unknown-linux-gnu

Running `cross test` fails for `s390x-unknown-linux-gnu` and `sparc64-unknown-linux-gnu`, but `cargo run` works. This maybe be a bug in qemu or rustc.

Debian does not have a port for `mips64-unknown-linux-gnuabi64`. Support for arm targets can be add later, but I think a custom kernel will be need.

musl targets can get qemu-system support latter.

Co-authored-by: Marco A L Barbosa <malbarbo@gmail.com>
bors bot added a commit that referenced this pull request Oct 18, 2018
166: Add  qemu-system support for more targets r=Dylan-DPC a=malbarbo

Add qemu-system support for the following targets:

- aarch64-unknown-linux-gnu
- armv7-unknown-linux-gnueabihf
- i686-unknown-linux-gnu
- mips-unknown-linux-gnu
- mipsel-unknown-linux-gnu
- mips64el-unknown-linux-gnuabi64
- powerpc-unknown-linux-gnu
- powerpc64-unknown-linux-gnu
- powerpc64le-unknown-linux-gnu
- s390x-unknown-linux-gnu
- sparc64-unknown-linux-gnu
- x86_64-unknown-linux-gnu

Running `cross test` fails for `s390x-unknown-linux-gnu` and `sparc64-unknown-linux-gnu`, but `cargo run` works. This maybe be a bug in qemu or rustc.

Debian does not have a port for `mips64-unknown-linux-gnuabi64`. Support for arm targets can be add later, but I think a custom kernel will be need.

musl targets can get qemu-system support latter.

Co-authored-by: Marco A L Barbosa <malbarbo@gmail.com>
@bors
Copy link
Contributor

bors bot commented Oct 18, 2018

Timed out

@Dylan-DPC-zz
Copy link

bors: r+ p=10

bors bot added a commit that referenced this pull request Oct 18, 2018
166: Add  qemu-system support for more targets r=Dylan-DPC a=malbarbo

Add qemu-system support for the following targets:

- aarch64-unknown-linux-gnu
- armv7-unknown-linux-gnueabihf
- i686-unknown-linux-gnu
- mips-unknown-linux-gnu
- mipsel-unknown-linux-gnu
- mips64el-unknown-linux-gnuabi64
- powerpc-unknown-linux-gnu
- powerpc64-unknown-linux-gnu
- powerpc64le-unknown-linux-gnu
- s390x-unknown-linux-gnu
- sparc64-unknown-linux-gnu
- x86_64-unknown-linux-gnu

Running `cross test` fails for `s390x-unknown-linux-gnu` and `sparc64-unknown-linux-gnu`, but `cargo run` works. This maybe be a bug in qemu or rustc.

Debian does not have a port for `mips64-unknown-linux-gnuabi64`. Support for arm targets can be add later, but I think a custom kernel will be need.

musl targets can get qemu-system support latter.

Co-authored-by: Marco A L Barbosa <malbarbo@gmail.com>
@bors
Copy link
Contributor

bors bot commented Oct 18, 2018

Build succeeded

@bors bors bot merged commit 831f073 into cross-rs:master Oct 18, 2018
@malbarbo malbarbo mentioned this pull request Sep 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants