> FAILED:
out/target/product/hikey960/obj/STATIC_LIBRARIES/libedify_intermediates/parser.cpp
> /bin/bash -c "prebuilts/misc/linux-x86/bison/bison -d
 
--defines=out/target/product/hikey960/obj/STATIC_LIBRARIES/libedify_intermediates/parser.h
-o
out/target/product/hikey960/obj/STATIC_LIBRARIES/libedify_intermediates/parser.cpp
bootable/recovery/edify/parser.yy"
> /bin/bash: prebuilts/misc/linux-x86/bison/bison: No such file or directory

Does prebuilt/misc/linux-x86/bison/bison exist in your source directory? It
should, maybe a sync failed?

- Dan

On Tue, Jun 27, 2017, 7:08 AM Rakshith Patkar <[email protected]>
wrote:

> My build ends up with the following error:
>
> Any lead in this regard would be helpful :)
>
> rakshith@patkar007:~/Projects/android-source/hikey960$ make -j4
> ============================================
> PLATFORM_VERSION_CODENAME=O
> PLATFORM_VERSION=O
> TARGET_PRODUCT=hikey960
> TARGET_BUILD_VARIANT=userdebug
> TARGET_BUILD_TYPE=release
> TARGET_ARCH=arm64
> TARGET_ARCH_VARIANT=armv8-a
> TARGET_CPU_VARIANT=cortex-a53
> TARGET_2ND_ARCH=arm
> TARGET_2ND_ARCH_VARIANT=armv7-a-neon
> TARGET_2ND_CPU_VARIANT=cortex-a53
> HOST_ARCH=x86_64
> HOST_2ND_ARCH=x86
> HOST_OS=linux
> HOST_OS_EXTRA=Linux-4.4.0-21-generic-x86_64-with-Ubuntu-16.04-xenial
> HOST_CROSS_OS=windows
> HOST_CROSS_ARCH=x86
> HOST_CROSS_2ND_ARCH=x86_64
> HOST_BUILD_TYPE=release
> BUILD_ID=NYC
> OUT_DIR=out
> ============================================
> [2/2] bootstrap out/soong/.minibootstrap/build.ninja.in
> [1/2] out/soong/.bootstrap/bin/minibp out/soong/.minibootstrap/
> build.ninja.in
> ninja: no work to do.
> ninja: no work to do.
> No need to regenerate ninja file
> [  0% 1/47354] Yacc: applypatch <= bootable/recovery/edify/parser.yy
> FAILED:
> out/target/product/hikey960/obj/STATIC_LIBRARIES/libedify_intermediates/parser.cpp
> /bin/bash -c "prebuilts/misc/linux-x86/bison/bison -d
>  
> --defines=out/target/product/hikey960/obj/STATIC_LIBRARIES/libedify_intermediates/parser.h
> -o
> out/target/product/hikey960/obj/STATIC_LIBRARIES/libedify_intermediates/parser.cpp
> bootable/recovery/edify/parser.yy"
> /bin/bash: prebuilts/misc/linux-x86/bison/bison: No such file or directory
> [  0% 4/47354] Ensuring Jack server is installed and started
> Jack server already installed in "/home/rakshith/.jack-server"
> Launching Jack server java -XX:MaxJavaStackTraceDepth=-1
> -Djava.io.tmpdir=/tmp -Dfile.encoding=UTF-8 -XX:+TieredCompilation
> -Xmx2048m -cp /home/rakshith/.jack-server/launcher.jar
> com.android.jack.launcher.ServerLauncher
> ninja: build stopped: subcommand failed.
> 10:02:03 ninja failed with: exit status 1
> build/core/main.mk:21: recipe for target 'run_soong_ui' failed
> make: *** [run_soong_ui] Error 1
>
> #### make failed to build some targets (01:00 (mm:ss)) ####
>
>
>
> -------------------------------------------------------------------------------------------------------------------
>
> On Tuesday, September 6, 2016 at 7:44:32 PM UTC+5:30, James Muir wrote:
>
>> argh... I found the problem:  me :-)
>>
>> I had the variable ANDROID_JAVA_HOME set in my bashrc file.  This was a
>> remnant of kitkat development and so it pointed to an oracle java-6 jdk
>> directory on my machine :-(
>>
>> "showcommands" was helpful in uncovering this silliness:
>>
>> cd external/doclava && mm -B USE_NINJA=false showcommands
>>
>>
>> After dropping the definition of ANDROID_JAVA_HOME, I am able to build
>> successfully.
>>
>> -James M
>>
>> On Sunday, September 4, 2016 at 1:11:28 PM UTC-4, James Muir wrote:
>>>
>>> First, thanks to Bill Yi and team for publishing the N sources.
>>>
>>> I have a tree synced to the tag *android-7.0.0_r1* on an ubuntu 16.04
>>> machine, but am hitting the following build error:
>>>
>>> external/doclava/src/com/google/doclava/Converter.java:407: error:
>>> cannot find symbol
>>>                     m.isAbstract(), m.isSynchronized(), m.isNative(),
>>> m.isDefault(), true,
>>>                                                                        ^
>>>   symbol:   method isDefault()
>>>   location: variable m of type AnnotationTypeElementDoc
>>> external/doclava/src/com/google/doclava/Converter.java:429: error:
>>> cannot find symbol
>>>                     m.isAbstract(), m.isSynchronized(), m.isNative(),
>>> m.isDefault(), false,
>>>                                                                        ^
>>>   symbol:   method isDefault()
>>>   location: variable m of type MethodDoc
>>> Note: Some input files use unchecked or unsafe operations.
>>> Note: Recompile with -Xlint:unchecked for details.
>>> 2 errors
>>> ninja: build stopped: subcommand failed.
>>> build/core/ninja.mk:148: recipe for target 'ninja_wrapper' failed
>>> make: *** [ninja_wrapper] Error 1
>>> make: Leaving directory '/home/jamuir/git/android-7.0-platform'
>>>
>>>
>>> I can reproduce the error this like this:  "cd external/doclava && mm
>>> -B".
>>>
>>> This seems like a java incompatibility issue.  I am using openjdk-8 (I
>>> have not tried oracle-java-8).
>>>
>>> Here is my java version:
>>>
>>> external/doclava$ java -version
>>> openjdk version "1.8.0_91"
>>> OpenJDK Runtime Environment (build
>>> 1.8.0_91-8u91-b14-3ubuntu1~16.04.1-b14)
>>> OpenJDK 64-Bit Server VM (build 25.91-b14, mixed mode)
>>>
>>>
>>> Does anyone have a solution for this?
>>>
>>> What version of openjdk-8 were you able to use to successfully
>>> compile android-7.0.0_r1 ?
>>>
>>> Note that I tried adding casts, ((MethodInfo)m).isDefault(), but that
>>> causes another error later on in the build.
>>>
>>> -James M
>>>
>>> --
> --
> You received this message because you are subscribed to the "Android
> Building" mailing list.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-building?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Building" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to