[LLVMbugs] [Bug 2119] New: compiling llvm-gcc4.2 fails: GOMP_critical_name_start: Assertion `(i >= FTy->getNumParams() || FTy->getParamType(i) == Params[i]- >getType()) && "Calling a function with a bad signature!"' failed.
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Mon Mar 3 12:48:01 PST 2008
http://llvm.org/bugs/show_bug.cgi?id=2119
Summary: compiling llvm-gcc4.2 fails: GOMP_critical_name_start:
Assertion `(i >= FTy->getNumParams() || FTy-
>getParamType(i) == Params[i]->getType()) && "Calling a
function with a bad signature!"' failed.
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: edwintorok at gmail.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=1487)
--> (http://llvm.org/bugs/attachment.cgi?id=1487)
reduced testcase
Using llvm-gcc4.2 SVN r47853, llvm SVN r47853 I get an internal error.
I could only get a preprocessed .i file, even -O0 gives the error.
I reduced critical.i to testcase-min.i, looks like __sync_bool_compare_and_swap
is the cause of this.
make[4]: Entering directory
`/home/edwin/llvm-svn/obj42/x86_64-unknown-linux-gnu/libgomp'
if /bin/sh ./libtool --mode=compile /home/edwin/llvm-svn/obj42/./gcc/xgcc
-B/home/edwin/llvm-svn/obj42/./gcc/
-B/home/edwin/llvm-svn/obj42/../install/x86_64-unknown-linux-gnu/bin/
-B/home/edwin/llvm-svn/obj42/../install/x86_64-unknown-linux-gnu/lib/ -isystem
/home/edwin/llvm-svn/obj42/../install/x86_64-unknown-linux-gnu/include -isystem
/home/edwin/llvm-svn/obj42/../install/x86_64-unknown-linux-gnu/sys-include
-DHAVE_CONFIG_H -I. -I../../../llvm-gcc4.2/libgomp -I.
-I../../../llvm-gcc4.2/libgomp/config/linux/x86
-I../../../llvm-gcc4.2/libgomp/config/linux
-I../../../llvm-gcc4.2/libgomp/config/posix -I../../../llvm-gcc4.2/libgomp
-Wall -Werror -Wc,-pthread -O2 -g -O2 -MT critical.lo -MD -MP -MF
".deps/critical.Tpo" -c -o critical.lo ../../../llvm-gcc4.2/libgomp/critical.c;
\
then mv -f ".deps/critical.Tpo" ".deps/critical.Plo"; else rm -f
".deps/critical.Tpo"; exit 1; fi
/home/edwin/llvm-svn/obj42/./gcc/xgcc -B/home/edwin/llvm-svn/obj42/./gcc/
-B/home/edwin/llvm-svn/obj42/../install/x86_64-unknown-linux-gnu/bin/
-B/home/edwin/llvm-svn/obj42/../install/x86_64-unknown-linux-gnu/lib/ -isystem
/home/edwin/llvm-svn/obj42/../install/x86_64-unknown-linux-gnu/include -isystem
/home/edwin/llvm-svn/obj42/../install/x86_64-unknown-linux-gnu/sys-include
-DHAVE_CONFIG_H -I. -I../../../llvm-gcc4.2/libgomp -I.
-I../../../llvm-gcc4.2/libgomp/config/linux/x86
-I../../../llvm-gcc4.2/libgomp/config/linux
-I../../../llvm-gcc4.2/libgomp/config/posix -I../../../llvm-gcc4.2/libgomp
-Wall -pthread -Werror -O2 -g -O2 -MT critical.lo -MD -MP -MF
.deps/critical.Tpo -c ../../../llvm-gcc4.2/libgomp/critical.c -o critical.o
cc1: Instructions.cpp:266: void llvm::CallInst::init(llvm::Value*, llvm::Value*
const*, unsigned int): Assertion `(i >= FTy->getNumParams() ||
FTy->getParamType(i) == Params[i]->getType()) && "Calling a function with a bad
signature!"' failed.
../../../llvm-gcc4.2/libgomp/critical.c: In function
'GOMP_critical_name_start':
../../../llvm-gcc4.2/libgomp/critical.c:54: internal compiler error: Aborted
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://developer.apple.com/bugreporter> for instructions.
make[4]: *** [critical.lo] Error 1
make[4]: Leaving directory
`/home/edwin/llvm-svn/obj42/x86_64-unknown-linux-gnu/libgomp'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/home/edwin/llvm-svn/obj42/x86_64-unknown-linux-gnu/libgomp'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/home/edwin/llvm-svn/obj42/x86_64-unknown-linux-gnu/libgomp'
make[1]: *** [all-target-libgomp] Error 2
make[1]: Leaving directory `/home/edwin/llvm-svn/obj42'
make: *** [all] Error 2
This is on an x86-64 platform, so I compile without bootstrapping (it was
building successfully a while ago, can't remember which SVN version):
$ ../llvm-gcc4.2/configure --prefix=/home/edwin/llvm-svn/obj42/../install
--program-prefix=llvm- --enable-llvm=/home/edwin/llvm-svn/llvm/
--disable-shared --disable-multilib --disable-bootstrap
--enable-languages=c,c++
$ uname -a
Linux lightspeed2 2.6.24-1-amd64 #1 SMP Mon Feb 11 13:47:43 UTC 2008 x86_64
GNU/Linux
$ gcc -v
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v
--enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr
--enable-shared --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --enable-nls
--with-gxx-include-dir=/usr/include/c++/4.2 --program-suffix=-4.2
--enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr
--disable-libmudflap --enable-checking=release --build=x86_64-linux-gnu
--host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.2.3 (Debian 4.2.3-1)
--
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