[MacPorts] #51452: nco @4.5.2_2 +accelerate build failure

MacPorts noreply at macports.org
Fri May 20 11:23:01 PDT 2016


#51452: nco @4.5.2_2 +accelerate build failure
---------------------------------+--------------------------------
 Reporter:  gryphon.csd8@…       |      Owner:  macports-tickets@…
     Type:  defect               |     Status:  new
 Priority:  Normal               |  Milestone:
Component:  ports                |    Version:  2.3.4
 Keywords:  Mavericks, Yosemite  |       Port:  nco
---------------------------------+--------------------------------
 nco at 4.5.2_2 has failed to build on both OS X 10.9.5 with Xcode 6.2 and OS
 X 10.10.5 with Xcode 7.2.1.  Both have Command Line Tools installed. The
 failure/error is the same in both cases.  The pertinent error appears to
 be:

 {{{
 :info:build ncap_lex.l:60:10: fatal error: 'ncap_yacc.h' file not found
 }}}

 This surprises me, because the "nap_yacc.h" file is sitting there in the
 src/nco directory:

 {{{
 Fri May 20 11:11:14 pixie local> find . -name ncap_* -print
 ./var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_nco/nco/work/nco-4.5.5/src/nco/ncap_lex.c
 ./var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_nco/nco/work/nco-4.5.5/src/nco/ncap_lex.l
 ./var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_nco/nco/work/nco-4.5.5/src/nco/ncap_utl.c
 ./var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_nco/nco/work/nco-4.5.5/src/nco/ncap_utl.o
 ./var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_nco/nco/work/nco-4.5.5/src/nco/ncap_yacc.c
 ./var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_nco/nco/work/nco-4.5.5/src/nco/ncap_yacc.h
 ./var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_nco/nco/work/nco-4.5.5/src/nco/ncap_yacc.y
 }}}

 So I changed to the src/nco directory and entered the same command which
 failed and generated the error message:

 {{{
 sudo /usr/bin/clang -DHAVE_CONFIG_H -I. -I../..   -I/opt/local/include
 -I/opt/local/include -I/usr/include/malloc -I/opt/local/include/udunits2
 -I/opt/local/include -DENABLE_NETCDF4 -I/opt/local/include
 -I/opt/local/include -I/opt/local/include -I/opt/local/include/udunits2
 -fno-common -pipe -Os -arch x86_64 -std=c99 -D_BSD_SOURCE  -c -o
 ncap_lex.o ncap_lex.c
 }}}

 this quickly successfully built the "ncap_lex.o" file

 I then issued the initial "port install nco" command, and the build
 finished and nco was installed and activated:

 {{{
 Fri May 20 11:11:52 pixie local> sudo port install nco +accelerate
 --->  Computing dependencies for nco
 --->  Building nco
 --->  Staging nco into destroot
 --->  Installing nco @4.5.5_2+accelerate
 --->  Activating nco @4.5.5_2+accelerate
 --->  Cleaning nco
 --->  Updating database of binaries
 --->  Scanning binaries for linking errors
 --->  No broken files found.
 }}}

 I don't understand why the "ncap_yacc.h" header file was not recognized
 during the build, as it is right there with the other source files.

-- 
Ticket URL: <https://trac.macports.org/ticket/51452>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list