Bug 400975

Summary: Compile error: error: '-mips64r2' conflicts with the other architecture options, which specify a mips64 processor
Product: [Developer tools] valgrind Reporter: Peter Seiderer <ps.report>
Component: generalAssignee: Julian Seward <jseward>
Status: VERIFIED FIXED    
Severity: normal CC: mips32r2
Priority: NOR    
Version: 3.14 SVN   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: [RFC PATCH] configure.ac: disable gcc march mips64r2 detection

Description Peter Seiderer 2018-11-12 18:31:55 UTC
Created attachment 116264 [details]
[RFC PATCH] configure.ac: disable gcc march mips64r2 detection

Cross-compiling valgrind using Buildroot for mips64 fails with (see [1], [2] for details):

  error: '-mips64r2' conflicts with the other architecture options, which specify a mips64 processor

Disabling the gcc march mips64r2 detection in configure.ac and simple
using the provided compile flags (e.g. set by buildroot) avoids double settings
like '-march=mips64 ... -march=mips64r2 -mabi=64' (see attached RFC patch).

'Fix' only compile tested (not run time tested)...

[1] http://autobuild.buildroot.net/results/34f6e2352f1559f98c724fe5394db0035b42ddb1

[2] http://lists.busybox.net/pipermail/buildroot/2018-November/235325.html
Comment 1 Petar Jovanovic 2019-03-25 18:03:03 UTC
I hope this is fixed with 

https://sourceware.org/git/?p=valgrind.git;a=commit;h=e61d13087096139024788393218367572751b4b6

Peter, can you check with Valgrind ToT?
Comment 2 Peter Seiderer 2019-03-26 18:49:32 UTC
Yes, works for the buildroot testcase (tested with valgrind-3.14.0 and commit e61d13087096139024788393218367572751b4b6 applied as patch)