XNepster / oxygen-for-p500

Automatically exported from code.google.com/p/oxygen-for-p500
https://github.com/lixar/robolectric
0 stars 0 forks source link

Uncompilable source code #112

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Just follows wiki..
I just thought you should know it.. :)

host StaticLib: libLLVMJIT 
(out/host/linux-x86/obj/STATIC_LIBRARIES/libLLVMJIT_intermediates/libLLVMJIT.a)
host C++: libbccExecutionEngine <= 
frameworks/compile/libbcc/lib/ExecutionEngine/FileHandle.cpp
host StaticLib: librsloader 
(out/host/linux-x86/obj/STATIC_LIBRARIES/librsloader_intermediates/librsloader.a
)
<command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror]
<built-in>:0:0: note: this is the location of the previous definition
<command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror]
<built-in>:0:0: note: this is the location of the previous definition
host C++: libbccExecutionEngine <= 
frameworks/compile/libbcc/lib/ExecutionEngine/ScriptCompiled.cpp
host C++: libbccExecutionEngine <= 
frameworks/compile/libbcc/lib/ExecutionEngine/Script.cpp
host C++: libbccExecutionEngine <= 
frameworks/compile/libbcc/lib/ExecutionEngine/SourceInfo.cpp
<command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror]
<built-in>:0:0: note: this is the location of the previous definition
<command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror]
<built-in>:0:0: note: this is the location of the previous definition
cc1plus: all warnings being treated as errors
make: *** 
[out/host/linux-x86/obj/STATIC_LIBRARIES/libbccExecutionEngine_intermediates/Fil
eHandle.o] Error 1
make: *** Waiting for unfinished jobs....
<command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror]
<built-in>:0:0: note: this is the location of the previous definition
cc1plus: all warnings being treated as errors
make: *** 
[out/host/linux-x86/obj/STATIC_LIBRARIES/libbccExecutionEngine_intermediates/Scr
iptCompiled.o] Error 1
cc1plus: all warnings being treated as errors
make: *** 
[out/host/linux-x86/obj/STATIC_LIBRARIES/libbccExecutionEngine_intermediates/Sou
rceInfo.o] Error 1
cc1plus: all warnings being treated as errors
make: *** 
[out/host/linux-x86/obj/STATIC_LIBRARIES/libbccExecutionEngine_intermediates/Scr
ipt.o] Error 1
cc1plus: all warnings being treated as errors
make: *** 
[out/host/linux-x86/obj/STATIC_LIBRARIES/libbccExecutionEngine_intermediates/Com
piler.o] Error 1
  INSTALL include/asm (32 files)
make[1]: Leaving directory `/media/Datas/WORKING_DIR/kernel/lge/msm7x27'

target StaticLib: libc_nomalloc 
(out/target/product/p500/obj/STATIC_LIBRARIES/libc_nomalloc_intermediates/libc_n
omalloc.a)
k@k-pc:/media/Datas/WORKING_DIR$ 

Original issue reported on code.google.com by Kons.s...@gmail.com on 18 Sep 2012 at 3:46

GoogleCodeExporter commented 9 years ago
to fix :
in /build/core/combo/HOST_linux-x86.mk
change line 56 to:
HOST_GLOBAL_CFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0

Original comment by Kons.s...@gmail.com on 18 Sep 2012 at 3:55

GoogleCodeExporter commented 9 years ago
This is only an issue if you compile with newer GCC. I'm using Ubuntu 10.04 
with GCC 4.4.3 and there is no issue. But you make a good point. I'm going to 
add this as a warning to the wiki.

Thanks!

Original comment by mihai.an...@gmail.com on 18 Sep 2012 at 5:31