Bug 400975 - Compile error: error: '-mips64r2' conflicts with the other architecture options, which specify a mips64 processor
Summary: Compile error: error: '-mips64r2' conflicts with the other architecture optio...
Status: VERIFIED FIXED
Alias: None
Product: valgrind
Classification: Developer tools
Component: general (show other bugs)
Version: 3.14 SVN
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Julian Seward
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-12 18:31 UTC by Peter Seiderer
Modified: 2019-03-27 14:02 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
[RFC PATCH] configure.ac: disable gcc march mips64r2 detection (1.74 KB, patch)
2018-11-12 18:31 UTC, Peter Seiderer
Details

Note You need to log in before you can comment on or make changes to this bug.
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)