Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 775302 - app-misc/jq-1.7_pre20201109 x86_64-pc-linux-gnu-gcc: error: unrecognized command-line option ‘-static-libtool-libs’; did you mean ‘-static-libphobos’? when using slibtool
Summary: app-misc/jq-1.7_pre20201109 x86_64-pc-linux-gnu-gcc: error: unrecognized comm...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Victor Payno
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: slibtool
  Show dependency tree
 
Reported: 2021-03-10 21:10 UTC by Alessandro Barbieri
Modified: 2021-03-22 17:24 UTC (History)
3 users (show)

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


Attachments
jq-1.7_pre20201109:20210310-180548.log (jq-1.7_pre20201109:20210310-180548.log,170.57 KB, text/plain)
2021-03-10 21:10 UTC, Alessandro Barbieri
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alessandro Barbieri 2021-03-10 21:10:04 UTC
slibtool: compile: x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME="jq" -DPACKAGE_TARNAME="jq" -DPACKAGE_VERSION="-" -DPACKAGE_STRING="jq -" -DPACKAGE_BUGREPORT="https://github.com/stedolan/jq/issues" -DPACKAGE_URL="https://stedolan.github.io/jq" -DPACKAGE="jq" -DVERSION="-" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=".libs/" -DHAVE_MEMMEM=1 -DHAVE_MKSTEMP=1 -DUSE_DECNUM=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 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INH=1 -DHAVE_SQRT=1 -DHAVE_TAN=1 -DHAVE_TANH=1 -DHAVE_TGAMMA=1 -DHAVE_TRUNC=1 -DHAVE_Y0=1 -DHAVE_Y1=1 -DHAVE_YN=1 -DHAVE___THREAD=1 -DIEEE_8087=1 -DHAVE_LIBONIG=1 -I. -I./src -Wall -Wno-missing-field-initializers -Wno-unused-parameter -Wno-unused-function -Os -pipe -march=native -Os -pipe -march=native -Wimplicit-function-declaration -Wno-error=implicit-function-declaration -c src/decNumber/decNumber.c -o src/decNumber/decNumber.o
slibtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc -Wall -Wno-missing-field-initializers -Wno-unused-parameter -Wno-unused-function      -Os -pipe -march=native -Os -pipe -march=native -Wimplicit-function-declaration -Wno-error=implicit-function-declaration  -export-symbols-regex '^j[qv]_' -version-info 1:4:0  -Wl,-O1 -Wl,--as-needed -o libjq.la -rpath /usr/lib64 src/builtin.lo src/bytecode.lo src/compile.lo src/execute.lo src/jq_test.lo src/jv.lo src/jv_alloc.lo src/jv_aux.lo src/jv_dtoa.lo src/jv_file.lo src/jv_parse.lo src/jv_print.lo src/jv_unicode.lo src/linker.lo src/locfile.lo src/util.lo src/decNumber/decContext.lo src/decNumber/decNumber.lo src/jv_dtoa_tsd.lo src/lexer.lo src/parser.lo -lm -lonig  -lonig -lpthread 
slibtool: link: ar crs .libs/libjq.a src/.libs/builtin.o src/.libs/bytecode.o src/.libs/compile.o src/.libs/execute.o src/.libs/jq_test.o src/.libs/jv.o src/.libs/jv_alloc.o src/.libs/jv_aux.o src/.libs/jv_dtoa.o src/.libs/jv_file.o src/.libs/jv_parse.o src/.libs/jv_print.o src/.libs/jv_unicode.o src/.libs/linker.o src/.libs/locfile.o src/.libs/util.o src/decNumber/.libs/decContext.o src/decNumber/.libs/decNumber.o src/.libs/jv_dtoa_tsd.o src/.libs/lexer.o src/.libs/parser.o
slibtool: link: x86_64-pc-linux-gnu-gcc src/.libs/builtin.o src/.libs/bytecode.o src/.libs/compile.o src/.libs/execute.o src/.libs/jq_test.o src/.libs/jv.o src/.libs/jv_alloc.o src/.libs/jv_aux.o src/.libs/jv_dtoa.o src/.libs/jv_file.o src/.libs/jv_parse.o src/.libs/jv_print.o src/.libs/jv_unicode.o src/.libs/linker.o src/.libs/locfile.o src/.libs/util.o src/decNumber/.libs/decContext.o src/decNumber/.libs/decNumber.o src/.libs/jv_dtoa_tsd.o src/.libs/lexer.o src/.libs/parser.o -Wall -Wno-missing-field-initializers -Wno-unused-parameter -Wno-unused-function -Os -pipe -march=native -Os -pipe -march=native -Wimplicit-function-declaration -Wno-error=implicit-function-declaration -Wl,-O1 -Wl,--as-needed -lm -lonig -lpthread -shared -fPIC -Wl,-soname -Wl,libjq.so.1 -o .libs/libjq.so.1.0.4
slibtool: link: ln -s libjq.so.1.0.4 .libs/libjq.so.1
slibtool: link: ln -s libjq.so.1.0.4 .libs/libjq.so
slibtool: link: ln -s ../libjq.la .libs/libjq.la
slibtool: link: ln -s ../libjq.la .libs/libjq.lai
slibtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc -Wall -Wno-missing-field-initializers -Wno-unused-parameter -Wno-unused-function      -Os -pipe -march=native -Os -pipe -march=native -Wimplicit-function-declaration -Wno-error=implicit-function-declaration -static-libtool-libs  -Wl,-O1 -Wl,--as-needed -o jq src/main.o libjq.la -lm  -lonig -lpthread 
slibtool: link: x86_64-pc-linux-gnu-gcc src/main.o -Wall -Wno-missing-field-initializers -Wno-unused-parameter -Wno-unused-function -Os -pipe -march=native -Os -pipe -march=native -Wimplicit-function-declaration -Wno-error=implicit-function-declaration -static-libtool-libs -Wl,-O1 -Wl,--as-needed -L.libs -ljq -lm -lonig -lpthread -lm -lonig -o .libs/jq
x86_64-pc-linux-gnu-gcc: error: unrecognized command-line option ‘-static-libtool-libs’; did you mean ‘-static-libphobos’?
slibtool: exec error upon slbt_exec_link_create_executable(), line 1613: (see child process error messages).
slibtool: < returned to > slbt_exec_link(), line 1902.
make[1]: *** [Makefile:936: jq] Error 2
make[1]: Leaving directory '/var/tmp/portage/app-misc/jq-1.7_pre20201109/work/jq-a17dd3248a666d01be75f6b16be37e80e20b0954'
make: *** [Makefile:763: all] Error 2
 * ERROR: app-misc/jq-1.7_pre20201109::gentoo failed (compile phase):
 *   emake failed
Comment 1 Alessandro Barbieri 2021-03-10 21:10:32 UTC
Created attachment 690588 [details]
jq-1.7_pre20201109:20210310-180548.log

buildlog
Comment 2 orbea 2021-03-16 23:17:11 UTC
I can't reproduce this for some reason.
Comment 3 Ionen Wolkens gentoo-dev 2021-03-16 23:56:20 UTC
(In reply to orbea from comment #2)
> I can't reproduce this for some reason.
Hm, gave it another try and it's still failing.

Unsure how you're invoking slibtool but I used:

MAKEFLAGS='LIBTOOL=rlibtool' emerge -1 jq (all USE disabled)
[...]
rlibtool: link: x86_64-pc-linux-gnu-gcc src/main.o -Wall -Wno-missing-field-initializers -Wno-unused-parameter -Wno-unused-function -march=native -O2 -pipe -fdiagnostics-color=always -frecord-gcc-switches -static-libtool-libs -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -L.libs -ljq -lm -lpthread -lm -o .libs/jq
x86_64-pc-linux-gnu-gcc: error: unrecognized command-line option '-static-libtool-libs'; did you mean '-static-libphobos'?

Makefile.am has a jq_LDFLAGS = -static-libtool-libs
Comment 4 orbea 2021-03-17 03:30:40 UTC
Actually I can now reproduce it with slibtool-0.5.31, but it seems already fixed in slibtool-9999.
Comment 5 orbea 2021-03-22 15:05:20 UTC
Fixed in slibtool-0.5.32.