Skip to content
This repository has been archived by the owner on Feb 17, 2022. It is now read-only.

Unexpected hash #120

Open
midn1 opened this issue Apr 21, 2020 · 9 comments
Open

Unexpected hash #120

midn1 opened this issue Apr 21, 2020 · 9 comments

Comments

@midn1
Copy link

midn1 commented Apr 21, 2020

Trying to build with emcc -s WASM=0 -s USE_SDL=2 xxx -lSDL2main -lSDL2.

emcc: warning: Assuming object file output in the absence of `-c`, based on output filename. Add with `-c` or `-r` to avoid this warning [-Wemcc]
system_libs:INFO: retrieving port: sdl2 from https://github.com/emscripten-ports/SDL2/archive/version_20.zip
Traceback (most recent call last):
  File "/home/xxx/Downloads/emsdk/upstream/emscripten/emcc.py", line 3982, in <module>
    sys.exit(run(sys.argv))
  File "/home/xxx/Downloads/emsdk/upstream/emscripten/emcc.py", line 2164, in run
    compile_source_file(i, input_file)
  File "/home/xxx/Downloads/emsdk/upstream/emscripten/emcc.py", line 2141, in compile_source_file
    cmd = get_clang_command([input_file]) + ['-c', '-o', output_file]
  File "/home/xxx/Downloads/emsdk/upstream/emscripten/emcc.py", line 2112, in get_clang_command
    args = system_libs.process_args(args, shared.Settings)
  File "/home/xxx/Downloads/emsdk/upstream/emscripten/tools/system_libs.py", line 1958, in process_args
    args = port.process_args(Ports, args, settings, shared)
  File "/home/xxx/Downloads/emsdk/upstream/emscripten/tools/ports/sdl2.py", line 98, in process_args
    get(ports, settings, shared)
  File "/home/xxx/Downloads/emsdk/upstream/emscripten/tools/ports/sdl2.py", line 18, in get
    ports.fetch_project('sdl2', 'https://github.com/emscripten-ports/SDL2/archive/' + TAG + '.zip', SUBDIR, sha512hash=HASH)
  File "/home/xxx/Downloads/emsdk/upstream/emscripten/tools/system_libs.py", line 1907, in fetch_project
    retrieve()
  File "/home/xxx/Downloads/emsdk/upstream/emscripten/tools/system_libs.py", line 1861, in retrieve
    raise RuntimeError('Unexpected hash: ' + actual_hash + '\n'
RuntimeError: Unexpected hash: 8effb53923f01c05fd323f7c55ca65546e61168bf783ecb4c01809f87e0cc6c7f2eab6edca7f28edac4d815e51285a9f5800beaf1088d30a619b6c700befcaaa
If you are updating the port, please update the hash in the port module.
@jcelerier
Copy link

Same issue here (emsdk 1.39.8, Unexpected hash: 03e154a70b262153fe5a8794d1803daddeffd7126c8b90ba1e7ba867c22c7ebc1a73b11e41f4b79d82c283ad8a5d518261b6939d19a33d3474096a39da5aecb2)

@jcelerier
Copy link

Also same issue with emsdk 2.0.14

@jcelerier
Copy link

the hash is wrong because the downloaded files are an error response from the server:

Deprecated authentication method. Create a Personal Access Token to access: https://github.com/settings/tokens

@kripken
Copy link
Member

kripken commented Feb 28, 2021

I'm not sure how github authentication works, but I'm surprised github asks for a token there. Perhaps SSL is not supported by your system's Python, and github considers non-SSL to be deprecated?

@jcelerier
Copy link

Perhaps SSL is not supported by your system's Python

hm, how would I go about checking that ? I'm using archlinux so everything is pretty up-to-date... maybe a python2 / python3 thing ?

@kripken
Copy link
Member

kripken commented Feb 28, 2021

I'm not sure, but I'd try a newer version of Python if possible, and preferably Python 3.

@jcelerier
Copy link

My /usr/bin/python is 3.9.1

@doccaico
Copy link

doccaico commented Mar 6, 2021

I have the same error. My Python version is 3.8.5

@jcelerier
Copy link

still happening :(

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants