Opened 2 years ago

Closed 2 years ago

#65375 closed defect (fixed)

p5-io-compress-brotli: build uses "cc" instead of selected compiler

Reported by: larryv (Lawrence Velázquez) Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: p5-io-compress-brotli

Description

Despite the best efforts of the post-configure phase to patch in the path to the correct compiler, the build still invokes cc:

:info:configure --->  Patching Makefile: s|^(CC *=).*|\1 /usr/bin/clang|
[...]
:info:build cc -fPIC -O2  -Ic/include \
:info:build         -c c/common/dictionary.c -o bin/obj/c/common/dictionary.o
:info:build cc -fPIC -O2 -Ic/include -c c/common/dictionary.c -o bin/obj/c/common/dictionary.o
:info:build cc: Error: You should be using ${configure.cc}
:info:build See https://trac.macports.org/wiki/UsingTheRightCompiler
:info:build gmake[1]: *** [Makefile:42: bin/obj/c/common/dictionary.o] Error 1

(It fails because my installation is configured as per UsingTheRightCompiler#testing.)

Attachments (1)

main.log (47.5 KB) - added by larryv (Lawrence Velázquez) 2 years ago.
log with build.jobs=1

Download all attachments as: .zip

Change History (2)

Changed 2 years ago by larryv (Lawrence Velázquez)

Attachment: main.log added

log with build.jobs=1

comment:1 Changed 2 years ago by larryv (Lawrence Velázquez)

Resolution: fixed
Status: assignedclosed

In 852faae893dfb696c9e78ef8b1e061d7cccd5a48/macports-ports (master):

p5-io-compress-brotli: Use the right compiler

Rebuild existing installations in case they used the wrong compiler.

See: https://trac.macports.org/wiki/UsingTheRightCompiler
Closes: #65375

Note: See TracTickets for help on using tickets.