Skip to content

Problem compiling latest git on MSYS2/MinGW-w64 x86_64 #16905

@mingwandroid

Description

@mingwandroid

I'm adding a rust-git package to MSYS2/MinGW-w64 at present and ran into the following problem:

configure: looking for configure programs
configure: found cmp
configure: found mkdir
configure: found printf
configure: found cut
configure: found head
configure: found grep
configure: found xargs
configure: found cp
configure: found find
configure: found uname
configure: found date
configure: found tr
configure: found sed
configure: found file
configure: inspecting environment
configure: recreating config.tmp
configure: 
configure: processing ../rust/configure args
configure: 
configure: CFG_PREFIX           := /mingw64 
configure: CFG_LOCAL_RUST_ROOT  := /usr/local 
configure: CFG_LLVM_ROOT        :=  
configure: CFG_JEMALLOC_ROOT    :=  
configure: CFG_LIBUV_ROOT       :=  
configure: CFG_ANDROID_CROSS_PATH := /opt/ndk_standalone 
configure: CFG_MINGW32_CROSS_PATH :=  
configure: CFG_BUILD            := x86_64-w64-mingw32 
configure: CFG_HOST             := x86_64-w64-mingw32 
configure: CFG_TARGET           := x86_64-w64-mingw32 
configure: CFG_LOCALSTATEDIR    := /var/lib 
configure: CFG_SYSCONFDIR       := /etc 
configure: CFG_DATADIR          := /mingw64/share 
configure: CFG_INFODIR          := /mingw64/share/info 
configure: CFG_MANDIR           := /mingw64/share/man 
configure: CFG_LIBDIR           := /mingw64/bin 
configure: 
configure: validating ../rust/configure args
configure: 
configure: 
configure: looking for build programs
configure: 
configure: CFG_PERL             := /usr/bin/perl 
configure: CFG_CURLORWGET       := /mingw64/bin/curl (7.37.1)
configure: CFG_PYTHON           := /mingw64/bin/python2.7 
configure: CFG_GIT              := /usr/bin/git (2.1.0)
configure: CFG_CLANG            := /mingw64/bin/clang++ (3.6.0)
configure: CFG_CCACHE           :=  
configure: CFG_GCC              := /mingw64/bin/gcc (3,)
configure: CFG_LD               := /mingw64/bin/ld (2.24.0.20140810)
configure: CFG_VALGRIND         :=  
configure: CFG_PERF             :=  
configure: CFG_ISCC             :=  
configure: CFG_LLNEXTGEN        :=  
configure: CFG_JAVAC            :=  
configure: CFG_ANTLR4           :=  
configure: CFG_GRUN             :=  
configure: CFG_PANDOC           :=  
configure: CFG_PDFLATEX         :=  
configure: CFG_XELATEX          :=  
configure: CFG_LUALATEX         :=  
configure: CFG_GDB              := /mingw64/bin/gdb (7.8)
configure: CFG_LLDB             :=  
configure: CFG_GDB_VERSION      := GNU gdb (GDB) 7.8 
configure: 
configure: looking for target specific programs
configure: 
configure: CFG_ADB              :=  
configure: CFG_CC               := gcc 
configure: CFG_CFLAGS           := -march=x86-64 -mtune=generic -O2 -p ...
configure: CFG_CXXFLAGS         := -march=x86-64 -mtune=generic -O2 -p ...
configure: 
configure: making directories
configure: 
configure: 
configure: configuring submodules
configure: 
configure: git: submodule sync
configure: git: submodule init

much later ..

PATH=/e/m2/repo/mingw-w64-rust-git/src/build-x86_64/x86_64-w64-mingw32/stage1/bin:$PATH PATH="/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/c/Windows/system32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0:/usr/bin/vendor_perl:/usr/bin/core_perl:x86_64-w64-mingw32/stage1/bin"   x86_64-w64-mingw32/stage1/bin/rustc.exe --cfg stage1  -O --cfg rtopt --cfg debug -C prefer-dynamic --target=x86_64-w64-mingw32  -D warnings -L "x86_64-w64-mingw32/rt" -L "E:\m2\repo\mingw-w64-rust-git\src\build-x86_64\x86_64-w64-mingw32\llvm\Release+Asserts/lib" -L ""  --out-dir x86_64-w64-mingw32/stage1/bin/rustlib/x86_64-w64-mingw32/lib -C extra-filename=-4e7c5e5c /e/m2/repo/mingw-w64-rust-git/src/rust/src/librustrt/lib.rs
E:\m2\repo\mingw-w64-rust-git\src\rust\src\librustrt\unwind.rs:449:9: 449:24 error: variable `exceptionRecord` should have a snake case name such as `exception_record`, #[deny(non_snake_case)] on by default
E:\m2\repo\mingw-w64-rust-git\src\rust\src\librustrt\unwind.rs:449         exceptionRecord: *mut EXCEPTION_RECORD,
                                                                           ^~~~~~~~~~~~~~~
E:\m2\repo\mingw-w64-rust-git\src\rust\src\librustrt\unwind.rs:450:9: 450:25 error: variable `establisherFrame` should have a snake case name such as `establisher_frame`, #[deny(non_snake_case)] on by default
E:\m2\repo\mingw-w64-rust-git\src\rust\src\librustrt\unwind.rs:450         establisherFrame: *mut c_void,
                                                                           ^~~~~~~~~~~~~~~~
E:\m2\repo\mingw-w64-rust-git\src\rust\src\librustrt\unwind.rs:451:9: 451:22 error: variable `contextRecord` should have a snake case name such as `context_record`, #[deny(non_snake_case)] on by default
E:\m2\repo\mingw-w64-rust-git\src\rust\src\librustrt\unwind.rs:451         contextRecord: *mut CONTEXT,
                                                                           ^~~~~~~~~~~~~
E:\m2\repo\mingw-w64-rust-git\src\rust\src\librustrt\unwind.rs:452:9: 452:26 error: variable `dispatcherContext` should have a snake case name such as `dispatcher_context`, #[deny(non_snake_case)] on by default
E:\m2\repo\mingw-w64-rust-git\src\rust\src\librustrt\unwind.rs:452         dispatcherContext: *mut DISPATCHER_CONTEXT
                                                                           ^~~~~~~~~~~~~~~~~
E:\m2\repo\mingw-w64-rust-git\src\rust\src\librustrt\unwind.rs:463:9: 463:24 error: variable `exceptionRecord` should have a snake case name such as `exception_record`, #[deny(non_snake_case)] on by default
E:\m2\repo\mingw-w64-rust-git\src\rust\src\librustrt\unwind.rs:463         exceptionRecord: *mut EXCEPTION_RECORD,
                                                                           ^~~~~~~~~~~~~~~
E:\m2\repo\mingw-w64-rust-git\src\rust\src\librustrt\unwind.rs:464:9: 464:25 error: variable `establisherFrame` should have a snake case name such as `establisher_frame`, #[deny(non_snake_case)] on by default
E:\m2\repo\mingw-w64-rust-git\src\rust\src\librustrt\unwind.rs:464         establisherFrame: *mut c_void,
                                                                           ^~~~~~~~~~~~~~~~
E:\m2\repo\mingw-w64-rust-git\src\rust\src\librustrt\unwind.rs:465:9: 465:22 error: variable `contextRecord` should have a snake case name such as `context_record`, #[deny(non_snake_case)] on by default
E:\m2\repo\mingw-w64-rust-git\src\rust\src\librustrt\unwind.rs:465         contextRecord: *mut CONTEXT,
                                                                           ^~~~~~~~~~~~~
E:\m2\repo\mingw-w64-rust-git\src\rust\src\librustrt\unwind.rs:466:9: 466:26 error: variable `dispatcherContext` should have a snake case name such as `dispatcher_context`, #[deny(non_snake_case)] on by default
E:\m2\repo\mingw-w64-rust-git\src\rust\src\librustrt\unwind.rs:466         dispatcherContext: *mut DISPATCHER_CONTEXT
                                                                           ^~~~~~~~~~~~~~~~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions