[Q] 4.0.3 Compile problems

Search This thread

blackisback

Senior Member
Oct 15, 2010
109
12
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
 

blackisback

Senior Member
Oct 15, 2010
109
12
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

Senior Member
Oct 15, 2010
109
12
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

Senior Member
Dec 18, 2011
132
29
RI
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
 
  • Like
Reactions: AbstractMind87

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    Either comment the ParamName variable on the cpp file or compile without the -Werror=unused-but-set-variable parameter.
    1
    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