Skip to content

LLVM-GCC fails to build on MingW (non bootstrap). #3924

@llvmbot

Description

@llvmbot
Bugzilla Link 3552
Resolution FIXED
Resolved on Nov 07, 2018 00:22
Version unspecified
OS All
Reporter LLVM Bugzilla Contributor
CC @asl,@sunfishcode,@tlattner

Extended Description

LLVM-GCC doesn't build on MingW, starting with revision 61207, doing a non-bootstrap build.

  • rev 61207 introduces the following error:

make[4]: Entering directory /c/cygwin/home/jlerouge/buildbot/llvm-test-fixed-61207/gcc-build/i686-pc-mingw32/libstdc++-v3/include' if [ ! -d "./i686-pc-mingw32/bits/stdc++.h.gch" ]; then \ mkdir -p ./i686-pc-mingw32/bits/stdc++.h.gch; \ fi; \ /c/cygwin/home/jlerouge/buildbot/llvm-test-fixed-61207/gcc-build/./gcc/xgcc -shared-libgcc -B/c/cygwin/home/jlerouge/buildbot/llvm-test-fixed-61207/gcc-build/./gcc -nostdinc++ -L/c/cygwin/home/jlerouge/buildbot/llvm-test-fixed-61207/gcc -build/i686-pc-mingw32/libstdc++-v3/src -L/c/cygwin/home/jlerouge/buildbot/llvm-test-fixed-61207/gcc-build/i686-pc-mingw32/libstdc++-v3/src/.libs -L/c/cygwin/home/jlerouge/buildbot/llvm-test-fixed-61207/gcc-build/i686-pc-mingw32/winsup/ mingw -L/c/cygwin/home/jlerouge/buildbot/llvm-test-fixed-61207/gcc-build/i686-pc-mingw32/winsup/w32api/lib -isystem /c/cygwin/home/jlerouge/buildbot/llvm-test-fixed-gcc4.2-src/winsup/mingw/include -isystem /c/cygwin/home/jlerouge/buildb ot/llvm-test-fixed-gcc4.2-src/winsup/w32api/include -Bc:/cygwin/home/jlerouge/buildbot/llvm-test-fixed-61207/i686-pc-mingw32/bin/ -Bc:/cygwin/home/jlerouge/buildbot/llvm-test-fixed-61207/i686-pc-mingw32/lib/ -isystem c:/cygwin/home/jler ouge/buildbot/llvm-test-fixed-61207/i686-pc-mingw32/include -isystem c:/cygwin/home/jlerouge/buildbot/llvm-test-fixed-61207/i686-pc-mingw32/sys-include -Winvalid-pch -Wno-deprecated -x c++-header -g -O2 -I/c/cygwin/home/jlerouge/buildb ot/llvm-test-fixed-61207/gcc-build/i686-pc-mingw32/libstdc++-v3/include/i686-pc-mingw32 -I/c/cygwin/home/jlerouge/buildbot/llvm-test-fixed-61207/gcc-build/i686-pc-mingw32/libstdc++-v3/include -I/c/cygwin/home/jlerouge/buildbot/llvm-test -fixed-gcc4.2-src/libstdc++-v3/libsupc++ -O0 -g /c/cygwin/home/jlerouge/buildbot/llvm-test-fixed-gcc4.2-src/libstdc++-v3/include/precompiled/stdc++.h -o i686-pc-mingw32/bits/stdc++.h.gch/O0g.gch make[4]: *** [i686-pc-mingw32/bits/stdc++.h.gch/O0g.gch] Error 1 make[4]: Leaving directory /c/cygwin/home/jlerouge/buildbot/llvm-test-fixed-61207/gcc-build/i686-pc-mingw32/libstdc++-v3/include'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory /c/cygwin/home/jlerouge/buildbot/llvm-test-fixed-61207/gcc-build/i686-pc-mingw32/libstdc++-v3' make[2]: *** [all] Error 2 make[2]: Leaving directory /c/cygwin/home/jlerouge/buildbot/llvm-test-fixed-61207/gcc-build/i686-pc-mingw32/libstdc++-v3'
make[1]: *** [all-target-libstdc++-v3] Error 2
make[1]: Leaving directory `/c/cygwin/home/jlerouge/buildbot/llvm-test-fixed-61207/gcc-build'

SVN log:

r61207 | dpatel | 2008-12-18 11:18:20 -0800 (Thu, 18 Dec 2008) | 3 lines
Changed paths:
M /llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp

Reuse DIType slot used for foward declaration for real definition.


  • And then, rev 61215 introduces another error, earlier in the build process:

/c/cygwin/home/jlerouge/buildbot/llvm-test-fixed-61215/gcc-build/./gcc/xgcc -B/c/cygwin/home/jlerouge/buildbot/llvm-test-fixed-61215/gcc-build/./gcc/ -L/c/cygwin/home/jlerouge/buildbot/llvm-test-fixed-61215/gcc-build/i686-pc-mingw32/win
sup/mingw -L/c/cygwin/home/jlerouge/buildbot/llvm-test-fixed-61215/gcc-build/i686-pc-mingw32/winsup/w32api/lib -isystem /c/cygwin/home/jlerouge/buildbot/llvm-test-fixed-gcc4.2-src/winsup/mingw/include -isystem /c/cygwin/home/jlerouge/bu
ildbot/llvm-test-fixed-gcc4.2-src/winsup/w32api/include -Bc:/cygwin/home/jlerouge/buildbot/llvm-test-fixed-61215/i686-pc-mingw32/bin/ -Bc:/cygwin/home/jlerouge/buildbot/llvm-test-fixed-61215/i686-pc-mingw32/lib/ -isystem c:/cygwin/home/
jlerouge/buildbot/llvm-test-fixed-61215/i686-pc-mingw32/include -isystem c:/cygwin/home/jlerouge/buildbot/llvm-test-fixed-61215/i686-pc-mingw32/sys-include -c -DHAVE_CONFIG_H -O2 -g -O2 -I. -I../../../../llvm-test-fixed-gcc4.2-src/libi
berty/../include -W -Wall -pedantic -Wwrite-strings -Wstrict-prototypes -Wc++-compat ../../../../llvm-test-fixed-gcc4.2-src/libiberty/pex-win32.c -o pex-win32.o
../../../../llvm-test-fixed-gcc4.2-src/libiberty/pex-win32.c: In function 'argv_to_cmdline':
../../../../llvm-test-fixed-gcc4.2-src/libiberty/pex-win32.c:365: warning: request for implicit conversion from 'void *' to 'char *' not permitted in C++
../../../../llvm-test-fixed-gcc4.2-src/libiberty/pex-win32.c: In function 'find_executable':
../../../../llvm-test-fixed-gcc4.2-src/libiberty/pex-win32.c:440: warning: request for implicit conversion from 'void *' to 'char *' not permitted in C++
../../../../llvm-test-fixed-gcc4.2-src/libiberty/pex-win32.c: In function 'win32_spawn':
../../../../llvm-test-fixed-gcc4.2-src/libiberty/pex-win32.c:566: warning: request for implicit conversion from 'void *' to 'char **' not permitted in C++
../../../../llvm-test-fixed-gcc4.2-src/libiberty/pex-win32.c:573: warning: request for implicit conversion from 'void *' to 'char *' not permitted in C++
../../../../llvm-test-fixed-gcc4.2-src/libiberty/pex-win32.c: At top level:
../../../../llvm-test-fixed-gcc4.2-src/libiberty/pex-win32.c:900: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See URL:http://developer.apple.com/bugreporter for instructions.
make[2]: *** [pex-win32.o] Error 1
make[2]: Leaving directory /c/cygwin/home/jlerouge/buildbot/llvm-test-fixed-61215/gcc-build/i686-pc-mingw32/libiberty' make[1]: *** [all-target-libiberty] Error 2 make[1]: Leaving directory /c/cygwin/home/jlerouge/buildbot/llvm-test-fixed-61215/gcc-build'
make: *** [all] Error 2

SVN log:

r61215 | djg | 2008-12-18 14:03:42 -0800 (Thu, 18 Dec 2008) | 3 lines
Changed paths:
M /llvm/trunk/lib/Target/X86/X86RegisterInfo.cpp

When emitting instructions that define EFLAGS and the EFLAGS value isn't
used, mark the defs as dead.


I believe those two problems are still there in the current 2.5 branch (as of rev 64291).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzilla

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions