-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
Verification
- I searched for similar bug reports and found none was relevant.
What happened?
Docker container do not build the firmware under Windows 10
What should happen instead?
The Build process should have been completed
Reproduction steps
Just clone and initialize the repository, after that pull the docker image with docker pull infinitime/infinitime-build considering that we are under Windows to avoid problems instead of using docker run --rm -it -v $(pwd):/sources infinitime/infinitime-build use docker run --rm -it -v C:\...FULL-PATH\Projects\InfiniTime:/sources infinitime/infinitime-build the process will start but once reached 36 % of the build this error will come up :
`[ 36%] Linking C static library libnimble.a
[ 36%] Built target nimble
gmake: *** [Makefile:91: all] Error 2
- return 1
- BUILD_RESULT=1
- '[' '' '!=' true -a 1 == 0 ']'`
once inside the container with:
docker run --rm -it -v C:\...FULL-PATH\Projects\InfiniTime:/sources infinitime/infinitime-build bin/bash
I have launched the build process manually with make and a bit more exact error can now be seen:
`[ 36%] Generating jetbrains_mono_bold_20.c
(Stripping trailing CRs from patch; use --binary to disable.)
patching file jetbrains_mono_bold_20.c
patching file jetbrains_mono_bold_20.c
patch: **** malformed patch at line 3:
Traceback (most recent call last):
File "/sources/src/displayapp/fonts/generate.py", line 75, in
main()
File "/sources/src/displayapp/fonts/generate.py", line 70, in main
subprocess.check_call(['/usr/bin/env', 'patch', name+'.c', patch])
File "/usr/lib/python3.10/subprocess.py", line 369, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/bin/env', 'patch', 'jetbrains_mono_bold_20.c', 'jetbrains_mono_bold_20.c_M.patch']' returned non-zero exit status 2.
make[2]: *** [src/displayapp/fonts/CMakeFiles/infinitime_fonts_jetbrains_mono_bold_20.dir/build.make:73: src/displayapp/fonts/jetbrains_mono_bold_20.c] Error 1
make[2]: *** Deleting file 'src/displayapp/fonts/jetbrains_mono_bold_20.c'
make[1]: *** [CMakeFiles/Makefile2:590: src/displayapp/fonts/CMakeFiles/infinitime_fonts_jetbrains_mono_bold_20.dir/all] Error 2
make: *** [Makefile:91: all] Error 2`
I have tested on two different Windows 10 machines and the error is exactly the same. I have not understood what I did wrong
More details?
No response
Version
Companion app
No response