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] cairo/1.18.0: Fails to build with MSVC due to an upstream bug #23786

Open
mmomtchev opened this issue Apr 27, 2024 · 1 comment
Open
Labels
bug Something isn't working

Comments

@mmomtchev
Copy link

mmomtchev commented Apr 27, 2024

Description

cairo/1.18.0 fails to build with MSVC due to an upstream bug:

https://gitlab.freedesktop.org/cairo/cairo/-/issues/808

Package and Environment Details

  • Package Name/Version: cairo/1.18.0
  • Operating System+version: Windows (GHA)
  • Compiler+version: MSVC
  • Conan version: 2.2.3
  • Python version: Python 3.12.2

Conan profile

detect_api: Found msvc 17

Detected profile:
WARN: This profile is a guess of your environment, please check it.
WARN: The output of this command is not guaranteed to be stable and can change in future Conan versions.
WARN: Use your own profile files for stability.
Saving detected profile to C:\Users\runneradmin\.conan2\profiles\default
[settings]
arch=x[8](https://github.com/mmomtchev/ImageMagick/actions/runs/8859258889/job/24328834934#step:5:9)6_64
build_type=Release
compiler=msvc
compiler.cppstd=14
compiler.runtime=dynamic
compiler.version=1[9](https://github.com/mmomtchev/ImageMagick/actions/runs/8859258889/job/24328834934#step:5:10)3
os=Windows


======== Input profiles ========
Profile host:
[settings]
arch=x86_64
build_type=Release
compiler=msvc
compiler.cppstd=14
compiler.runtime=dynamic
compiler.runtime_type=Release
compiler.version=193
os=Windows
[options]
libtype=static

Profile build:
[settings]
arch=x86_64
build_type=Release
compiler=msvc
compiler.cppstd=[14](https://github.com/mmomtchev/ImageMagick/actions/runs/8859258889/job/24328834934#step:5:15)
compiler.runtime=dynamic
compiler.runtime_type=Release
compiler.version=193
os=Windows

Steps to reproduce

conan install --requires cairo/1.18.0 --build=missing

Logs

Click to expand log
[151/151] Linking target util/cairo-script/csi-exec.exe
FAILED: util/cairo-script/csi-exec.exe 
"link"  /MACHINE:x64 /OUT:util/cairo-script/csi-exec.exe util/cairo-script/csi-exec.exe.p/csi-exec.c.obj "/release" "/nologo" "/OPT:REF" "src/libcairo.a" "util/cairo-script/libcairo-script-interpreter.a" "C:/Users/runneradmin/.conan2/p/zlib4b49f8b2fd4ff/p/lib/zlib.lib" "C:/Users/runneradmin/.conan2/p/b/libpnccbc03f7e2e60/p/lib/libpng16_static.lib" "C:/Users/runneradmin/.conan2/p/b/fontc900a664bc24a6/p/lib/fontconfig.lib" "C:/Users/runneradmin/.conan2/p/b/freetb6cf413a42c86/p/lib/freetype.lib" "C:/Users/runneradmin/.conan2/p/brotl79757a5cae055/p/lib/brotlidec.lib" "C:/Users/runneradmin/.conan2/p/brotl79757a5cae055/p/lib/brotlienc.lib" "C:/Users/runneradmin/.conan2/p/brotl79757a5cae055/p/lib/brotlicommon.lib" "C:/Users/runneradmin/.conan2/p/bzip2e06444d88ab4f/p/lib/bz2.lib" "C:/Users/runneradmin/.conan2/p/expatf69e525558547/p/lib/libexpatMD.lib" "gdi32.lib" "msimg32.lib" "dwrite.lib" "d2d1.lib" "windowscodecs.lib" "C:/Users/runneradmin/.conan2/p/pixmae9144adba5495/p/lib/libpixman-1.lib" "gdi32.lib" "msimg32.lib" "dwrite.lib" "d2d1.lib" "windowscodecs.lib" "gdi32.lib" "msimg32.lib" "dwrite.lib" "d2d1.lib" "windowscodecs.lib" "C:/Users/runneradmin/.conan2/p/lzoaeba5eb052ec5/p/lib/lzo2.lib" "/SUBSYSTEM:CONSOLE" "kernel32.lib" "user32.lib" "gdi32.lib" "winspool.lib" "shell32.lib" "ole32.lib" "oleaut32.lib" "uuid.lib" "comdlg32.lib" "advapi32.lib"
   Creating library util\cairo-script\csi-exec.lib and object util\cairo-script\csi-exec.exp

libcairo.a(cairo-colr-glyph-render.c.obj) : error LNK2019: unresolved external symbol alloca referenced in function add_sweep_gradient_patches

util\cairo-script\csi-exec.exe : fatal error LNK1120: 1 unresolved externals

ninja: build stopped: subcommand failed.
INFO: autodetecting backend as ninja
INFO: calculating backend command to run: C:\Users\runneradmin\.conan2\p\ninjae2ad385cd85df\p\bin\ninja.EXE -j 4

cairo/1.18.0: ERROR: 
Package '13a5070ab4c4106752627a70d421ee7d12bac420' build failed
cairo/1.18.0: WARN: Build folder C:\Users\runneradmin\.conan2\p\b\cairobf30e9e1a6e71\b\build-release
ERROR: cairo/1.18.0: Error in build() method, line 215
	meson.build()
	ConanException: Error 1 while executing
Error: Process completed with exit code 1.```

</details>
@mmomtchev mmomtchev added the bug Something isn't working label Apr 27, 2024
@mmomtchev
Copy link
Author

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

1 participant