Opened 4 years ago

Closed 4 years ago

#61585 closed defect (fixed)

daemon is not using the right compiler or arch flags

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: kurthindenburg (Kurt Hindenburg)
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: Cc:
Port: daemon

Description

See UsingTheRightCompiler

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

gcc -DDAEMON_NAME=\"daemon\" -DDAEMON_VERSION=\"0.7\" -DDAEMON_DATE=\"20201111\" -DDAEMON_URL=\"http://libslack.org/daemon/\" -DHAVE_PTHREAD_RWLOCK=1 -DHAVE_SNPRINTF=1 -DHAVE_VSSCANF=1 -DNO_POSIX_C_SOURCE=1 -DNO_POSIX_SOURCE=1 -DNO_XOPEN_SOURCE=1  -Ilibslack -Wall -pedantic -Wno-comment -Wno-pointer-bool-conversion -o daemon.o -c daemon.c

Note "gcc" instead of the right compiler. Note lack of -arch flags.

The makefile 1.0 portgroup might be able to help you solve both problems.

Change History (5)

comment:1 Changed 4 years ago by kurthindenburg (Kurt Hindenburg)

Resolution: fixed
Status: assignedclosed

In f3085e557d556a2faa4abd1a07a265f5b690911f/macports-ports (master):

daemon: use correct compiler and arch flags

Use makefile PortGroup along with configure script

Closes: #61585

comment:2 Changed 4 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: closedreopened

It uses the right compiler now, but on the arm64 builder at least, it's still not using the right cflags.

comment:3 Changed 4 years ago by kurthindenburg (Kurt Hindenburg)

Can you explain what is wrong here?

https://build.macports.org/builders/ports-11_arm64-builder/builds/9743/steps/install-port/logs/stdio

CFLAGS='-pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk -arch arm64 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk -arch arm64 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk -arch arm64 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk -arch arm64'

comment:4 Changed 4 years ago by jmroot (Joshua Root)

The port is setting that variable sure, but the build commands aren't actually using it.

comment:5 Changed 4 years ago by kurthindenburg (Kurt Hindenburg)

Resolution: fixed
Status: reopenedclosed

In 0276e704e19c0748070dc539e88a4effabb0214a/macports-ports (master):

daemon: update to 0.7.1

The author addressed a number of macports issues.

Closes: #61585

Note: See TracTickets for help on using tickets.