Running phase: unpackPhase unpacking source archive /nix/store/y1jz21byl1bzmxlqmp4aydx92srhdg72-source source root is source Running phase: patchPhase substituteStream() in derivation bootil-unstable-2019-11-18: WARNING: '--replace' is deprecated, use --replace-{fail,warn,quiet}. (file 'projects/premake4.lua') Running phase: updateAutotoolsGnuConfigScriptsPhase Running phase: configurePhase configure flags: --file=projects/premake4.lua gmake Building configurations... Running action 'gmake'... Generating Makefile... Generating bootil_static.make... Done. Running phase: buildPhase build flags: SHELL=/nix/store/11ciq72n4fdv8rw6wgjgasfv4mjs1jrw-bash-5.2p37/bin/bash ==== Building bootil_static (release) ==== Creating obj/Release Base.cpp Time.cpp Processes.cpp PackFile.cpp Hasher.cpp CompressionLZMA.cpp Compression.cpp CommandLine.cpp String_Util.cpp String_URL.cpp String_To.cpp String_Test.cpp String_Sanitize.cpp String_Format.cpp String_File.cpp String_Encode.cpp String_Convert.cpp String.cpp Math.cpp Buffer.cpp Utility.cpp Thread.cpp Mutex.cpp Platform_WINDOWS.cpp Platform_OSX.cpp Platform_NULL.cpp Platform_LINUX.cpp src/Bootil/Platform/Platform_LINUX.cpp: In function 'Bootil::BString Bootil::Platform::CurrentDir()': src/Bootil/Platform/Platform_LINUX.cpp:258:31: warning: ignoring return value of 'char* getcwd(char*, size_t)' declared with attribute 'warn_unused_result' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-result-Wunused-result8;;] 258 | getcwd( strCurrentWD, sizeof( strCurrentWD ) ); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Socket.cpp Network.cpp HTTP.cpp JPEG.cpp In file included from src/Bootil/Image/JPEG.cpp:5: src/3rdParty/stb_image/stb_image.h: In function 'int parse_png_file(png*, int, int)': src/3rdParty/stb_image/stb_image.h:2757:25: warning: writing 1 byte into a region of size 0 [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-stringop-overflow-Wstringop-overflow=8;;] 2757 | tc[k] = (uint8) get16(s); // non 8-bit images will be larger | ~~~~~~^~~~~~~~~~~~~~~~~~ src/3rdParty/stb_image/stb_image.h:2680:23: note: at offset 3 into destination object 'tc' of size 3 2680 | uint8 has_trans=0, tc[3]; | ^~ Image.cpp System.cpp File.cpp src/Bootil/File/File.cpp: In function 'Bootil::BString Bootil::File::GetTempFilename()': src/Bootil/File/File.cpp:242:31: warning: ignoring return value of 'char* tmpnam(char*)' declared with attribute 'warn_unused_result' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-result-Wunused-result8;;] 242 | tmpnam( cTempName ); | ~~~~~~^~~~~~~~~~~~~ Changes.cpp Debug.cpp Tree.cpp Json.cpp ConsoleInput.cpp Console.cpp globber.cpp tinythread.cpp smhash_md5.cpp crc.cpp jpge.cpp happyhttp.cpp zutil.c uncompr.c trees.c inftrees.c inflate.c inffast.c infback.c gzwrite.c src/3rdParty/zlib/gzwrite.c: In function 'gz_comp': src/3rdParty/zlib/gzwrite.c:84:15: error: implicit declaration of function 'write'; did you mean 'fwrite'? [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wimplicit-function-declaration-Wimplicit-function-declaration8;;] 84 | got = write(state->fd, strm->next_in, strm->avail_in); | ^~~~~ | fwrite src/3rdParty/zlib/gzwrite.c: In function 'gzclose_w': src/3rdParty/zlib/gzwrite.c:573:9: error: implicit declaration of function 'close'; did you mean 'pclose'? [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wimplicit-function-declaration-Wimplicit-function-declaration8;;] 573 | if (close(state->fd) == -1) | ^~~~~ | pclose make[1]: *** [bootil_static.make:357: obj/Release/gzwrite.o] Error 1 make: *** [Makefile:17: bootil_static] Error 2