#65621 closed defect (fixed)
binutils @2.38: fails to build on <10.11 due to syntax error near unexpected token
Reported by: | aeiouaeiouaeiouaeiouaeiouaeiou | Owned by: | catap (Kirill A. Korinsky) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.7.2 |
Keywords: | snowleopard lion mountainlion mavericks yosemite | Cc: | mascguy (Christopher Nielsen), cooljeanius (Eric Gallager) |
Port: | binutils |
Description
libtool: link: warning: `/opt/local/lib/libintl.la' seems to be moved libtool: link: /opt/local/bin/nm -B .libs/libctf_la-ctf-archive.o .libs/libctf_la-ctf-dump.o .libs/libctf_la-ctf-create.o .libs/libctf_la-ctf-decl.o .libs/libctf_la-ctf-error.o .libs/libctf_la-ctf-hash.o .libs/libctf_la-ctf-labels.o .libs/libctf_la-ctf-dedup.o .libs/libctf_la-ctf-link.o .libs/libctf_la-ctf-lookup.o .libs/libctf_la-ctf-open.o .libs/libctf_la-ctf-serialize.o .libs/libctf_la-ctf-sha1.o .libs/libctf_la-ctf-string.o .libs/libctf_la-ctf-subr.o .libs/libctf_la-ctf-types.o .libs/libctf_la-ctf-util.o .libs/libctf_la-ctf-open-bfd.o | | /usr/bin/sed 's/.* //' | sort | uniq > .libs/libctf.exp ./libtool: eval: line 1115: syntax error near unexpected token `|' ./libtool: eval: line 1115: `/opt/local/bin/nm -B .libs/libctf_la-ctf-archive.o .libs/libctf_la-ctf-dump.o .libs/libctf_la-ctf-create.o .libs/libctf_la-ctf-decl.o .libs/libctf_la-ctf-error.o .libs/libctf_la-ctf-hash.o .libs/libctf_la-ctf-labels.o .libs/libctf_la-ctf-dedup.o .libs/libctf_la-ctf-link.o .libs/libctf_la-ctf-lookup.o .libs/libctf_la-ctf-open.o .libs/libctf_la-ctf-serialize.o .libs/libctf_la-ctf-sha1.o .libs/libctf_la-ctf-string.o .libs/libctf_la-ctf-subr.o .libs/libctf_la-ctf-types.o .libs/libctf_la-ctf-util.o .libs/libctf_la-ctf-open-bfd.o | | /usr/bin/sed 's/.* //' | sort | uniq > .libs/libctf.exp' make[3]: *** [libctf.la] Error 1 make[3]: *** Waiting for unfinished jobs....
This also happens in upstream version (2.39).
Attachments (1)
Change History (16)
comment:1 Changed 2 years ago by aeiouaeiouaeiouaeiouaeiouaeiou
Port: | binutils added |
---|
comment:2 follow-up: 4 Changed 2 years ago by jmroot (Joshua Root)
comment:3 Changed 2 years ago by mascguy (Christopher Nielsen)
Cc: | mascguy added |
---|
comment:4 Changed 2 years ago by aeiouaeiouaeiouaeiouaeiouaeiou
Replying to jmroot:
What's between those pipes in a successful build?
GitHub Actions (macos-12) build logs:
:info:build libtool: link: /usr/bin/nm .libs/libctf_la-ctf-archive.o .libs/libctf_la-ctf-dump.o .libs/libctf_la-ctf-create.o .libs/libctf_la-ctf-decl.o .libs/libctf_la-ctf-error.o .libs/libctf_la-ctf-hash.o .libs/libctf_la-ctf-labels.o .libs/libctf_la-ctf-dedup.o .libs/libctf_la-ctf-link.o .libs/libctf_la-ctf-lookup.o .libs/libctf_la-ctf-open.o .libs/libctf_la-ctf-serialize.o .libs/libctf_la-ctf-sha1.o .libs/libctf_la-ctf-string.o .libs/libctf_la-ctf-subr.o .libs/libctf_la-ctf-types.o .libs/libctf_la-ctf-util.o .libs/libctf_la-ctf-open-bfd.o | sed -n -e 's/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*_\([_A-Za-z][_A-Za-z0-9]*\)$/\1 _\2 \2/p' | /usr/bin/sed 's/.* //' | sort | uniq > .libs/libctf.exp
Changed 2 years ago by aeiouaeiouaeiouaeiouaeiouaeiou
Attachment: | binutils-github-action.log added |
---|
comment:5 follow-up: 8 Changed 12 months ago by catap (Kirill A. Korinsky)
An upstream issue: https://lists.gnu.org/archive/html/bug-libtool/2015-07/msg00000.html
comment:6 Changed 12 months ago by kencu (Ken)
the exact nm being used (which we don’t know for sure from this ticket) was unable to process the objects produced by the compiler being used (which we also don’t know as no log was ever provided from the failed build).
we see this frequently on 10.5 Intel, for example.
users can change their cctools llvm version, which can cause this. If it were a general mismatch in base selections of compilers and cctools llvm versions, then hundreds of builds would be failing on the platform/os.
comment:7 Changed 12 months ago by kencu (Ken)
in this particular case, I see the buildbot also failed on the noted systems, which is odd, and may indicate something more general.
comment:8 Changed 12 months ago by catap (Kirill A. Korinsky)
Replying to catap:
An upstream issue: https://lists.gnu.org/archive/html/bug-libtool/2015-07/msg00000.html
I was wrong. It isn't the real issue.
The issue was introduced by update of libtool which includes https://github.com/autotools-mirror/libtool/commit/ccc878dd7225ac8c372cf42ba23cd6bbf22d70a5
After that commit "sub configure" decided to use /usr/bin/nm -B
instead of /usr/bin/nm
and everything fails.
comment:9 Changed 12 months ago by kencu (Ken)
you feel that commit changing sed
to $SED
caused the builds to fail?
comment:10 Changed 12 months ago by kencu (Ken)
data point - building binutils on 10.10 fails even if cctools is not installed...
comment:11 Changed 12 months ago by kencu (Ken)
this is not apparently the usual "nm can't handle the newer objects" issue ... something different is going on.
I'm not sure exactly what. This lt_cv_sys_global_symbol_pipe
seems to me to be defined to nothing. Not sure why yet.
comment:12 Changed 12 months ago by kencu (Ken)
updating to 2.40 and/or forcing NM and lt_cv_path_NM to /usr/bin/nm don't fix the build on 10.10 (as would be expected, given the build fails even if cctools is not installed).
it's yet something else.
comment:14 Changed 12 months ago by catap (Kirill A. Korinsky)
Owner: | set to catap |
---|---|
Resolution: | → fixed |
Status: | new → closed |
comment:15 Changed 12 months ago by cooljeanius (Eric Gallager)
Cc: | cooljeanius added |
---|
What's between those pipes in a successful build?