[LLVMbugs] [Bug 9760] New: Assertion Failed when integrated-as is used for ARM
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Apr 20 11:57:18 PDT 2011
http://llvm.org/bugs/show_bug.cgi?id=9760
Summary: Assertion Failed when integrated-as is used for ARM
Product: libraries
Version: trunk
Platform: PC
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: Backend: ARM
AssignedTo: unassignedbugs at nondot.org
ReportedBy: damjan.marion at gmail.com
CC: llvmbugs at cs.uiuc.edu
(damarion) > /opt/llvm/bin/arm-elf-freebsd-clang -integrated-as -v
-ccc-gcc-name -march=armv7-a -ccc-host-triple arm-elf-freebsd -c -O -pipe
-std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef
-Wno-pointer-sign -nostdinc -I. -I/Volumes/data/src/freebsd/sys
-I/Volumes/data/src/freebsd/sys/contrib/altq
-I/Volumes/data/src/freebsd/sys/contrib/libfdt -D_KERNEL
-DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common
-finline-limit=8000 --param inline-unit-growth=100 --param
large-function-growth=1000 -ffreestanding
/Volumes/data/src/freebsd/sys/cam/cam.c
clang version 3.0 (trunk 129857)
Target: arm-elf-freebsd
Thread model: posix
arm-elf-freebsd-clang: warning: unknown platform, assuming -mfloat-abi=soft
arm-elf-freebsd-clang: warning: argument unused during compilation:
'-finline-limit=8000'
arm-elf-freebsd-clang: warning: argument unused during compilation: '--param
inline-unit-growth=100'
arm-elf-freebsd-clang: warning: argument unused during compilation: '--param
large-function-growth=1000'
"/opt/llvm/bin/arm-elf-freebsd-clang" -cc1 -triple armv4t-elf-freebsd
-emit-obj -disable-free -main-file-name cam.c -mrelocation-model static
-mdisable-fp-elim -mconstructor-aliases -target-abi apcs-gnu -target-cpu
arm7tdmi -msoft-float -mfloat-abi soft -target-feature +soft-float
-target-feature +soft-float-abi -target-feature -neon -target-linker-version
123.2 -momit-leaf-frame-pointer -v -g -nostdinc -resource-dir
/opt/llvm/bin/../lib/clang/3.0 -include opt_global.h -D _KERNEL -D
HAVE_KERNEL_OPTION_HEADERS -I . -I /Volumes/data/src/freebsd/sys -I
/Volumes/data/src/freebsd/sys/contrib/altq -I
/Volumes/data/src/freebsd/sys/contrib/libfdt -O2 -Wall -Wredundant-decls
-Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
-Winline -Wcast-qual -Wundef -Wno-pointer-sign -std=c99 -ferror-limit 19
-fmessage-length 150 -ffreestanding -fgnu-runtime -fno-common
-fdiagnostics-show-option -fcolor-diagnostics -o cam.o -x c
/Volumes/data/src/freebsd/sys/cam/cam.c
clang -cc1 version 3.0 based upon llvm 3.0svn hosted on
x86_64-apple-darwin10.7.0
#include "..." search starts here:
#include <...> search starts here:
.
/Volumes/data/src/freebsd/sys
/Volumes/data/src/freebsd/sys/contrib/altq
/Volumes/data/src/freebsd/sys/contrib/libfdt
End of search list.
Assertion failed: (Offset % NumBytes == 0 && "Offset mod NumBytes is
nonzero!"), function ApplyFixup, file
/Volumes/data/src/llvm/lib/Target/ARM/ARMAsmBackend.cpp, line 407.
0 arm-elf-freebsd-clang 0x000000010169fb32
llvm::SmallVectorTemplateBase<llvm_regmatch_t, false>::grow(unsigned long) +
818
1 arm-elf-freebsd-clang 0x00000001016a0ab3
llvm::SmallVectorTemplateBase<llvm_regmatch_t, false>::grow(unsigned long) +
4787
2 libSystem.B.dylib 0x00007fff84cc666a _sigtramp + 26
3 libSystem.B.dylib 0x00007fff84c6b147 tiny_malloc_from_free_list + 1196
4 arm-elf-freebsd-clang 0x000000010169ffb2
llvm::SmallVectorTemplateBase<llvm_regmatch_t, false>::grow(unsigned long) +
1970
5 arm-elf-freebsd-clang 0x0000000100bad5ee llvm::DenseMap<unsigned int, bool,
llvm::DenseMapInfo<unsigned int>, llvm::DenseMapInfo<bool> >::grow(unsigned
int) + 6270
6 arm-elf-freebsd-clang 0x000000010162597d llvm::format_object1<unsigned
char>::snprint(char*, unsigned int) const + 32077
7 arm-elf-freebsd-clang 0x0000000101081901 llvm::APInt::getBitsSet(unsigned
int, unsigned int, unsigned int) + 28097
8 arm-elf-freebsd-clang 0x00000001015d17a6
llvm::BasicBlockPass::~BasicBlockPass() + 36550
9 arm-elf-freebsd-clang 0x00000001015d32cf
llvm::BasicBlockPass::~BasicBlockPass() + 43503
10 arm-elf-freebsd-clang 0x00000001015d35d1
llvm::BasicBlockPass::~BasicBlockPass() + 44273
11 arm-elf-freebsd-clang 0x00000001015d36ed
llvm::BasicBlockPass::~BasicBlockPass() + 44557
12 arm-elf-freebsd-clang 0x0000000100177fba
clang::PCHGenerator::~PCHGenerator() + 6522
13 arm-elf-freebsd-clang 0x00000001002b331e
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 286
14 arm-elf-freebsd-clang 0x00000001002e40e4 llvm::IRBuilder<true,
llvm::ConstantFolder, llvm::IRBuilderDefaultInserter<true>
>::CreateGEP(llvm::Value*, llvm::Value*, llvm::Twine const&) + 772
15 arm-elf-freebsd-clang 0x00000001002b196c llvm::IRBuilder<true,
llvm::ConstantFolder, llvm::IRBuilderDefaultInserter<true>
>::CreateIsNull(llvm::Value*, llvm::Twine const&) + 4236
16 arm-elf-freebsd-clang 0x0000000100040d81
llvm::DenseMap<clang::IdentifierInfo const*, unsigned int,
llvm::DenseMapInfo<clang::IdentifierInfo const*>, llvm::DenseMapInfo<unsigned
int> >::grow(unsigned int) + 9041
17 arm-elf-freebsd-clang 0x000000010000aa45 std::_Rb_tree<std::string,
std::string, std::_Identity<std::string>, std::less<std::string>,
std::allocator<std::string> >::_M_insert_unique(std::string const&) + 1893
18 arm-elf-freebsd-clang 0x0000000100002488
19 arm-elf-freebsd-clang 0x0000000100009c02 std::vector<std::string,
std::allocator<std::string> >::operator=(std::vector<std::string,
std::allocator<std::string> > const&) + 12962
20 arm-elf-freebsd-clang 0x0000000100000c34
Stack dump:
0. Program arguments: /opt/llvm/bin/arm-elf-freebsd-clang -cc1 -triple
armv4t-elf-freebsd -emit-obj -disable-free -main-file-name cam.c
-mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -target-abi
apcs-gnu -target-cpu arm7tdmi -msoft-float -mfloat-abi soft -target-feature
+soft-float -target-feature +soft-float-abi -target-feature -neon
-target-linker-version 123.2 -momit-leaf-frame-pointer -v -g -nostdinc
-resource-dir /opt/llvm/bin/../lib/clang/3.0 -include opt_global.h -D _KERNEL
-D HAVE_KERNEL_OPTION_HEADERS -I . -I /Volumes/data/src/freebsd/sys -I
/Volumes/data/src/freebsd/sys/contrib/altq -I
/Volumes/data/src/freebsd/sys/contrib/libfdt -O2 -Wall -Wredundant-decls
-Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
-Winline -Wcast-qual -Wundef -Wno-pointer-sign -std=c99 -ferror-limit 19
-fmessage-length 150 -ffreestanding -fgnu-runtime -fno-common
-fdiagnostics-show-option -fcolor-diagnostics -o cam.o -x c
/Volumes/data/src/freebsd/sys/cam/cam.c
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module
'/Volumes/data/src/freebsd/sys/cam/cam.c'.
arm-elf-freebsd-clang: error: unable to execute command: Illegal instruction
arm-elf-freebsd-clang: error: clang frontend command failed due to signal 1
(use -v to see invocation)
Code is latest trunk.
--
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