[MacPorts] #59237: MacPorts fails to build on macOS Catalina

MacPorts noreply at macports.org
Wed Oct 16 20:24:47 UTC 2019


#59237: MacPorts fails to build on macOS Catalina
------------------------+----------------------
  Reporter:  smeingast  |      Owner:  (none)
      Type:  defect     |     Status:  new
  Priority:  Normal     |  Milestone:
 Component:  base       |    Version:  2.6.1
Resolution:             |   Keywords:  catalina
      Port:             |
------------------------+----------------------
Changes (by ryandesign):

 * keywords:   => catalina


Old description:

> I am currently testing a fresh install of macOS Catalina on my secondary
> machine. I have tried to install MacPorts from source, but here already
> the configure step fails with:
>
> checking for SQLite >= 3003011... configure: error:
> "SQLITE_VERSION_NUMBER undefined or sqlite3.h not found"
>
> Please note that I did install Xcode (11.1), I also installed the Command
> Line Developer Tools, and accepted the license. I am attaching the
> complete configure output.
>
> thanks for any help!

New description:

 I am currently testing a fresh install of macOS Catalina on my secondary
 machine. I have tried to install MacPorts from source, but here already
 the configure step fails with:

 {{{
 checking for SQLite >= 3003011... configure: error: "SQLITE_VERSION_NUMBER
 undefined or sqlite3.h not found"
 }}}

 Please note that I did install Xcode (11.1), I also installed the Command
 Line Developer Tools, and accepted the license. I am attaching the
 complete configure output.

 thanks for any help!

--

Comment:

 Although I can't explain the appearance of the `-Wno-framework-include-
 private-from-public` flag in it, I'm not sure that the failure of the `gcc
 -V` test matters; that test is supposed to fail anyway.

 Still, it might be useful to check your environment variables (run `env`)
 and make sure you don't have any variables set that would influence the
 build, such as `CC`, `CXX`, `CFLAGS`, `CPPFLAGS`, `CXXFLAGS`, `LDFLAGS`,
 `DYLD_LIBRARY_PATH`. It's also a good idea to make sure your `PATH`
 doesn't include non-Apple components. For example try `export
 PATH=/usr/bin:/bin:/usr/sbin:/sbin` before configuring MacPorts. Also make
 sure you [wiki:FAQ#usrlocal don't have anything in /usr/local] or
 [wiki:FAQ#libraryframeworks /Library/Frameworks].

 Later in the log, I see that the compile checks seem to fail because of
 errors in the SDK:

 {{{
 In file included from conftest.c:14:
 In file included from
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/string.h:63:
 In file included from
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/Availability.h:246:
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/AvailabilityInternal.h:147:2:
 error: #endif without #if
 #endif /* __ENABLE_LEGACY_IPHONE_AVAILABILITY */
  ^
 }}}

 Of course I'm sure your Xcode SDK files are fine. Is it possible that you
 have an old version of the command line tools? Make sure you've installed
 the Xcode 11.1-compatible version of the command line tools for Catalina.

 Others are successfully building MacPorts 2.6.1 on Catalina so something
 must be different about your computer.

-- 
Ticket URL: <https://trac.macports.org/ticket/59237#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list