Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 917639 - dev-libs/libxml2-2.11.6[static-libs] fails to build with slibtool - ar: error: script line 1: unknown command: OPEN
Summary: dev-libs/libxml2-2.11.6[static-libs] fails to build with slibtool - ar: error...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sam James
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: slibtool
  Show dependency tree
 
Reported: 2023-11-20 18:47 UTC by topological-automata
Modified: 2024-03-15 19:30 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
libxml's build.log (libxml2-build.log,152.73 KB, text/x-log)
2023-11-20 18:47 UTC, topological-automata
Details
emerge --info (emerge-info,19.74 KB, text/plain)
2023-11-20 18:47 UTC, topological-automata
Details

Note You need to log in before you can comment on or make changes to this bug.
Description topological-automata 2023-11-20 18:47:30 UTC
Created attachment 875250 [details]
libxml's build.log

attached are the build.log and emerge --info
Comment 1 topological-automata 2023-11-20 18:47:52 UTC
Created attachment 875251 [details]
emerge --info
Comment 2 orbea 2023-11-21 16:20:57 UTC
I can't reproduce this using slibtool, musl, clang and the same USE. Looking at the error I would guess this is related to ar(1) and not slibtool.

ar: error: script line 1: unknown command: OPEN

Are you sure this is not reproducible with libtool?
Comment 3 topological-automata 2023-11-23 19:34:23 UTC
yes, because with libtool, same env it compiles fine, no problem..
Comment 4 orbea 2023-11-23 22:10:11 UTC
What ar(1) implementation are you using and how did you configure it to be used?
Comment 5 orbea 2023-11-24 16:26:39 UTC
I was able to reproduce it, this occurs with slibtool + llvm-ar and seems likely to be a slibtool bug.

With GNU libtool it will call clang and then use llvm-ar appropriately, while with slibtool it will just use the ar executable which will work if that ar executable is from binutils, but if its actually a symlink for llvm-ar then it will fail as shown in this issue.

At least in the cast of libxml2 this can be avoided by not setting static-libs in the USE.
Comment 6 orbea 2024-02-08 17:00:38 UTC
This is fixed in slibtool-9999 and will be fixed in the next release.
Comment 7 Larry the Git Cow gentoo-dev 2024-03-15 19:30:33 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=341f85a7caa16a7d986a4b428521562bf9120b08

commit 341f85a7caa16a7d986a4b428521562bf9120b08
Author:     orbea <orbea@riseup.net>
AuthorDate: 2024-03-15 13:51:37 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-03-15 19:29:22 +0000

    dev-build/slibtool: add 0.5.36
    
    Many bugs are fixed with this release, it is recommended for slibtool
    users to rebuild their entire system after this release. The addition of
    -export-symbols and -export-symbols-regex will allow exporting only the
    desired public symbols globally in any package that uses them.
    
    Closes: https://bugs.gentoo.org/925555
    Closes: https://bugs.gentoo.org/913670
    Closes: https://bugs.gentoo.org/916128
    Closes: https://bugs.gentoo.org/775596
    Closes: https://bugs.gentoo.org/792072
    Closes: https://bugs.gentoo.org/924407
    Closes: https://bugs.gentoo.org/924291
    Closes: https://bugs.gentoo.org/782013
    Closes: https://bugs.gentoo.org/914569
    Closes: https://bugs.gentoo.org/791880
    Closes: https://bugs.gentoo.org/913551
    Closes: https://bugs.gentoo.org/913688
    Closes: https://bugs.gentoo.org/914097
    Closes: https://bugs.gentoo.org/915966
    Closes: https://bugs.gentoo.org/924408
    Closes: https://bugs.gentoo.org/915121
    Closes: https://bugs.gentoo.org/913642
    Closes: https://bugs.gentoo.org/917639
    Closes: https://bugs.gentoo.org/917640
    Closes: https://bugs.gentoo.org/913530
    Closes: https://bugs.gentoo.org/913638
    Closes: https://bugs.gentoo.org/778515
    Closes: https://bugs.gentoo.org/920190
    Closes: https://bugs.gentoo.org/924404
    Signed-off-by: orbea <orbea@riseup.net>
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-build/slibtool/Manifest               |  2 ++
 dev-build/slibtool/slibtool-0.5.36.ebuild | 41 +++++++++++++++++++++++++++++++
 2 files changed, 43 insertions(+)