On Wednesday, March 21, 2018 at 11:04:32 AM UTC-3, Maxsim wrote:
>
> *Hello, Could somebody help me with next problem:*
>
> *console log:*
>
> ninja: no work to do.
> ninja: no work to do.
> No need to regenerate ninja file
> [  0% 250/83955] Ensuring Jack server is installed and started
> FAILED: setup-jack-server 
> /bin/bash -c "(prebuilts/sdk/tools/jack-admin install-server 
> prebuilts/sdk/tools/jack-launcher.jar 
> prebuilts/sdk/tools/jack-server-4.11.ALPHA.jar  2>&1 || (exit 0) ) && 
> (JACK_SERVER_VM_ARGUMENTS=\"-Xmx2g -Dfile.encoding=UTF-8 
> -XX:+TieredCompilation\" prebuilts/sdk/tools/jack-admin start-server 2>&1 
> || exit 0 ) && (prebuilts/sdk/tools/jack-admin update server 
> prebuilts/sdk/tools/jack-server-4.11.ALPHA.jar 4.11.ALPHA 2>&1 || exit 0 ) 
> && (prebuilts/sdk/tools/jack-admin update jack 
> prebuilts/sdk/tools/jacks/jack-4.32.CANDIDATE.jar 4.32.CANDIDATE || exit 47 
> )"
> Jack server already installed in "/home/m_timenko/.jack-server"
> Launching Jack server java -XX:MaxJavaStackTraceDepth=-1 
> -Djava.io.tmpdir=/tmp -Xmx2g -Dfile.encoding=UTF-8 -XX:+TieredCompilation 
> -cp /home/m_timenko/.jack-server/launcher.jar 
> com.android.jack.launcher.ServerLauncher
> Jack server failed to (re)start, try 'jack-diagnose' or see Jack server log
> No Jack server running. Try 'jack-admin start-server'
> No Jack server running. Try 'jack-admin start-server'
> [  0% 253/83955] target  C++: libv8src_32 <= external/v8/src/map-updater.cc
> ninja: build stopped: subcommand failed.
> 15:10:34 ninja failed with: exit status 1
>

I'm having a similar issue. It seems jack is not *really* meant for 
multi-user builds -- and that is my case (I have a build server that 
multiple people use to build a shared lib that uses ndk). You need to check 
if the user you are running your build as is m_timenko. Any other user will 
not be able to access the jack-server installed 
under /home/m_timenko/.jack-server unless you properly configure it. I 
don't know how to configure it for multiple users, but there is a hint 
here: https://source.android.com/setup/build/jack that says:

Jack limitations

   - By default, the Jack server is mono-user and can be used by only one 
   user on a computer. To support additional users, select different port 
   numbers for each user and adjust SERVER_NB_COMPILE accordingly. You can 
   also disable the Jack server by setting SERVER=false in $HOME/.jack.

If anyone has an example of how to do this, I would certainly appreciate 
the help.


-- 
-- 
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