Search code examples
c++makefilevalgrindgnuarm64

Valgrind version 3.16.1 - unrecognized command line option '-m64'


I'm trying to compile Valgring3.16.1 with aarch64-linux-gnu-gcc (for xilinx zynq-mp board) the ./configure stage passed ok.

when I run: make CC= ..... /bin/aarch64-linux-gnu-gcc I got this error:

aarch64-linux-gnu-gcc: error: unrecognized command line option '-m64'

How can I fix it?

any help will be appreciated, Tzipi Kluska


Solution

  • If you need to change compiler or flags, you should do that when you run configure, not when you run make. Otherwise configure sees and detects a different environment than what you get with make.