Opened 15 months ago

#52438 new defect

lua-luabitop @1.0.2_1 cannot build without setting 'configure.sdkroot' on Sierra

Reported by: lbschenkel (Leonardo Brondani Schenkel) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: Cc:
Port: lua-luabitop

Description

I'm trying to install NeoVim and this package is one of the dependencies. After the upgrade to Sierra it started failing to build since it cannot find <stdio.h>. If I explicitly set configure.sdkroot=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk in the command line it build successfully.

To be honest I don't think this is a problem which is specific to this port because I noticed the same in some other packages as well, however I rebuilt them successfully a while ago using the same workaround and I don't remember which ones they were anymore. I'm creating a ticket for lua-luabitop because it's the one I remember and because it's very small so it can work as a small test case to find out what exactly is going wrong.

Naturally there could be something wrong with my MacPorts installation. I have both reinstalled MacPorts via the binary installer and rebuilt from source and the problem remains. If my set-up is indeed broken I was not able to figure out why.

One possible reason is that I don't have the command-line tools installed but I didn't have them before the Sierra upgrade as well and that didn't prevent the package from building. I understand that not having the command line tools is unsupported and I don't want to waste anybody's time but I would appreciate if somebody could then elucidate why there is a difference in behavior between pre-Sierra and Sierra (I'm a developer as well and I maintain a few ports here, so additional knowledge could help me being a better maintainer).

I'm attaching complete debug logs for a failed build (without configure.sdkroot) and a successful install (with configure.sdkroot).

Attachments (2)

luabitop-without-sdkroot.log (51.7 KB) - added by lbschenkel (Leonardo Brondani Schenkel) 15 months ago.
luabitop-with-sdkroot.log (78.1 KB) - added by lbschenkel (Leonardo Brondani Schenkel) 15 months ago.

Download all attachments as: .zip

Change History (2)

Changed 15 months ago by lbschenkel (Leonardo Brondani Schenkel)

Changed 15 months ago by lbschenkel (Leonardo Brondani Schenkel)

Note: See TracTickets for help on using tickets.