problem compiling libzzip (PPC, Sorbet Leopard)

Chris Jones jonesc at hep.phy.cam.ac.uk
Wed Jul 27 18:57:01 UTC 2022



> On 27 Jul 2022, at 7:54 pm, Chris Jones <jonesc at hep.phy.cam.ac.uk> wrote:
> 
> 
> 
>> On 27 Jul 2022, at 7:29 pm, Hangglider <hangglider at gmx.de> wrote:
>> 
>> Hello,
>> 
>> somewhere in the dependencies for some package I have to compile
>> libzzip. That's less easy than it sounds:
>> 
>> The libzzip package seems to enforce gcc-4.2 (there's /usr/bin/gcc-4.0
>> and /opt/local/bin/ppc-apple-darwin9-gcc-7.5.0 == /opt/local/bin/gcc
>> too) and tries to use it with -Warray-bounds. gcc-4.2 doesn't have that,
>> but gcc7 does. Adding -DCMAKE_C_COMPILER=/opt/local/bin/gcc to the
>> portfile didn't do the job. so some questions arise:
>> 
>> Is there a well known way to enforce a given compiler?
> 
> sudo port sync
> sudo port upgrade outdated
> sudo port clean libzzip
> sudo port install libzzip configure.compiler=macports-clang-14

P.s. if v 14 is not available on your os, replace with whatever is..
> 
>> 
>> Would/should I have to replace or remove one of the system's (Xcode's)
>> compiler(s) to clean things up a bit?
>> 
>> Should I upgrade Xcode, and to which version (PPC32, Sorbet Leopard)?
>> 
>> Thanks in advance for helpful responses.
>> 
>> HG


More information about the macports-users mailing list