[LLVMbugs] [Bug 15766] New: fatal error: error in backend: Cannot select: 0x9956be8: i32 = fabs 0x995a980 [ORD=256] [ID=18]

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Apr 17 03:00:06 PDT 2013


http://llvm.org/bugs/show_bug.cgi?id=15766

            Bug ID: 15766
           Summary: fatal error: error in backend: Cannot select:
                    0x9956be8: i32 = fabs 0x995a980 [ORD=256] [ID=18]
           Product: clang
           Version: 3.2
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: paulepanter at users.sourceforge.net
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Under Debian Sid/unstable building Midori from git works with gcc

    $ gcc --version
    gcc-4.7.real (Debian 4.7.2-15) 4.7.2
    Copyright (C) 2012 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.  There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

but fails with Clang.

    $ clang --version
    Debian clang version 3.2-1~exp6 (tags/RELEASE_32/final) (based on LLVM 3.2)
    Target: i386-pc-linux-gnu
    Thread model: posix
    $ git clone git://git.xfce.org/apps/midori

Add `--depth 1` clone if you do not want the whole history. Note, that I only
tested with the commit below.

    $ cd midori
    $ git describe
    0.5.0-68-g7e985a2

Get dependencies. Under Debian run `sudo aptitude build-dep midori`.

    $ ./waf clean
    […]
    $ CC=clang ./waf configure
    Checking for release version             : 0.5.0-68-g7e985a2 
    Checking for program gcc or cc           : clang 
    Checking for program cpp                 : /usr/bin/cpp 
    Checking for program ar                  : /usr/bin/ar 
    Checking for program ranlib              : /usr/bin/ranlib 
    Checking for gcc                         : ok  
    Checking for program valac               : /usr/bin/valac 
    Checking for gobject-2.0                 : yes 
    Checking for gthread-2.0                 : yes 
    Checking for program version valac >= 0.1.6 : ok 0.16.1 
    Checking for program glib-genmarshal        : /usr/bin/glib-genmarshal 
    Checking for program glib-mkenums           : /usr/bin/glib-mkenums 
    Checking for program msgfmt                 : /usr/bin/msgfmt 
    Checking for program intltool-merge         : /usr/bin/intltool-merge 
    Checking for header locale.h                : yes 
    Checking for program rsvg-convert           : /usr/bin/rsvg-convert 
    Checking for gtk-doc                        : disabled 
    Checking for libnotify                      : 0.7.5 
    Checking for granite                        : disabled 
    Checking for zeitgeist-1.0 >= 0.3.14        : 0.3.18 
    Checking for library m                      : yes 
    Checking for gmodule-2.0                    : 2.32.4 
    Checking for gio-2.0 >= 2.22.0              : 2.32.4 
    Checking for x11                            : 1.5.0 
    Checking for header X11/extensions/scrnsaver.h : yes 
    Checking for library Xss                       : yes 
    Checking for gtk+-2.0 >= 2.16.0                : 2.24.10 
    Checking for webkit-1.0 >= 1.1.17              : 1.8.1 
    Checking for gcr-3-gtk2 >= 2.32                : no 
    gcr-3-gtk2 >= 2.32 not found 
    Checking for javascriptcoregtk-1.0 >= 1.5.1    : 1.8.1 
    Checking for unique-1.0 >= 0.9                 : 1.1.6 
    Checking for libsoup-2.4 >= 2.27.90            : 2.38.1 
    Checking for libxml-2.0 >= 2.6                 : 2.8.0 
    Checking for sqlite3 >= 3.6.19                 : 3.7.16.1 
    Checking for header unistd.h                   : yes 
    Checking for header signal.h                   : yes 
    'configure' finished successfully (10.926s)
    $ ./waf build
    Waf: Entering directory `/src/midori/_build'
    [  1/158] valac: katze/katze-separatoraction.vala katze/midori-hsts.vala
katze/midori-paths.vala katze/midori-uri.vala midori/midori-completion.vala
midori/midori-dialog.vala midori/midori-download.vala
midori/midori-extensions-column.vala midori/midori-historycompletion.vala
midori/midori-panedaction.vala midori/midori-searchcompletion.vala
midori/midori-settings.vala midori/midori-speeddial.vala midori/midori-tab.vala
midori/midori-viewable.vala midori/midori-viewcompletion.vala ->
_build/default/katze/katze-separatoraction.c
_build/default/midori/midori-core.h _build/default/midori/midori-core.vapi
_build/default/midori/midori-core.deps _build/default/katze/midori-hsts.c
_build/default/midori/midori-core.h _build/default/midori/midori-core.vapi
_build/default/midori/midori-core.deps _build/default/katze/midori-paths.c
_build/default/midori/midori-core.h _build/default/midori/midori-core.vapi
_build/default/midori/midori-core.deps _build/default/katze/midori-uri.c
_build/default/midori/midori-core.h _build/default/midori/midori-core.vapi
_build/default/midori/midori-core.deps
_build/default/midori/midori-completion.c _build/default/midori/midori-core.h
_build/default/midori/midori-core.vapi _build/default/midori/midori-core.deps
_build/default/midori/midori-dialog.c _build/default/midori/midori-core.h
_build/default/midori/midori-core.vapi _build/default/midori/midori-core.deps
_build/default/midori/midori-download.c _build/default/midori/midori-core.h
_build/default/midori/midori-core.vapi _build/default/midori/midori-core.deps
_build/default/midori/midori-extensions-column.c
_build/default/midori/midori-core.h _build/default/midori/midori-core.vapi
_build/default/midori/midori-core.deps
_build/default/midori/midori-historycompletion.c
_build/default/midori/midori-core.h _build/default/midori/midori-core.vapi
_build/default/midori/midori-core.deps
_build/default/midori/midori-panedaction.c _build/default/midori/midori-core.h
_build/default/midori/midori-core.vapi _build/default/midori/midori-core.deps
_build/default/midori/midori-searchcompletion.c
_build/default/midori/midori-core.h _build/default/midori/midori-core.vapi
_build/default/midori/midori-core.deps _build/default/midori/midori-settings.c
_build/default/midori/midori-core.h _build/default/midori/midori-core.vapi
_build/default/midori/midori-core.deps _build/default/midori/midori-speeddial.c
_build/default/midori/midori-core.h _build/default/midori/midori-core.vapi
_build/default/midori/midori-core.deps _build/default/midori/midori-tab.c
_build/default/midori/midori-core.h _build/default/midori/midori-core.vapi
_build/default/midori/midori-core.deps _build/default/midori/midori-viewable.c
_build/default/midori/midori-core.h _build/default/midori/midori-core.vapi
_build/default/midori/midori-core.deps
_build/default/midori/midori-viewcompletion.c
_build/default/midori/midori-core.h _build/default/midori/midori-core.vapi
_build/default/midori/midori-core.deps
    ../katze/midori-uri.vala:19.60-19.74: warning: use of possibly unassigned
parameter `path'
    ../katze/midori-uri.vala:173.34-173.49: warning: use of possibly unassigned
parameter `label'
    ../katze/midori-uri.vala:173.13-173.31: warning: use of possibly unassigned
parameter `checksum'
    ../midori/midori-download.vala:271.66-271.84: warning: use of possibly
unassigned parameter `basename'
    ../midori/midori-speeddial.vala:121.43-121.56: warning: use of possibly
unassigned parameter `count'
    [  2/158] cc: _build/default/katze/katze-separatoraction.c ->
_build/default/katze/katze-separatoraction_1.o
    [  3/158] cc: _build/default/katze/midori-hsts.c ->
_build/default/katze/midori-hsts_1.o
    fatal error: error in backend: Cannot select: 0x9956be8: i32 = fabs
0x995a980 [ORD=256] [ID=18]
          dbg:/src/midori/katze/midori-hsts.vala:23
      0x995a980: i32 = zero_extend 0x995b288 [ID=17]
        0x995b288: i8 = X86ISD::SETCC 0x99568b8, 0x995b8e8 [ID=16]
          0x99568b8: i8 = Constant<9> [ID=10]
          0x995b8e8: i32 = X86ISD::CMP 0x995c758, 0x995aa90 [ID=14]
            0x995c758: i32,ch = load 0x98f6500, 0x9956cf8,
0x995be50<LD4[FixedStack-2]> [ORD=254] [ID=12]
              0x9956cf8: i32 = FrameIndex<-2> [ORD=254] [ID=3]
              0x995be50: i32 = undef [ORD=254] [ID=2]
            0x995aa90: i32 = Constant<0> [ORD=254] [ID=6]
    In function: midori_hsts_directive_construct_from_header
    Waf: Leaving directory `/src/midori/_build'
    Build failed:  -> task failed (err #1): 
        {task: cc midori-hsts.c -> midori-hsts_1.o}

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130417/9f3b6945/attachment.html>


More information about the llvm-bugs mailing list