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

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

However, when I run make in the libmad source, I send an error message:

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

any ideas on how to fix this or work around a problem that would be great! If you need more information, just let me know.

+6
source share
1 answer

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

You must either:

  • Use a newer version of your library that no longer uses this flag
  • Edit the makefile / configuration files by removing each link to this option. If the makefiles of this library are well designed, this should be easy. Since -fforce-mem does not work in GCC for a long time, this should not interfere with the normal operation of the library.
+9
source

Source: https://habr.com/ru/post/946179/


All Articles