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

libuv building causes a fatal error: uv.h: No such file or directory #6253

Closed
thadguidry opened this issue May 6, 2013 · 2 comments
Closed

Comments

@thadguidry
Copy link
Contributor

compile: rt/i686-w64-mingw32/arch/i386/_context.o
compile: rt/i686-w64-mingw32/arch/i386/ccall.o
compile: rt/i686-w64-mingw32/arch/i386/record_sp.o
def: rt/rustrt.mingw32.def
make[1]: Entering directory /home/Thad/rust/src/libuv' make -C /home/Thad/rust//rt/i686-w64-mingw32/libuv -f /home/Thad/rust/src/libuv/ Makefile \ SRCDIR=/home/Thad/rust/src/libuv builddir_name= make[2]: Entering directory/home/Thad/rust/rt/i686-w64-mingw32/libuv'
gcc -DRUST_NDEBUG -fno-omit-frame-pointer -O2 -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/async.o /home/Thad/rust/src/libuv/src/win/async.c
gcc -DRUST_NDEBUG -fno-omit-frame-pointer -O2 -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/core.o /home/Thad/rust/src/libuv/src/win/core.c
gcc -DRUST_NDEBUG -fno-omit-frame-pointer -O2 -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/dl.o /home/Thad/rust/src/libuv/src/win/dl.c
gcc -DRUST_NDEBUG -fno-omit-frame-pointer -O2 -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/error.o /home/Thad/rust/src/libuv/src/win/error.c
gcc -DRUST_NDEBUG -fno-omit-frame-pointer -O2 -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/fs-event.o /home/Thad/rust/src/libuv/src/win/fs-event.c
gcc -DRUST_NDEBUG -fno-omit-frame-pointer -O2 -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/fs.o /home/Thad/rust/src/libuv/src/win/fs.c
gcc -DRUST_NDEBUG -fno-omit-frame-pointer -O2 -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/getaddrinfo.o /home/Thad/rust/src/libuv/src/win/getaddrinfo.c
gcc -DRUST_NDEBUG -fno-omit-frame-pointer -O2 -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/handle.o /home/Thad/rust/src/libuv/src/win/handle.c
gcc -DRUST_NDEBUG -fno-omit-frame-pointer -O2 -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/loop-watcher.o /home/Thad/rust/src/libuv/src/win/loop-watcher.c
gcc -DRUST_NDEBUG -fno-omit-frame-pointer -O2 -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/pipe.o /home/Thad/rust/src/libuv/src/win/pipe.c
gcc -DRUST_NDEBUG -fno-omit-frame-pointer -O2 -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/poll.o /home/Thad/rust/src/libuv/src/win/poll.c
gcc -DRUST_NDEBUG -fno-omit-frame-pointer -O2 -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/process-stdio.o /home/Thad/rust/src/libuv/src/win/process-stdio.c
gcc -DRUST_NDEBUG -fno-omit-frame-pointer -O2 -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/process.o /home/Thad/rust/src/libuv/src/win/process.c
gcc -DRUST_NDEBUG -fno-omit-frame-pointer -O2 -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/req.o /home/Thad/rust/src/libuv/src/win/req.c
gcc -DRUST_NDEBUG -fno-omit-frame-pointer -O2 -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/signal.o /home/Thad/rust/src/libuv/src/win/signal.c
gcc -DRUST_NDEBUG -fno-omit-frame-pointer -O2 -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/stream.o /home/Thad/rust/src/libuv/src/win/stream.c
gcc -DRUST_NDEBUG -fno-omit-frame-pointer -O2 -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/tcp.o /home/Thad/rust/src/libuv/src/win/tcp.c
gcc -DRUST_NDEBUG -fno-omit-frame-pointer -O2 -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/thread.o /home/Thad/rust/src/libuv/src/win/thread.c
gcc -DRUST_NDEBUG -fno-omit-frame-pointer -O2 -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/threadpool.o /home/Thad/rust/src/libuv/src/win/threadpool.c
gcc -DRUST_NDEBUG -fno-omit-frame-pointer -O2 -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/timer.o /home/Thad/rust/src/libuv/src/win/timer.c
gcc -DRUST_NDEBUG -fno-omit-frame-pointer -O2 -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 -DRUST_NDEBUG -fno-omit-frame-pointer -O2 -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 -DRUST_NDEBUG -fno-omit-frame-pointer -O2 -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 -DRUST_NDEBUG -fno-omit-frame-pointer -O2 -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 -DRUST_NDEBUG -fno-omit-frame-pointer -O2 -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 -DRUST_NDEBUG -fno-omit-frame-pointer -O2 -c /home/Thad/rust/src/libuv/src/fs-poll.c -o src/fs-poll.o
C:/MinGW/msys/1.0/home/Thad/rust/src/libuv/src/fs-poll.c:22:16: fatal error: uv.h: No such file or directory
compilation terminated.
make[2]: *** [src/fs-poll.o] Error 1
make[2]: Leaving directory /home/Thad/rust/rt/i686-w64-mingw32/libuv' make[1]: *** [/home/Thad/rust//rt/i686-w64-mingw32/libuv] Error 2 make[1]: Leaving directory/home/Thad/rust/src/libuv'
make: *** [rt/i686-w64-mingw32/libuv/libuv.a] Error 2

Thad@Thad-Windows ~/rust
$

@thadguidry
Copy link
Contributor Author

I was successful in cloning libuv directly and building it, yet during the Rust build it has the above error. It looks like libuv itself can handle detection of mingw properly, see -> https://github.com/joyent/libuv/blob/master/config-mingw.mk

The build somehow misses the libuv/include path on mingw windows build. (I proved this by commenting out the windowsy part and it found the include path when looking as a /src/unix build... so something is amiss between lines 163 - 173 in rt.mk

Hope that helps.

@thadguidry
Copy link
Contributor Author

#6279 is tracking this.

bors added a commit that referenced this issue May 7, 2013
fix for #6279 #6253

mk: rt.mk regression patch for mingw32 after #6176

currently do not pass optimization option just make it works only

mk: target.mk host.mk fix for duplicated rules of mingw32 after #6235

It can be simply fixed with CFG_LIB check whether bin or lib however considering multiple target triples with linux and windows, CFG_LIB needs to configurable #5223 and #5577
@yichoi yichoi closed this as completed May 7, 2013
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

2 participants