flyyanghp / iphone-dev

Automatically exported from code.google.com/p/iphone-dev
0 stars 0 forks source link

/usr/local/arm-apple-darwin/include/libkern/OSByteOrder.h:341: error: invalid conversion from 'const volatile void*' to 'volatile void*' #85

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
I am on the
make LLVM_VERSION_INFO=2.0-svn-iphone-dev-0.3-svn
step

What is the expected output? What do you see instead?
Should compile cleanly, instead I see

Making all in libsupc++
/bin/sh ../libtool --tag CXX --tag disable-shared --mode=compile 
/Users/infaux/iPhone/iphone-dev/build/llvm-gcc-4.0-iphone/gcc/xgcc 
-shared-libgcc -
B/Users/infaux/iPhone/iphone-dev/build/llvm-gcc-4.0-iphone/gcc/ -nostdinc++ -
L/Users/infaux/iPhone/iphone-dev/build/llvm-gcc-4.0-iphone/arm-apple-darwin/libs
tdc++-
v3/src -L/Users/infaux/iPhone/iphone-dev/build/llvm-gcc-4.0-iphone/arm-apple-
darwin/libstdc++-v3/src/.libs -B/usr/local/arm-apple-darwin/bin/ 
-B/usr/local/arm-apple-
darwin/lib/ -isystem /usr/local/arm-apple-darwin/include -isystem 
/usr/local/arm-apple-
darwin/sys-include 
-I/Users/infaux/iPhone/iphone-dev/llvm-gcc-4.0-iphone/libstdc++-
v3/../gcc -I/Users/infaux/iPhone/iphone-dev/build/llvm-gcc-4.0-iphone/arm-apple-
darwin/libstdc++-v3/include/arm-apple-darwin -I/Users/infaux/iPhone/iphone-
dev/build/llvm-gcc-4.0-iphone/arm-apple-darwin/libstdc++-v3/include -
I/Users/infaux/iPhone/iphone-dev/llvm-gcc-4.0-iphone/libstdc++-v3/libsupc++  -g 
-O2 -
fno-implicit-templates -prefer-pic -Wall -Wextra -Wwrite-strings -Wcast-qual  
-fdiagnostics-
show-location=once  -ffunction-sections -fdata-sections  -c -o del_op.lo 
../../../../../llvm-
gcc-4.0-iphone/libstdc++-v3/libsupc++/del_op.cc
/Users/infaux/iPhone/iphone-dev/build/llvm-gcc-4.0-iphone/gcc/xgcc 
-shared-libgcc -
B/Users/infaux/iPhone/iphone-dev/build/llvm-gcc-4.0-iphone/gcc/ -nostdinc++ -
L/Users/infaux/iPhone/iphone-dev/build/llvm-gcc-4.0-iphone/arm-apple-darwin/libs
tdc++-
v3/src -L/Users/infaux/iPhone/iphone-dev/build/llvm-gcc-4.0-iphone/arm-apple-
darwin/libstdc++-v3/src/.libs -B/usr/local/arm-apple-darwin/bin/ 
-B/usr/local/arm-apple-
darwin/lib/ -isystem /usr/local/arm-apple-darwin/include -isystem 
/usr/local/arm-apple-
darwin/sys-include 
-I/Users/infaux/iPhone/iphone-dev/llvm-gcc-4.0-iphone/libstdc++-
v3/../gcc -I/Users/infaux/iPhone/iphone-dev/build/llvm-gcc-4.0-iphone/arm-apple-
darwin/libstdc++-v3/include/arm-apple-darwin -I/Users/infaux/iPhone/iphone-
dev/build/llvm-gcc-4.0-iphone/arm-apple-darwin/libstdc++-v3/include -
I/Users/infaux/iPhone/iphone-dev/llvm-gcc-4.0-iphone/libstdc++-v3/libsupc++ -g 
-O2 -
fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual 
-fdiagnostics-show-
location=once -ffunction-sections -fdata-sections -c 
../../../../../llvm-gcc-4.0-
iphone/libstdc++-v3/libsupc++/del_op.cc  -fno-common -DPIC -o del_op.o
/usr/local/arm-apple-darwin/include/libkern/OSByteOrder.h: In function 
'uint16_t 
OSReadBigInt16(const volatile void*, uintptr_t)':
/usr/local/arm-apple-darwin/include/libkern/OSByteOrder.h:341: error: invalid 
conversion from 
'const volatile void*' to 'volatile void*'
/usr/local/arm-apple-darwin/include/libkern/OSByteOrder.h:341: error:   
initializing argument 
1 of 'uint16_t OSReadSwapInt16(volatile void*, uintptr_t)'
/usr/local/arm-apple-darwin/include/libkern/OSByteOrder.h: In function 
'uint32_t 
OSReadBigInt32(const volatile void*, uintptr_t)':
/usr/local/arm-apple-darwin/include/libkern/OSByteOrder.h:351: error: invalid 
conversion from 
'const volatile void*' to 'volatile void*'
/usr/local/arm-apple-darwin/include/libkern/OSByteOrder.h:351: error:   
initializing argument 
1 of 'uint32_t OSReadSwapInt32(volatile void*, uintptr_t)'
/usr/local/arm-apple-darwin/include/libkern/OSByteOrder.h: In function 
'uint64_t 
OSReadBigInt64(const volatile void*, uintptr_t)':
/usr/local/arm-apple-darwin/include/libkern/OSByteOrder.h:361: error: invalid 
conversion from 
'const volatile void*' to 'volatile void*'
/usr/local/arm-apple-darwin/include/libkern/OSByteOrder.h:361: error:   
initializing argument 
1 of 'uint64_t OSReadSwapInt64(volatile void*, uintptr_t)'
make[3]: *** [del_op.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** [all-target-libstdc++-v3] Error 2

What version of the product are you using? On what operating system?
iphone-dev .3
OS X 10.4.10 x86

Please provide any additional information below.

Original issue reported on code.google.com by IND.CCA....@gmail.com on 19 Oct 2007 at 12:47

GoogleCodeExporter commented 9 years ago
for the record I didn't have the same error as that other person who had 
problems with "make 
LLVM_VERSION_INFO=2.0-svn-iphone-dev-0.3-svn"
I got:
checking for sin in -lm... yes

so it shouldn't be the same issue.

Original comment by IND.CCA....@gmail.com on 19 Oct 2007 at 12:49