Build fail,"HashSet_jni.h:10:26: error: extra tokens at end of #ifndef directive [-Werror]"

780 views
Skip to first unread message

v.s

unread,
Aug 1, 2013, 10:11:44 AM8/1/13
to chromi...@chromium.org
Hi,

I try to compile chrominum for android on ubuntu 13, but it is failed.
the error infor is something like following.

The compile command is  "ninja -C out/Release -j8 content_shell_apk" 

I have checked java version infor:
XXXXXXXXXXXXXXX$ echo "public class Test {}" > Test.java; javac Test.java; javap -verbose Test | grep version
  minor version: 0
  major version: 51
XXXXXXXXXXX$ which javap; which javac; echo "JAVA_HOME: $JAVA_HOME"; javac -version
/usr/bin/javap
/usr/bin/javac
JAVA_HOME: /usr/local/java/jdk1.7.0_25
javac 1.7.0_25
 
================ERROR INFORMATION=====================================
gen/content/jni/HashSet_jni.h:10:26: error: extra tokens at end of #ifndef directive [-Werror]
gen/content/jni/HashSet_jni.h:11:26: error: missing whitespace after the macro name [-Werror]
In file included from ../../content/common/android/hash_set.cc:5:0:
gen/content/jni/HashSet_jni.h:24:20: error: expected initializer before '<' token
gen/content/jni/HashSet_jni.h:26:17: error: expected initializer before '<' token
gen/content/jni/HashSet_jni.h:29:22: error: expected '{' before '<' token
gen/content/jni/HashSet_jni.h:29:22: error: expected unqualified-id before '<' token
../../content/common/android/hash_set.cc:30:1: error: expected '}' at end of input
cc1plus: all warnings being treated as errors

[4334/5225] CXX obj/content/common/and.../content_common.surface_texture_peer.o
ninja: build stopped: subcommand failed.


Can someone please help me to solve this problem ?

Tommy Nyquist

unread,
Aug 1, 2013, 10:30:31 AM8/1/13
to vest...@gmail.com, chromium-dev
I believe the build instructions specifically mention you need Java 6. Could you try with that?


--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
 
 

v.s

unread,
Aug 1, 2013, 11:03:16 AM8/1/13
to chromi...@chromium.org, vest...@gmail.com
you mean that java 7 is not supported.   I thinks build instructions only gives an example instead of requirements.

ok, I will try java 6.  

Thanks very much.

在 2013年8月1日星期四UTC+8下午10时30分31秒,Tommy Nyquist写道:
Reply all
Reply to author
Forward
0 new messages