5,600,053 Members 43,412 Now Online
XDA Developers Android and Mobile Development Forum

[Q] 4.0.3 Compile problems

Tip us?
 
blackisback
Old
#1  
blackisback's Avatar
Senior Member - OP
Thanks Meter 12
Posts: 109
Join Date: Oct 2010
Question [Q] 4.0.3 Compile problems

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
 
jose.celestino
Old
#2  
jose.celestino's Avatar
Senior Member
Thanks Meter 108
Posts: 331
Join Date: Aug 2011
Either comment the ParamName variable on the cpp file or compile without the -Werror=unused-but-set-variable parameter.
Phone: SGS i9000
Android: 4.0.3
ROM: Teamhacksung ICS build10
The Following User Says Thank You to jose.celestino For This Useful Post: [ Click to Expand ]
 
blackisback
Old
#3  
blackisback's Avatar
Senior Member - OP
Thanks Meter 12
Posts: 109
Join Date: Oct 2010
Quote:
Originally Posted by jose.celestino View Post
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
 
blackisback
Old
#4  
blackisback's Avatar
Senior Member - OP
Thanks Meter 12
Posts: 109
Join Date: Oct 2010
I tried to compile with "make -i -d" and it reachs the end - i don't know if every task was concluded with success.
 
cancerouspete
Old
#5  
Senior Member
Thanks Meter 29
Posts: 133
Join Date: Dec 2011
Location: RI
Quote:
Originally Posted by blackisback View Post
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
Galaxy Nexus Toro - BB 403
The Following User Says Thank You to cancerouspete For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes