Opened 2 years ago

Closed 2 years ago

#64201 closed defect (fixed)

catgirl is not using the right compiler or flags

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: ryanakca (Ryan Kavanagh)
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: Cc: june@…
Port: catgirl

Description

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

--->  Configuring catgirl
DEBUG: Preferred compilers: macports-clang-9.0 macports-clang-8.0 macports-clang-7.0 macports-clang-6.0 macports-clang-5.0 macports-clang-11 macports-clang-10 macports-clang-3.7 macports-clang-3.4
DEBUG: Using compiler 'MacPorts Clang 9.0'
DEBUG: Executing org.macports.configure (catgirl)
DEBUG: Environment: 
CC='/opt/local/bin/clang-mp-9.0'
CFLAGS='-pipe -Os -arch i386'
CPATH='/opt/local/include'
CPPFLAGS='-I/opt/local/include'
CXX='/opt/local/bin/clang++-mp-9.0'
CXXFLAGS='-pipe -Os -stdlib=libc++ -arch i386'
LDFLAGS='-L/opt/local/lib -Wl,-headerpad_max_install_names -arch i386'
--->  Building catgirl
cc -std=c11 -Wall -Wextra -Wpedantic -Wno-gnu-case-range -Wno-gnu-conditional-omitted-operand -D__STDC_WANT_LIB_EXT1__=1 -D'explicit_bzero(b,l)=memset_s((b),(l),0,(l))' -D_DARWIN_C_SOURCE -D'OPENSSL_BIN="/opt/local/libexec/openssl3/bin/openssl"'   -c -o buffer.o buffer.c

Note how the build is occuring with cc instead of /opt/local/bin/clang-mp-9.0 as requested. Note how the build is occuring without the requested -pipe -Os -arch i386 flags.

Change History (2)

comment:1 Changed 2 years ago by ryandesign (Ryan Carsten Schmidt)

June replied by email:

Why doesn't macports set the relevant environment variables for the build step?

The answer is that it is expected that the project's configuration program will capture that information and use the captured information during the build. That's how autotools, cmake, most other build systems work. If catgirl's build system will not be fixed to work this way, then the environment variables can be set by the portfile manually in the build phase, or the makefile-1.0 portgroup can be employed to assist in that task.

comment:2 Changed 2 years ago by Ryan Kavanagh <rak@…>

Resolution: fixed
Status: assignedclosed

In 121be81066079d3516b2edc3555caa29378a324f/macports-ports (master):

catgirl: Use CC and CFLAGS environment variables

Closes: #64201

Note: See TracTickets for help on using tickets.