FORUMS
Post Reply Subscribe to Thread Email Thread

[Q] 4.0.3 Compile problems

19th December 2011, 12:28 AM |#1  
blackisback's Avatar
OP Senior Member
Thanks Meter: 12
 
More
Hi,

I'm trying to compile Android (following the instructions that appears in the site 'source' of 'android.com') but after some minutes I get this error:
"
Building Clang Driver Option tables with tblgen
Host TableGen: vdc (gen-opt-parser-defs) <= external/clang/include/clang/Driver/Options.td
host C++: llvm-rs-cc <= frameworks/compile/slang/llvm-rs-cc.cpp
host C++: llvm-rs-cc <= frameworks/compile/slang/slang_rs.cpp
host C++: llvm-rs-cc <= frameworks/compile/slang/slang_rs_ast_replace.cpp
host C++: llvm-rs-cc <= frameworks/compile/slang/slang_rs_context.cpp
host C++: llvm-rs-cc <= frameworks/compile/slang/slang_rs_pragma_handler.cpp
host C++: llvm-rs-cc <= frameworks/compile/slang/slang_rs_backend.cpp
host C++: llvm-rs-cc <= frameworks/compile/slang/slang_rs_exportable.cpp
host C++: llvm-rs-cc <= frameworks/compile/slang/slang_rs_export_type.cpp
host C++: llvm-rs-cc <= frameworks/compile/slang/slang_rs_export_element.cpp
host C++: llvm-rs-cc <= frameworks/compile/slang/slang_rs_export_var.cpp
host C++: llvm-rs-cc <= frameworks/compile/slang/slang_rs_export_func.cpp
host C++: llvm-rs-cc <= frameworks/compile/slang/slang_rs_export_foreach.cpp
frameworks/compile/slang/slang_rs_export_foreach.cpp: In static member function ‘static slang::RSExportForEach* slang::RSExportForEach::Create(slang::RSContext*, const clang::FunctionDecl*)’:
frameworks/compile/slang/slang_rs_export_foreach.cpp:249:23: error: variable ‘ParamName’ set but not used [-Werror=unused-but-set-variable]
cc1plus: all warnings being treated as errors

make: *** [out/host/linux-x86/obj/EXECUTABLES/llvm-rs-cc_intermediates/slang_rs_export_foreach.o] Error ...

"

Can anyone help me?

Thanks
 
 
19th December 2011, 01:29 PM |#2  
jose.celestino's Avatar
Senior Member
Thanks Meter: 108
 
More
Either comment the ParamName variable on the cpp file or compile without the -Werror=unused-but-set-variable parameter.
The Following User Says Thank You to jose.celestino For This Useful Post: [ View ]
19th December 2011, 02:44 PM |#3  
blackisback's Avatar
OP Senior Member
Thanks Meter: 12
 
More
Quote:
Originally Posted by jose.celestino

Either comment the ParamName variable on the cpp file or compile without the -Werror=unused-but-set-variable parameter.

Hi,

I saw that from the error message but it didn't solve my problem. After that was another, and another,...
Some people said that follow the instructions in the android site and didn't have any problem.
I'm using the last version of Linux Mint - is it possible to be related with that????

thanks
19th December 2011, 03:32 PM |#4  
blackisback's Avatar
OP Senior Member
Thanks Meter: 12
 
More
I tried to compile with "make -i -d" and it reachs the end - i don't know if every task was concluded with success.
24th January 2012, 09:32 PM |#5  
Senior Member
Flag RI
Thanks Meter: 29
 
More
Quote:
Originally Posted by blackisback

Hi,

I'm trying to compile Android (following the instructions that appears in the site 'source' of 'android.com') but after some minutes I get this error:
"
Building Clang Driver Option tables with tblgen
Host TableGen: vdc (gen-opt-parser-defs) <= external/clang/include/clang/Driver/Options.td
host C++: llvm-rs-cc <= frameworks/compile/slang/llvm-rs-cc.cpp
host C++: llvm-rs-cc <= frameworks/compile/slang/slang_rs.cpp
host C++: llvm-rs-cc <= frameworks/compile/slang/slang_rs_ast_replace.cpp
host C++: llvm-rs-cc <= frameworks/compile/slang/slang_rs_context.cpp
host C++: llvm-rs-cc <= frameworks/compile/slang/slang_rs_pragma_handler.cpp
host C++: llvm-rs-cc <= frameworks/compile/slang/slang_rs_backend.cpp
host C++: llvm-rs-cc <= frameworks/compile/slang/slang_rs_exportable.cpp
host C++: llvm-rs-cc <= frameworks/compile/slang/slang_rs_export_type.cpp
host C++: llvm-rs-cc <= frameworks/compile/slang/slang_rs_export_element.cpp
host C++: llvm-rs-cc <= frameworks/compile/slang/slang_rs_export_var.cpp
host C++: llvm-rs-cc <= frameworks/compile/slang/slang_rs_export_func.cpp
host C++: llvm-rs-cc <= frameworks/compile/slang/slang_rs_export_foreach.cpp
frameworks/compile/slang/slang_rs_export_foreach.cpp: In static member function ‘static slang::RSExportForEach* slang::RSExportForEach::Create(slang::RSContext*, const clang::FunctionDecl*)’:
frameworks/compile/slang/slang_rs_export_foreach.cpp:249:23: error: variable ‘ParamName’ set but not used [-Werror=unused-but-set-variable]
cc1plus: all warnings being treated as errors

make: *** [out/host/linux-x86/obj/EXECUTABLES/llvm-rs-cc_intermediates/slang_rs_export_foreach.o] Error ...

"

Can anyone help me?

Thanks

only for the record:
http://code.google.com/p/android/issues/detail?id=22006

Reported by aapo.ran...@gmail.com, Nov 18, 2011

Host OS:
Linux 3.0.0-12-generic #20-Ubuntu SMP x86_64 GNU/Linux
gcc (Ubuntu/Linaro 4.6.1-9ubuntu3) 4.6.1

Compiling Android from git (master) stops with error:

frameworks/compile/slang/slang_rs_export_foreach.cpp:247:23: error: variable ‘ParamName’ set but not used [-Werror=unused-but-set-variable]
cc1plus: all warnings being treated as errors

Fix/Workaround:
frameworks/compile/slang/Android.mk
-local_cflags_for_slang := -Wno-sign-promo -Wall -Wno-unused-parameter -Werror
+local_cflags_for_slang := -Wno-sign-promo -Wall -Wno-unused-parameter
The Following User Says Thank You to cancerouspete For This Useful Post: [ View ]
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes