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

[jasper] build failure #15035

Closed
tqjxlm opened this issue Dec 10, 2020 · 7 comments
Closed

[jasper] build failure #15035

tqjxlm opened this issue Dec 10, 2020 · 7 comments
Assignees
Labels
requires:repro The issue is not currently repro-able

Comments

@tqjxlm
Copy link

tqjxlm commented Dec 10, 2020

Host Environment

  • OS: Windows
  • Compiler: Visual Studio 2019

To Reproduce
Steps to reproduce the behavior:
./vcpkg install jasper:x64-windows

Failure logs

[52/54] C:\PROGRA~2\MICROS~2\2019\PROFES~1\VC\Tools\MSVC\1428~1.293\bin\Hostx64\x64\cl.exe   -DJAS_BUILDING_DLL -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_GNU_SOURCE -Isrc\libjasper\include -ID:\Tmp\vcpkg\buildtrees\jasper\src\2a853d25d7-8a915d701e.clean\src\libjasper\include -ID:\Tmp\vcpkg\installed\x64-windows\include /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /MP  /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1  -std:c11 /showIncludes /Fosrc\libjasper\CMakeFiles\libjasper.dir\base\jas_stream.c.obj /Fdsrc\libjasper\CMakeFiles\libjasper.dir\ /FS -c D:\Tmp\vcpkg\buildtrees\jasper\src\2a853d25d7-8a915d701e.clean\src\libjasper\base\jas_stream.c
FAILED: src/libjasper/CMakeFiles/libjasper.dir/base/jas_stream.c.obj 
C:\PROGRA~2\MICROS~2\2019\PROFES~1\VC\Tools\MSVC\1428~1.293\bin\Hostx64\x64\cl.exe   -DJAS_BUILDING_DLL -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_GNU_SOURCE -Isrc\libjasper\include -ID:\Tmp\vcpkg\buildtrees\jasper\src\2a853d25d7-8a915d701e.clean\src\libjasper\include -ID:\Tmp\vcpkg\installed\x64-windows\include /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /MP  /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1  -std:c11 /showIncludes /Fosrc\libjasper\CMakeFiles\libjasper.dir\base\jas_stream.c.obj /Fdsrc\libjasper\CMakeFiles\libjasper.dir\ /FS -c D:\Tmp\vcpkg\buildtrees\jasper\src\2a853d25d7-8a915d701e.clean\src\libjasper\base\jas_stream.c
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt\stdio.h(378): warning C5105: macro expansion producing 'defined' has undefined behavior
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt\stdio.h(2437): warning C5105: macro expansion producing 'defined' has undefined behavior
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt\corecrt_memory.h(76): warning C5105: macro expansion producing 'defined' has undefined behavior
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt\corecrt_wstring.h(573): warning C5105: macro expansion producing 'defined' has undefined behavior
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt\string.h(531): warning C5105: macro expansion producing 'defined' has undefined behavior
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt\corecrt_search.h(188): warning C5105: macro expansion producing 'defined' has undefined behavior
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt\stdlib.h(79): warning C5105: macro expansion producing 'defined' has undefined behavior
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt\stdlib.h(1286): warning C5105: macro expansion producing 'defined' has undefined behavior
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt\ctype.h(224): warning C5105: macro expansion producing 'defined' has undefined behavior
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt\corecrt_io.h(435): warning C5105: macro expansion producing 'defined' has undefined behavior
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winbase.h(9200): warning C5105: macro expansion producing 'defined' has undefined behavior
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\oaidl.h(487): warning C5103: pasting '/' and '/' does not result in a valid preprocessing token
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\shared\wtypes.h(745): note: in expansion of macro '_VARIANT_BOOL'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\oaidl.h(487): error C2059: syntax error: '/'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\oaidl.h(502): warning C5103: pasting '/' and '/' does not result in a valid preprocessing token
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\shared\wtypes.h(745): note: in expansion of macro '_VARIANT_BOOL'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\oaidl.h(502): error C2059: syntax error: '/'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\oaidl.h(529): warning C4094: untagged 'struct' declared no symbols
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\oaidl.h(530): error C2059: syntax error: '}'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\oaidl.h(531): error C2059: syntax error: '}'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\oaidl.h(533): error C2059: syntax error: '}'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\oaidl.h(534): error C2059: syntax error: '}'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\oaidl.h(665): error C2079: 'varDefaultValue' uses undefined struct 'tagVARIANT'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\oaidl.h(950): error C2079: 'varValue' uses undefined struct 'tagVARIANT'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\propidlbase.h(319): warning C5103: pasting '/' and '/' does not result in a valid preprocessing token
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\shared\wtypes.h(745): note: in expansion of macro '_VARIANT_BOOL'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\propidlbase.h(319): error C2059: syntax error: '/'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\propidlbase.h(378): error C2371: 'pvarVal': redefinition; different basic types
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\oaidl.h(510): note: see declaration of 'pvarVal'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\propidlbase.h(379): error C2059: syntax error: '}'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\propidlbase.h(380): error C2059: syntax error: '}'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\propidlbase.h(383): error C2059: syntax error: '}'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\propidlbase.h(384): error C2059: syntax error: '}'
D:\Tmp\vcpkg\buildtrees\jasper\src\2a853d25d7-8a915d701e.clean\src\libjasper\base\jas_stream.c(249): warning C4267: '=': conversion from 'size_t' to 'uint_fast32_t', possible loss of data
D:\Tmp\vcpkg\buildtrees\jasper\src\2a853d25d7-8a915d701e.clean\src\libjasper\base\jas_stream.c(724): warning C4267: 'function': conversion from 'size_t' to 'unsigned int', possible loss of data
D:\Tmp\vcpkg\buildtrees\jasper\src\2a853d25d7-8a915d701e.clean\src\libjasper\base\jas_stream.c(936): warning C4244: '=': conversion from '__int64' to 'int', possible loss of data
D:\Tmp\vcpkg\buildtrees\jasper\src\2a853d25d7-8a915d701e.clean\src\libjasper\base\jas_stream.c(1074): warning C4244: '=': conversion from '__int64' to 'int', possible loss of data
D:\Tmp\vcpkg\buildtrees\jasper\src\2a853d25d7-8a915d701e.clean\src\libjasper\base\jas_stream.c(1257): warning C4267: '=': conversion from 'size_t' to 'unsigned int', possible loss of data
D:\Tmp\vcpkg\buildtrees\jasper\src\2a853d25d7-8a915d701e.clean\src\libjasper\base\jas_stream.c(1322): warning C4267: '+=': conversion from 'size_t' to 'uint_fast32_t', possible loss of data
D:\Tmp\vcpkg\buildtrees\jasper\src\2a853d25d7-8a915d701e.clean\src\libjasper\base\jas_stream.c(1330): warning C4267: 'initializing': conversion from 'size_t' to 'unsigned int', possible loss of data
ninja: build stopped: subcommand failed.
@JonLiu1993 JonLiu1993 self-assigned this Dec 10, 2020
@JonLiu1993 JonLiu1993 added the category:question This issue is a question label Dec 10, 2020
@JonLiu1993
Copy link
Member

@tqjxlm ,Thanks for posting this issue,Can you create a folder on a non-C drive and reinstall vcpkg to try it? I cannot reproduce your issue on windows 10
Capture

@tqjxlm
Copy link
Author

tqjxlm commented Dec 10, 2020

@JonLiu1993

In fact it's not on the C drive. There's more output if it is helpful

log file:
install-x64-windows-dbg-out.log

commandline:
D:\Tmp\vcpkg>.\vcpkg.exe install jasper:x64-windows
Computing installation plan...
The following packages will be built and installed:
jasper[core]:x64-windows -> 2.0.20
Detecting compiler hash for triplet x64-windows...
Could not locate cached archive: C:\Users\tqjxlm\AppData\Local\vcpkg\archives\ba\ba535b3d845291a5cfe34ac3917ede9613eab611.zip
Starting package 1/1: jasper:x64-windows
Building package jasper[core]:x64-windows...
-- Using cached D:/Tmp/vcpkg/downloads/mdadams-jasper-d10a710f31da3d079a984d35ff6cc82a853d25d7.tar.gz
-- Cleaning sources at D:/Tmp/vcpkg/buildtrees/jasper/src/2a853d25d7-8a915d701e.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source D:/Tmp/vcpkg/downloads/mdadams-jasper-d10a710f31da3d079a984d35ff6cc82a853d25d7.tar.gz
-- Using source at D:/Tmp/vcpkg/buildtrees/jasper/src/2a853d25d7-8a915d701e.clean
-- Configuring x64-windows
-- Building x64-windows-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:145 (message):
Command failed: D:/Tmp/vcpkg/downloads/tools/cmake-3.18.4-windows/cmake-3.18.4-win32-x86/bin/cmake.exe --build . --config Debug --target install -- -v -j65
Working Directory: D:/Tmp/vcpkg/buildtrees/jasper/x64-windows-dbg
See logs for more information:
D:\Tmp\vcpkg\buildtrees\jasper\install-x64-windows-dbg-out.log

Call Stack (most recent call first):
scripts/cmake/vcpkg_build_cmake.cmake:96 (vcpkg_execute_build_process)
scripts/cmake/vcpkg_install_cmake.cmake:27 (vcpkg_build_cmake)
ports/jasper/portfile.cmake:28 (vcpkg_install_cmake)
scripts/ports.cmake:136 (include)

Error: Building package jasper:x64-windows failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with .\vcpkg update, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
Package: jasper:x64-windows
Vcpkg version: 2020.11.12-nohash

@JackBoosY JackBoosY added requires:repro The issue is not currently repro-able and removed category:question This issue is a question labels Dec 10, 2020
@Cheney-W
Copy link
Contributor

@tqjxlm
This issue should be fixed in Windows SDK 10.0.18362.0 and later versions. please update the version of your Windows SDK.

@kossiBlaise
Copy link

Hello,

Updating to the newest version of Powershell solved my build problem.

Cheers,

@JonLiu1993
Copy link
Member

@tqjxlm ,Does this problem still exist?

@JonLiu1993
Copy link
Member

Thanks for posting this issue. Please reopen this issue if it still be a problem for you.

@oneThousand1000
Copy link

I have installed the Windows SDK 10.0.19041.0 but I met the same problemoaidl.h(487): error C2059: syntax error: '/', downgrading Windows SDK to 10.0.18362.0 solved my problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
requires:repro The issue is not currently repro-able
Projects
None yet
Development

No branches or pull requests

6 participants