[gem5-dev] Change in gem5/gem5[develop]: util: Add some settings files for build_cross_gcc.

2020-03-21 Thread Gabe Black (Gerrit)
Gabe Black has submitted this change. (  
https://gem5-review.googlesource.com/c/public/gem5/+/26764 )


Change subject: util: Add some settings files for build_cross_gcc.
..

util: Add some settings files for build_cross_gcc.

These files have settings for 32 and 64 bit ARM, MIPS, POWER, RISCV, and
SPARC. When used with the versions of toolchain components below, they
all generate working hello world binaries.

binutils-2.34
gcc-9.3.0
glibc-2.31
linux-5.5.9
gdb-9.1

The script was unable to install the c++ standard headers (step 8)
because a constant was not found when building one of the sanitizers. I
don't know exactly why this happens, but I suspect it's independent of
the build process.

Change-Id: I9f0068b77edf338ed63b95f007454c07651aa42a
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/26764
Maintainer: Gabe Black 
Tested-by: Gem5 Cloud Project GCB service account  
<345032938...@cloudbuild.gserviceaccount.com>

Reviewed-by: Jason Lowe-Power 
---
A util/build_cross_gcc/settings.aarch64
A util/build_cross_gcc/settings.arm
A util/build_cross_gcc/settings.mips
A util/build_cross_gcc/settings.power
A util/build_cross_gcc/settings.riscv
A util/build_cross_gcc/settings.sparc
6 files changed, 12 insertions(+), 0 deletions(-)

Approvals:
  Jason Lowe-Power: Looks good to me, approved
  Gabe Black: Looks good to me, approved
  Gem5 Cloud Project GCB service account: Regressions pass



diff --git a/util/build_cross_gcc/settings.aarch64  
b/util/build_cross_gcc/settings.aarch64

new file mode 100644
index 000..d2b21f6
--- /dev/null
+++ b/util/build_cross_gcc/settings.aarch64
@@ -0,0 +1,2 @@
+TARGET=aarch64-linux-gnu
+LINUX_ARCH=arm64
diff --git a/util/build_cross_gcc/settings.arm  
b/util/build_cross_gcc/settings.arm

new file mode 100644
index 000..7f3eff3
--- /dev/null
+++ b/util/build_cross_gcc/settings.arm
@@ -0,0 +1,2 @@
+TARGET=arm-linux-gnueabihf
+LINUX_ARCH=arm
diff --git a/util/build_cross_gcc/settings.mips  
b/util/build_cross_gcc/settings.mips

new file mode 100644
index 000..c29e4ad
--- /dev/null
+++ b/util/build_cross_gcc/settings.mips
@@ -0,0 +1,2 @@
+TARGET=mipsel-linux-gnu
+LINUX_ARCH=mips
diff --git a/util/build_cross_gcc/settings.power  
b/util/build_cross_gcc/settings.power

new file mode 100644
index 000..998a2bc
--- /dev/null
+++ b/util/build_cross_gcc/settings.power
@@ -0,0 +1,2 @@
+TARGET=powerpc-linux-gnu
+LINUX_ARCH=powerpc
diff --git a/util/build_cross_gcc/settings.riscv  
b/util/build_cross_gcc/settings.riscv

new file mode 100644
index 000..d1910e8
--- /dev/null
+++ b/util/build_cross_gcc/settings.riscv
@@ -0,0 +1,2 @@
+TARGET=riscv64-linux-gnu
+LINUX_ARCH=riscv
diff --git a/util/build_cross_gcc/settings.sparc  
b/util/build_cross_gcc/settings.sparc

new file mode 100644
index 000..cc96530
--- /dev/null
+++ b/util/build_cross_gcc/settings.sparc
@@ -0,0 +1,2 @@
+TARGET=sparc64-linux-gnu
+LINUX_ARCH=sparc

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/26764
To unsubscribe, or for help writing mail filters, visit  
https://gem5-review.googlesource.com/settings


Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: I9f0068b77edf338ed63b95f007454c07651aa42a
Gerrit-Change-Number: 26764
Gerrit-PatchSet: 8
Gerrit-Owner: Gabe Black 
Gerrit-Reviewer: Bobby R. Bruce 
Gerrit-Reviewer: Brandon Potter 
Gerrit-Reviewer: Gabe Black 
Gerrit-Reviewer: Gem5 Cloud Project GCB service account  
<345032938...@cloudbuild.gserviceaccount.com>

Gerrit-Reviewer: Giacomo Travaglini 
Gerrit-Reviewer: Jason Lowe-Power 
Gerrit-Reviewer: Nikos Nikoleris 
Gerrit-CC: kokoro 
Gerrit-MessageType: merged
___
gem5-dev mailing list
gem5-dev@gem5.org
http://m5sim.org/mailman/listinfo/gem5-dev

[gem5-dev] Change in gem5/gem5[develop]: util: Add some settings files for build_cross_gcc.

2020-03-15 Thread Gabe Black (Gerrit)
Gabe Black has uploaded this change for review. (  
https://gem5-review.googlesource.com/c/public/gem5/+/26764 )



Change subject: util: Add some settings files for build_cross_gcc.
..

util: Add some settings files for build_cross_gcc.

The SPARC compiler generated a binary which didn't run under gem5, but
the error looks unrelated. The RISCV, aarch64, and arm hello world
binaries ran successfully.

The versions used to build those binaries were:

binutils-2.34
gcc-9.3.0
glibc-2.31
linux-5.5.9

The script was unable to install the c++ standard headers (step 7)
because a constant was not found when building one of the sanitizers. I
don't know exactly why this happens, but I suspect it's independent of
the build process.

Change-Id: I9f0068b77edf338ed63b95f007454c07651aa42a
---
A util/build_cross_gcc/settings.aarch64
A util/build_cross_gcc/settings.arm
A util/build_cross_gcc/settings.riscv
A util/build_cross_gcc/settings.sparc
4 files changed, 8 insertions(+), 0 deletions(-)



diff --git a/util/build_cross_gcc/settings.aarch64  
b/util/build_cross_gcc/settings.aarch64

new file mode 100644
index 000..d2b21f6
--- /dev/null
+++ b/util/build_cross_gcc/settings.aarch64
@@ -0,0 +1,2 @@
+TARGET=aarch64-linux-gnu
+LINUX_ARCH=arm64
diff --git a/util/build_cross_gcc/settings.arm  
b/util/build_cross_gcc/settings.arm

new file mode 100644
index 000..0c8eed9
--- /dev/null
+++ b/util/build_cross_gcc/settings.arm
@@ -0,0 +1,2 @@
+TARGET=arm-linux-gnueabihf
+LINUX_ARCH=arm
diff --git a/util/build_cross_gcc/settings.riscv  
b/util/build_cross_gcc/settings.riscv

new file mode 100644
index 000..d1910e8
--- /dev/null
+++ b/util/build_cross_gcc/settings.riscv
@@ -0,0 +1,2 @@
+TARGET=riscv64-linux-gnu
+LINUX_ARCH=riscv
diff --git a/util/build_cross_gcc/settings.sparc  
b/util/build_cross_gcc/settings.sparc

new file mode 100644
index 000..cc96530
--- /dev/null
+++ b/util/build_cross_gcc/settings.sparc
@@ -0,0 +1,2 @@
+TARGET=sparc64-linux-gnu
+LINUX_ARCH=sparc

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/26764
To unsubscribe, or for help writing mail filters, visit  
https://gem5-review.googlesource.com/settings


Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: I9f0068b77edf338ed63b95f007454c07651aa42a
Gerrit-Change-Number: 26764
Gerrit-PatchSet: 1
Gerrit-Owner: Gabe Black 
Gerrit-MessageType: newchange
___
gem5-dev mailing list
gem5-dev@gem5.org
http://m5sim.org/mailman/listinfo/gem5-dev