DEV Community

Discussion on: Challenge Accepted: Build TensorFlow C Binding for Raspberry Pi in 2019

Collapse
 
cobelu profile image
Connor Luckett

Compiling TensorFlow gives:
gcc: error: unrecognized command line option '-mfpu=neon-vfpv4'

Which is odd because that should be an ARM option for gcc.

Collapse
 
martinezpeck profile image
Mariano Martinez Peck

Hi Connor,

Did you read the follow up post in this series? See the part where I said:

Anyway, after those 2 issues, I was able to compile and run bazel. However, as soon as I tried to run the previous bazel script for TensorFlow I got a compilation error saying that --copt=-mfpu=neon-vfpv4 was not a recognized option

I got that when compiling on Raspberry Pi and Raspbian. But then I used Ubuntu with aarch64 (on Pi3) or Armbian Buster aarch64 on a Rock64 and in both cases just removing those options did work and compiled correctly.

Does that help?