Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 775602 - media-libs/libdca-0.0.7 x86_64-pc-linux-gnu-gcc: error: unrecognized command-line option ‘-version’ when using slibtool
Summary: media-libs/libdca-0.0.7 x86_64-pc-linux-gnu-gcc: error: unrecognized command-...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Sound Team
Keywords: PATCH
Depends on:
Blocks: slibtool
  Show dependency tree
Reported: 2021-03-12 10:14 UTC by Alessandro Barbieri
Modified: 2021-03-28 18:11 UTC (History)
3 users (show)

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

libdca-0.0.7:20210312-101157.log (libdca-0.0.7:20210312-101157.log,19.36 KB, text/plain)
2021-03-12 10:14 UTC, Alessandro Barbieri
Patch fixing typos in libdca/ (libdca-slibtool.patch,780 bytes, patch)
2021-03-16 17:41 UTC, orbea
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alessandro Barbieri 2021-03-12 10:14:24 UTC
slibtool: compile: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/media-libs/libdca-0.0.7/work/libdca-0.0.7/libdca -I.. -I/var/tmp/portage/media-libs/libdca-0.0.7/work/libdca-0.0.7/include -D_FIL
E_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -Os -pipe -march=native -Os -pipe -march=native -Wimplicit-function-declaration -Wno-error=implicit-function-declaration -c /var/tmp/portage/media-libs/
libdca-0.0.7/work/libdca-0.0.7/libdca/parse.c -o parse.o                                                                                                                                                           
slibtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc   -Os -pipe -march=native -Os -pipe -march=native -Wimplicit-function-declaration -Wno-error=implicit-function-declaration -no-undefined -version 0:0:0 -e
xport-symbol-regex dca_.* -Wl,-O1 -Wl,--as-needed -o -rpath /usr/lib64 bitstream.lo parse.lo downmix.lo -lm                                                                                             
slibtool: link: ar crs .libs/libdca.a .libs/bitstream.o .libs/parse.o .libs/downmix.o                    
slibtool: link: x86_64-pc-linux-gnu-gcc .libs/bitstream.o .libs/parse.o .libs/downmix.o -Os -pipe -march=native -Os -pipe -march=native -Wimplicit-function-declaration -Wno-error=implicit-function-declaration -v
ersion 0:0:0 -export-symbol-regex dca_.* -Wl,-O1 -Wl,--as-needed -lm -shared -fPIC -Wl,--no-undefined -Wl,-soname -Wl, -o .libs/
x86_64-pc-linux-gnu-gcc: error: unrecognized command-line option ‘-version’
x86_64-pc-linux-gnu-gcc: error: 0:0:0: No such file or directory
x86_64-pc-linux-gnu-gcc: error: dca_.*: No such file or directory
slibtool: exec error upon slbt_exec_link_create_library(), line 1446: (see child process error messages). 
slibtool: < returned to > slbt_exec_link(), line 1836.
make[2]: *** [Makefile:420:] Error 2
make[2]: Leaving directory '/var/tmp/portage/media-libs/libdca-0.0.7/work/libdca-0.0.7-abi_x86_64.amd64/libdca'
make[1]: *** [Makefile:413: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/media-libs/libdca-0.0.7/work/libdca-0.0.7-abi_x86_64.amd64'
make: *** [Makefile:345: all] Error 2
 * ERROR: media-libs/libdca-0.0.7::gentoo failed (compile phase):
 *   emake failed
Comment 1 Alessandro Barbieri 2021-03-12 10:14:45 UTC
Created attachment 690957 [details]

Comment 2 orbea 2021-03-16 17:41:22 UTC
Created attachment 691851 [details, diff]
Patch fixing typos in libdca/
Comment 3 orbea 2021-03-16 17:42:11 UTC
This is because of two typos in libdca that GNU libtool (ofc) silently ignores.

-version should be -version-info and -export-symbol-regex should be -export-symbols-regex.

I attached a patch that fixes this, but since upstream uses 2fa I can not make a MR for them. If anyone else can do that please feel free to submit the patch to them. :)
Comment 4 Larry the Git Cow gentoo-dev 2021-03-19 04:12:02 UTC
The bug has been closed via the following commit(s):

commit c4c7c3fa3c9ebd64c320092595932545d0ea6e82
Author:     Sam James <>
AuthorDate: 2021-03-19 03:57:48 +0000
Commit:     Sam James <>
CommitDate: 2021-03-19 04:11:48 +0000

    media-libs/libdca: fix build with slibtool
    Signed-off-by: Sam James <>

 .../libdca/files/libdca-0.0.7-slibtool.patch       | 22 ++++++++++++++++++++++
 media-libs/libdca/libdca-0.0.7.ebuild              |  1 +
 2 files changed, 23 insertions(+)
Comment 5 Larry the Git Cow gentoo-dev 2021-03-28 18:11:05 UTC
The bug has been referenced in the following commit(s):

commit 3787a71778dbbef6b9f4dbd8fb3c43575eeb0848
Author:     Sam James <>
AuthorDate: 2021-03-28 18:10:48 +0000
Commit:     Sam James <>
CommitDate: 2021-03-28 18:11:01 +0000

    media-libs/libdca: add link to now upstream commit for slibtool patch
    Signed-off-by: Sam James <>

 media-libs/libdca/files/libdca-0.0.7-slibtool.patch | 1 +
 1 file changed, 1 insertion(+)