错误:未识别的命令行选项'-fforce-mem'

时间:2022-09-06 09:45:15

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

我正在试图编译libmad,为我的树莓Pi在Pidora上使用armv6hl架构。

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

然而,当在libmad源代码运行时,我发送了错误:

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.

任何关于如何解决这个问题或者解决这个问题的想法都很好!如果你需要更多的信息,请告诉我。

1 个解决方案

#1


10  

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

如devnull所评论的,-fforce-mem在gcc 4.3中被删除(请参见gcc的-fforce-mem选项)。

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.
  • 通过删除对该选项的所有引用来编辑makefile/配置文件。如果这个库的makefile设计得很好,这应该很简单。由于-fforce-mem长期以来在GCC中没有任何效果,因此不应该阻止您的库运行良好。

#1


10  

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

如devnull所评论的,-fforce-mem在gcc 4.3中被删除(请参见gcc的-fforce-mem选项)。

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.
  • 通过删除对该选项的所有引用来编辑makefile/配置文件。如果这个库的makefile设计得很好,这应该很简单。由于-fforce-mem长期以来在GCC中没有任何效果,因此不应该阻止您的库运行良好。