My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 112: Uncompilable source code
1 person starred this issue and may be notified of changes. Back to list
Status:  Done
Owner:  ----
Closed:  Sep 2012


 
Reported by Kons.s...@gmail.com, Sep 18, 2012
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/FileHandle.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/ScriptCompiled.o] Error 1
cc1plus: all warnings being treated as errors
make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libbccExecutionEngine_intermediates/SourceInfo.o] Error 1
cc1plus: all warnings being treated as errors
make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libbccExecutionEngine_intermediates/Script.o] Error 1
cc1plus: all warnings being treated as errors
make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libbccExecutionEngine_intermediates/Compiler.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_nomalloc.a)
k@k-pc:/media/Datas/WORKING_DIR$ 

Sep 18, 2012
#1 Kons.s...@gmail.com
to fix :
in /build/core/combo/HOST_linux-x86.mk
change line 56 to:
HOST_GLOBAL_CFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0
Sep 18, 2012
Project Member #2 mihai.an...@gmail.com
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!
Status: Done

Powered by Google Project Hosting