Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[package] nasm Build fails on Windows using Clang-CL #26389

Open
vasama opened this issue Jan 15, 2025 · 4 comments
Open

[package] nasm Build fails on Windows using Clang-CL #26389

vasama opened this issue Jan 15, 2025 · 4 comments
Labels
bug Something isn't working

Comments

@vasama
Copy link
Contributor

vasama commented Jan 15, 2025

Description

conanfile.txt:

[requires]
openssl/3.3.2

[layout]
cmake_layout

[generators]
CMakeDeps
CMakeToolchain

Package and Environment Details

  • Package Name/Version: openssl/3.3.2
  • Operating System+version: Windows 11
  • Compiler+version: Clang 19.1.5
  • Conan version: conan 2.11.0
  • Python version: Python 3.12.5

Conan profile

Host profile:
[settings]
arch=x86_64
build_type=Debug
compiler=clang
compiler.cppstd=23
compiler.runtime=dynamic
compiler.runtime_type=Debug
compiler.runtime_version=v144
compiler.version=18
os=Windows
[conf]
tools.build:compiler_executables={'c': 'clang-cl', 'cpp': 'clang-cl'}
tools.build:cxxflags=['/clang:-march=nehalem']
tools.build:exelinkflags=['clang_rt.builtins-x86_64.lib']
tools.build:sharedlinkflags=['clang_rt.builtins-x86_64.lib']
tools.cmake.cmake_layout:build_folder_vars=['settings.compiler']
tools.cmake.cmaketoolchain:generator=Visual Studio 17 2022

Build profile:
[settings]
arch=x86_64
build_type=Debug
compiler=clang
compiler.cppstd=23
compiler.runtime=dynamic
compiler.runtime_type=Debug
compiler.runtime_version=v144
compiler.version=18
os=Windows
[conf]
tools.build:compiler_executables={'c': 'clang-cl', 'cpp': 'clang-cl'}
tools.build:cxxflags=['/clang:-march=nehalem']
tools.build:exelinkflags=['clang_rt.builtins-x86_64.lib']
tools.build:sharedlinkflags=['clang_rt.builtins-x86_64.lib']
tools.cmake.cmake_layout:build_folder_vars=['settings.compiler']
tools.cmake.cmaketoolchain:generator=Visual Studio 17 2022

Steps to reproduce

conan install -b missing -pr:a clang .

Logs

Click to expand conan install log
======== Input profiles ========
Profile host:
[settings]
arch=x86_64
build_type=Debug
compiler=clang
compiler.cppstd=23
compiler.runtime=dynamic
compiler.runtime_type=Debug
compiler.runtime_version=v144
compiler.version=18
os=Windows
[conf]
tools.build:compiler_executables={'c': 'clang-cl', 'cpp': 'clang-cl'}
tools.build:cxxflags=['/clang:-march=nehalem']
tools.build:exelinkflags=['clang_rt.builtins-x86_64.lib']
tools.build:sharedlinkflags=['clang_rt.builtins-x86_64.lib']
tools.cmake.cmake_layout:build_folder_vars=['settings.compiler']
tools.cmake.cmaketoolchain:generator=Visual Studio 17 2022

Profile build:
[settings]
arch=x86_64
build_type=Debug
compiler=clang
compiler.cppstd=23
compiler.runtime=dynamic
compiler.runtime_type=Debug
compiler.runtime_version=v144
compiler.version=18
os=Windows
[conf]
tools.build:compiler_executables={'c': 'clang-cl', 'cpp': 'clang-cl'}
tools.build:cxxflags=['/clang:-march=nehalem']
tools.build:exelinkflags=['clang_rt.builtins-x86_64.lib']
tools.build:sharedlinkflags=['clang_rt.builtins-x86_64.lib']
tools.cmake.cmake_layout:build_folder_vars=['settings.compiler']
tools.cmake.cmaketoolchain:generator=Visual Studio 17 2022


======== Computing dependency graph ========
Graph root
    conanfile.txt: C:\Users\vasama\sandbox\conan-consumer\conanfile.txt
Requirements
    openssl/3.3.2#db38a6d356d27869fd90496897aedaf2 - Cache
    zlib/1.3.1#b8bc2603263cf7eccbd6e17e66b0ed76 - Cache
Build requirements
    msys2/cci.latest#4927aa5502eb174e95df524f2be2685e - Cache
    nasm/2.16.01#d0aebbd20ccbb6ad9c9c753ab708098c - Cache
    strawberryperl/5.32.1.1#707032463aa0620fa17ec0d887f5fe41 - Cache
Resolved version ranges
    zlib/[>=1.2.11 <2]: zlib/1.3.1

======== Computing necessary packages ========
Requirements
    openssl/3.3.2#db38a6d356d27869fd90496897aedaf2:5adf67f90cfcfdcd7aa00920514befa699216d1b - Build
    zlib/1.3.1#b8bc2603263cf7eccbd6e17e66b0ed76:ff13ab486cda1af6db57e96d9e85aa4bebc6d6ef#9705c9a6984d01e1805d25991b78545e - Cache
Build requirements
    msys2/cci.latest#4927aa5502eb174e95df524f2be2685e:956a88975bda9dfcc485e2861d71e74bd7e2b9a5#06ca1e71ba3ed86c0b2e116f4a63da61 - Cache
    nasm/2.16.01#d0aebbd20ccbb6ad9c9c753ab708098c:e87e09fb175a1b4a35981cd53c3cf142cb86410f - Build
    strawberryperl/5.32.1.1#707032463aa0620fa17ec0d887f5fe41:522dcea5982a3f8a5b624c16477e47195da2f84f#a365b3810f698e2f0a00fbeece022903 - Cache

======== Installing packages ========
msys2/cci.latest: Already installed! (1 of 5)
strawberryperl/5.32.1.1: Already installed! (2 of 5)
zlib/1.3.1: Already installed! (3 of 5)

-------- Installing package nasm/2.16.01 (4 of 5) --------
nasm/2.16.01: Building from source
nasm/2.16.01: Package nasm/2.16.01:e87e09fb175a1b4a35981cd53c3cf142cb86410f
nasm/2.16.01: Copying sources to build folder
nasm/2.16.01: Building your package in C:\Users\vasama\.conan2\p\b\nasm3dfc355abb429\b
nasm/2.16.01: Calling generate()
nasm/2.16.01: Generators folder: C:\Users\vasama\.conan2\p\b\nasm3dfc355abb429\b\build-debug\conan
nasm/2.16.01: Generating aggregated env files
nasm/2.16.01: Generated aggregated env files: ['conanbuild.sh', 'conanbuild.bat', 'conanrun.bat']
nasm/2.16.01: Calling build()
nasm/2.16.01: Apply patch (file): patches/2.16.01-0001-disable-newly-integrated-dependency-tracking.patch
nasm/2.16.01: RUN: "/c/users/vasama/.conan2/p/b/nasm3dfc355abb429/b/src/configure" --prefix=/ --bindir=${prefix}/bin --sbindir=${prefix}/bin --libdir=${prefix}/lib --includedir=${prefix}/include --oldincludedir=${prefix}/include
conanvcvars.bat: Activating environment Visual Studio 17 - amd64 - winsdk_version=None - vcvars_ver=14.4
[vcvarsall.bat] Environment initialized for: 'x64'
mkdir: cannot create directory '/dev/shm': Read-only file system

Creating /dev/shm directory failed.
POSIX semaphores and POSIX shared memory will not work

mkdir: cannot create directory '/dev/mqueue': Read-only file system

Creating /dev/mqueue directory failed.
POSIX message queues will not work

configure: loading site script /etc/config.site
checking build system type... x86_64-w64-mingw32
checking host system type... x86_64-w64-mingw32
checking for gcc... clang-cl
checking whether the C compiler works... no
configure: error: in `/c/Users/vasama/.conan2/p/b/nasm3dfc355abb429/b/src':
configure: error: C compiler cannot create executables
See `config.log' for more details

nasm/2.16.01: ERROR:
Package 'e87e09fb175a1b4a35981cd53c3cf142cb86410f' build failed
nasm/2.16.01: WARN: Build folder C:\Users\vasama\.conan2\p\b\nasm3dfc355abb429\b\build-debug
ERROR: nasm/2.16.01: Error in build() method, line 88
        autotools.configure()
        ConanException: Error 77 while executing
Click to expand 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 configure, which was
generated by GNU Autoconf 2.71.  Invocation command line was

  $ /c/users/vasama/.conan2/p/b/nasm3dfc355abb429/b/src/configure --prefix=/ --bindir=/bin --sbindir=/bin --libdir=/lib --includedir=/include --oldincludedir=/include

## --------- ##
## Platform. ##
## --------- ##

hostname = desktop
uname -m = x86_64
uname -r = 3.5.4-0bc1222b.x86_64
uname -s = MINGW64_NT-10.0-22631
uname -v = 2024-11-14 09:08 UTC

/usr/bin/uname -p = unknown
/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: /c/users/vasama/.conan2/p/msys26322397eb23dd/p/bin/
PATH: /c/users/vasama/.conan2/p/msys26322397eb23dd/p/bin/msys64/usr/bin/
PATH: /c/users/vasama/.conan2/p/straw898fb56546adc/p/bin/
PATH: /mingw64/bin/
PATH: /usr/local/bin/
PATH: /usr/bin/
PATH: /bin/
PATH: /c/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/HostX64/x64/
PATH: /c/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/VC/VCPackages/
PATH: /c/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/TestWindow/
PATH: /c/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/TeamFoundation/Team Explorer/
PATH: /c/Program Files/Microsoft Visual Studio/2022/Community/MSBuild/Current/bin/Roslyn/
PATH: /c/Program Files (x86)/Microsoft SDKs/Windows/v10.0A/bin/NETFX 4.8 Tools/x64/
PATH: /c/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/FSharp/Tools/
PATH: /c/Program Files/Microsoft Visual Studio/2022/Community/Team Tools/DiagnosticsHub/Collector/
PATH: /c/Program Files (x86)/Windows Kits/10/bin/10.0.22621.0/x64/
PATH: /c/Program Files (x86)/Windows Kits/10/bin/x64/
PATH: /c/Program Files/Microsoft Visual Studio/2022/Community/MSBuild/Current/Bin/amd64/
PATH: /c/Windows/Microsoft.NET/Framework64/v4.0.30319/
PATH: /c/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/
PATH: /c/Program Files/Microsoft Visual Studio/2022/Community/Common7/Tools/
PATH: /c/Program Files/PowerShell/7/
PATH: /c/Program Files/Microsoft/jdk-21.0.4.7-hotspot/bin/
PATH: /c/Program Files (x86)/VMware/VMware Workstation/bin/
PATH: /c/Windows/system32/
PATH: /c/Windows/
PATH: /c/Windows/System32/Wbem/
PATH: /c/Windows/System32/WindowsPowerShell/v1.0/
PATH: /c/Windows/System32/OpenSSH/
PATH: /c/Program Files (x86)/NVIDIA Corporation/PhysX/Common/
PATH: /c/Program Files/NVIDIA Corporation/NVIDIA NvDLISR/
PATH: /c/Program Files/Git/cmd/
PATH: /c/Program Files/CMake/bin/
PATH: /c/Program Files (x86)/Windows Kits/10/Windows Performance Toolkit/
PATH: /c/Program Files/PowerShell/7/
PATH: /c/Program Files/LLVM/bin/
PATH: /c/Program Files/dotnet/
PATH: /c/Users/vasama/AppData/Local/Programs/Python/Python312/Scripts/
PATH: /c/Users/vasama/AppData/Local/Programs/Python/Python312/
PATH: /c/Users/vasama/AppData/Local/Programs/Python/Launcher/
PATH: /c/Users/vasama/AppData/Local/Microsoft/WindowsApps/
PATH: /c/Users/vasama/AppData/Local/Programs/Microsoft VS Code/bin/
PATH: /c/Users/vasama/.local/bin/
PATH: /c/Users/vasama/AppData/Local/Microsoft/WinGet/Packages/Ninja-build.Ninja_Microsoft.Winget.Source_8wekyb3d8bbwe/
PATH: /c/Users/vasama/.dotnet/tools/
PATH: /c/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/bin/
PATH: /c/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/
PATH: /c/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/VC/Linux/bin/ConnectionManagerExe/
PATH: /usr/bin/core_perl/


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2086: loading site script /etc/config.site
| # This file is in public domain.
| # Original author: Karlson2k (Evgeny Grin)
| # Written for MSys2 to help running 'configure' scripts
|
| # Defaults for MSys2/MinGW64-targeted programs
|
| # Set proper selfname on bash and fallback to default name on other shells
| test -n "${BASH_SOURCE}" 2>/dev/null && config_site_me="${BASH_SOURCE[0]##*/}" || config_site_me=config.site
|
| # Set default 'host' to speedup configure
| if test -z "$build_alias"; then
|   build_alias="${MSYSTEM_CHOST}"  && \
|     ${as_echo-echo} "$config_site_me:${as_lineno-$LINENO}: default build_alias set to $build_alias" >&5
| fi
|
| # Set default 'prefix'
| if ( test -z "$prefix" || test "x$prefix" = "xNONE" ) && \
|     ( test -z "$exec_prefix" || test "x$exec_prefix" = "xNONE" ); then
|   prefix="${MSYSTEM_PREFIX}" && \
|     ${as_echo-echo} "$config_site_me:${as_lineno-$LINENO}: default prefix set to $prefix" >&5
| fi
config.site:13: default build_alias set to x86_64-w64-mingw32
configure:2449: looking for aux files: install-sh config.guess config.sub
configure:2462:  trying /c/users/vasama/.conan2/p/b/nasm3dfc355abb429/b/src/autoconf/helpers/
configure:2473:   /c/users/vasama/.conan2/p/b/nasm3dfc355abb429/b/src/autoconf/helpers/install-sh found
configure:2491:   /c/users/vasama/.conan2/p/b/nasm3dfc355abb429/b/src/autoconf/helpers/config.guess found
configure:2491:   /c/users/vasama/.conan2/p/b/nasm3dfc355abb429/b/src/autoconf/helpers/config.sub found
configure:2718: checking build system type
configure:2733: result: x86_64-w64-mingw32
configure:2753: checking host system type
configure:2767: result: x86_64-w64-mingw32
configure:2850: checking for gcc
configure:2882: result: clang-cl
configure:3235: checking for C compiler version
configure:3244: clang-cl --version >&5
clang version 19.1.5
Target: x86_64-pc-windows-msvc
Thread model: posix
InstalledDir: C:\Program Files\LLVM\bin
configure:3255: $? = 0
configure:3244: clang-cl -v >&5
clang version 19.1.5
Target: x86_64-pc-windows-msvc
Thread model: posix
InstalledDir: C:\Program Files\LLVM\bin
configure:3255: $? = 0
configure:3244: clang-cl -V >&5
clang-cl: error: no input files
configure:3255: $? = 1
configure:3244: clang-cl -qversion >&5
clang-cl: warning: unknown argument ignored in clang-cl '-qversion'; did you mean '--version'? [-Wunknown-argument]
clang-cl: error: no input files
configure:3255: $? = 1
configure:3244: clang-cl -version >&5
clang-cl: warning: unknown argument ignored in clang-cl '-version'; did you mean '--version'? [-Wunknown-argument]
clang-cl: error: no input files
configure:3255: $? = 1
configure:3275: checking whether the C compiler works
configure:3297: clang-cl  -MDd -gline-tables-only -fno-inline -O0 -m64   clang_rt.builtins-x86_64.lib clang_rt.builtins-x86_64.lib conftest.c  >&5
clang-cl: warning: unknown argument ignored in clang-cl: '-fno-inline' [-Wunknown-argument]
clang-cl: warning: argument unused during compilation: '-O0' [-Wunused-command-line-argument]
configure:3301: $? = 0
configure:3341: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
|
| int
| main (void)
| {
|
|   ;
|   return 0;
| }
configure:3346: error: in `/c/Users/vasama/.conan2/p/b/nasm3dfc355abb429/b/src':
configure:3348: error: C compiler cannot create executables
See `config.log' for more details

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=x86_64-w64-mingw32
ac_cv_env_CC_set=set
ac_cv_env_CC_value=clang-cl
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value=' -MDd -gline-tables-only -fno-inline -O0 -m64'
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value=' clang_rt.builtins-x86_64.lib clang_rt.builtins-x86_64.lib'
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=x86_64-w64-mingw32
ac_cv_prog_ac_ct_CC=clang-cl

## ----------------- ##
## Output variables. ##
## ----------------- ##

AR=''
ASCIIDOC=''
CC='clang-cl'
CC_AR=''
CC_RANLIB=''
CFLAGS=' -MDd -gline-tables-only -fno-inline -O0 -m64'
CPPFLAGS=''
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EXEEXT=''
INSTALL_DATA=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
LDFLAGS=' clang_rt.builtins-x86_64.lib clang_rt.builtins-x86_64.lib'
LIBEXT=''
LIBOBJS=''
LIBS=''
LN_S=''
LTLIBOBJS=''
MAKENSIS=''
MAKENSIS_PLAIN=''
MAKENSIS_TOOL=''
MANPAGES=''
MKDIR_P=''
NROFF=''
NSIS=''
OBJEXT=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_URL=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
PDFOPT=''
RANLIB=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
XMLTO=''
XZ=''
XZFILES=''
ac_ct_CC='clang-cl'
ac_prefix_program=''
bindir='/bin'
build='x86_64-w64-mingw32'
build_alias='x86_64-w64-mingw32'
build_cpu='x86_64'
build_os='mingw32'
build_vendor='w64'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE}'
dvidir='${docdir}'
exec_prefix='NONE'
host='x86_64-w64-mingw32'
host_alias=''
host_cpu='x86_64'
host_os='mingw32'
host_vendor='w64'
htmldir='${docdir}'
includedir='/include'
infodir='${datarootdir}/info'
libdir='/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/include'
pdfdir='${docdir}'
prefix='/'
program_transform_name='s,x,x,'
psdir='${docdir}'
runstatedir='${localstatedir}/run'
sbindir='/bin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""

configure: exit 77
@vasama vasama added the bug Something isn't working label Jan 15, 2025
@jcar87
Copy link
Contributor

jcar87 commented Jan 16, 2025

closing as duplicate of #26391

@jcar87 jcar87 closed this as completed Jan 16, 2025
@vasama
Copy link
Contributor Author

vasama commented Jan 16, 2025

@jcar87 Did you have a look at the output in this one? The failure here seems completely different from the one you linked.

@jcar87 jcar87 reopened this Jan 16, 2025
@jcar87
Copy link
Contributor

jcar87 commented Jan 16, 2025

Thanks, - could you please paste the whole output of the command ? I don't think it's openssl that's failing here

@vasama
Copy link
Contributor Author

vasama commented Jan 16, 2025

@jcar87 That is the whole output of conan install. I'm not sure what else you'd like to see.

@jcar87 jcar87 changed the title [package] openssl/3.3.2: Build fails on Windows using Clang-CL [package] nasm Build fails on Windows using Clang-CL Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants