question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[package] libjpeg/9d: Can't build on windows (hash mismatch)

See original GitHub issue

Description

Whenever I try to build libjpeg on windows I get an error about a failed sha256 signature for ‘jpehsrc.v9d.tar.gz’ file.

Package and Environment Details

  • Package Name/Version: libjpeg/9d
  • Operating System+version: Windows 10
  • Compiler+version: Visual Studio 16 2019
  • Conan version: conan 1.53.0
  • Python version: Python 3.9.5

Conan profile

[settings] arch=x86_64 arch_build=x86_64 build_type=Release compiler=Visual Studio compiler.cppstd=17 compiler.runtime=MD compiler.version=16 os=Windows os_build=Windows [options] *:fPIC=True [build_requires] [env]

Steps to reproduce

conan install libjpeg/9d@ -s build_type=Release -r conancenter --build libjpeg

Logs

Click to expand log
> conan install libjpeg/9d@ -s build_type=Release -r conancenter --build libjpeg -pr release
Configuration:
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=Visual Studio
compiler.cppstd=17
compiler.runtime=MD
compiler.version=16
os=Windows
os_build=Windows
[options]
*:fPIC=True
[build_requires]
[env]

libjpeg/9d: Forced build from source
Installing package: libjpeg/9d
Requirements
    libjpeg/9d from 'artifactory' - Cache
Packages
    libjpeg/9d:3fb49604f9c2f729b85ba3115852006824e72cab - Build

Installing (downloading, building) binaries...
libjpeg/9d: WARN: Trying to remove corrupted source folder
libjpeg/9d: WARN: This can take a while for big packages
libjpeg/9d: Configuring sources in C:\Users\saphi\.conan\data\libjpeg\9d\_\_\source
Downloading jpegsrc.v9d.tar.gz completed [1006.75k]
ERROR: libjpeg/9d: Error in source() method, line 41
        tools.get(**self.conan_data["sources"][self.version])
        ConanException: sha256 signature failed for 'jpegsrc.v9d.tar.gz' file.
 Provided signature: 6c434a3be59f8f62425b2e3c077e785c9ce30ee5874ea1c270e843f273ba71ee
 Computed signature: 2303a6acfb6cc533e0e86e8a9d29f7e6079e118b9de3f96e07a71a11c082fa6a

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:1
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
uilianriescommented, Oct 13, 2022

Okay, I got an answer from the official contact:

jpegsrc.v9d.tar.gz was last repackaged on 4 Jan 2022, and was uploaded to server with time preserve option. Can check that using “curl -R -O”, and can also show that file is identical to local master source:

Microsoft Windows [Version 10.0.19044.2130]
(c) Microsoft Corporation. Alle Rechte vorbehalten.

C:\Users\guido>d:

D:\>curl -R -O http://ijg.org/files/jpegsrc.v9d.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 1006k  100 1006k    0     0   317k      0  0:00:03  0:00:03 --:--:--  317k

D:\>fc /b D:\jpegsrc.v9d.tar.gz C:\Users\guido\Documents\ijg\files\jpegsrc.v9d.tar.gz
Vergleichen der Dateien D:\jpegsrc.v9d.tar.gz und C:\USERS\GUIDO\DOCUMENTS\IJG\FILES\JPEGSRC.V9D.TAR.GZ
FC: Keine Unterschiede gefunden


D:\>

So it’s safe to update the checksum in conandata.yml

1reaction
SpaceImcommented, Oct 11, 2022

Again? It’s not the first time they change checksum of their tarball. What a mess.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[package] libjpeg/9d: wrong SHA256 checksum #4151 - GitHub
Ich checked the source repository on the website, downloaded the archive file and generated the hash. Indeed the result changed! Is this maybe...
Read more >
SFC: Cannot Repair......Hash Mismatch - Microsoft Community
Hi, This is incorrect, if SFC is saying there is a Hash Mismatch it means that the file is corrupt, it doesn't mean...
Read more >
Error installing OpenCV using BUILD_ALL: field of class type ...
I have been trying to install OpenCV using source files, Cmake (gui) and Visual Studio on Windows and am encountering a few problems....
Read more >
Package List — Spack 0.20.0.dev0 documentation
This is a list of things you can install using Spack. It is automatically generated based on the packages in this Spack version....
Read more >
The Buildroot user manual
Config files; 18.3. The .mk file; 18.4. The .hash file; 18.5. The SNNfoo start script; 18.6. Infrastructure for packages with specific build systems;...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found