Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

error: conflicting types for '__clear_cache' #17006

Open Quuxplusone opened 11 years ago

Quuxplusone commented 11 years ago
Bugzilla Link PR17007
Status NEW
Importance P normal
Reported by Erik Schnetter (schnetter@gmail.com)
Reported on 2013-08-26 18:33:18 -0700
Last modified on 2014-01-15 14:44:19 -0800
Version trunk
Hardware Other Linux
CC johnruble@gmail.com, llvm-bugs@lists.llvm.org, rafael@espindo.la
Fixed by commit(s)
Attachments
Blocks
Blocked by
See also
LLVM trunk (Revision: 189279) does not build for me on a Raspberry Pi with
Raspbian. I configure with

../llvm/configure '--build=armv6-unknown-linux-gnueabihf' '--with-
cpu=arm1176jzf-s' '--with-float=hard' '--with-abi=aapcs-vfp' '--enable-
targets=arm' '--enable-optimized' '--enable-assertions' '--enable-shared' '--
prefix=/home/pi/llvm'

and then build with

make

and then receive the error message

make[1]: Entering directory `/home/pi/eschnetter-titan/water/llvm-
build/lib/Support'
llvm[1]: Compiling Memory.cpp for Release+Asserts build
In file included from /home/pi/eschnetter-
titan/water/llvm/lib/Support/Memory.cpp:21:
/home/pi/eschnetter-titan/water/llvm/lib/Support/Unix/Memory.inc:38:17: error:
      conflicting types for '__clear_cache'
extern "C" void __clear_cache(void *, void*);
                ^
/home/pi/eschnetter-titan/water/llvm/lib/Support/Unix/Memory.inc:38:17: note:
      '__clear_cache' is a builtin with type 'void ()'
1 error generated.
make[1]: *** [/home/pi/eschnetter-titan/water/llvm-
build/lib/Support/Release+Asserts/Memory.o] Error 1
make[1]: Leaving directory `/home/pi/eschnetter-titan/water/llvm-
build/lib/Support'
make: *** [all] Error 1

I am using gcc 4.6.1 (Debian 4.6.3-14+rpi1) for building.
Quuxplusone commented 10 years ago
same problem building LLVM 3.4 release on debian 7.1 on i.mx53 board,
configured with:

CC=clang CXX=clang++ ../llvm/configure --enable-optimized --disable-docs --with-
optimize-option=-O3 --with-float=hard --with-abi=aapcs-vfp --with-fpu=neon --
enable-assertions --with-cpu=cortex-a8

In file included from /mnt/sata/llvm34/llvm/lib/Support/Memory.cpp:21:
/mnt/sata/llvm34/llvm/lib/Support/Unix/Memory.inc:38:17: error: conflicting
types for '__clear_cache'
extern "C" void __clear_cache(void *, void*);
                ^
/mnt/sata/llvm34/llvm/lib/Support/Unix/Memory.inc:38:17: note: '__clear_cache'
is a builtin with type 'void ()'
1 error generated.
make[1]: *** [/mnt/sata/llvm34/build/lib/Support/Release+Asserts/Memory.o]
Error 1
make[1]: Leaving directory `/mnt/sata/llvm34/build/lib/Support'

building with clang 3.3:
$ clang --version
clang version 3.3 (tags/RELEASE_33/final)
Target: armv7l-unknown-linux-gnueabihf
Thread model: posix