Closed marekp0 closed 2 months ago
Sorry, i cannot reproduce this issue locally.
@jimwang118 I was able to reproduce this in docker:
FROM ubuntu:22.04
# dependencies from apt
RUN apt-get update -y
RUN apt-get upgrade -y
RUN apt-get install -y curl zip unzip git build-essential autoconf libtool cmake pkg-config bison flex
# install vcpkg
WORKDIR /
RUN git clone https://github.com/microsoft/vcpkg.git
ENV VCPKG_ROOT=/vcpkg
WORKDIR /vcpkg
RUN ./bootstrap-vcpkg.sh
# install cyrus-sasl
RUN ./vcpkg install cyrus-sasl
Fixed it by installing the autoconf-archive
package from apt.
The syntax error in the configure
script was seemingly being caused by the line AX_PTHREAD()
, right before the line that config-x64-linux-dbg-err.log
was complaining about. Kind of a cryptic error message, but it's really more autoconf's fault than vcpkg's fault.
Closing as resolved by installing the missing dependency autoconf-archive
. While it would be nice if the port could detect this missing dependency, it's not a huge deal for me.
Package: cyrus-sasl:x64-linux@2.1.28#2
Host Environment
To Reproduce
vcpkg install cyrus-sasl
Failure logs
/home/mpokorny/vcpkg/buildtrees/cyrus-sasl/config-x64-linux-dbg-err.log
``` ./../src/rus-sasl-2-ded79ef720.clean/configure: line 15551: syntax error near unexpected token `ac_fn_c_check_header_compile' ./../src/rus-sasl-2-ded79ef720.clean/configure: line 15551: ` ac_fn_c_check_header_compile "$LINENO" "lmdb.h" "ac_cv_header_lmdb_h" "$ac_includes_default"' ```/home/mpokorny/vcpkg/buildtrees/cyrus-sasl/config-x64-linux-dbg-out.log
``` configure: creating cache ./config.cache checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking target system type... x86_64-pc-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a race-free mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether UID '101992445' is supported by ustar format... no checking whether GID '502' is supported by ustar format... yes checking how to create a ustar tar archive... none checking for gcc... /usr/bin/cc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether the compiler supports GNU C... yes checking whether /usr/bin/cc accepts -g... yes checking for /usr/bin/cc option to enable C11 features... none needed checking whether /usr/bin/cc understands -c and -o together... yes checking whether make supports the include directive... yes (GNU style) checking dependency style of /usr/bin/cc... gcc3 checking how to run the C preprocessor... /usr/bin/cc -E checking for gcc... /usr/bin/cc checking whether the compiler supports GNU C... (cached) yes checking whether /usr/bin/cc accepts -g... yes checking for /usr/bin/cc option to enable C11 features... (cached) none needed checking whether /usr/bin/cc understands -c and -o together... (cached) yes checking dependency style of /usr/bin/cc... (cached) gcc3 checking how to run the C preprocessor... /usr/bin/cc -E checking how to run the C preprocessor... /usr/bin/cc -E checking for gawk... (cached) gawk checking whether ln -s works... yes checking whether make sets $(MAKE)... (cached) yes checking for stdio.h... yes checking for stdlib.h... yes checking for string.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for strings.h... yes checking for sys/stat.h... yes checking for sys/types.h... yes checking for unistd.h... yes checking for wchar.h... yes checking for minix/config.h... no checking for sys/time.h... yes checking whether it is safe to define __EXTENSIONS__... yes checking whether _XOPEN_SOURCE should be defined... no checking for runpath switch... -R checking how to print strings... printf checking for a sed that does not truncate output... /usr/bin/sed checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for fgrep... /usr/bin/grep -F checking for ld used by /usr/bin/cc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm checking the name lister (/usr/bin/nm) interface... BSD nm checking the maximum length of command line arguments... 1572864 checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for objdump... /usr/bin/objdump checking how to recognize dependent libraries... pass_all checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for archiver @FILE support... @ checking for strip... /usr/bin/strip checking for ranlib... /usr/bin/ranlib checking command to parse /usr/bin/nm output from /usr/bin/cc object... ok checking for sysroot... no checking for a working dd... /usr/bin/dd checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1 checking for mt... mt checking if mt is a manifest tool... no checking for dlfcn.h... yes checking for objdir... .libs checking if /usr/bin/cc supports -fno-rtti -fno-exceptions... no checking for /usr/bin/cc option to produce PIC... -fPIC -DPIC checking if /usr/bin/cc PIC flag -fPIC -DPIC works... yes checking if /usr/bin/cc static flag -static works... yes checking if /usr/bin/cc supports -c -o file.o... yes checking if /usr/bin/cc supports -c -o file.o... (cached) yes checking whether the /usr/bin/cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... no checking whether to build static libraries... yes checking for sys/socket.h... yes checking for ws2tcpip.h... no checking for socket... yes checking for connect... yes checking for res_search... yes checking for dn_expand... yes checking for dns_lookup... no checking DB path to use... /etc/sasldb2 ```/home/mpokorny/vcpkg/buildtrees/cyrus-sasl/config-x64-linux-dbg-config.log
``` This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by cyrus-sasl configure 2.1.28, which was generated by GNU Autoconf 2.71. Invocation command line was $ ./../src/rus-sasl-2-ded79ef720.clean/configure --enable-sample=no --with-dblib=lmdb --with-gss_impl=mit --disable-macos-framework --disable-silent-rules --verbose --disable-shared --enable-static --prefix=/home/mpokorny/vcpkg/installed/x64-linux/debug '--bindir=${prefix}/../tools/cyrus-sasl/debug/bin' '--sbindir=${prefix}/../tools/cyrus-sasl/debug/sbin' '--libdir=${prefix}/lib' '--includedir=${prefix}/../include' '--datarootdir=${prefix}/share/cyrus-sasl' ## --------- ## ## Platform. ## ## --------- ## hostname = ip-10-43-225-60 uname -m = x86_64 uname -r = 5.15.0-1062-aws uname -s = Linux uname -v = #68-Ubuntu SMP Tue Apr 30 19:25:21 UTC 2024 /usr/bin/uname -p = x86_64 /bin/uname -X = unknown /bin/arch = x86_64 /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /home/mpokorny/.local/bin/ PATH: /home/mpokorny/.vscode-server/cli/servers/Stable-4849ca9bdf9666755eb463db297b69e5385090e3/server/bin/remote-cli/ PATH: /home/mpokorny/.local/bin/ PATH: /home/mpokorny/.local/bin/ PATH: /usr/local/sbin/ PATH: /usr/local/bin/ PATH: /usr/sbin/ PATH: /usr/bin/ PATH: /sbin/ PATH: /bin/ PATH: /usr/games/ PATH: /usr/local/games/ PATH: /snap/bin/ PATH: /home/mpokorny/vcpkg/downloads/tools/ninja/1.10.2-linux/ ## ----------- ## ## Core tests. ## ## ----------- ## configure:2981: looking for aux files: ltmain.sh compile missing install-sh config.guess config.sub configure:2994: trying ./../src/rus-sasl-2-ded79ef720.clean/config/ configure:3023: ./../src/rus-sasl-2-ded79ef720.clean/config/ltmain.sh found configure:3023: ./../src/rus-sasl-2-ded79ef720.clean/config/compile found configure:3023: ./../src/rus-sasl-2-ded79ef720.clean/config/missing found configure:3005: ./../src/rus-sasl-2-ded79ef720.clean/config/install-sh found configure:3023: ./../src/rus-sasl-2-ded79ef720.clean/config/config.guess found configure:3023: ./../src/rus-sasl-2-ded79ef720.clean/config/config.sub found configure:3151: creating cache ./config.cache configure:3166: checking build system type configure:3181: result: x86_64-pc-linux-gnu configure:3201: checking host system type configure:3215: result: x86_64-pc-linux-gnu configure:3235: checking target system type configure:3249: result: x86_64-pc-linux-gnu configure:3293: checking for a BSD-compatible install configure:3366: result: /usr/bin/install -c configure:3377: checking whether build environment is sane configure:3432: result: yes configure:3591: checking for a race-free mkdir -p configure:3635: result: /usr/bin/mkdir -p configure:3642: checking for gawk configure:3663: found /usr/bin/gawk configure:3674: result: gawk configure:3685: checking whether make sets $(MAKE) configure:3708: result: yes configure:3738: checking whether make supports nested variables configure:3756: result: yes configure:3841: checking whether UID '101992445' is supported by ustar format configure:3847: result: no configure:3851: checking whether GID '502' is supported by ustar format configure:3854: result: yes configure:3862: checking how to create a ustar tar archive configure:3916: tardir=conftest.dir && eval false >conftest.tar configure:3919: $? = 1 configure:3945: result: none configure:4110: checking for gcc configure:4142: result: /usr/bin/cc configure:4495: checking for C compiler version configure:4504: /usr/bin/cc --version >&5 cc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0 Copyright (C) 2021 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure:4515: $? = 0 configure:4504: /usr/bin/cc -v >&5 Using built-in specs. COLLECT_GCC=/usr/bin/cc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/11/lto-wrapper OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa OFFLOAD_TARGET_DEFAULT=1 Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu 11.4.0-1ubuntu1~22.04' --with-bugurl=file:///usr/share/doc/gcc-11/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-11 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --enable-cet --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-11-XeT9lY/gcc-11-11.4.0/debian/tmp-nvptx/usr,amdgcn-amdhsa=/build/gcc-11-XeT9lY/gcc-11-11.4.0/debian/tmp-gcn/usr --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-serialization=2 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 11.4.0 (Ubuntu 11.4.0-1ubuntu1~22.04) ... rest of stderr output deleted ... configure:4515: $? = 0 configure:4504: /usr/bin/cc -V >&5 cc: error: unrecognized command-line option '-V' cc: fatal error: no input files compilation terminated. configure:4515: $? = 1 configure:4504: /usr/bin/cc -qversion >&5 cc: error: unrecognized command-line option '-qversion'; did you mean '--version'? cc: fatal error: no input files compilation terminated. configure:4515: $? = 1 configure:4504: /usr/bin/cc -version >&5 cc: error: unrecognized command-line option '-version' cc: fatal error: no input files compilation terminated. configure:4515: $? = 1 configure:4535: checking whether the C compiler works configure:4557: /usr/bin/cc -fPIC -g -L/home/mpokorny/vcpkg/installed/x64-linux/debug/lib conftest.c >&5 configure:4561: $? = 0 configure:4611: result: yes configure:4614: checking for C compiler default output file name configure:4616: result: a.out configure:4622: checking for suffix of executables configure:4629: /usr/bin/cc -o conftest -fPIC -g -L/home/mpokorny/vcpkg/installed/x64-linux/debug/lib conftest.c >&5 configure:4633: $? = 0 configure:4656: result: configure:4678: checking whether we are cross compiling configure:4686: /usr/bin/cc -o conftest -fPIC -g -L/home/mpokorny/vcpkg/installed/x64-linux/debug/lib conftest.c >&5 configure:4690: $? = 0 configure:4697: ./conftest configure:4701: $? = 0 configure:4716: result: no configure:4721: checking for suffix of object files configure:4744: /usr/bin/cc -c -fPIC -g conftest.c >&5 configure:4748: $? = 0 configure:4770: result: o configure:4774: checking whether the compiler supports GNU C configure:4794: /usr/bin/cc -c -fPIC -g conftest.c >&5 configure:4794: $? = 0 configure:4804: result: yes configure:4815: checking whether /usr/bin/cc accepts -g configure:4836: /usr/bin/cc -c -g conftest.c >&5 configure:4836: $? = 0 configure:4880: result: yes configure:4900: checking for /usr/bin/cc option to enable C11 features configure:4915: /usr/bin/cc -c -fPIC -g conftest.c >&5 configure:4915: $? = 0 configure:4933: result: none needed configure:5049: checking whether /usr/bin/cc understands -c and -o together configure:5072: /usr/bin/cc -c conftest.c -o conftest2.o configure:5075: $? = 0 configure:5072: /usr/bin/cc -c conftest.c -o conftest2.o configure:5075: $? = 0 configure:5087: result: yes configure:5107: checking whether make supports the include directive configure:5122: make -f confmf.GNU && cat confinc.out this is the am__doit target configure:5125: $? = 0 configure:5144: result: yes (GNU style) configure:5170: checking dependency style of /usr/bin/cc configure:5282: result: gcc3 configure:5302: checking how to run the C preprocessor configure:5328: /usr/bin/cc -E conftest.c configure:5328: $? = 0 configure:5343: /usr/bin/cc -E conftest.c conftest.c:11:10: fatal error: ac_nonexistent.h: No such file or directory 11 | #include