Coder Social home page Coder Social logo

Comments (38)

alexcrichton avatar alexcrichton commented on August 19, 2024

It looks like there may be something wrong with PATH? That error typically means that gcc.exe couldn't be found locally

from flate2-rs.

alexcrichton avatar alexcrichton commented on August 19, 2024

Er actually, that error looks like it's coming from gcc itself. So gcc may not be able to find a program it wants to run, like collect2 or ld or something like that. Are those files missing?

from flate2-rs.

krazzei avatar krazzei commented on August 19, 2024

I had the same problem as the OP, it was a problem with the path. I only had gcc.exe that comes with rust but installing mingw-w64 and adding those binaries and collect2 to the path solved it.

from flate2-rs.

rishavs avatar rishavs commented on August 19, 2024

Hi

I have the same issue. I am getting exceptions on installing Amethetyst on Windows 10 Anneversary edition. The Amethyst devs pointed me over here.

My details:

PS C:\WINDOWS\system32> cargo install amethyst_tools
    Updating registry `https://github.com/rust-lang/crates.io-index`
   Compiling strsim v0.4.1
   Compiling winapi v0.2.8
   Compiling ansi_term v0.7.5
   Compiling libc v0.2.16
   Compiling vec_map v0.4.0
   Compiling bitflags v0.3.3
   Compiling podio v0.1.5
   Compiling gcc v0.3.35
   Compiling winapi-build v0.1.1
   Compiling clap v1.5.5
   Compiling kernel32-sys v0.2.2
   Compiling miniz-sys v0.1.7
Build failed, waiting for other jobs to finish...
error: failed to compile `amethyst_tools v0.4.0`, intermediate artifacts can be found at `C:\Users\rsharan\AppData\Local
\Temp\cargo-install.K6JLIFDEBzsc`

Caused by:
  failed to run custom build command for `miniz-sys v0.1.7`
process didn't exit successfully: `C:\Users\rsharan\AppData\Local\Temp\cargo-install.K6JLIFDEBzsc\release\build\miniz-sy
s-60c8d67696f63a43\build-script-build` (exit code: 101)
--- stdout
TARGET = Some("x86_64-pc-windows-gnu")
OPT_LEVEL = Some("3")
PROFILE = Some("release")
TARGET = Some("x86_64-pc-windows-gnu")
debug=false opt-level=3
HOST = Some("x86_64-pc-windows-gnu")
TARGET = Some("x86_64-pc-windows-gnu")
TARGET = Some("x86_64-pc-windows-gnu")
HOST = Some("x86_64-pc-windows-gnu")
CC_x86_64-pc-windows-gnu = None
CC_x86_64_pc_windows_gnu = None
HOST_CC = None
CC = None
TARGET = Some("x86_64-pc-windows-gnu")
HOST = Some("x86_64-pc-windows-gnu")
CFLAGS_x86_64-pc-windows-gnu = None
CFLAGS_x86_64_pc_windows_gnu = None
HOST_CFLAGS = None
CFLAGS = None
running: "gcc.exe" "-O3" "-ffunction-sections" "-fdata-sections" "-m64" "-o" "C:\\Users\\rsharan\\AppData\\Local\\Temp\\
cargo-install.K6JLIFDEBzsc\\release\\build\\miniz-sys-60c8d67696f63a43\\out\\miniz.o" "-c" "miniz.c"
cargo:warning=miniz.c:2936:29: fatal error: sys/utime.h: No such file or directory
cargo:warning=       #include <sys/utime.h>
cargo:warning=                             ^
cargo:warning=compilation terminated.
ExitStatus(ExitStatus(1))


command did not execute successfully, got: exit code: 1



--- stderr
thread 'main' panicked at 'explicit panic', C:\Users\rsharan\.cargo\registry\src\github.com-1ecc6299db9ec823\gcc-0.3.35\
src\lib.rs:897
note: Run with `RUST_BACKTRACE=1` for a backtrace.

gcc is in the path and I am using Rust 1.12

PS C:\WINDOWS\system32> gcc
gcc.exe: fatal error: no input files
compilation terminated.

PS C:\WINDOWS\system32> rustc -vV
rustc 1.12.0 (3191fbae9 2016-09-23)
binary: rustc
commit-hash: 3191fbae9da539442351f883bdabcad0d72efcb6
commit-date: 2016-09-23
host: x86_64-pc-windows-gnu
release: 1.12.0

from flate2-rs.

alexcrichton avatar alexcrichton commented on August 19, 2024

@rishavs the error you're seeing:

cargo:warning=miniz.c:2936:29: fatal error: sys/utime.h: No such file or directory
cargo:warning= #include <sys/utime.h>
cargo:warning= ^
cargo:warning=compilation terminated.

Likely indicates that you've got a gcc.exe executable but the header files aren't quite all in place. How'd you install gcc locally?

from flate2-rs.

rishavs avatar rishavs commented on August 19, 2024

i have it from the mingW installation.
i just reinstalled mingW but i am getting the same error.

Also, shouldnt cargo have installed its own gcc?
Compiling gcc v0.3.35

from flate2-rs.

ebkalderon avatar ebkalderon commented on August 19, 2024

@rishavs IIRC, I'm pretty sure that the gcc crate being installed is not the actual GCC compiler, it's just a Rust wrapper around it.

from flate2-rs.

rishavs avatar rishavs commented on August 19, 2024

oh ok. what do now? :(

from flate2-rs.

alexcrichton avatar alexcrichton commented on August 19, 2024

Unfortunately there's a number of ways you can install gcc.exe through MinGW. When you say you reinstalled, how'd you reinstall? e.g. which installer did you use?

from flate2-rs.

rishavs avatar rishavs commented on August 19, 2024

i used the windows installer mingw-get-setup.exe at
https://sourceforge.net/projects/mingw/files/Installer/

from flate2-rs.

alexcrichton avatar alexcrichton commented on August 19, 2024

Oh you may want to try MSYS2 instead, it generally gives better results nowadays.

from flate2-rs.

rishavs avatar rishavs commented on August 19, 2024

i am way out of my depth on this. should i uninstall mingw first?

from flate2-rs.

alexcrichton avatar alexcrichton commented on August 19, 2024

Ah yeah you can start out by uninstalling MinGW, and then you can try following these instructions for installing it again perhaps?

from flate2-rs.

rishavs avatar rishavs commented on August 19, 2024

tried. Still the same issue.
i still get exception at compiling miniz-sys.

I deleted the MingW folder. checked path for any orphans. then ran the commands in the page you gave. Here is my msys2 installation output.

:: Proceed with installation? [Y/n] y
(84/84) checking keys in keyring                                     [#####################################] 100%
(84/84) checking package integrity                                   [#####################################] 100%
(84/84) loading package files                                        [#####################################] 100%
(84/84) checking for file conflicts                                  [#####################################] 100%
error: failed to commit transaction (conflicting files)
mingw-w64-x86_64-gmp: /mingw64 exists in filesystem
mingw-w64-x86_64-libwinpthread-git: /mingw64 exists in filesystem
mingw-w64-x86_64-gcc-libgfortran: /mingw64 exists in filesystem
mingw-w64-x86_64-gcc-libs: /mingw64 exists in filesystem
mingw-w64-x86_64-expat: /mingw64 exists in filesystem
mingw-w64-x86_64-bzip2: /mingw64 exists in filesystem
mingw-w64-x86_64-libiconv: /mingw64 exists in filesystem
mingw-w64-x86_64-gettext: /mingw64 exists in filesystem
mingw-w64-x86_64-gdbm: /mingw64 exists in filesystem
mingw-w64-x86_64-libffi: /mingw64 exists in filesystem
mingw-w64-x86_64-libtre-git: /mingw64 exists in filesystem
mingw-w64-x86_64-libsystre: /mingw64 exists in filesystem
mingw-w64-x86_64-ncurses: /mingw64 exists in filesystem
mingw-w64-x86_64-libtasn1: /mingw64 exists in filesystem
mingw-w64-x86_64-p11-kit: /mingw64 exists in filesystem
mingw-w64-x86_64-ca-certificates: /mingw64 exists in filesystem
mingw-w64-x86_64-zlib: /mingw64 exists in filesystem
mingw-w64-x86_64-openssl: /mingw64 exists in filesystem
mingw-w64-x86_64-termcap: /mingw64 exists in filesystem
mingw-w64-x86_64-readline: /mingw64 exists in filesystem
mingw-w64-x86_64-tcl: /mingw64 exists in filesystem
mingw-w64-x86_64-tk: /mingw64 exists in filesystem
mingw-w64-x86_64-python2: /mingw64 exists in filesystem
mingw-w64-x86_64-c-ares: /mingw64 exists in filesystem
mingw-w64-x86_64-libidn: /mingw64 exists in filesystem
mingw-w64-x86_64-libmetalink: /mingw64 exists in filesystem
mingw-w64-x86_64-libssh2: /mingw64 exists in filesystem
mingw-w64-x86_64-nettle: /mingw64 exists in filesystem
mingw-w64-x86_64-gnutls: /mingw64 exists in filesystem
mingw-w64-x86_64-rtmpdump-git: /mingw64 exists in filesystem
mingw-w64-x86_64-jansson: /mingw64 exists in filesystem
mingw-w64-x86_64-nghttp2: /mingw64 exists in filesystem
mingw-w64-x86_64-curl: /mingw64 exists in filesystem
mingw-w64-x86_64-jsoncpp: /mingw64 exists in filesystem
mingw-w64-x86_64-lz4: /mingw64 exists in filesystem
mingw-w64-x86_64-lzo2: /mingw64 exists in filesystem
mingw-w64-x86_64-xz: /mingw64 exists in filesystem
mingw-w64-x86_64-libarchive: /mingw64 exists in filesystem
mingw-w64-x86_64-cmake: /mingw64 exists in filesystem
mingw-w64-x86_64-binutils: /mingw64 exists in filesystem
mingw-w64-x86_64-headers-git: /mingw64 exists in filesystem
mingw-w64-x86_64-crt-git: /mingw64 exists in filesystem
mingw-w64-x86_64-isl: /mingw64 exists in filesystem
mingw-w64-x86_64-mpfr: /mingw64 exists in filesystem
mingw-w64-x86_64-mpc: /mingw64 exists in filesystem
mingw-w64-x86_64-windows-default-manifest: /mingw64 exists in filesystem
mingw-w64-x86_64-winpthreads-git: /mingw64 exists in filesystem
mingw-w64-x86_64-gcc: /mingw64 exists in filesystem
Errors occurred, no packages were upgraded.

from flate2-rs.

rishavs avatar rishavs commented on August 19, 2024

OK got it working. i essentially had to reinstall every toolchain which had gcc.exe in it.

Now i am getting exceptions in the compiling amethyst-tools part.

I will take my issue over there now. Thanks for all the help.

from flate2-rs.

radix avatar radix commented on August 19, 2024

I'm hitting this issue on Windows. Does miniz absolutely require using gcc/mingw? Is it not possible to use the MS VS compiler (cl.exe)?

from flate2-rs.

alexcrichton avatar alexcrichton commented on August 19, 2024

@radix to use cl.exe you'll want the x86_64-pc-windows-msvc target, whereas the x86_64-pc-windows-gnu target is intended for MinGW

from flate2-rs.

radix avatar radix commented on August 19, 2024

@alexcrichton oh, I think I see what you're talking about -- I didn't realize that rustup installed the mingw-based rust by default. Thanks for the pointer, I'll try switching my version of rust!

from flate2-rs.

AraHaan avatar AraHaan commented on August 19, 2024

Well I have the msvc version of rust and it shows this (basically the same thing) but the issue is with a c file doing it as the root cause.

   Compiling miniz-sys v0.1.7
error: failed to run custom build command for `miniz-sys v0.1.7`
process didn't exit successfully: `E:\Users\Elsword\Desktop\PSX\psx-sdk\vram_to_
png\target\release\build\miniz-sys-60c8d67696f63a43\build-script-build` (exit co
de: 101)
--- stdout
TARGET = Some("x86_64-pc-windows-msvc")
OPT_LEVEL = Some("3")
PROFILE = Some("release")
TARGET = Some("x86_64-pc-windows-msvc")
debug=false opt-level=3
HOST = Some("x86_64-pc-windows-msvc")
TARGET = Some("x86_64-pc-windows-msvc")
TARGET = Some("x86_64-pc-windows-msvc")
HOST = Some("x86_64-pc-windows-msvc")
CC_x86_64-pc-windows-msvc = None
CC_x86_64_pc_windows_msvc = None
HOST_CC = None
CC = None
TARGET = Some("x86_64-pc-windows-msvc")
HOST = Some("x86_64-pc-windows-msvc")
CFLAGS_x86_64-pc-windows-msvc = None
CFLAGS_x86_64_pc_windows_msvc = None
HOST_CFLAGS = None
CFLAGS = None
running: "E:\\Program Files (x86)\\Microsoft Visual Studio\\VC98\\bin\\cl.exe" "
/nologo" "/MD" "/O2" "/FoE:\\Users\\Elsword\\Desktop\\PSX\\psx-sdk\\vram_to_png\
\target\\release\\build\\miniz-sys-60c8d67696f63a43\\out\\miniz.o" "/c" "miniz.c
"
miniz.c
miniz.c(490) : error C2632: 'long' followed by 'long' is illegal
miniz.c(491) : error C2632: 'long' followed by 'long' is illegal
miniz.c(983) : error C2118: negative subscript or subscript is too large
miniz.c(1706) : error C2059: syntax error : 'bad suffix on number'
miniz.c(1706) : error C2146: syntax error : missing ')' before identifier 'L'
miniz.c(1706) : error C2059: syntax error : 'bad suffix on number'
miniz.c(1722) : error C2059: syntax error : 'bad suffix on number'
miniz.c(1722) : error C2146: syntax error : missing ')' before identifier 'L'
miniz.c(1722) : error C2059: syntax error : 'bad suffix on number'
miniz.c(3115) : error C2065: 'errno_t' : undeclared identifier
miniz.c(3115) : error C2146: syntax error : missing ';' before identifier 'err'
miniz.c(3115) : error C2065: 'err' : undeclared identifier
ExitStatus(ExitStatus(2))


command did not execute successfully, got: exit code: 2



--- stderr
thread 'main' panicked at 'explicit panic', E:\Users\Elsword\.cargo\registry\src
\github.com-1ecc6299db9ec823\gcc-0.3.21\src\lib.rs:772
note: Run with `RUST_BACKTRACE=1` for a backtrace.

Just noticed it is using the C++ 6 `cl.exefile and not the C++ 14cl.exe`` file I have installed.

from flate2-rs.

AraHaan avatar AraHaan commented on August 19, 2024

ok, if using the msvc build of rust be sure that it uses the C++ 14.0 compiler cl.exe and then execute this file directly depending on the bits of the system.

call "%SystemDrive%\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat"

Note that has to be in a *.bat file and all your build commands would have to be after this to be able to build everything properly.

from flate2-rs.

imkow avatar imkow commented on August 19, 2024

guys, I got the same issue when compiling libz-sys with nightly-gnu on Windows (MingW64 GNU on Windows)
details:
error: failed to run custom build command for libz-sys v1.0.13
process didn't exit successfully: C:\Users\jack\.cargo\git\checkouts\rls\target\release\build\libz-sys-fa558c3a96f56e8e\build-script-build (exit code: 1)
--- stdout
OPT_LEVEL = Some("3")
TARGET = Some("x86_64-pc-windows-gnu")
HOST = Some("x86_64-pc-windows-gnu")
TARGET = Some("x86_64-pc-windows-gnu")
TARGET = Some("x86_64-pc-windows-gnu")
HOST = Some("x86_64-pc-windows-gnu")
CC_x86_64-pc-windows-gnu = None
CC_x86_64_pc_windows_gnu = None
HOST_CC = None
CC = None
TARGET = Some("x86_64-pc-windows-gnu")
HOST = Some("x86_64-pc-windows-gnu")
CFLAGS_x86_64-pc-windows-gnu = None
CFLAGS_x86_64_pc_windows_gnu = None
HOST_CFLAGS = None
CFLAGS = None
PROFILE = Some("release")
running: "make" "-f" "win32/Makefile.gcc" "install" "prefix=/C/Users/jack/.cargo/git/checkouts/rls/target/release/build/libz-sys-3f97c24ccab6f5c7/out" "IMPLIB=" "INCLUDE_PATH=/C/Users/jack/.cargo/git/checkouts/rls/target/release/build/libz-sys-3f97c24ccab6f5c7/out/include" "LIBRARY_PATH=/C/Users/jack/.cargo/git/checkouts/rls/target/release/build/libz-sys-3f97c24ccab6f5c7/out/lib" "BINARY_PATH=/C/Users/jack/.cargo/git/checkouts/rls/target/release/build/libz-sys-3f97c24ccab6f5c7/out/bin"
Error on line 100: expecting target : dependencies

command did not execute successfully, got: exit code: 1

from flate2-rs.

alexcrichton avatar alexcrichton commented on August 19, 2024

@imkow hm seems surprising! You've got some unusual paths in there, how'd you end up invoking Cargo?

from flate2-rs.

imkow avatar imkow commented on August 19, 2024

@alexcrichton invoking cargo of course is OK. And with Rust MSVC toolchain ok everytime.

from flate2-rs.

alexcrichton avatar alexcrichton commented on August 19, 2024

Oh I mean were you doing something like cargo build and/or cargo install?

It looks like the build is happening in ~/.cargo and builds should in theory never happen in there.

from flate2-rs.

imkow avatar imkow commented on August 19, 2024

@alexcrichton moved out to another location, still the same error
BTW: I'm building RLS

error: failed to run custom build command for libz-sys v1.0.13
process didn't exit successfully: C:\Projects\checkouts\rls\target\release\build\libz-sys-fa558c3a96f56e8e\build-script -build (exit code: 1)
--- stdout
OPT_LEVEL = Some("3")
TARGET = Some("x86_64-pc-windows-gnu")
HOST = Some("x86_64-pc-windows-gnu")
TARGET = Some("x86_64-pc-windows-gnu")
TARGET = Some("x86_64-pc-windows-gnu")
HOST = Some("x86_64-pc-windows-gnu")
CC_x86_64-pc-windows-gnu = None
CC_x86_64_pc_windows_gnu = None
HOST_CC = None
CC = None
TARGET = Some("x86_64-pc-windows-gnu")
HOST = Some("x86_64-pc-windows-gnu")
CFLAGS_x86_64-pc-windows-gnu = None
CFLAGS_x86_64_pc_windows_gnu = None
HOST_CFLAGS = None
CFLAGS = None
PROFILE = Some("release")
running: "make" "-f" "win32/Makefile.gcc" "install" "prefix=/C/Projects/checkouts/rls/target/release/build/libz-sys-3f97
c24ccab6f5c7/out" "IMPLIB=" "INCLUDE_PATH=/C/Projects/checkouts/rls/target/release/build/libz-sys-3f97c24ccab6f5c7/out/i
nclude" "LIBRARY_PATH=/C/Projects/checkouts/rls/target/release/build/libz-sys-3f97c24ccab6f5c7/out/lib" "BINARY_PATH=/C/
Projects/checkouts/rls/target/release/build/libz-sys-3f97c24ccab6f5c7/out/bin"
Error on line 100: expecting target : dependencies

command did not execute successfully, got: exit code: 1

from flate2-rs.

alexcrichton avatar alexcrichton commented on August 19, 2024

Could you try poking around the Makefile associated with libz-sys? I'm curious if it's perhaps corrupted or something like that by accident (I don't know how it would be offhand)

from flate2-rs.

imkow avatar imkow commented on August 19, 2024

@alexcrichton here is the Makefile in win32 for libz-sys

# Makefile for zlib, derived from Makefile.dj2.
# Modified for mingw32 by C. Spieler, 6/16/98.
# Updated for zlib 1.2.x by Christian Spieler and Cosmin Truta, Mar-2003.
# Last updated: Mar 2012.
# Tested under Cygwin and MinGW.

# Copyright (C) 1995-2003 Jean-loup Gailly.
# For conditions of distribution and use, see copyright notice in zlib.h

# To compile, or to compile and test, type from the top level zlib directory:
#
#   make -fwin32/Makefile.gcc;  make test testdll -fwin32/Makefile.gcc
#
# To use the asm code, type:
#   cp contrib/asm?86/match.S ./match.S
#   make LOC=-DASMV OBJA=match.o -fwin32/Makefile.gcc
#
# To install libz.a, zconf.h and zlib.h in the system directories, type:
#
#   make install -fwin32/Makefile.gcc
#
# BINARY_PATH, INCLUDE_PATH and LIBRARY_PATH must be set.
#
# To install the shared lib, append SHARED_MODE=1 to the make command :
#
#   make install -fwin32/Makefile.gcc SHARED_MODE=1

# Note:
# If the platform is *not* MinGW (e.g. it is Cygwin or UWIN),
# the DLL name should be changed from "zlib1.dll".

STATICLIB = libz.a
SHAREDLIB = zlib1.dll
IMPLIB    = libz.dll.a

#
# Set to 1 if shared object needs to be installed
#
SHARED_MODE=0

#LOC = -DASMV
#LOC = -DDEBUG -g

PREFIX =
CC = $(PREFIX)gcc
CFLAGS = $(LOC) -O3 -Wall

AS = $(CC)
ASFLAGS = $(LOC) -Wall

LD = $(CC)
LDFLAGS = $(LOC)

AR = $(PREFIX)ar
ARFLAGS = rcs

RC = $(PREFIX)windres
RCFLAGS = --define GCC_WINDRES

STRIP = $(PREFIX)strip

CP = cp -fp
# If GNU install is available, replace $(CP) with install.
INSTALL = $(CP)
RM = rm -f

prefix ?= /usr/local
exec_prefix = $(prefix)

OBJS = adler32.o compress.o crc32.o deflate.o gzclose.o gzlib.o gzread.o \
       gzwrite.o infback.o inffast.o inflate.o inftrees.o trees.o uncompr.o zutil.o
OBJA =

all: $(STATICLIB) $(SHAREDLIB) $(IMPLIB) example.exe minigzip.exe example_d.exe minigzip_d.exe

test: example.exe minigzip.exe
	./example
	echo hello world | ./minigzip | ./minigzip -d

testdll: example_d.exe minigzip_d.exe
	./example_d
	echo hello world | ./minigzip_d | ./minigzip_d -d

.c.o:
	$(CC) $(CFLAGS) -c -o $@ $<

.S.o:
	$(AS) $(ASFLAGS) -c -o $@ $<

$(STATICLIB): $(OBJS) $(OBJA)
	$(AR) $(ARFLAGS) $@ $(OBJS) $(OBJA)

$(IMPLIB): $(SHAREDLIB)

$(SHAREDLIB): win32/zlib.def $(OBJS) $(OBJA) zlibrc.o
	$(CC) -shared -Wl,--out-implib,$(IMPLIB) $(LDFLAGS) \
	-o $@ win32/zlib.def $(OBJS) $(OBJA) zlibrc.o
	$(STRIP) $@

example.exe: example.o $(STATICLIB)
	$(LD) $(LDFLAGS) -o $@ example.o $(STATICLIB)
	$(STRIP) $@

minigzip.exe: minigzip.o $(STATICLIB)
	$(LD) $(LDFLAGS) -o $@ minigzip.o $(STATICLIB)
	$(STRIP) $@

example_d.exe: example.o $(IMPLIB)
	$(LD) $(LDFLAGS) -o $@ example.o $(IMPLIB)
	$(STRIP) $@

minigzip_d.exe: minigzip.o $(IMPLIB)
	$(LD) $(LDFLAGS) -o $@ minigzip.o $(IMPLIB)
	$(STRIP) $@

example.o: test/example.c zlib.h zconf.h
	$(CC) $(CFLAGS) -I. -c -o $@ test/example.c

minigzip.o: test/minigzip.c zlib.h zconf.h
	$(CC) $(CFLAGS) -I. -c -o $@ test/minigzip.c

zlibrc.o: win32/zlib1.rc
	$(RC) $(RCFLAGS) -o $@ win32/zlib1.rc

.PHONY: install uninstall clean

install: zlib.h zconf.h $(STATICLIB) $(IMPLIB)
	@if test -z "$(DESTDIR)$(INCLUDE_PATH)" -o -z "$(DESTDIR)$(LIBRARY_PATH)" -o -z "$(DESTDIR)$(BINARY_PATH)"; then \
		echo INCLUDE_PATH, LIBRARY_PATH, and BINARY_PATH must be specified; \
		exit 1; \
	fi
	-@mkdir -p '$(DESTDIR)$(INCLUDE_PATH)'
	-@mkdir -p '$(DESTDIR)$(LIBRARY_PATH)' '$(DESTDIR)$(LIBRARY_PATH)'/pkgconfig
	-if [ "$(SHARED_MODE)" = "1" ]; then \
		mkdir -p '$(DESTDIR)$(BINARY_PATH)'; \
		$(INSTALL) $(SHAREDLIB) '$(DESTDIR)$(BINARY_PATH)'; \
		$(INSTALL) $(IMPLIB) '$(DESTDIR)$(LIBRARY_PATH)'; \
	fi
	-$(INSTALL) zlib.h '$(DESTDIR)$(INCLUDE_PATH)'
	-$(INSTALL) zconf.h '$(DESTDIR)$(INCLUDE_PATH)'
	-$(INSTALL) $(STATICLIB) '$(DESTDIR)$(LIBRARY_PATH)'
	sed \
		-e 's|@prefix@|${prefix}|g' \
		-e 's|@exec_prefix@|${exec_prefix}|g' \
		-e 's|@libdir@|$(LIBRARY_PATH)|g' \
		-e 's|@sharedlibdir@|$(LIBRARY_PATH)|g' \
		-e 's|@includedir@|$(INCLUDE_PATH)|g' \
		-e 's|@VERSION@|'`sed -n -e '/VERSION "/s/.*"\(.*\)".*/\1/p' zlib.h`'|g' \
		zlib.pc.in > '$(DESTDIR)$(LIBRARY_PATH)'/pkgconfig/zlib.pc

uninstall:
	-if [ "$(SHARED_MODE)" = "1" ]; then \
		$(RM) '$(DESTDIR)$(BINARY_PATH)'/$(SHAREDLIB); \
		$(RM) '$(DESTDIR)$(LIBRARY_PATH)'/$(IMPLIB); \
	fi
	-$(RM) '$(DESTDIR)$(INCLUDE_PATH)'/zlib.h
	-$(RM) '$(DESTDIR)$(INCLUDE_PATH)'/zconf.h
	-$(RM) '$(DESTDIR)$(LIBRARY_PATH)'/$(STATICLIB)

clean:
	-$(RM) $(STATICLIB)
	-$(RM) $(SHAREDLIB)
	-$(RM) $(IMPLIB)
	-$(RM) *.o
	-$(RM) *.exe
	-$(RM) foo.gz

adler32.o: zlib.h zconf.h
compress.o: zlib.h zconf.h
crc32.o: crc32.h zlib.h zconf.h
deflate.o: deflate.h zutil.h zlib.h zconf.h
gzclose.o: zlib.h zconf.h gzguts.h
gzlib.o: zlib.h zconf.h gzguts.h
gzread.o: zlib.h zconf.h gzguts.h
gzwrite.o: zlib.h zconf.h gzguts.h
inffast.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h
inflate.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h
infback.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h
inftrees.o: zutil.h zlib.h zconf.h inftrees.h
trees.o: deflate.h zutil.h zlib.h zconf.h trees.h
uncompr.o: zlib.h zconf.h
zutil.o: zutil.h zlib.h zconf.h

from flate2-rs.

imkow avatar imkow commented on August 19, 2024

sorry, I don't really familiar with Makefile

from flate2-rs.

alexcrichton avatar alexcrichton commented on August 19, 2024

Unfortunately nothing there looks out of place, so I'm not sure what's going on :(

from flate2-rs.

dd10-e avatar dd10-e commented on August 19, 2024

Hello, i have a similar error so i don't open a new issue but it's the version 0.1.9.
Before that, i had another error now resolve (gcc error because i had not path) but now it's that :

I'm on Windows 10 64 bit with Rust 1.19 version. I have already re-installed Rust if some folders were corrupted, pray for the lord..but nothing :(

C:\Labo\game\project>cargo build --verbose
       Fresh atom v0.3.4
       Fresh wavefront_obj v5.1.0
       Fresh khronos_api v1.0.1
       Fresh yaml-rust v0.3.5
       Fresh winapi v0.2.8
       Fresh bitflags v0.7.0
       Fresh num-traits v0.1.40
       Fresh rustc-serialize v0.3.24
       Fresh tuple_utils v0.2.0
       Fresh libc v0.2.29
       Fresh gcc v0.3.52
       Fresh dds-rs v0.4.0
       Fresh log v0.3.8
       Fresh approx v0.1.1
       Fresh bitflags v0.6.0
       Fresh winapi-build v0.1.1
       Fresh mopa v0.2.2
       Fresh fnv v1.0.5
       Fresh lazy_static v0.2.8
       Fresh bitflags v0.9.1
       Fresh amethyst_config v0.2.2
       Fresh dxguid-sys v0.2.0
       Fresh rand v0.3.16
       Fresh num_cpus v1.6.2
       Fresh ticketed_lock v0.1.0
       Fresh draw_state v0.6.0
       Fresh shared_library v0.1.7
       Fresh xml-rs v0.6.1
       Fresh cgmath v0.14.1
       Fresh cgmath v0.12.0
       Fresh threadpool v1.6.0
   Compiling miniz-sys v0.1.9
       Fresh gdi32-sys v0.1.1
       Fresh gfx_core v0.6.1
       Fresh gfx_core v0.5.1
     Running `C:\Labo\game\project\target\debug\build\miniz-sys-1287bc9248128485\build-script-build`
       Fresh gl_generator v0.5.5
       Fresh genmesh v0.4.3
       Fresh gfx v0.14.1
       Fresh user32-sys v0.1.2
       Fresh d3dcompiler-sys v0.2.0
       Fresh kernel32-sys v0.2.2
       Fresh dwmapi-sys v0.1.0
       Fresh d3d11-sys v0.2.0
       Fresh shell32-sys v0.1.1
       Fresh time v0.1.38
       Fresh gfx_device_dx11 v0.4.0
       Fresh winit v0.5.11
   Compiling pulse v0.5.3
   Compiling gfx_window_dxgi v0.5.0
     Running `rustc --crate-name pulse C:\Users\Eloha\.cargo\registry\src\github.com-1ecc6299db9ec823\pulse-0.5.3\src\lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 --cfg "feature=\"default\"" -C m
etadata=3d12a8e65c22d6ad -C extra-filename=-3d12a8e65c22d6ad --out-dir C:\Labo\game\project\target\debug\deps -L dependency=C:\Labo\game\project\target\debug\deps --extern time=C:\Labo\game\project\target\debug
\deps\libtime-18fd3310be5880e2.rlib --extern atom=C:\Labo\game\project\target\debug\deps\libatom-6993034f9aeb12f8.rlib --cap-lints allow`
     Running `rustc --crate-name gfx_window_dxgi C:\Users\Eloha\.cargo\registry\src\github.com-1ecc6299db9ec823\gfx_window_dxgi-0.5.0\src\lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=
a2de43480c5d3c04 -C extra-filename=-a2de43480c5d3c04 --out-dir C:\Labo\game\project\target\debug\deps -L dependency=C:\Labo\game\project\target\debug\deps --extern gfx_device_dx11=C:\Labo\game\project\target\de
bug\deps\libgfx_device_dx11-0d72881b55122261.rlib --extern user32=C:\Labo\game\project\target\debug\deps\libuser32-5c3ba62ad227ce7a.rlib --extern winapi=C:\Labo\game\project\target\debug\deps\libwinapi-d2d55d90
e8a53eb5.rlib --extern kernel32=C:\Labo\game\project\target\debug\deps\libkernel32-da3b056d61fbc3c5.rlib --extern gfx_core=C:\Labo\game\project\target\debug\deps\libgfx_core-b57f6849f315234d.rlib --extern log=C
:\Labo\game\project\target\debug\deps\liblog-8b1f3a950ed94a3f.rlib --extern winit=C:\Labo\game\project\target\debug\deps\libwinit-9156ed7f6fd58167.rlib --cap-lints allow`
   Compiling glutin v0.7.4
     Running `rustc --crate-name glutin C:\Users\Eloha\.cargo\registry\src\github.com-1ecc6299db9ec823\glutin-0.7.4\src\lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=fd3acc952ca8c57e -
C extra-filename=-fd3acc952ca8c57e --out-dir C:\Labo\game\project\target\debug\deps -L dependency=C:\Labo\game\project\target\debug\deps --extern lazy_static=C:\Labo\game\project\target\debug\deps\liblazy_stati
c-74207d32630f5211.rlib --extern gdi32=C:\Labo\game\project\target\debug\deps\libgdi32-08e56f9bd87be0ad.rlib --extern libc=C:\Labo\game\project\target\debug\deps\liblibc-5e64d04281151e03.rlib --extern kernel32=
C:\Labo\game\project\target\debug\deps\libkernel32-da3b056d61fbc3c5.rlib --extern dwmapi=C:\Labo\game\project\target\debug\deps\libdwmapi-b25207f6eb080da9.rlib --extern user32=C:\Labo\game\project\target\debug\
deps\libuser32-5c3ba62ad227ce7a.rlib --extern shell32=C:\Labo\game\project\target\debug\deps\libshell32-2e3d8249b3d340f0.rlib --extern shared_library=C:\Labo\game\project\target\debug\deps\libshared_library-e1f
cbba07651d538.rlib --extern winit=C:\Labo\game\project\target\debug\deps\libwinit-9156ed7f6fd58167.rlib --extern winapi=C:\Labo\game\project\target\debug\deps\libwinapi-d2d55d90e8a53eb5.rlib --cap-lints allow`
error: failed to run custom build command for `miniz-sys v0.1.9`
process didn't exit successfully: `C:\Labo\game\project\target\debug\build\miniz-sys-1287bc9248128485\build-script-build` (exit code: 101)
--- stdout
TARGET = Some("x86_64-pc-windows-msvc")
OPT_LEVEL = Some("0")
TARGET = Some("x86_64-pc-windows-msvc")
HOST = Some("x86_64-pc-windows-msvc")
TARGET = Some("x86_64-pc-windows-msvc")
TARGET = Some("x86_64-pc-windows-msvc")
HOST = Some("x86_64-pc-windows-msvc")
CC_x86_64-pc-windows-msvc = None
CC_x86_64_pc_windows_msvc = None
HOST_CC = None
CC = Some("gcc")
TARGET = Some("x86_64-pc-windows-msvc")
HOST = Some("x86_64-pc-windows-msvc")
CFLAGS_x86_64-pc-windows-msvc = None
CFLAGS_x86_64_pc_windows_msvc = None
HOST_CFLAGS = None
CFLAGS = None
DEBUG = Some("true")
running: "gcc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-m64" "-Wall" "-Wextra" "/FoC:\\Labo\\game\\project\\target\\debug\\build\\miniz-sys-a4dd185a340d98fd\\out\\miniz.o" "/c" "miniz.c"
cargo:warning=gcc: error: /FoC:\Labo\game\project\target\debug\build\miniz-sys-a4dd185a340d98fd\out\miniz.o: Invalid argument
cargo:warning=gcc: error: /c: No such file or directory
exit code: 1

--- stderr
thread 'main' panicked at '

Internal error occurred: Command "gcc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-m64" "-Wall" "-Wextra" "/FoC:\\Labo\\game\\project\\target\\debug\\build\\miniz-sys-a4dd185a340d98fd\\out\\min
iz.o" "/c" "miniz.c" with args "gcc" did not execute successfully (status code exit code: 1).

', C:\Users\Eloha\.cargo\registry\src\github.com-1ecc6299db9ec823\gcc-0.3.52\src\lib.rs:1654:4
note: Run with `RUST_BACKTRACE=1` for a backtrace.

warning: build failed, waiting for other jobs to finish...
error: build failed

I think it's always a path configuration problem but i don't understand why ? 🤔

from flate2-rs.

alexcrichton avatar alexcrichton commented on August 19, 2024

It looks like you've got a CC environment variable pointing to gcc when you're compiling for msvc?

from flate2-rs.

dd10-e avatar dd10-e commented on August 19, 2024

Indeed, it is a big mistake! So I changed and added a new path for "Windows Kits" because I had another error, otherwise ^^

But now i have that :

C:\Labo\game\project>cargo build --verbose
       Fresh bitflags v0.9.1
       Fresh bitflags v0.7.0
       Fresh lazy_static v0.2.8
       Fresh num-traits v0.1.40
       Fresh gcc v0.3.52
       Fresh approx v0.1.1
       Fresh libc v0.2.29
       Fresh tuple_utils v0.2.0
       Fresh rustc-serialize v0.3.24
       Fresh winapi v0.2.8
       Fresh winapi-build v0.1.1
       Fresh wavefront_obj v5.1.0
       Fresh bitflags v0.6.0
       Fresh dds-rs v0.4.0
       Fresh yaml-rust v0.3.5
       Fresh fnv v1.0.5
       Fresh khronos_api v1.0.1
       Fresh atom v0.3.4
       Fresh log v0.3.8
       Fresh mopa v0.2.2
       Fresh xml-rs v0.6.1
       Fresh rand v0.3.16
       Fresh shared_library v0.1.7
       Fresh num_cpus v1.6.2
       Fresh dxguid-sys v0.2.0
       Fresh draw_state v0.6.0
       Fresh amethyst_config v0.2.2
       Fresh ticketed_lock v0.1.0
       Fresh gl_generator v0.5.5
   Compiling miniz-sys v0.1.9
       Fresh cgmath v0.12.0
     Running `C:\Labo\game\project\target\debug\build\miniz-sys-25a5baa46425d94f\build-script-build`
       Fresh cgmath v0.14.1
       Fresh threadpool v1.6.0
       Fresh gfx_core v0.6.1
       Fresh gfx_core v0.5.1
       Fresh gdi32-sys v0.1.1
       Fresh genmesh v0.4.3
       Fresh d3d11-sys v0.2.0
       Fresh shell32-sys v0.1.1
       Fresh d3dcompiler-sys v0.2.0
       Fresh kernel32-sys v0.2.2
       Fresh user32-sys v0.1.2
       Fresh dwmapi-sys v0.1.0
       Fresh gfx v0.14.1
       Fresh gfx_device_dx11 v0.4.0
       Fresh time v0.1.38
       Fresh winit v0.5.11
       Fresh gfx_gl v0.3.1
       Fresh pulse v0.5.3
       Fresh glutin v0.7.4
       Fresh gfx_window_dxgi v0.5.0
       Fresh gfx_device_gl v0.13.1
       Fresh specs v0.8.1
       Fresh gfx_window_glutin v0.14.0
       Fresh amethyst_renderer v0.4.3
error: failed to run custom build command for `miniz-sys v0.1.9`
process didn't exit successfully: `C:\Labo\game\project\target\debug\build\miniz-sys-25a5baa46425d94f\build-script-build` (exit code: 101)
--- stderr
thread 'main' panicked at '

Internal error occurred: Command "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\bin\\cl.exe" "/nologo" "/MD" "/Z7" "/Wall" "/FoC:\\Labo\\game\\project\\target\\debug\\build\\miniz-sys-8f4165b9a9fd69e6\\out\\miniz.o" "/c" "miniz.c" with args "cl.exe" did not execute successfully (status code exit code: 2).

', C:\Users\Eloha\.cargo\registry\src\github.com-1ecc6299db9ec823\gcc-0.3.52\src\lib.rs:1654
note: Run with `RUST_BACKTRACE=1` for a backtrace.

If you can to tell me a track it would be great.
And thanks for your comment, it unblocked me =)

from flate2-rs.

alexcrichton avatar alexcrichton commented on August 19, 2024

If you're compiling for MSVC you in theory shouldn't have to configure anything unless you're in a very nonstandard situation, so in theory if you just do this sort of a build from a "raw" shell it'd work out?

from flate2-rs.

dd10-e avatar dd10-e commented on August 19, 2024

After some invistigation, my last error is

error: linking with `link.exe` failed: exit code: 1120
  |
  = note: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.11.25503\\bin\\HostX64\\x64\\link.exe" "/NOLOGO" "/NXCOMPAT" "/LIBPATH:C:\\Users\\Eloha\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib" "C:\\Labo\\game\\project\\target\\debug\\deps\\pong-358b8e91598066c5.0.o" "/OUT:C:\\Labo\\game\\project\\target\\debug\\deps\\pong-358b8e91598066c5.exe" "/OPT:REF,NOICF" "/DEBUG" "/LIBPATH:C:\\Labo\\game\\project\\target\\debug\\deps" "/LIBPATH:C:\\Labo\\game\\project\\target\\debug\\build\\miniz-sys-8f4165b9a9fd69e6\\out" "/LIBPATH:C:\\Users\\Eloha\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib" "C:\\Labo\\game\\project\\target\\debug\\deps\\libamethyst-331c4c6b22d1f6b3.rlib" "C:\\Labo\\game\\project\\target\\debug\\deps\\libamethyst_renderer-2fdc9d2fac9e45da.rlib" "C:\\Labo\\game\\project\\target\\debug\\deps\\libspecs-3d839b6df8390767.rlib" "C:\\Labo\\game\\project\\target\\debug\\deps\\libfnv-37f7ef401854b3d5.rlib" "C:\\Labo\\game\\project\\target\\debug\\deps\\libtuple_utils-8902995483ad8d9c.rlib" "C:\\Labo\\game\\project\\target\\debug\\deps\\libdds-ab760e497aaeb047.rlib" "C:\\Labo\\game\\project\\target\\debug\\deps\\libimagefmt-ca817f0158e2daf1.rlib" "C:\\Labo\\game\\project\\target\\debug\\deps\\libwavefront_obj-d22152b15eb1945c.rlib" "C:\\Labo\\game\\project\\target\\debug\\deps\\libpulse-9b25f87ef3786512.rlib" "C:\\Labo\\game\\project\\target\\debug\\deps\\libatom-2d4a52c4cccf016c.rlib" "C:\\Labo\\game\\project\\target\\debug\\deps\\libthreadpool-2907e0dab84a3522.rlib" "C:\\Labo\\game\\project\\target\\debug\\deps\\libnum_cpus-70d2586ed8190be3.rlib" "C:\\Labo\\game\\project\\target\\debug\\deps\\libamethyst_config-df389ac37dfbc3f5.rlib" "C:\\Labo\\game\\project\\target\\debug\\deps\\libyaml_rust-4a1f49a8ca0590e8.rlib" "C:\\Labo\\game\\project\\target\\debug\\deps\\libcgmath-59a3bc80563165f5.rlib" "C:\\Labo\\game\\project\\target\\debug\\deps\\librustc_serialize-07daa0fc98cd1a5d.rlib" "C:\\Labo\\game\\project\\target\\debug\\deps\\libmopa-1301f02925535b3c.rlib" "C:\\Labo\\game\\project\\target\\debug\\deps\\libtime-d5d97a61349fc9f9.rlib" "C:\\Labo\\game\\project\\target\\debug\\deps\\libticketed_lock-e8ab89d72456c2c4.rlib" "C:\\Labo\\game\\project\\target\\debug\\deps\\libgfx-ecd0dc04ffa2cafd.rlib" "C:\\Labo\\game\\project\\target\\debug\\deps\\libgfx_window_glutin-a902971668771201.rlib" "C:\\Labo\\game\\project\\target\\debug\\deps\\libglutin-67ffec19ef8c8d52.rlib" "C:\\Labo\\game\\project\\target\\debug\\deps\\libwinit-598f5e7b664f91a4.rlib" "C:\\Labo\\game\\project\\target\\debug\\deps\\libdwmapi-5336e64dde6257a2.rlib" "C:\\Labo\\game\\project\\target\\debug\\deps\\libuser32-ce7a7277d9eb3b36.rlib" "C:\\Labo\\game\\project\\target\\debug\\deps\\libgdi32-5a55603db5992e76.rlib" "C:\\Labo\\game\\project\\target\\debug\\deps\\libshell32-7b395f8fe6ea9d5d.rlib" "C:\\Labo\\game\\project\\target\\debug\\deps\\libkernel32-dcab7e771842809c.rlib" "C:\\Labo\\game\\project\\target\\debug\\deps\\libwinapi-c9e3d8cc042f1bae.rlib" "C:\\Labo\\game\\project\\target\\debug\\deps\\libshared_library-b9d0a0406ef55fa0.rlib" "C:\\Labo\\game\\project\\target\\debug\\deps\\liblazy_static-13db7e087bc7e4b6.rlib" "C:\\Labo\\game\\project\\target\\debug\\deps\\libgfx_device_gl-b89d36621b9b4b82.rlib" "C:\\Labo\\game\\project\\target\\debug\\deps\\libgfx_gl-7a1bb21fb05632f7.rlib" "C:\\Labo\\game\\project\\target\\debug\\deps\\libgfx_core-8c70875e68dd1ebc.rlib" "C:\\Labo\\game\\project\\target\\debug\\deps\\libdraw_state-113238fcee306acb.rlib" "C:\\Labo\\game\\project\\target\\debug\\deps\\libbitflags-43a5418df0dd14f6.rlib" "C:\\Labo\\game\\project\\target\\debug\\deps\\liblog-6612fbeeda6ae6c2.rlib" "C:\\Labo\\game\\project\\target\\debug\\deps\\libbitflags-626150439a190529.rlib" "C:\\Labo\\game\\project\\target\\debug\\deps\\libgenmesh-fa579256579e9503.rlib" "C:\\Labo\\game\\project\\target\\debug\\deps\\libcgmath-f6f0ea514f49de49.rlib" "C:\\Labo\\game\\project\\target\\debug\\deps\\librand-a572d46009fcdc92.rlib" "C:\\Labo\\game\\project\\target\\debug\\deps\\libnum_traits-2ab8385458bc0c23.rlib" "C:\\Labo\\game\\project\\target\\debug\\deps\\libapprox-5ff0753850cc42d1.rlib" "C:\\Labo\\game\\project\\target\\debug\\deps\\libflate2-601a05ebd75675df.rlib" "C:\\Labo\\game\\project\\target\\debug\\deps\\libminiz_sys-b0ea7fa242f77ef9.rlib" "C:\\Labo\\game\\project\\target\\debug\\deps\\liblibc-275c4a96a27a8a7e.rlib" "C:\\Users\\Eloha\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libstd-26aaf8685d64fee9.rlib" "C:\\Users\\Eloha\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libpanic_unwind-14e8bb7ca07ebf2c.rlib" "C:\\Users\\Eloha\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libunwind-a4bc20050f473f79.rlib" "C:\\Users\\Eloha\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\liblibc-892bd58ec617c3bd.rlib" "C:\\Users\\Eloha\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librand-ce86047000b56785.rlib" "C:\\Users\\Eloha\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcollections-b8b9a576d130e244.rlib" "C:\\Users\\Eloha\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\liballoc-b9c9173c47c20c41.rlib" "C:\\Users\\Eloha\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\liballoc_system-141f235246f01712.rlib" "C:\\Users\\Eloha\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libstd_unicode-9fbe5d3bbc85c563.rlib" "C:\\Users\\Eloha\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcore-3a6338503b91076c.rlib" "C:\\Users\\Eloha\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcompiler_builtins-e9e280acad4314a4.rlib" "opengl32.lib" "dwmapi.lib" "user32.lib" "gdi32.lib" "shell32.lib" "kernel32.lib" "advapi32.lib" "advapi32.lib" "ws2_32.lib" "userenv.lib" "shell32.lib" "msvcrt.lib"
  = note: libflate2-601a05ebd75675df.rlib(flate2-601a05ebd75675df.0.o) : error LNK2019: unresolved external symbol mz_crc32 referenced in function _ZN6flate23crc3Crc6update17h7c640f9c7243ff25E
          libflate2-601a05ebd75675df.rlib(flate2-601a05ebd75675df.0.o) : error LNK2019: unresolved external symbol mz_deflateInit2 referenced in function _ZN6flate23mem8Compress3new17h70e5ca19b90a3404E
          libflate2-601a05ebd75675df.rlib(flate2-601a05ebd75675df.0.o) : error LNK2019: unresolved external symbol mz_deflateReset referenced in function _ZN6flate23mem8Compress5reset17hdaf168e965f3f219E
          libflate2-601a05ebd75675df.rlib(flate2-601a05ebd75675df.0.o) : error LNK2019: unresolved external symbol mz_deflate referenced in function _ZN6flate23mem8Compress8compress17he060da7536e5fd25E
          libflate2-601a05ebd75675df.rlib(flate2-601a05ebd75675df.0.o) : error LNK2019: unresolved external symbol mz_inflateInit2 referenced in function _ZN6flate23mem10Decompress3new17h94c8d22dec19fb01E
          libflate2-601a05ebd75675df.rlib(flate2-601a05ebd75675df.0.o) : error LNK2019: unresolved external symbol mz_inflate referenced in function _ZN6flate23mem10Decompress10decompress17hc12614621b8f8919E
          libflate2-601a05ebd75675df.rlib(flate2-601a05ebd75675df.0.o) : error LNK2019: unresolved external symbol mz_deflateEnd referenced in function _ZN67_$LT$flate2..mem..DirCompress$u20$as$u20$flate2..mem..Direction$GT$7destroy17h5ce896b658361ebeE
          libflate2-601a05ebd75675df.rlib(flate2-601a05ebd75675df.0.o) : error LNK2019: unresolved external symbol mz_inflateEnd referenced in function _ZN69_$LT$flate2..mem..DirDecompress$u20$as$u20$flate2..mem..Direction$GT$7destroy17hfa310bf0c330eae2E
          C:\Labo\game\project\target\debug\deps\libminiz_sys-b0ea7fa242f77ef9.rlib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
          C:\Labo\game\project\target\debug\deps\pong-358b8e91598066c5.exe : fatal error LNK1120: 8 unresolved externals

I don't understand why i have this while i have rustc 1.19.0 (0ade33941 2017-07-17). I thought that was resolved in this version ? =/

It's like this problem i believe : #132
Is it scpecific to the crate ?

PS : I thin my configuration is clean because i have reinstate MSVC 2017 in the meantime (and windows 10)

from flate2-rs.

dd10-e avatar dd10-e commented on August 19, 2024

Error resolved !
I don't know why exactly but it's resolved. I think it was resolved when i have update the nightly toolchain.

Thank you for your help @alexcrichton !

from flate2-rs.

alexcrichton avatar alexcrichton commented on August 19, 2024

I'm going to close this for now, but feel free to open any more issues if they come up!

from flate2-rs.

AraHaan avatar AraHaan commented on August 19, 2024

I smell zlib somehow used in this project because of the symbols above not able to be found and then later fixed.

from flate2-rs.

Canoir avatar Canoir commented on August 19, 2024

I have the same issue there...
Compiling gmp-mpfr-sys v1.4.3 error: failed to run custom build command forgmp-mpfr-sys v1.4.3`

Caused by:
process didn't exit successfully: C:\Users\amirv\Desktop\Development\Rust\BigIntegers\target\debug\build\gmp-mpfr-sys-205d87a5b0 a55617\build-script-build (exit code: 101)
--- stdout
cargo:rerun-if-env-changed=GMP_MPFR_SYS_CACHE
$ mkdir -p "C:\Users\amirv\Desktop\Development\Rust\BigIntegers\target\debug\build\gmp-mpfr-sys-b74624f6d6d6a543\out\
try_external_doc"
$ cd "C:\Users\amirv\Desktop\Development\Rust\BigIntegers\target\debug\build\gmp-mpfr-sys-b74624f6d6d6a543\out\try_ex
ternal_doc"
$ printf '%s' "// try_ext"... > "C:\Users\amirv\Desktop\Development\Rust\BigIntegers\target\debug\build\gmp-mpfr-sys-b7
4624f6d6d6a543\out\try_external_doc\try_external_doc.rs"
$ "rustc" "try_external_doc.rs" "--emit=dep-info,metadata" >& /dev/null
$ printf '%s' "#![feature"... > "C:\Users\amirv\Desktop\Development\Rust\BigIntegers\target\debug\build\gmp-mpfr-sys-b7
4624f6d6d6a543\out\try_external_doc\try_external_doc.rs"
$ "rustc" "try_external_doc.rs" "--emit=dep-info,metadata" >& /dev/null
$ rm -r "C:\Users\amirv\Desktop\Development\Rust\BigIntegers\target\debug\build\gmp-mpfr-sys-b74624f6d6d6a543\out\try
_external_doc"
$ mkdir -p "C:\Users\amirv\Desktop\Development\Rust\BigIntegers\target\debug\build\gmp-mpfr-sys-b74624f6d6d6a543\out\
lib"
$ mkdir -p "C:\Users\amirv\Desktop\Development\Rust\BigIntegers\target\debug\build\gmp-mpfr-sys-b74624f6d6d6a543\out\
include"

--- stderr
thread 'main' panicked at 'Windows MSVC target is not supported (linking would fail)', C:\Users\amirv.cargo\registry\src\github.
com-1ecc6299db9ec823\gmp-mpfr-sys-1.4.3\build.rs:1041:9
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

`

from flate2-rs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.