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

Windows build fails #10

Open
ChillerDragon opened this issue May 8, 2024 · 0 comments
Open

Windows build fails #10

ChillerDragon opened this issue May 8, 2024 · 0 comments

Comments

@ChillerDragon
Copy link
Owner

-- The C compiler identification is GNU 13.2.0
-- The CXX compiler identification is GNU 13.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: D:/msys64/ucrt64/bin/cc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: D:/msys64/ucrt64/bin/c++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Using CMake version 3.29.1
-- curl version=[8.8.0-DEV]
-- Picky compiler options: -W -Wall -pedantic -Wbad-function-cast -Wconversion -Winline -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wno-long-long -Wno-multichar -Wpointer-arith -Wshadow -Wsign-compare -Wundef -Wunused -Wwrite-strings -Waddress -Wattributes -Wcast-align -Wdeclaration-after-statement -Wdiv-by-zero -Wempty-body -Wendif-labels -Wfloat-equal -Wformat-security -Wignored-qualifiers -Wmissing-field-initializers -Wmissing-noreturn -Wno-format-nonliteral -Wno-system-headers -Wold-style-definition -Wredundant-decls -Wsign-conversion -Wno-error=sign-conversion -Wstrict-prototypes -Wtype-limits -Wunreachable-code -Wunused-parameter -Wvla -Wclobbered -Wmissing-parameter-type -Wold-style-declaration -Wstrict-aliasing=3 -Wtrampolines -Wno-pedantic-ms-format -Wformat=2 -Warray-bounds=2 -ftree-vrp -Wduplicated-cond -Wnull-dereference -fdelete-null-pointer-checks -Wshift-negative-value -Wshift-overflow=2 -Walloc-zero -Wduplicated-branches -Wformat-overflow=2 -Wformat-truncation=2 -Wimplicit-fallthrough -Wrestrict -Warith-conversion -Wdouble-promotion -Wenum-conversion -Wpragmas -Wunused-const-variable
-- Performing Test HAVE_WIN32_WINNT
-- Performing Test HAVE_WIN32_WINNT - Success
-- Found _WIN32_WINNT=0x0603
-- Enabled features: IPv6 UnixSockets libz AsynchDNS IDN Largefile alt-svc HSTS NTLM threadsafe PSL
-- Enabled protocols: DICT FILE FTP GOPHER HTTP IMAP IPFS IPNS LDAP LDAPS MQTT POP3 RTSP SCP SFTP SMB SMTP TELNET TFTP
-- Enabled SSL backends:
-- Configuring done (0.7s)
-- Generating done (0.3s)
-- Build files have been written to: D:/msys64/home/ewan/Craft/deps/curl/build
ninja: no work to do.
CMake Warning at CMakeLists.txt:63 (message):
  did not find libcurl


-- Using CMake version 3.29.1
-- curl version=[8.8.0-DEV]
-- Performing Test OPT_Wdouble_promotion
-- Performing Test OPT_Wdouble_promotion - Success
-- Performing Test OPT_Wenum_conversion
-- Performing Test OPT_Wenum_conversion - Success
-- Performing Test OPT_Wpragmas
-- Performing Test OPT_Wpragmas - Success
-- Performing Test OPT_Wunused_const_variable
-- Performing Test OPT_Wunused_const_variable - Success
-- Picky compiler options: -W -Wall -pedantic -Wbad-function-cast -Wconversion -Winline -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wno-long-long -Wno-multichar -Wpointer-arith -Wshadow -Wsign-compare -Wundef -Wunused -Wwrite-strings -Waddress -Wattributes -Wcast-align -Wdeclaration-after-statement -Wdiv-by-zero -Wempty-body -Wendif-labels -Wfloat-equal -Wformat-security -Wignored-qualifiers -Wmissing-field-initializers -Wmissing-noreturn -Wno-format-nonliteral -Wno-system-headers -Wold-style-definition -Wredundant-decls -Wsign-conversion -Wno-error=sign-conversion -Wstrict-prototypes -Wtype-limits -Wunreachable-code -Wunused-parameter -Wvla -Wclobbered -Wmissing-parameter-type -Wold-style-declaration -Wstrict-aliasing=3 -Wtrampolines -Wno-pedantic-ms-format -Wformat=2 -Warray-bounds=2 -ftree-vrp -Wduplicated-cond -Wnull-dereference -fdelete-null-pointer-checks -Wshift-negative-value -Wshift-overflow=2 -Walloc-zero -Wduplicated-branches -Wformat-overflow=2 -Wformat-truncation=2 -Wimplicit-fallthrough -Wrestrict -Warith-conversion -Wdouble-promotion -Wenum-conversion -Wpragmas -Wunused-const-variable
-- Found Perl: D:/msys64/usr/bin/perl.exe (found version "5.38.2")
-- Found ZLIB: D:/msys64/ucrt64/lib/libz.dll.a (found version "1.3.1")
-- Looking for idn2_lookup_ul in idn2
-- Looking for idn2_lookup_ul in idn2 - found
-- Looking for include file idn2.h
-- Looking for include file idn2.h - found
-- Found LibPSL: D:/msys64/ucrt64/lib/libpsl.dll.a (found version "0.21.5")
-- Found LibSSH2: D:/msys64/ucrt64/lib/libssh2.dll.a (found version "1.11.0")
-- Performing Test HAVE_WIN32_WINNT
-- Performing Test HAVE_WIN32_WINNT - Success
-- Found _WIN32_WINNT=0x0603
-- Looking for 14 include files idn2.h, ..., stdatomic.h
-- Looking for 14 include files idn2.h, ..., stdatomic.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Check size of size_t
-- Check size of size_t - done
-- Check size of ssize_t
-- Check size of ssize_t - done
-- Check size of long long
-- Check size of long long - done
-- Check size of long
-- Check size of long - done
-- Check size of int
-- Check size of int - done
-- Check size of __int64
-- Check size of __int64 - done
-- Check size of time_t
-- Check size of time_t - done
-- Looking for strtok_r
-- Looking for strtok_r - found
-- Check size of ADDRESS_FAMILY
-- Check size of ADDRESS_FAMILY - done
-- Performing Test HAVE_FILE_OFFSET_BITS
-- Performing Test HAVE_FILE_OFFSET_BITS - Success
-- Performing Test HAVE_ATOMIC
-- Performing Test HAVE_ATOMIC - Success
-- Check size of off_t
-- Check size of off_t - done
-- Check size of curl_off_t
-- Check size of curl_off_t - done
-- Check size of curl_socket_t
-- Check size of curl_socket_t - done
-- Enabled features: IPv6 UnixSockets libz AsynchDNS IDN Largefile alt-svc HSTS NTLM threadsafe PSL
-- Enabled protocols: DICT FILE FTP GOPHER HTTP IMAP IPFS IPNS LDAP LDAPS MQTT POP3 RTSP SCP SFTP SMB SMTP TELNET TFTP
-- Enabled SSL backends:
-- Found CURL: D:/msys64/ucrt64/lib/libcurl.dll.a (found version "8.8.0-DEV")
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Including Win32 support
-- Looking for dinput.h
-- Looking for dinput.h - found
-- Looking for xinput.h
-- Looking for xinput.h - found
-- Performing Test _GLFW_HAS_DEP
-- Performing Test _GLFW_HAS_DEP - Success
-- Performing Test _GLFW_HAS_ASLR
-- Performing Test _GLFW_HAS_ASLR - Success
-- Performing Test _GLFW_HAS_64ASLR
-- Performing Test _GLFW_HAS_64ASLR - Success
-- Found Doxygen: D:/msys64/usr/bin/doxygen.exe (found version "1.10.0") found components: doxygen
GLVND not supported. Try find OpenGL legacy
-- Found OpenGL: opengl32
-- Configuring done (10.8s)
-- Generating done (0.4s)
-- Build files have been written to: D:/msys64/home/ewan/Craft/build
[22/42] Building RC object deps/glfw/src/CMakeFiles/glfw.dir/glfw.rc.obj
FAILED: deps/glfw/src/CMakeFiles/glfw.dir/glfw.rc.obj
D:\msys64\ucrt64\bin\windres.exe -O coff -DCURL_STATICLIB -DGLEW_STATIC -DUNICODE -DWINVER=0x0501 -D_GLFW_BUILD_DLL -D_GLFW_WIN32 -D_UNICODE -I D:/msys64/home/ewan/Craft/deps/lodepng -I D:/msys64/home/ewan/Craft/deps/noise -I D:/msys64/home/ewan/Craft/deps/sqlite -I D:/msys64/home/ewan/Craft/deps/tinycthread -I D:/msys64/home/ewan/Craft/deps/curl -I D:/msys64/home/ewan/Craft/deps/curl/include -I D:/msys64/home/ewan/Craft/deps/glfw/include -I D:/msys64/home/ewan/Craft/deps/glfw/src -I D:/msys64/home/ewan/Craft/build/deps/glfw/src -std=c99 -O3 D:/msys64/home/ewan/Craft/build/deps/glfw/src/glfw.rc deps/glfw/src/CMakeFiles/glfw.dir/glfw.rc.obj
D:\msys64\ucrt64\bin\windres.exe: invalid option -- s
Usage: D:\msys64\ucrt64\bin\windres.exe [option(s)] [input-file] [output-file]
 The options are:
  -i --input=<file>            Name input file
  -o --output=<file>           Name output file
  -J --input-format=<format>   Specify input format
  -O --output-format=<format>  Specify output format
  -F --target=<target>         Specify COFF target
     --preprocessor=<program>  Program to use to preprocess rc file
     --preprocessor-arg=<arg>  Additional preprocessor argument
  -I --include-dir=<dir>       Include directory when preprocessing rc file
  -D --define <sym>[=<val>]    Define SYM when preprocessing rc file
  -U --undefine <sym>          Undefine SYM when preprocessing rc file
  -v --verbose                 Verbose - tells you what it's doing
  -c --codepage=<codepage>     Specify default codepage
  -l --language=<val>          Set language when reading rc file
     --use-temp-file           Use a temporary file instead of popen to read
                               the preprocessor output
     --no-use-temp-file        Use popen (default)
  -r                           Ignored for compatibility with rc
  @<file>                      Read options from <file>
  -h --help                    Print this help message
  -V --version                 Print version information
FORMAT is one of rc, res, or coff, and is deduced from the file name
extension if not specified.  A single file name is an input file.
No input-file is stdin, default rc.  No output-file is stdout, default rc.
D:\msys64\ucrt64\bin\windres.exe: supported targets: pe-x86-64 pei-x86-64 pe-bigobj-x86-64 elf64-x86-64 pe-i386 pei-i386 elf32-i386 elf32-iamcu pdb elf64-little elf64-big elf32-little elf32-big srec symbolsrec verilog tekhex binary ihex plugin
[23/42] Building C object CMakeFiles/craft.dir/src/auth.c.obj
In file included from D:/msys64/home/ewan/Craft/src/auth.c:1:
D:/msys64/home/ewan/Craft/src/auth.c: In function 'get_access_token':
D:/msys64/home/ewan/Craft/deps/curl/include/curl/typecheck-gcc.h:92:15: warning: call to '_curl_easy_setopt_err_cb_data' declared with attribute warning: curl_easy_setopt expects a private data pointer as argument for this option [-Wattribute-warning]
   92 |               _curl_easy_setopt_err_cb_data();                          \
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:/msys64/home/ewan/Craft/deps/curl/include/curl/curl.h:46:7: note: in definition of macro 'CURL_IGNORE_DEPRECATION'
   46 |       statements \
      |       ^~~~~~~~~~
D:/msys64/home/ewan/Craft/src/auth.c:37:9: note: in expansion of macro 'curl_easy_setopt'
   37 |         curl_easy_setopt(curl, CURLOPT_WRITEDATA, response);
      |         ^~~~~~~~~~~~~~~~
[36/42] Building C object CMakeFiles/craft.dir/deps/lodepng/lodepng.c.obj
In function 'lodepng_set32bitInt',
    inlined from 'lodepng_add32bitInt' at D:/msys64/home/ewan/Craft/deps/lodepng/lodepng.c:348:3,
    inlined from 'addChunk_pHYs' at D:/msys64/home/ewan/Craft/deps/lodepng/lodepng.c:5157:3,
    inlined from 'lodepng_encode' at D:/msys64/home/ewan/Craft/deps/lodepng/lodepng.c:5776:27:
D:/msys64/home/ewan/Craft/deps/lodepng/lodepng.c:337:13: warning: writing 4 bytes into a region of size 0 [-Wstringop-overflow=]
  337 |   buffer[0] = (unsigned char)((value >> 24) & 0xff);
      |   ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'lodepng_realloc',
    inlined from 'ucvector_resize' at D:/msys64/home/ewan/Craft/deps/lodepng/lodepng.c:221:18,
    inlined from 'lodepng_add32bitInt' at D:/msys64/home/ewan/Craft/deps/lodepng/lodepng.c:347:3,
    inlined from 'addChunk_pHYs' at D:/msys64/home/ewan/Craft/deps/lodepng/lodepng.c:5156:3,
    inlined from 'lodepng_encode' at D:/msys64/home/ewan/Craft/deps/lodepng/lodepng.c:5776:27:
D:/msys64/home/ewan/Craft/deps/lodepng/lodepng.c:68:10: note: at offset -4 into destination object of size 8 allocated by '__builtin_malloc'
   68 |   return realloc(ptr, new_size);
      |          ^~~~~~~~~~~~~~~~~~~~~~
[39/42] Building C object CMakeFiles/craft.dir/deps/sqlite/sqlite3.c.obj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant