[LLVMbugs] [Bug 10989] New: Assembler error

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Sep 22 14:39:26 PDT 2011


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

           Summary: Assembler error
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: vanboxem.ruben at gmail.com
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=7327)
 --> (http://llvm.org/bugs/attachment.cgi?id=7327)
zip containing preprocessed source and unassembled (-S) output

While compiling/"hacking on"/porting libc++ for Windows (!), I ran into a Clang
assembler error:

M:\Development\mingw64\bin\clang++.exe -v  -Dcxx_EXPORTS -DNDEBUG -fPIC
-IM:\Development\Source\libc++\include   -nostdinc++ -std=c++0x -fPIC -o
CMakeFiles\cxx.dir\__\src\ios.cpp.obj -c
M:\Development\Source\libc++\src\ios.cpp
clang version 3.0 (http://llvm.org/git/clang.git
ca82a82082edc982a1fb5fcfef2dd2c8cf9bc824)
Target: x86_64-w64-mingw32
Thread model: posix
 "M:/Development/mingw64/bin/clang++.exe" -cc1 -triple x86_64-w64-mingw32 -S
-disable-free -disable-llvm-verifier -main-file-name ios.cpp -pic-level 2
-mdisable-fp-elim -mconstructor-aliases -munwind-tables -target-cpu x86-64
-target-linker-version 2.21.51.0.6 -momit-leaf-frame-pointer -v -coverage-file
C:/Users/Ruben/AppData/Local/Temp/ios-297078.s -nostdinc++ -resource-dir
M:/Development/mingw64/bin\..\lib\clang\3.0 -D cxx_EXPORTS -D NDEBUG -I
M:\Development\Source\libc++\include -fmodule-cache-path
C:\Users\Ruben\AppData\Local\Temp\clang-module-cache -std=c++0x
-fdeprecated-macro -ferror-limit 19 -fmessage-length 500 -fno-use-cxa-atexit
-fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o
C:/Users/Ruben/AppData/Local/Temp/ios-297078.s -x c++
M:\Development\Source\libc++\src\ios.cpp
clang -cc1 version 3.0 based upon llvm 3.0svn hosted on x86_64-w64-mingw32
ignoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory
"M:/Development/mingw64/bin/../lib/clang/3.0/../../../i686-w64-mingw32/include"
ignoring nonexistent directory "/mingw/include"
ignoring nonexistent directory "c:/mingw/include"
ignoring nonexistent directory "/usr/include"
#include "..." search starts here:
#include <...> search starts here:
 M:\Development\Source\libc++\include
 M:/Development/mingw64/bin/../lib/clang/3.0/include

M:/Development/mingw64/bin/../lib/clang/3.0/../../../x86_64-w64-mingw32/include
 M:/Development/mingw64/bin/../lib/clang/3.0/../../../include
End of search list.
 "M:/Development/mingw64/bin/g++.exe" -v -D cxx_EXPORTS -D NDEBUG -fPIC -I
M:\Development\Source\libc++\include -nostdinc++ -std=c++0x -fPIC -c -m64 -o
CMakeFiles\cxx.dir\__\src\ios.cpp.obj -x assembler
C:/Users/Ruben/AppData/Local/Temp/ios-297078.s
Using built-in specs.
COLLECT_GCC=M:/Development/mingw64/bin/g++.exe
COLLECT_LTO_WRAPPER=m:/development/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/4.6.2/lto-wrapper.exe
Target: x86_64-w64-mingw32
Configured with:
/home/ruben/mingw-w64/toolchain/mingw64mingw64/gcc-src/configure
--host=x86_64-w64-mingw32 --build=x86_64-linux-gnu --target=x86_64-w64-mingw32
--with-sysroot=/home/ruben/mingw-w64/toolchain/mingw64mingw64/mingw64
--prefix=/home/ruben/mingw-w64/toolchain/mingw64mingw64/mingw64
--with-libexpat-prefix=/home/ruben/mingw-w64/toolchain/mingw64mingw64/prereq_install
--enable-cloog-backend=isl --with-host-libstdcxx='-lstdc++ -lm -lgcc_eh'
--enable-shared --enable-static --enable-threads=posix --disable-multilib
--enable-languages=c,lto,c++,fortran,objc,obj-c++ --enable-libgomp
--enable-sjlj-exceptions --disable-nls --disable-werror
--enable-checking=release --disable-win32-registry --disable-rpath
--disable-werror
Thread model: posix
gcc version 4.6.2 20110921 (prerelease) (GCC)
COLLECT_GCC_OPTIONS='-v' '-D' 'cxx_EXPORTS' '-D' 'NDEBUG' '-I'
'M:\Development\Source\libc++\include' '-nostdinc++' '-std=c++0x' '-fPIC' '-c'
'-m64' '-o' 'CMakeFiles\cxx.dir\__\src\ios.cpp.obj' '-shared-libgcc'
'-mtune=generic' '-march=x86-64'

m:/development/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.6.2/../../../../x86_64-w64-mingw32/bin/as.exe
--64 -o CMakeFiles\cxx.dir\__\src\ios.cpp.obj
C:/Users/Ruben/AppData/Local/Temp/ios-297078.s
C:/Users/Ruben/AppData/Local/Temp/ios-297078.s: Assembler messages:
C:/Users/Ruben/AppData/Local/Temp/ios-297078.s:29015: Error: unknown pseudo-op:
`.hidden'
clang++: error: assembler (via gcc) command failed with exit code 1 (use -v to
see invocation)

Attached is -E and -S output. I'd really like to use Clang to hack on libc++,
it's just so much... easier than with GCC.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list