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

*-windows-gnu cannot build things anymore #29672

Closed
nagisa opened this issue Nov 7, 2015 · 5 comments
Closed

*-windows-gnu cannot build things anymore #29672

nagisa opened this issue Nov 7, 2015 · 5 comments
Labels
O-windows-gnu Toolchain: GNU, Operating system: Windows

Comments

@nagisa
Copy link
Member

nagisa commented Nov 7, 2015

Start-FileDownload "https://static.rust-lang.org/dist/rust-nightly-${env:TARGET}.exe" -FileName "rust-nightly.exe"
.\rust-nightly.exe /VERYSILENT /NORESTART /DIR="C:\rust" | Out-Null
$env:PATH="$env:PATH;C:\rust\bin"
rustc -vV
rustc 1.6.0-nightly (1e3e7e73c 2015-11-07)
binary: rustc
commit-hash: 1e3e7e73c6086bead3949476c4f0c8231e6a0fc8
commit-date: 2015-11-07
host: x86_64-pc-windows-gnu
release: 1.6.0-nightly
cargo -vV
cargo 0.7.0-nightly (b01770c 2015-11-05)
cargo build
    Updating registry `https://github.com/rust-lang/crates.io-index`
 Downloading winapi-build v0.1.1
 Downloading winapi v0.2.4
 Downloading kernel32-sys v0.2.0
   Compiling libloading v0.2.0 (file:///C:/projects/libloading)
   Compiling winapi-build v0.1.1
error: linking with `gcc` failed: exit code: 1
note: "gcc" "-Wl,--enable-long-section-names" "-fno-use-linker-plugin" "-Wl,--nxcompat" "-nostdlib" "-m64" "C:\\rust\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\crt2.o" "C:\\rust\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\rsbegin.o" "-L" "C:\\rust\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib" "C:\\projects\\libloading\\target\\debug\\build\\libloading-a805aa27801e74e6\\build_script_build.0.o" "-o" "C:\\projects\\libloading\\target\\debug\\build\\libloading-a805aa27801e74e6\\build_script_build.exe" "-Wl,--gc-sections" "-nodefaultlibs" "-L" "C:\\projects\\libloading\\target\\debug" "-L" "C:\\projects\\libloading\\target\\debug\\deps" "-L" "C:\\rust\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib" "-L" "C:\\projects\\libloading\\.rust\\lib\\x86_64-pc-windows-gnu" "-L" "C:\\projects\\libloading\\lib\\x86_64-pc-windows-gnu" "-Wl,-Bstatic" "-Wl,-Bdynamic" "C:\\rust\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libstd-8cf6ce90.rlib" "C:\\rust\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libcollections-8cf6ce90.rlib" "C:\\rust\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\librustc_unicode-8cf6ce90.rlib" "C:\\rust\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\librand-8cf6ce90.rlib" "C:\\rust\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\liballoc-8cf6ce90.rlib" "C:\\rust\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\liballoc_jemalloc-8cf6ce90.rlib" "C:\\rust\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\liblibc-8cf6ce90.rlib" "C:\\rust\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libcore-8cf6ce90.rlib" "-l" "gcc_eh" "-l" "ws2_32" "-l" "userenv" "-l" "shell32" "-l" "advapi32" "-l" "compiler-rt" "-lmingwex" "-lmingw32" "-lgcc" "-lmsvcrt" "-luser32" "-lkernel32" "C:\\rust\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\rsend.o"
note: gcc.exe: error: C:\rust\lib\rustlib\x86_64-pc-windows-gnu\lib\rsbegin.o: No such file or directory
gcc.exe: error: C:\rust\lib\rustlib\x86_64-pc-windows-gnu\lib\rsend.o: No such file or directory

error: aborting due to previous error
Build failed, waiting for other jobs to finish...
Could not compile `libloading`. 

To learn more, run the command again with --verbose.
Command exited with code 101

cc @vadimcn

Things were working fine ~13 hours ago.

@huonw huonw added the O-windows-gnu Toolchain: GNU, Operating system: Windows label Nov 7, 2015
@jaxx
Copy link

jaxx commented Nov 7, 2015

I have the same problem. Windows 10 64-bit. Installed rustc 1.6.0-nightly (7cd8f69 2015-11-06) windows gnu version 5 minutes ago.

   Updating registry `https://github.com/rust-lang/crates.io-index`
    Updating env_logger v0.3.1 -> v0.3.2
      Adding libc v0.2.1
    Updating memchr v0.1.6 -> v0.1.7
    Updating syntex_syntax v0.19.0 -> v0.19.1
 Downloading env_logger v0.3.2
 Downloading libc v0.2.1
 Downloading memchr v0.1.7
   Compiling winapi-build v0.1.1
   Compiling typed-arena v1.0.1
   Compiling libc v0.1.12
   Compiling winapi v0.2.4
   Compiling bitflags v0.3.2
   Compiling regex-syntax v0.2.2
   Compiling log v0.3.3
   Compiling kernel32-sys v0.1.4
error: linking with `gcc` failed: exit code: 1
note: "gcc" "-Wl,--enable-long-section-names" "-fno-use-linker-plugin" "-Wl,--nxcompat" "-nostdlib" "-m64" "C:\\rust\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\crt2.o" "C:\\rust\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\rsbegin.o" "-L" "C:\\rust\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib" "C:\\rust_projects\\racer\\target\\release\\build\\kernel32-sys-62844336d3806e02\\build_script_build.0.o" "-o" "C:\\rust_projects\\racer\\target\\release\\build\\kernel32-sys-62844336d3806e02\\build_script_build.exe" "-Wl,--gc-sections" "-nodefaultlibs" "-L" "C:\\rust_projects\\racer\\target\\release\\deps" "-L" "C:\\rust_projects\\racer\\target\\release\\deps" "-L" "C:\\rust\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib" "-L" "C:\\rust_projects\\racer\\.rust\\lib\\x86_64-pc-windows-gnu" "-L" "C:\\rust_projects\\racer\\lib\\x86_64-pc-windows-gnu" "-Wl,-Bstatic" "-Wl,-Bdynamic" "C:\\rust_projects\\racer\\target\\release\\deps\\libbuild-304afb6bdff23d72.rlib" "C:\\rust\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libstd-8cf6ce90.rlib" "C:\\rust\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libcollections-8cf6ce90.rlib" "C:\\rust\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\librustc_unicode-8cf6ce90.rlib" "C:\\rust\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\librand-8cf6ce90.rlib" "C:\\rust\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\liballoc-8cf6ce90.rlib" "C:\\rust\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\liballoc_jemalloc-8cf6ce90.rlib" "C:\\rust\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\liblibc-8cf6ce90.rlib" "C:\\rust\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libcore-8cf6ce90.rlib" "-l" "gcc_eh" "-l" "ws2_32" "-l" "userenv" "-l" "shell32" "-l" "advapi32" "-l" "compiler-rt" "-lmingwex" "-lmingw32" "-lgcc" "-lmsvcrt" "-luser32" "-lkernel32" "C:\\rust\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\rsend.o"
note: gcc.exe: error: C:\rust\lib\rustlib\x86_64-pc-windows-gnu\lib\rsbegin.o: No such file or directory
gcc.exe: error: C:\rust\lib\rustlib\x86_64-pc-windows-gnu\lib\rsend.o: No such file or directory

error: aborting due to previous error
Build failed, waiting for other jobs to finish...
Could not compile `kernel32-sys`.```

@vadimcn
Copy link
Contributor

vadimcn commented Nov 7, 2015

Ahh, sorry folks, looks like I forgot to adjust Windows packaging scripts to include these files.. I'll get right on it!

@retep998
Copy link
Member

retep998 commented Nov 7, 2015

When are we going to add tests on buildbot for whether the packaged installers actually work?

@steveklabnik
Copy link
Member

@retep998 #19698

@alexcrichton
Copy link
Member

@vadimcn I think that INSTALLED_OBJECTS may do the trick in this case

bors added a commit that referenced this issue Nov 8, 2015
Resolves  #29672.   This happened because rust runtime startup objects, rsbegin.o and rsend.o, were not included in the target libraries package for -windows-gnu.

r? @alexcrichton
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
O-windows-gnu Toolchain: GNU, Operating system: Windows
Projects
None yet
Development

No branches or pull requests

7 participants