Skip to content

clang++ crash wz 32 bit #20896

Closed
Closed
@llvmbot

Description

@llvmbot
Bugzilla Link 20522
Resolution FIXED
Resolved on Jun 19, 2017 10:29
Version unspecified
OS Windows XP
Reporter LLVM Bugzilla Contributor
CC @rnk

Extended Description

Compiling a wx widgets sample called controls clang++ 3.5 crashes well into compiling the includes. It looks like it thinks the machine is 64bit and using posix threads, so that may be the cause.

-------------- Build: Win32 Debug in controls (compiler: LLVM Clang Compiler)---------------

clang++.exe -Wall -g -DWIN32 -D_DEBUG -D__WXMSW__ -D_UNICODE -D_WINDOWS -DNOPCH -I.....\lib\vc_lib\mswud -I.....\include -I. -I.....\samples -IC:\CB\wx300\include\wx -IC:\MinGW\lib\gcc\mingw32\4.5.0\include\c++ -c C:\CB\wx300\samples\controls\controls.cpp -o vc_mswud\controls\controls.o
In file included from C:\CB\wx300\samples\controls\controls.cpp:11:
In file included from .....\include\wx/wxprec.h:12:
In file included from .....\include\wx/defs.h:688:
In file included from .....\include\wx/debug.h:19:
In file included from .....\include\wx/chartype.h:105:
In file included from C:\CB\wx300\include\wx\string.h:45:
In file included from .....\include\wx/wxcrtbase.h:38:
In file included from C:\CB\wx300\include\wx\time.h:13:
.....\include\wx/longlong.h:45:10: warning: "Your compiler does not appear to support 64 bit " "integers, using emulation class instead.\n" "Please report your compiler version to " "wx-dev@lists.wxwidgets.org!" [-W#warnings]
#warning "Your compiler does not appear to support 64 bit "
^
In file included from C:\CB\wx300\samples\controls\controls.cpp:11:
In file included from .....\include\wx/wxprec.h:12:
In file included from .....\include\wx/defs.h:688:
In file included from .....\include\wx/debug.h:19:
In file included from .....\include\wx/chartype.h:105:
In file included from C:\CB\wx300\include\wx\string.h:45:
In file included from .....\include\wx/wxcrtbase.h:38:
In file included from C:\CB\wx300\include\wx\time.h:13:
In file included from .....\include\wx/longlong.h:102:
In file included from .....\include\wx/iosfwrap.h:17:
C:\MinGW\lib\gcc\mingw32\4.5.0\include\c++\iosfwd:40:10: fatal error: 'bits/c++config.h' file not found
#include <bits/c++config.h>
^
Stack dump:
0. Program arguments: C:\Program Files\LLVM\bin\clang++.exe -cc1 -triple i686-pc-windows-gnu -emit-obj -mrelax-all -disable-free -main-file-name controls.cpp -mrelocation-model static -mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases -target-cpu pentium4 -g -dwarf-column-info -coverage-file C:\CB\wx300\samples\controls\vc_mswud\controls\controls.o -resource-dir C:\Program Files\LLVM\bin..\lib\clang\3.5.0 -D WIN32 -D _DEBUG -D WXMSW -D _UNICODE -D _WINDOWS -D NOPCH -I .....\lib\vc_lib\mswud -I .....\include -I . -I .....\samples -I C:\CB\wx300\include\wx -I C:\MinGW\lib\gcc\mingw32\4.5.0\include\c++ -Wall -fdeprecated-macro -fdebug-compilation-dir C:\CB\wx300\samples\controls -ferror-limit 19 -fmessage-length 0 -mstackrealign -fno-use-cxa-atexit -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -o vc_mswud\controls\controls.o -x c++ C:\CB\wx300\samples\controls\controls.cpp

  1. .....\include\wx/buffer.h:371:74: current parser token '{'
  2. .....\include\wx/buffer.h:360:1: parsing struct/union/class body 'wxCharBuffer'
    clang++.exe: error: clang frontend command failed due to signal (use -v to see invocation)
    clang version 3.5.0 (213707)
    Target: i686-pc-windows-gnu
    Thread model: posix
    clang++.exe: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and associated run script.
    clang++.exe: note: diagnostic msg: Error generating preprocessed source(s).
    Process terminated with status 1 (8 minute(s), 39 second(s))
    3 error(s), 1 warning(s) (8 minute(s), 39 second(s))

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillaclang:frontendLanguage frontend issues, e.g. anything involving "Sema"

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions