classilla / tenfourfox

Mozilla for Power Macintosh.
http://www.tenfourfox.com/
Other
270 stars 38 forks source link

Copile error "error: 'log2' is not a member of 'std'" on G5 with MacOS 10.5.8 #658

Closed maciejmiklas closed 1 year ago

maciejmiklas commented 1 year ago

My setup: G5 Dual Core with MacOS 10.5.8, configuration used for build: G5.mozcfg I followed the build instructions, and as far as I can tell, everything was successful. The compilation breaks with an error: error: 'log2' is not a member of 'std'

GCC 4.8 should support C99, but I wonder if this function is implemented for PPC.

Is this a bug, or am I doing something wrong?

Here is the full log: build_log.txt.zip

classilla commented 1 year ago

This is known, and is an issue with the 10.5 SDK. Please see https://github.com/classilla/tenfourfox/issues/498

maciejmiklas commented 1 year ago

Thank you - replacing std::log2 with log2 solved the issue, and the compilation was successful.