Failing to compile - Unrecognized -R option
Environment:
BASEDIR="${HOME}/jhbuild/install/"
# compiler
CPPFLAGS="-I${BASEDIR}/include"
LDFLAGS="-L${BASEDIR}/lib"
PKG_CONFIG_PATH="${BASEDIR}/lib/pkgconfig:${BASEDIR}/lib/x86_64-linux-gnu/pkgconfig:${BASEDIR}/share/pkgconfig"
export CPPFLAGS LDFLAGS PKG_CONFIG_PATH
# linker
LD_LIBRARY_PATH="${BASEDIR}/lib/x86_64-linux-gnu/"
# PATH="$HOME/local/bin:$PATH"
export LD_LIBRARY_PATH PATH
# gsetting
export GSETTINGS_SCHEMA_DIR=${BASEDIR}/share/glib-2.0/schemas
# gir
export XDG_DATA_DIRS=${BASEDIR}/share:$XDG_DATA_DIRS
# PKG
export PKG_CONFIG_PATH="${BASEDIR}/share/pkgconfig:$PKG_CONFIG_PATH"
# girepository-1.0
export GI_TYPELIB_PATH=${BASEDIR}/lib/x86_64-linux-gnu/girepository-1.0
Building
igor@blackmonolith:~/src/libsoup ( 600.38 KB ) (git::master)
(ins)$ meson _build
Using 'PKG_CONFIG_PATH' from environment with value: '/home/igor/jhbuild/install//share/pkgconfig:/home/igor/jhbuild/install//lib/pkgconfig:/home/igor/jhbuild/install//lib/x86_64-linux-gnu/pkgconfig:/home/igor/jhbuild/install//share/pkgconfig'
Using 'PKG_CONFIG_PATH' from environment with value: '/home/igor/jhbuild/install//share/pkgconfig:/home/igor/jhbuild/install//lib/pkgconfig:/home/igor/jhbuild/install//lib/x86_64-linux-gnu/pkgconfig:/home/igor/jhbuild/install//share/pkgconfig'
The Meson build system
Version: 0.56.2
Source dir: /home/igor/src/libsoup
Build dir: /home/igor/src/libsoup/_build
Build type: native build
Project name: libsoup
Project version: 2.99.5
Using 'LDFLAGS' from environment with value: '-L/home/igor/jhbuild/install//lib'
Using 'CPPFLAGS' from environment with value: '-I/home/igor/jhbuild/install//include'
C compiler for the host machine: cc (gcc 10.2.1 "cc (Debian 10.2.1-6) 10.2.1 20210110")
C linker for the host machine: cc ld.bfd 2.35.2
Using 'LDFLAGS' from environment with value: '-L/home/igor/jhbuild/install//lib'
Using 'CPPFLAGS' from environment with value: '-I/home/igor/jhbuild/install//include'
Host machine cpu family: x86_64
Host machine cpu: x86_64
Compiler for C supports arguments -Wmissing-include-dirs: YES
Compiler for C supports arguments -Wpointer-arith: YES
Compiler for C supports arguments -Winit-self: YES
Compiler for C supports arguments -Werror=missing-prototypes: YES
Compiler for C supports arguments -Werror=implicit-function-declaration: YES
Compiler for C supports arguments -Werror=aggregate-return: YES
Compiler for C supports arguments -Werror=format=2: YES
Compiler for C supports arguments -Werror=return-type: YES
Compiler for C supports arguments -Werror=incompatible-pointer-types: YES
Compiler for C supports arguments -Wstrict-prototypes: YES
Compiler for C supports arguments -Wno-format-zero-length: YES
Compiler for C supports arguments -Wno-missing-include-dirs: YES
Compiler for C supports arguments -Wno-typedef-redefinition: NO
Compiler for C supports arguments -Wno-unused-parameter: YES
Compiler for C supports arguments -Wno-sign-compare: YES
Compiler for C supports arguments -Wno-cast-function-type: YES
Compiler for C supports arguments -Wno-missing-field-initializers: YES
Found pkg-config: /usr/bin/pkg-config (1.7.3)
Using 'PKG_CONFIG_PATH' from environment with value: '/home/igor/jhbuild/install//share/pkgconfig:/home/igor/jhbuild/install//lib/pkgconfig:/home/igor/jhbuild/install//lib/x86_64-linux-gnu/pkgconfig:/home/igor/jhbuild/install//share/pkgconfig'
Run-time dependency glib-2.0 found: YES 2.69.0
Using 'PKG_CONFIG_PATH' from environment with value: '/home/igor/jhbuild/install//share/pkgconfig:/home/igor/jhbuild/install//lib/pkgconfig:/home/igor/jhbuild/install//lib/x86_64-linux-gnu/pkgconfig:/home/igor/jhbuild/install//share/pkgconfig'
Run-time dependency gobject-2.0 found: YES 2.69.0
Using 'PKG_CONFIG_PATH' from environment with value: '/home/igor/jhbuild/install//share/pkgconfig:/home/igor/jhbuild/install//lib/pkgconfig:/home/igor/jhbuild/install//lib/x86_64-linux-gnu/pkgconfig:/home/igor/jhbuild/install//share/pkgconfig'
Run-time dependency gio-2.0 found: YES 2.69.0
Using 'PKG_CONFIG_PATH' from environment with value: '/home/igor/jhbuild/install//share/pkgconfig:/home/igor/jhbuild/install//lib/pkgconfig:/home/igor/jhbuild/install//lib/x86_64-linux-gnu/pkgconfig:/home/igor/jhbuild/install//share/pkgconfig'
Run-time dependency sqlite3 found: YES 3.34.1
Using 'PKG_CONFIG_PATH' from environment with value: '/home/igor/jhbuild/install//share/pkgconfig:/home/igor/jhbuild/install//lib/pkgconfig:/home/igor/jhbuild/install//lib/x86_64-linux-gnu/pkgconfig:/home/igor/jhbuild/install//share/pkgconfig'
Run-time dependency libxml-2.0 found: YES 2.9.10
Using 'PKG_CONFIG_PATH' from environment with value: '/home/igor/jhbuild/install//share/pkgconfig:/home/igor/jhbuild/install//lib/pkgconfig:/home/igor/jhbuild/install//lib/x86_64-linux-gnu/pkgconfig:/home/igor/jhbuild/install//share/pkgconfig'
Run-time dependency libbrotlidec found: YES 1.0.9
Using 'PKG_CONFIG_PATH' from environment with value: '/home/igor/jhbuild/install//share/pkgconfig:/home/igor/jhbuild/install//lib/pkgconfig:/home/igor/jhbuild/install//lib/x86_64-linux-gnu/pkgconfig:/home/igor/jhbuild/install//share/pkgconfig'
Run-time dependency gio-unix-2.0 found: YES 2.69.0
Using 'PKG_CONFIG_PATH' from environment with value: '/home/igor/jhbuild/install//share/pkgconfig:/home/igor/jhbuild/install//lib/pkgconfig:/home/igor/jhbuild/install//lib/x86_64-linux-gnu/pkgconfig:/home/igor/jhbuild/install//share/pkgconfig'
Run-time dependency libpsl found: YES 0.21.0
Checking for function "gmtime_r" : YES
Using 'PKG_CONFIG_PATH' from environment with value: '/home/igor/jhbuild/install//share/pkgconfig:/home/igor/jhbuild/install//lib/pkgconfig:/home/igor/jhbuild/install//lib/x86_64-linux-gnu/pkgconfig:/home/igor/jhbuild/install//share/pkgconfig'
Run-time dependency sysprof-capture-4 found: YES 3.38.1
Checking if "GIO has real TLS support" with dependencies glib-2.0, gobject-2.0, gio-2.0 runs: YES
Using 'PKG_CONFIG_PATH' from environment with value: '/home/igor/jhbuild/install//share/pkgconfig:/home/igor/jhbuild/install//lib/pkgconfig:/home/igor/jhbuild/install//lib/x86_64-linux-gnu/pkgconfig:/home/igor/jhbuild/install//share/pkgconfig'
Run-time dependency zlib found: YES 1.2.11
Program apachectl /sbin/apachectl /usr/sbin/apachectl found: NO
Program /sbin/apache2 found: YES (/sbin/apache2)
Program wstest found: NO
meson.build:293: WARNING: Some regression tests will not be compiled due to missing libraries or modules. Please check the logs for more details.
Program krb5-config found: YES (/usr/bin/krb5-config)
Program ntlm_auth found: NO
Program g-ir-scanner found: YES (/usr/bin/g-ir-scanner)
Vala compiler for the host machine: valac (valac 0.48.15)
Configuring config.h using configuration
Program generate-version-header.py found: YES (/home/igor/src/libsoup/libsoup/generate-version-header.py)
Configuring soup-version.h with command
Program glib-mkenums found: YES (/usr/bin/glib-mkenums)
Program glib-mkenums found: YES (/usr/bin/glib-mkenums)
Program glib-mkenums found: YES (/usr/bin/glib-mkenums)
Found pkg-config: /usr/bin/pkg-config (1.7.3)
Using 'PKG_CONFIG_PATH' from environment with value: '/home/igor/jhbuild/install//share/pkgconfig:/home/igor/jhbuild/install//lib/pkgconfig:/home/igor/jhbuild/install//lib/x86_64-linux-gnu/pkgconfig:/home/igor/jhbuild/install//share/pkgconfig'
Build-time dependency gobject-introspection-1.0 found: YES 1.68.1
Program g_ir_scanner found: YES (/home/igor/jhbuild/install/bin/g-ir-scanner)
Program g_ir_compiler found: YES (/home/igor/jhbuild/install/bin/g-ir-compiler)
Program vapigen found: YES (/usr/bin/vapigen)
Program xgettext found: YES (/usr/bin/xgettext)
Compiler for C supports arguments -fsanitize=fuzzer,address,undefined: NO
Using 'PKG_CONFIG_PATH' from environment with value: '/home/igor/jhbuild/install//share/pkgconfig:/home/igor/jhbuild/install//lib/pkgconfig:/home/igor/jhbuild/install//lib/x86_64-linux-gnu/pkgconfig:/home/igor/jhbuild/install//share/pkgconfig'
Program glib-compile-resources found: YES (/usr/bin/glib-compile-resources)
Build targets in project: 52
libsoup 2.99.5
Directories
prefix: /usr/local
libdir: lib/x86_64-linux-gnu
datadir: share
Features
GSSAPI: True
NTLM: False
Brotli: True
Translations: True
GIR: True
VAPI: True
Documentation: False
Testing
All tests: True
Tests requiring Apache: False
Fuzzing tests: False
Autobahn tests: False
Install tests: False
Unix sockets: True
Found ninja-1.10.1 at /usr/bin/ninja
Compiling
ninja: Entering directory `_build/'
[81/230] Linking target libsoup/libsoup-3.0.so.0.0.0
FAILED: libsoup/libsoup-3.0.so.0.0.0
cc -o libsoup/libsoup-3.0.so.0.0.0 libsoup/libsoup-3.0.so.0.0.0.p/meson-generated_.._soup-private-enum-types.c.o libsoup/libsoup-3.0.so.0.0.0.p/meson-generated_.._soup-enum-types.c.o libsoup/libsoup-3.0.so.0.0.0.p/auth_soup-auth.c.o libsoup/libsoup-3.0.so.0.0.0.p/auth_soup-auth-basic.c.o libsoup/libsoup-3.0.so.0.0.0.p/auth_soup-auth-digest.c.o libsoup/libsoup-3.0.so.0.0.0.p/auth_soup-auth-ntlm.c.o libsoup/libsoup-3.0.so.0.0.0.p/auth_soup-auth-negotiate.c.o libsoup/libsoup-3.0.so.0.0.0.p/auth_soup-auth-manager.c.o libsoup/libsoup-3.0.so.0.0.0.p/auth_soup-connection-auth.c.o libsoup/libsoup-3.0.so.0.0.0.p/cache_soup-cache.c.o libsoup/libsoup-3.0.so.0.0.0.p/cache_soup-cache-client-input-stream.c.o libsoup/libsoup-3.0.so.0.0.0.p/cache_soup-cache-input-stream.c.o libsoup/libsoup-3.0.so.0.0.0.p/content-decoder_soup-content-decoder.c.o libsoup/libsoup-3.0.so.0.0.0.p/content-decoder_soup-content-processor.c.o libsoup/libsoup-3.0.so.0.0.0.p/content-decoder_soup-converter-wrapper.c.o libsoup/libsoup-3.0.so.0.0.0.p/content-sniffer_soup-content-sniffer.c.o libsoup/libsoup-3.0.so.0.0.0.p/content-sniffer_soup-content-sniffer-stream.c.o libsoup/libsoup-3.0.so.0.0.0.p/cookies_soup-cookie.c.o libsoup/libsoup-3.0.so.0.0.0.p/cookies_soup-cookie-jar.c.o libsoup/libsoup-3.0.so.0.0.0.p/cookies_soup-cookie-jar-db.c.o libsoup/libsoup-3.0.so.0.0.0.p/cookies_soup-cookie-jar-text.c.o libsoup/libsoup-3.0.so.0.0.0.p/hsts_soup-hsts-enforcer.c.o libsoup/libsoup-3.0.so.0.0.0.p/hsts_soup-hsts-enforcer-db.c.o libsoup/libsoup-3.0.so.0.0.0.p/hsts_soup-hsts-policy.c.o libsoup/libsoup-3.0.so.0.0.0.p/server_soup-auth-domain.c.o libsoup/libsoup-3.0.so.0.0.0.p/server_soup-auth-domain-basic.c.o libsoup/libsoup-3.0.so.0.0.0.p/server_soup-auth-domain-digest.c.o libsoup/libsoup-3.0.so.0.0.0.p/server_soup-message-body.c.o libsoup/libsoup-3.0.so.0.0.0.p/server_soup-path-map.c.o libsoup/libsoup-3.0.so.0.0.0.p/server_soup-server.c.o libsoup/libsoup-3.0.so.0.0.0.p/server_soup-server-io.c.o libsoup/libsoup-3.0.so.0.0.0.p/server_soup-server-message.c.o libsoup/libsoup-3.0.so.0.0.0.p/server_soup-socket.c.o libsoup/libsoup-3.0.so.0.0.0.p/websocket_soup-websocket.c.o libsoup/libsoup-3.0.so.0.0.0.p/websocket_soup-websocket-connection.c.o libsoup/libsoup-3.0.so.0.0.0.p/websocket_soup-websocket-extension.c.o libsoup/libsoup-3.0.so.0.0.0.p/websocket_soup-websocket-extension-deflate.c.o libsoup/libsoup-3.0.so.0.0.0.p/websocket_soup-websocket-extension-manager.c.o libsoup/libsoup-3.0.so.0.0.0.p/soup-body-input-stream.c.o libsoup/libsoup-3.0.so.0.0.0.p/soup-body-output-stream.c.o libsoup/libsoup-3.0.so.0.0.0.p/soup-client-input-stream.c.o libsoup/libsoup-3.0.so.0.0.0.p/soup-client-message-io.c.o libsoup/libsoup-3.0.so.0.0.0.p/soup-client-message-io-http1.c.o libsoup/libsoup-3.0.so.0.0.0.p/soup-connection.c.o libsoup/libsoup-3.0.so.0.0.0.p/soup-date-utils.c.o libsoup/libsoup-3.0.so.0.0.0.p/soup-filter-input-stream.c.o libsoup/libsoup-3.0.so.0.0.0.p/soup-form.c.o libsoup/libsoup-3.0.so.0.0.0.p/soup-headers.c.o libsoup/libsoup-3.0.so.0.0.0.p/soup-init.c.o libsoup/libsoup-3.0.so.0.0.0.p/soup-io-stream.c.o libsoup/libsoup-3.0.so.0.0.0.p/soup-logger.c.o libsoup/libsoup-3.0.so.0.0.0.p/soup-logger-input-stream.c.o libsoup/libsoup-3.0.so.0.0.0.p/soup-message.c.o libsoup/libsoup-3.0.so.0.0.0.p/soup-message-headers.c.o libsoup/libsoup-3.0.so.0.0.0.p/soup-message-io-data.c.o libsoup/libsoup-3.0.so.0.0.0.p/soup-message-metrics.c.o libsoup/libsoup-3.0.so.0.0.0.p/soup-message-queue-item.c.o libsoup/libsoup-3.0.so.0.0.0.p/soup-message-io-source.c.o libsoup/libsoup-3.0.so.0.0.0.p/soup-method.c.o libsoup/libsoup-3.0.so.0.0.0.p/soup-misc.c.o libsoup/libsoup-3.0.so.0.0.0.p/soup-multipart.c.o libsoup/libsoup-3.0.so.0.0.0.p/soup-multipart-input-stream.c.o libsoup/libsoup-3.0.so.0.0.0.p/soup-session.c.o libsoup/libsoup-3.0.so.0.0.0.p/soup-session-feature.c.o libsoup/libsoup-3.0.so.0.0.0.p/soup-socket-properties.c.o libsoup/libsoup-3.0.so.0.0.0.p/soup-status.c.o libsoup/libsoup-3.0.so.0.0.0.p/soup-tld.c.o libsoup/libsoup-3.0.so.0.0.0.p/soup-uri-utils.c.o libsoup/libsoup-3.0.so.0.0.0.p/soup-version.c.o libsoup/libsoup-3.0.so.0.0.0.p/content-decoder_soup-brotli-decompressor.c.o -L/home/igor/jhbuild/install//lib -L/usr/lib/x86_64-linux-gnu/mit-krb5 -Wl,--as-needed -Wl,--no-undefined -shared -fPIC -Wl,--start-group -Wl,-soname,libsoup-3.0.so.0 -Wl,-z,relro -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err /usr/lib/x86_64-linux-gnu/libsysprof-capture-4.a -pthread /home/igor/jhbuild/install/lib/libglib-2.0.so /home/igor/jhbuild/install/lib/libgobject-2.0.so /home/igor/jhbuild/install/lib/libgio-2.0.so /usr/lib/x86_64-linux-gnu/libxml2.so /usr/lib/x86_64-linux-gnu/libsqlite3.so /home/igor/jhbuild/install/lib/libpsl.so -R/home/igor/jhbuild/install/lib /home/igor/jhbuild/install/lib/libbrotlidec.so /usr/lib/x86_64-linux-gnu/libz.so -Wl,--end-group -Wl,-rpath,/home/igor/jhbuild/install/lib -Wl,-rpath-link,/home/igor/jhbuild/install/lib
cc: error: unrecognized command-line option ‘-R’
[86/230] Compiling C object libsoup/libsoup-3.0-static.a.p/cache_soup-cache.c.o
ninja: build stopped: subcommand failed.