Skip to content

Error running make check on Windows #15250

@schmee

Description

@schmee
Contributor

Following the new guide in the readme for building on Windows, I run into this error:

maketest: bootstrap-from-c-with-green
----- C:/msys64/home/John/programming/forks/rustmain/rust/src/test/run-make/bootstrap-from-c-with-green/ --------------------
------ stdout ---------------------------------------------
make[1]: Entering directory '/home/John/programming/forks/rustmain/rust/src/test/run-make/bootstrap-from-c-with-green'
PATH="/home/John/programming/forks/rustmain/rust/i686-pc-mingw32/test/run-make/bootstrap-from-c-with-green:C:/msys64/home/John/programming/forks/rustmain/rust/i686-pc-mingw32/stage2/bin:/mingw32/bin:/mingw32/bin:/usr/local/bin:/bin:/bin:/c/Ruby200/bin:/c/Windows/system32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0:/c/Program Files (x86)/Intel/OpenCL SDK/3.0/bin/x86:/c/Program Files (x86)/Intel/OpenCL SDK/3.0/bin/x64:/c/Python27:/c/Program Files/MATLAB/R2013a/runtime/win64:/c/Program Files/MATLAB/R2013a/bin:/c/Program Files (x86)/Git/bin:/c/Program Files (x86)/Git/cmd:/c/Python27/Scripts:/c/Program Files (x86)/ctags58:/c/Program Files (x86)/Rust/bin" C:/msys64/home/John/programming/forks/rustmain/rust/i686-pc-mingw32/stage2/bin/rustc.exe --out-dir /home/John/programming/forks/rustmain/rust/i686-pc-mingw32/test/run-make/bootstrap-from-c-with-green -L /home/John/programming/forks/rustmain/rust/i686-pc-mingw32/test/run-make/bootstrap-from-c-with-green lib.rs
ln -nsf /home/John/programming/forks/rustmain/rust/i686-pc-mingw32/test/run-make/bootstrap-from-c-with-green/boot-*.dll /home/John/programming/forks/rustmain/rust/i686-pc-mingw32/test/run-make/bootstrap-from-c-with-green/boot.dll
gcc -Wall -Werror -g -m32 -march=i686 -D_WIN32_WINNT=0x0600 -I/home/John/programming/forks/rustmain/rust/src/etc/mingw-fix-include  -L /home/John/programming/forks/rustmain/rust/i686-pc-mingw32/test/run-make/bootstrap-from-c-with-green main.c -o /home/John/programming/forks/rustmain/rust/i686-pc-mingw32/test/run-make/bootstrap-from-c-with-green/main  -lboot
PATH="/mingw32/bin:/mingw32/bin:/usr/local/bin:/bin:/bin:/c/Ruby200/bin:/c/Windows/system32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0:/c/Program Files (x86)/Intel/OpenCL SDK/3.0/bin/x86:/c/Program Files (x86)/Intel/OpenCL SDK/3.0/bin/x64:/c/Python27:/c/Program Files/MATLAB/R2013a/runtime/win64:/c/Program Files/MATLAB/R2013a/bin:/c/Program Files (x86)/Git/bin:/c/Program Files (x86)/Git/cmd:/c/Python27/Scripts:/c/Program Files (x86)/ctags58:/c/Program Files (x86)/Rust/bin:C:/msys64/home/John/programming/forks/rustmain/rust/i686-pc-mingw32/stage1/bin/rustlib/i686-pc-mingw32/lib:/home/John/programming/forks/rustmain/rust/i686-pc-mingw32/test/run-make/bootstrap-from-c-with-green" /home/John/programming/forks/rustmain/rust/i686-pc-mingw32/test/run-make/bootstrap-from-c-with-green/main
Makefile:8: recipe for target 'all' failed
make[1]: Leaving directory '/home/John/programming/forks/rustmain/rust/src/test/run-make/bootstrap-from-c-with-green'

------ stderr ---------------------------------------------
make[1]: *** [all] Error 127

------        ---------------------------------------------

/home/John/programming/forks/rustmain/rust/mk/tests.mk:990: recipe for target 'i686-pc-mingw32/test/run-make/bootstrap-from-c-with-green-2-T-i686-pc-mingw32-H-i686-pc-mingw32.ok' failed
make: *** [i686-pc-mingw32/test/run-make/bootstrap-from-c-with-green-2-T-i686-pc-mingw32-H-i686-pc-mingw32.ok] Error 2

cc @alexcrichton

Activity

added a commit that references this issue on Aug 23, 2014
7eb35bc
retep998

retep998 commented on Sep 5, 2014

@retep998
Member

This issue is NOT fixed. I just ran into it again using MSYS2 with a separately installed mingw-w64 on Windows 8.1 x64.

retep998@Peter-Desktop ~/rust
$ make check-fast
cfg: build triple x86_64-w64-mingw32
cfg: host triples x86_64-w64-mingw32
cfg: target triples x86_64-w64-mingw32
cfg: enabling more debugging (CFG_ENABLE_DEBUG)
cfg: host for x86_64-w64-mingw32 is x86_64
cfg: os for x86_64-w64-mingw32 is w64-mingw32
cfg: using CC=gcc (CFG_CC)
cfg: disabling valgrind due to its unreliability on this platform
/home/retep998/rust/mk/stage0.mk:7: warning: overriding recipe for target 'x86_64-w64-mingw32/stage0/bin/'
/home/retep998/rust/mk/stage0.mk:4: warning: ignoring old recipe for target 'x86_64-w64-mingw32/stage0/bin/'
cfg: no pdflatex found, deferring to xelatex
cfg: no xelatex found, deferring to lualatex
cfg: no lualatex found, disabling LaTeX docs
cfg: no pandoc found, omitting PDF and EPUB docs
cfg: no llnextgen found, omitting grammar-verification
cfg: including test rules
cfg: javac not available, skipping lexer test...
make: Circular /home/retep998/rust/src/libuv/libuv.a <- /home/retep998/rust/src/libuv/libuv.a dependency dropped.
maketest: bootstrap-from-c-with-green
----- /home/retep998/rust/src/test/run-make/bootstrap-from-c-with-green/ --------------------
------ stdout ---------------------------------------------
make[1]: Entering directory '/home/retep998/rust/src/test/run-make/bootstrap-from-c-with-green'
PATH="/home/retep998/rust/x86_64-w64-mingw32/test/run-make/bootstrap-from-c-with-green:/home/retep998/rust/x86_64-w64-mingw32/stage2/bin:/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/c/WINDOWS/system32:/c/WINDOWS:/a/rust64/bin:/a/mingw/mingw64/bin:/a/mingw/mingw64/opt/bin:/a/cmake/bin:/a/git/bin:/usr/bin/vendor_perl:/usr/bin/core_perl" /home/retep998/rust/x86_64-w64-mingw32/stage2/bin/rustc.exe --out-dir /home/retep998/rust/x86_64-w64-mingw32/test/run-make/bootstrap-from-c-with-green -L /home/retep998/rust/x86_64-w64-mingw32/test/run-make/bootstrap-from-c-with-green lib.rs
gcc -Wall -Werror -g -m64 -D_WIN32_WINNT=0x0600  -L /home/retep998/rust/x86_64-w64-mingw32/test/run-make/bootstrap-from-c-with-green main.c -o /home/retep998/rust/x86_64-w64-mingw32/test/run-make/bootstrap-from-c-with-green/main  -lboot
PATH="/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/c/WINDOWS/system32:/c/WINDOWS:/a/rust64/bin:/a/mingw/mingw64/bin:/a/mingw/mingw64/opt/bin:/a/cmake/bin:/a/git/bin:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/retep998/rust/x86_64-w64-mingw32/stage1/bin/rustlib/x86_64-w64-mingw32/lib:/home/retep998/rust/x86_64-w64-mingw32/test/run-make/bootstrap-from-c-with-green" /home/retep998/rust/x86_64-w64-mingw32/test/run-make/bootstrap-from-c-with-green/main
Makefile:8: recipe for target 'all' failed
make[1]: Leaving directory '/home/retep998/rust/src/test/run-make/bootstrap-from-c-with-green'

------ stderr ---------------------------------------------
make[1]: *** [all] Error 127

------        ---------------------------------------------

/home/retep998/rust/mk/tests.mk:1011: recipe for target 'x86_64-w64-mingw32/test/run-make/bootstrap-from-c-with-green-2-T-x86_64-w64-mingw32-H-x86_64-w64-mingw32.ok' failed
make: *** [x86_64-w64-mingw32/test/run-make/bootstrap-from-c-with-green-2-T-x86_64-w64-mingw32-H-x86_64-w64-mingw32.ok] Error 2

retep998@Peter-Desktop ~/rust
$
vadimcn

vadimcn commented on Oct 31, 2014

@vadimcn
Contributor

libgreen is gone now, so perhaps this is fixed?

retep998

retep998 commented on Jan 19, 2015

@retep998
Member

This was merely another case of #18733.

vadimcn

vadimcn commented on Feb 20, 2015

@vadimcn
Contributor

@huonw, @gankro: as mentioned above, this is a dupe. Please close.

added a commit that references this issue on Aug 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    O-windowsOperating system: Windows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @retep998@Gankra@huonw@sfackler@vadimcn

        Issue actions

          Error running `make check` on Windows · Issue #15250 · rust-lang/rust