Opened 10 years ago

Closed 10 years ago

#45509 closed defect (fixed)

opensp build failure with trace mode

Reported by: nerdling (Jeremy Lavergne) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.3.99
Keywords: Cc: larryv (Lawrence Velázquez), ryandesign (Ryan Carsten Schmidt)
Port: opensp

Description

There are lots of "command not found" when using libtool, even with trace mode disabled:

../libtool: line 1152: libtool: compile: cannot determine name of library object from `': command not found

Attachments (3)

opensp.log (70.4 KB) - added by nerdling (Jeremy Lavergne) 10 years ago.
trace mode debug log
glibtoolize-ryandesign (76.8 KB) - added by ryandesign (Ryan Carsten Schmidt) 10 years ago.
glibtoolize-snc (76.8 KB) - added by nerdling (Jeremy Lavergne) 10 years ago.

Download all attachments as: .zip

Change History (12)

Changed 10 years ago by nerdling (Jeremy Lavergne)

Attachment: opensp.log added

trace mode debug log

comment:1 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: larryv@… ryandesign@… added
Keywords: yosemite removed
Summary: opensp build failure yosemiteopensp build failure with trace mode

It builds fine on my Yosemite system. Immediately apparent differences from your log:

  • you're using trace mode
  • your prefix is /opt/pspp instead of /opt/local

The first difference is probably relevant. This line in the log is a clue:

/opt/pspp/bin/glibtoolize: line 401: /opt/pspp/bin/gsed: No such file or directory

Looks like the glibtoolize program uses gsed, although the libtool port does not declare that dependency. In fact, the libtool port includes lines designed to ensure libtool uses /usr/bin/sed instead, but that doesn't appear to be working.

libtool should either not use gsed or should declare a dependency on it.

comment:2 in reply to:  description Changed 10 years ago by larryv (Lawrence Velázquez)

Can you attach /opt/pspp/bin/glibtoolize?

Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: glibtoolize-ryandesign added

comment:3 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

I've attached the one from my system.

Changed 10 years ago by nerdling (Jeremy Lavergne)

Attachment: glibtoolize-snc added

comment:4 Changed 10 years ago by nerdling (Jeremy Lavergne)

I've attached mine as well.

comment:5 Changed 10 years ago by nerdling (Jeremy Lavergne)

The important differences appear to be grep and sed.

The host-triplet appears different, but it remained the same after a rebuilding of libtool.

Last edited 10 years ago by nerdling (Jeremy Lavergne) (previous) (diff)

comment:6 in reply to:  3 Changed 10 years ago by larryv (Lawrence Velázquez)

Hm. Okay, looks like the configure phase picks up grep and gsed. That’s annoying.

% diff -u /opt/local/bin/glibtoolize <(curl -s https://trac.macports.org/raw-attachment/ticket/45509/glibtoolize-ryandesign)
--- /opt/local/bin/glibtoolize	2014-10-19 01:33:27.000000000 -0400
+++ /dev/fd/11	2014-10-20 17:13:21.000000000 -0400
@@ -334,15 +334,15 @@
 
 : ${CP="cp -f"}
 test "${ECHO+set}" = set || ECHO=${as_echo-'printf %s\n'}
-: ${EGREP="/usr/bin/grep -E"}
-: ${FGREP="/usr/bin/grep -F"}
-: ${GREP="/usr/bin/grep"}
+: ${EGREP="/opt/local/bin/grep -E"}
+: ${FGREP="/opt/local/bin/grep -F"}
+: ${GREP="/opt/local/bin/grep"}
 : ${LN_S="ln -s"}
 : ${MAKE="make"}
 : ${MKDIR="mkdir"}
 : ${MV="mv -f"}
 : ${RM="rm -f"}
-: ${SED="/usr/bin/sed"}
+: ${SED="/opt/local/bin/gsed"}
 : ${SHELL="${CONFIG_SHELL-/bin/sh}"}
 : ${Xsed="$SED -e 1s/^X//"}
 
%

comment:7 Changed 10 years ago by larryv (Lawrence Velázquez)

Ugh, configure is being run a second time during the build phase, probably in response to one of our patches.

comment:8 Changed 10 years ago by larryv (Lawrence Velázquez)

This should be fixed with r127198. Can you verify?

comment:9 Changed 10 years ago by nerdling (Jeremy Lavergne)

Resolution: fixed
Status: newclosed

We have a successful build! Here were the tracemode warnings along the way:

--->  Computing dependencies for opensp
…
--->  Configuring libtool
Warning: The following existing file was hidden from the build system by trace mode:
  /opt/pspp/bin/gawk
…
--->  Staging libtool into destroot
Warning: The following existing file was hidden from the build system by trace mode:
  /opt/pspp/bin/install-info
…
--->  Configuring opensp
Warning: The following existing files were hidden from the build system by trace mode:
  /opt/pspp/bin/bison
  /opt/pspp/bin/bzip2
  /opt/pspp/bin/gawk
  /opt/pspp/bin/gsed
  /opt/pspp/lib/perl5/vendor_perl/5.16.3/Getopt/Long.pm
  /opt/pspp/lib/perl5/vendor_perl/5.16.3/darwin-thread-multi-2level/Cwd.pm
  /opt/pspp/lib/perl5/vendor_perl/5.16.3/darwin-thread-multi-2level/File/Spec.pm
  /opt/pspp/lib/perl5/vendor_perl/5.16.3/darwin-thread-multi-2level/File/Spec/Unix.pm
  /opt/pspp/lib/perl5/vendor_perl/5.16.3/darwin-thread-multi-2level/List/Util.pm
  /opt/pspp/lib/perl5/vendor_perl/5.16.3/darwin-thread-multi-2level/Scalar/Util.pm
…
--->  Staging opensp into destroot
Warning: The following existing file was hidden from the build system by trace mode:
  /var/root/.CFUserTextEncoding
…
Note: See TracTickets for help on using tickets.