[MacPorts] #59131: p5.28-xml-parser @2.460.0_0: build make fails with "no rule to make target 'all'."

MacPorts noreply at macports.org
Wed Oct 2 05:10:22 UTC 2019


#59131: p5.28-xml-parser @2.460.0_0: build make fails with "no rule to make target
'all'."
----------------------------+--------------------
  Reporter:  jeffszuhay     |      Owner:  (none)
      Type:  defect         |     Status:  new
  Priority:  Normal         |  Milestone:
 Component:  ports          |    Version:  2.6.0
Resolution:                 |   Keywords:
      Port:  p5-xml-parser  |
----------------------------+--------------------

Comment (by kencu):

 On my build, I think this could have something to do with it -- I stripped
 out the block that does the library checking so I could just get right to
 the real build:
 {{{
 unless (
     check_lib(    # fill in what you prompted the user for here
     -- etc ---
 }}}
 and then ran the build and I see this:
 {{{
 /usr/bin/clang -c   -fno-common -DPERL_DARWIN -mmacosx-version-min=10.13
 -pipe -Os
 -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk
 -fno-strict-aliasing -fstack-protector-strong -I/opt/universalnew/include
 -DPERL_USE_SAFE_PUTENV -O3   -DVERSION=\"2.46\" -DXS_VERSION=\"2.46\"
 "-I/opt/universalnew/lib/perl5/5.28/darwin-thread-multi-2level/CORE"
 Expat.c
 clang: warning: no such sysroot directory:
 '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk'
 [-Wmissing-sysroot]
 }}}
 something - perhaps the `perl` portgroup? -- is helpfully trying to set
 the `-isysroot` to a nonexistant directory.

 This is exactly what we've been talking about recently. There is no way
 that the portgroups and portfiles can keep up with this stuff! This
 `-isysroot` setting has to be done in base.

 Let me try symlinking the SDK I am using to where it is looking for it:
 {{{
 $ sudo ln -s /Library/Developer/CommandLineTools/SDKS/MacOSX10.13.sdk
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk
 }}}

 and presto:
 {{{
 $ port -v installed p5.28-xml-parser
 The following ports are currently installed:
   p5.28-xml-parser @2.440.0_0+universal platform='darwin 18' archs='i386
 x86_64' date='2019-09-21T20:12:51-0700'
   p5.28-xml-parser @2.460.0_0+universal (active) platform='darwin 18'
 archs='i386 x86_64' date='2019-10-01T22:07:24-0700'
 }}}

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


More information about the macports-tickets mailing list