MadMaurice has uploaded this change for review. ( https://gem5-review.googlesource.com/c/public/gem5/+/12704

Change subject: base: Adjust version check for ad 2.31.1 in SConstruct
......................................................................

base: Adjust version check for ad 2.31.1 in SConstruct

GNU binutils' as version 2.31.1 throws a fatal error complaining that input
and output files need to be distinct. To circumvent this without checking
for this specific case we choose /dev/zero as output file, which also
ignores any write operations without any error.

Observed error:
$ as -v /dev/null -o /dev/null
GNU assembler version 2.31.1 (x86_64-pc-linux-gnu) using BFD version (GNU Binutils) 2.31.1
Assembler messages:
Fatal error: The input and output files must be distinct

Change-Id: Ib92f10117e4358fc9b292827c94dcaa3eeefe993
Signed-off-by: Maurice Becker <[email protected]>
---
M SConstruct
1 file changed, 1 insertion(+), 1 deletion(-)



diff --git a/SConstruct b/SConstruct
index f689b55..3a745a7 100755
--- a/SConstruct
+++ b/SConstruct
@@ -426,7 +426,7 @@
     # assemblers detect this as an error, "Error: expecting string
     # instruction after `rep'"
     as_version_raw = readCommand([main['AS'], '-v', '/dev/null',
-                                  '-o', '/dev/null'],
+                                  '-o', '/dev/zero'],
                                  exception=False).split()

     # version strings may contain extra distro-specific

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

Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-Change-Id: Ib92f10117e4358fc9b292827c94dcaa3eeefe993
Gerrit-Change-Number: 12704
Gerrit-PatchSet: 1
Gerrit-Owner: MadMaurice <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to