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

Incoming build fails on Windows 7 with i686-pc-mingw32 #6382

Closed
thadguidry opened this issue May 10, 2013 · 5 comments
Closed

Incoming build fails on Windows 7 with i686-pc-mingw32 #6382

thadguidry opened this issue May 10, 2013 · 5 comments
Labels
O-windows Operating system: Windows

Comments

@thadguidry
Copy link
Contributor

-I/home/Thad/rust/src/libuv/include/uv-private  -c -o /home/Thad/rust/src/libuv/
src/win/timer.o /home/Thad/rust/src/libuv/src/win/timer.c
gcc -I/home/Thad/rust/src/libuv/include -I/home/Thad/rust/src/libuv/include/uv-p
rivate -g --std=gnu89 -D_WIN32_WINNT=0x0600 -I/home/Thad/rust/src/libuv/include
-I/home/Thad/rust/src/libuv/include/uv-private  -c -o /home/Thad/rust/src/libuv/
src/win/tty.o /home/Thad/rust/src/libuv/src/win/tty.c
gcc -I/home/Thad/rust/src/libuv/include -I/home/Thad/rust/src/libuv/include/uv-p
rivate -g --std=gnu89 -D_WIN32_WINNT=0x0600 -I/home/Thad/rust/src/libuv/include
-I/home/Thad/rust/src/libuv/include/uv-private  -c -o /home/Thad/rust/src/libuv/
src/win/udp.o /home/Thad/rust/src/libuv/src/win/udp.c
gcc -I/home/Thad/rust/src/libuv/include -I/home/Thad/rust/src/libuv/include/uv-p
rivate -g --std=gnu89 -D_WIN32_WINNT=0x0600 -I/home/Thad/rust/src/libuv/include
-I/home/Thad/rust/src/libuv/include/uv-private  -c -o /home/Thad/rust/src/libuv/
src/win/util.o /home/Thad/rust/src/libuv/src/win/util.c
gcc -I/home/Thad/rust/src/libuv/include -I/home/Thad/rust/src/libuv/include/uv-p
rivate -g --std=gnu89 -D_WIN32_WINNT=0x0600 -I/home/Thad/rust/src/libuv/include
-I/home/Thad/rust/src/libuv/include/uv-private  -c -o /home/Thad/rust/src/libuv/
src/win/winapi.o /home/Thad/rust/src/libuv/src/win/winapi.c
gcc -I/home/Thad/rust/src/libuv/include -I/home/Thad/rust/src/libuv/include/uv-p
rivate -g --std=gnu89 -D_WIN32_WINNT=0x0600 -I/home/Thad/rust/src/libuv/include
-I/home/Thad/rust/src/libuv/include/uv-private  -c -o /home/Thad/rust/src/libuv/
src/win/winsock.o /home/Thad/rust/src/libuv/src/win/winsock.c
gcc -I/home/Thad/rust/src/libuv/include -I/home/Thad/rust/src/libuv/include/uv-p
rivate -g --std=gnu89 -D_WIN32_WINNT=0x0600 -c /home/Thad/rust/src/libuv/src/fs-
poll.c -o src/fs-poll.o
gcc -I/home/Thad/rust/src/libuv/include -I/home/Thad/rust/src/libuv/include/uv-p
rivate -g --std=gnu89 -D_WIN32_WINNT=0x0600 -c /home/Thad/rust/src/libuv/src/ine
t.c -o src/inet.o
gcc -I/home/Thad/rust/src/libuv/include -I/home/Thad/rust/src/libuv/include/uv-p
rivate -g --std=gnu89 -D_WIN32_WINNT=0x0600 -c /home/Thad/rust/src/libuv/src/uv-
common.c -o src/uv-common.o
ar rcs libuv.a /home/Thad/rust/src/libuv/src/win/async.o /home/Thad/rust/src/lib
uv/src/win/core.o /home/Thad/rust/src/libuv/src/win/dl.o /home/Thad/rust/src/lib
uv/src/win/error.o /home/Thad/rust/src/libuv/src/win/fs-event.o /home/Thad/rust/
src/libuv/src/win/fs.o /home/Thad/rust/src/libuv/src/win/getaddrinfo.o /home/Tha
d/rust/src/libuv/src/win/handle.o /home/Thad/rust/src/libuv/src/win/loop-watcher
.o /home/Thad/rust/src/libuv/src/win/pipe.o /home/Thad/rust/src/libuv/src/win/po
ll.o /home/Thad/rust/src/libuv/src/win/process-stdio.o /home/Thad/rust/src/libuv
/src/win/process.o /home/Thad/rust/src/libuv/src/win/req.o /home/Thad/rust/src/l
ibuv/src/win/signal.o /home/Thad/rust/src/libuv/src/win/stream.o /home/Thad/rust
/src/libuv/src/win/tcp.o /home/Thad/rust/src/libuv/src/win/thread.o /home/Thad/r
ust/src/libuv/src/win/threadpool.o /home/Thad/rust/src/libuv/src/win/timer.o /ho
me/Thad/rust/src/libuv/src/win/tty.o /home/Thad/rust/src/libuv/src/win/udp.o /ho
me/Thad/rust/src/libuv/src/win/util.o /home/Thad/rust/src/libuv/src/win/winapi.o
 /home/Thad/rust/src/libuv/src/win/winsock.o src/fs-poll.o src/inet.o src/uv-com
mon.o
make[2]: Leaving directory `/home/Thad/rust/rt/i686-pc-mingw32/libuv'
make[1]: Leaving directory `/home/Thad/rust/src/libuv'
link: rt/i686-pc-mingw32/rustrt.dll
rt/rustrt.mingw32.def:2: Warning: path components stripped from LIBRARY, 'rt/rus
trt'
cp: i686-pc-mingw32/stage0/bin/rustc/i686-pc-mingw32/bin/rustrt.dll
compile: rt/i686-pc-mingw32/arch/i386/morestack.o
link: rt/i686-pc-mingw32/arch/i386/libmorestack.a
cp: i686-pc-mingw32/stage0/bin/rustc/i686-pc-mingw32/bin/libmorestack.a
compile_and_link: i686-pc-mingw32/stage0/bin/rustc/i686-pc-mingw32/bin/core.dll
C:\MinGW\msys\1.0\home\Thad\rust\src\libcore\os.rs:34:4: 34:11 warning: unused i
mport
C:\MinGW\msys\1.0\home\Thad\rust\src\libcore\os.rs:34 use option;
                                                          ^~~~~~~
C:\MinGW\msys\1.0\home\Thad\rust\src\libcore\os.rs:174:16: 174:52 warning: unuse
d import
C:\MinGW\msys\1.0\home\Thad\rust\src\libcore\os.rs:174             use libc::typ
es::os::arch::extra::LPTCH;
                                                                       ^~~~~~~~~

C:\MinGW\msys\1.0\home\Thad\rust\src\libcore\os.rs:707:16: 707:70 warning: unuse
d import
C:\MinGW\msys\1.0\home\Thad\rust\src\libcore\os.rs:707 use libc::typ
es::os::arch::extra::{LPCTSTR, HANDLE, BOOL};
^~~~~~~~~

C:\MinGW\msys\1.0\home\Thad\rust\src\libcore\flate.rs:19:4: 19:8 warning: unused
 import
C:\MinGW\msys\1.0\home\Thad\rust\src\libcore\flate.rs:19 use ptr;
                                                             ^~~~
C:\MinGW\msys\1.0\home\Thad\rust\src\libcore\cast.rs:13:4: 13:8 warning: unused
import
C:\MinGW\msys\1.0\home\Thad\rust\src\libcore\cast.rs:13 use sys;
                                                            ^~~~
C:\MinGW\msys\1.0\home\Thad\rust\src\libcore\cast.rs:14:4: 14:13 warning: unused
 import
C:\MinGW\msys\1.0\home\Thad\rust\src\libcore\cast.rs:14 use unstable;
                                                            ^~~~~~~~~
compile_and_link: i686-pc-mingw32/stage0/bin/rustc/i686-pc-mingw32/bin/std.dll
C:\MinGW\msys\1.0\home\Thad\rust\src\libstd\ebml.rs:630:20: 630:38 warning: comp
arison is useless due to type limits
C:\MinGW\msys\1.0\home\Thad\rust\src\libstd\ebml.rs:630             assert!(v <=
 0xFFFF_FFFF_u);
                                                                            ^~~~

:59:4: 70:5 note: in expansion of assert!
C:\MinGW\msys\1.0\home\Thad\rust\src\libstd\ebml.rs:630:12: 630:40 note: expansi
on site
compile_and_link: i686-pc-mingw32/stage0/bin/rustc/i686-pc-mingw32/bin/syntax.dl
l
C:\MinGW\msys\1.0\home\Thad\rust\src\libsyntax\parse\parser.rs:941:37: 941:40 wa
rning: unused variable: id
C:\MinGW\msys\1.0\home\Thad\rust\src\libsyntax\parse\parser.rs:941
token::IDENT(id,_) => {

                    ^~~

C:\MinGW\msys\1.0\home\Thad\rust\src\libsyntax\parse\parser.rs:3731:16: 3731:31
warning: unused variable: initial_attrs
C:\MinGW\msys\1.0\home\Thad\rust\src\libsyntax\parse\parser.rs:3731 let
mut initial_attrs = attrs_remaining;

^~~~~~~~~~~~~~~

compile: rustllvm/i686-pc-mingw32/RustWrapper.o
cc1plus.exe: warnings being treated as errors
In file included from C:/MinGW/msys/1.0/home/Thad/rust/src/rustllvm/RustWrapper.
cpp:43:0:
C:/MinGW/msys/1.0/home/Thad/rust/src/llvm/include/llvm/ExecutionEngine/JITMemory
Manager.h: In member function 'virtual bool llvm::JITMemoryManager::CheckInvaria
nts(std::string&)':
C:/MinGW/msys/1.0/home/Thad/rust/src/llvm/include/llvm/ExecutionEngine/JITMemory
Manager.h:139:3: error: visibility attribute not supported in this configuration
; ignored
make: *** [rustllvm/i686-pc-mingw32/RustWrapper.o] Error 1

Thad@Thad-Windows ~/rust
$


Using Mingw and GCC 4.5.2
@jdm
Copy link
Contributor

jdm commented May 10, 2013

To make it clear, this is the problem:

compile: rustllvm/i686-pc-mingw32/RustWrapper.o
cc1plus.exe: warnings being treated as errors
In file included from C:/MinGW/msys/1.0/home/Thad/rust/src/rustllvm/RustWrapper.
cpp:43:0:
C:/MinGW/msys/1.0/home/Thad/rust/src/llvm/include/llvm/ExecutionEngine/JITMemory
Manager.h: In member function 'virtual bool llvm::JITMemoryManager::CheckInvaria
nts(std::string&)':
C:/MinGW/msys/1.0/home/Thad/rust/src/llvm/include/llvm/ExecutionEngine/JITMemory
Manager.h:139:3: error: visibility attribute not supported in this configuration
; ignored
make: *** [rustllvm/i686-pc-mingw32/RustWrapper.o] Error 1

An easy workaround would be to turn off building RustWrapper.cpp with -Werror.

@jld
Copy link
Contributor

jld commented May 14, 2013

Or use -Wno-error=attributes, which should remove the errorness of just that warning.

(Disappointingly, -Wattributes seems to be undocumented — even by cc1's --help option — and I had to source-dive GCC to find where the warning is being emitted to discover it.)

@graydon
Copy link
Contributor

graydon commented Jul 25, 2013

Visiting for triage. What's going on here? Our buildhosts build i686 on windows. ccc version drift?

@thadguidry
Copy link
Contributor Author

This is resolved now for me on master. Please close.

@graydon
Copy link
Contributor

graydon commented Jul 25, 2013

Great, thanks for the update.

@graydon graydon closed this as completed Jul 25, 2013
flip1995 pushed a commit to flip1995/rust that referenced this issue Dec 20, 2020
…ins_when_const_fn, r=llogiq

Fix FP of `manual_range_contains` in `const fn`

Fix rust-lang#6373.

changelog: Fix FP of `manual_range_contains` in `const fn`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
O-windows Operating system: Windows
Projects
None yet
Development

No branches or pull requests

4 participants