Hi Guys, The current trunk do not build with GCC 4.2 on OSX when compiling cpu.c <cpuid.h> does not exists and __get_cpuid() is not defined This version of GCC is required if you want to support pre 10.7 systems which are still pretty common. It seems other project had the same issue https://bugzilla.mozilla.org/show_bug.cgi?id=836824 Don't know much what would be the right fix. Any idea ? Thanks, -- Olivier TRISTAN uvi.net
Olivier Tristan wrote:> Hi Guys, > > The current trunk do not build with GCC 4.2 on OSX when compiling cpu.c > <cpuid.h> does not exists and __get_cpuid() is not defined > > This version of GCC is required if you want to support pre 10.7 systems > which are still pretty common. > > It seems other project had the same issue > https://bugzilla.mozilla.org/show_bug.cgi?id=836824So they simply added "&& defined (HAVE_CPUID_H)" to the preprocessor condition...> Don't know much what would be the right fix. > > Any idea ?Patch attached. I hope it will fix the problem. -------------- next part -------------- A non-text attachment was scrubbed... Name: cpuid.patch Type: application/octet-stream Size: 1389 bytes Desc: not available Url : http://lists.xiph.org/pipermail/flac-dev/attachments/20140320/890e8fc8/attachment.obj
Works fine. Thanks ! Le 20/03/2014 17:42, lvqcl a ?crit :> Olivier Tristan wrote: > >> Hi Guys, >> >> The current trunk do not build with GCC 4.2 on OSX when compiling cpu.c >> <cpuid.h> does not exists and __get_cpuid() is not defined >> >> This version of GCC is required if you want to support pre 10.7 systems >> which are still pretty common. >> >> It seems other project had the same issue >> https://bugzilla.mozilla.org/show_bug.cgi?id=836824 > > So they simply added "&& defined (HAVE_CPUID_H)" to the > preprocessor condition... > >> Don't know much what would be the right fix. >> >> Any idea ? > > Patch attached. I hope it will fix the problem. > > > _______________________________________________ > flac-dev mailing list > flac-dev at xiph.org > http://lists.xiph.org/mailman/listinfo/flac-dev-- Olivier TRISTAN uvi.net -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/flac-dev/attachments/20140320/dcfc3249/attachment.htm
Erik de Castro Lopo
2014-Mar-21 06:59 UTC
[flac-dev] building issue on OSX GCC 4.2 / Xcode
lvqcl wrote:> Olivier Tristan wrote: > > The current trunk do not build with GCC 4.2 on OSX when compiling cpu.c > > <cpuid.h> does not exists and __get_cpuid() is not defined > > > > This version of GCC is required if you want to support pre 10.7 systems > > which are still pretty common. > > > > It seems other project had the same issue > > https://bugzilla.mozilla.org/show_bug.cgi?id=836824 > > So they simply added "&& defined (HAVE_CPUID_H)" to the > preprocessor condition... > > > Don't know much what would be the right fix. > > > > Any idea ? > > Patch attached. I hope it will fix the problem.Patch applied. Thanks. Erik -- ---------------------------------------------------------------------- Erik de Castro Lopo http://www.mega-nerd.com/