C++ – gcc: error: unrecognized command line option ‘-fforce-mem’

c++compiler-errorsgccraspberry-pi

I am trying to compile libmad for my Raspberry Pi on Pidora which uses the armv6hl architecture.

However when running make on the libmad source I send up with the error:

gcc: error: unrecognized command line option '-fforce-mem'

any ideas as to how to fix this or get round the issue that would be great!
If you need any more information just let me know.

Best Solution

As commented by devnull, -fforce-mem was removed in gcc 4.3 (see gcc's -fforce-mem option).

You should either:

  • Use a newer version of you library, that does no use this flag anymore
  • Edit yourself the makefile/configuration files by removing every reference to this option. If the makefiles of this library are well designed, this should be easy. Since -fforce-mem as no effect in GCC since a long time, this should not prevent you library from running fine.