[MacPorts] #56177: octave-control: adds non-existing folders to -L and fails to build

MacPorts noreply at macports.org
Thu Mar 29 14:07:50 UTC 2018


#56177: octave-control: adds non-existing folders to -L and fails to build
------------------------------------------+-------------------------
  Reporter:  mojca                        |      Owner:  Schamschula
      Type:  defect                       |     Status:  new
  Priority:  Normal                       |  Milestone:
 Component:  ports                        |    Version:
Resolution:                               |   Keywords:
      Port:  octave-devel octave-control  |
------------------------------------------+-------------------------

Comment (by mojca):

 Octave apparently uses some of the output from:
 {{{
 >  echo "      END" > foo.f && gfortran-mp-7 -v foo.f
 Driving: gfortran-mp-7 -v foo.f -mmacosx-version-min=10.13.4
 -asm_macosx_version_min=10.13 -l gfortran -shared-libgcc
 Using built-in specs.
 COLLECT_GCC=gfortran-mp-7
 COLLECT_LTO_WRAPPER=/opt/local/libexec/gcc/x86_64-apple-darwin17/7.3.0
 /lto-wrapper
 Target: x86_64-apple-darwin17
 Configured with:
 /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_gcc7/gcc7/work/gcc-7.3.0/configure
 --prefix=/opt/local --build=x86_64-apple-darwin17 --enable-
 languages=c,c++,objc,obj-c++,lto,fortran --libdir=/opt/local/lib/gcc7
 --includedir=/opt/local/include/gcc7 --infodir=/opt/local/share/info
 --mandir=/opt/local/share/man --datarootdir=/opt/local/share/gcc-7 --with-
 local-prefix=/opt/local --with-system-zlib --disable-nls --program-
 suffix=-mp-7 --with-gxx-include-dir=/opt/local/include/gcc7/c++/ --with-
 gmp=/opt/local --with-mpfr=/opt/local --with-mpc=/opt/local --with-
 isl=/opt/local --enable-stage1-checking --disable-multilib --enable-lto
 --enable-libstdcxx-time --with-build-config=bootstrap-debug --with-
 as=/opt/local/bin/as --with-ld=/opt/local/bin/ld --with-
 ar=/opt/local/bin/ar --with-bugurl=https://trac.macports.org/newticket
 --disable-tls --with-pkgversion='MacPorts gcc7 7.3.0_0'
 Thread model: posix
 gcc version 7.3.0 (MacPorts gcc7 7.3.0_0)
 COLLECT_GCC_OPTIONS='-v' '-mmacosx-version-min=10.13.4'
 '-asm_macosx_version_min=10.13' '-shared-libgcc' '-mtune=core2'
  /opt/local/libexec/gcc/x86_64-apple-darwin17/7.3.0/f951 foo.f -ffixed-
 form -fPIC -quiet -dumpbase foo.f -mmacosx-version-min=10.13.4
 -mtune=core2 -auxbase foo -version -fintrinsic-modules-path
 /opt/local/lib/gcc7/gcc/x86_64-apple-darwin17/7.3.0/finclude -o
 /var/folders/v9/whwh1pfx63dbtd1spmzf317r0000gn/T//cc4jNxOh.s
 GNU Fortran (MacPorts gcc7 7.3.0_0) version 7.3.0 (x86_64-apple-darwin17)
         compiled by GNU C version 7.3.0, GMP version 6.1.2, MPFR version
 3.1.6, MPC version 1.0.3, isl version isl-0.18-GMP

 warning: MPC header version 1.0.3 differs from library version 1.1.0.
 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
 GNU Fortran2008 (MacPorts gcc7 7.3.0_0) version 7.3.0 (x86_64-apple-
 darwin17)
         compiled by GNU C version 7.3.0, GMP version 6.1.2, MPFR version
 3.1.6, MPC version 1.0.3, isl version isl-0.18-GMP

 warning: MPC header version 1.0.3 differs from library version 1.1.0.
 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
 COLLECT_GCC_OPTIONS='-v' '-mmacosx-version-min=10.13.4'  '-shared-libgcc'
 '-mtune=core2'
  /opt/local/bin/as -v -arch x86_64 -force_cpusubtype_ALL -o
 /var/folders/v9/whwh1pfx63dbtd1spmzf317r0000gn/T//ccv1ONOB.o
 /var/folders/v9/whwh1pfx63dbtd1spmzf317r0000gn/T//cc4jNxOh.s
 Apple Inc version cctools-895, GNU assembler version 1.38
 Reading specs from /opt/local/lib/gcc7/gcc/x86_64-apple-
 darwin17/7.3.0/../../../libgfortran.spec
 rename spec lib to liborig
 COLLECT_GCC_OPTIONS='-v' '-mmacosx-version-min=10.13.4'  '-shared-libgcc'
 '-mtune=core2'
 COMPILER_PATH=/opt/local/libexec/gcc/x86_64-apple-
 darwin17/7.3.0/:/opt/local/libexec/gcc/x86_64-apple-
 darwin17/7.3.0/:/opt/local/libexec/gcc/x86_64-apple-
 darwin17/:/opt/local/lib/gcc7/gcc/x86_64-apple-
 darwin17/7.3.0/:/opt/local/lib/gcc7/gcc/x86_64-apple-darwin17/
 LIBRARY_PATH=/opt/local/lib/gcc7/gcc/x86_64-apple-
 darwin17/7.3.0/:/opt/local/lib/gcc7/gcc/x86_64-apple-
 darwin17/7.3.0/../../../
 COLLECT_GCC_OPTIONS='-v' '-mmacosx-version-min=10.13.4'  '-shared-libgcc'
 '-mtune=core2'
  /opt/local/libexec/gcc/x86_64-apple-darwin17/7.3.0/collect2 -dynamic
 -arch x86_64 -macosx_version_min 10.13.4 -weak_reference_mismatches non-
 weak -o a.out -L/opt/local/lib/gcc7/gcc/x86_64-apple-darwin17/7.3.0
 -L/opt/local/lib/gcc7/gcc/x86_64-apple-darwin17/7.3.0/../../..
 /var/folders/v9/whwh1pfx63dbtd1spmzf317r0000gn/T//ccv1ONOB.o -lgfortran
 -no_compact_unwind -lSystem -lgcc_ext.10.5 -lgcc -lquadmath -lm
 -lgcc_ext.10.5 -lgcc -lSystem -v
 collect2 version 7.3.0
 /opt/local/bin/ld -dynamic -arch x86_64 -macosx_version_min 10.13.4
 -weak_reference_mismatches non-weak -o a.out
 -L/opt/local/lib/gcc7/gcc/x86_64-apple-darwin17/7.3.0
 -L/opt/local/lib/gcc7/gcc/x86_64-apple-darwin17/7.3.0/../../..
 /var/folders/v9/whwh1pfx63dbtd1spmzf317r0000gn/T//ccv1ONOB.o -lgfortran
 -no_compact_unwind -lSystem -lgcc_ext.10.5 -lgcc -lquadmath -lm
 -lgcc_ext.10.5 -lgcc -lSystem -v
 @(#)PROGRAM:ld  PROJECT:ld64-274.2
 configured to support archs: i386 x86_64 x86_64h armv6 armv7 armv7s armv7m
 armv7k arm64 (tvOS)
 Library search paths:
         /opt/local/lib/gcc7/gcc/x86_64-apple-darwin17/7.3.0
         /opt/local/lib/gcc7
         /usr/lib
 Framework search paths:
         /Library/Frameworks/
         /System/Library/Frameworks/
  /opt/local/bin/nm -n
 /var/folders/v9/whwh1pfx63dbtd1spmzf317r0000gn/T//ccv1ONOB.o
 }}}

 Still ... the path `/opt/local/lib/gcc7/gcc/x86_64-apple-
 darwin17/7.3.0/../../../` should be correct.

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


More information about the macports-tickets mailing list