Opened 13 days ago

Closed 13 days ago

Last modified 13 days ago

#69913 closed defect (fixed)

hivex @1.3.23: cc1: error: unrecognized command line option "-fstack-protector-strong"

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: mohd-akram (Mohamed Akram)
Priority: Normal Milestone:
Component: ports Version: 2.9.3
Keywords: Cc:
Port: hivex

Description

https://build.macports.org/builders/ports-10.6_i386-builder/builds/166296/steps/install-port/logs/stdio

/usr/bin/cc -c  -I../include -fno-common -DPERL_DARWIN  -pipe -Os  -fno-strict-aliasing -fstack-protector-strong -I/opt/local/include -DPERL_USE_SAFE_PUTENV -pipe -Os -arch i386 -O3   -DVERSION=\"1.3.23\" -DXS_VERSION=\"1.3.23\"  "-I/opt/local/lib/perl5/5.34/darwin-thread-multi-2level/CORE"   Hivex.c
cc1: error: unrecognized command line option "-fstack-protector-strong"
make[3]: *** [Hivex.o] Error 1

This may be happening because it is not UsingTheRightCompiler. (The right compiler might support this flag.)

Change History (2)

comment:1 Changed 13 days ago by mohd-akram (Mohamed Akram)

Resolution: fixed
Status: assignedclosed

In f5d32bb146b01a39edfdf4ae824ad4aa25fd7f2a/macports-ports (master):

hivex: fix perl build using wrong compiler

Fixes: #69913

comment:2 Changed 13 days ago by mohd-akram (Mohamed Akram)

This is partially because the perl port doesn't seem to set the correct variables in Config.pm, perhaps because it itself was compiled with the wrong compiler. See perl5.34 -V:

  Compiler:
    cc='/usr/bin/cc'
    ccflags ='-fno-common -DPERL_DARWIN  -pipe -Os   -fno-strict-aliasing -fstack-protector-strong -I/opt/local/include -DPERL_USE_SAFE_PUTENV'

That's where that value is coming from.

EDIT: This is apparently deliberate - [f35a2c53331234cc730b090b1b866d4b1702a747/macports-ports].

Last edited 13 days ago by mohd-akram (Mohamed Akram) (previous) (diff)
Note: See TracTickets for help on using tickets.