Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 485
Zac Powell Avatar asked May 30 '13 12:05

Zac Powell


1 Answers

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.
like image 174
Matthieu Rouget Avatar answered Sep 17 '22 15:09

Matthieu Rouget