I noticed my cellar in my go env, and uninstalled all versions go installed 
by brew. Reinstalled go from macOS package installer and re-built perkeep. 
Step 34 of 35 still fails?

My go env output is now:

Clives-MBP:android seebe$ go env

GOARCH="amd64"

GOBIN=""

GOCACHE="/Users/seebe/Library/Caches/go-build"

GOEXE=""

GOFLAGS=""

GOHOSTARCH="amd64"

GOHOSTOS="darwin"

GOOS="darwin"

GOPATH="/Users/seebe/go"

GOPROXY=""

GORACE=""

GOROOT="/usr/local/go"

GOTMPDIR=""

GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"

GCCGO="gccgo"

CC="clang"

CXX="clang++"

CGO_ENABLED="1"

GOMOD=""

CGO_CFLAGS="-g -O2"

CGO_CPPFLAGS=""

CGO_CXXFLAGS="-g -O2"

CGO_FFLAGS="-g -O2"

CGO_LDFLAGS="-g -O2"

PKG_CONFIG="pkg-config"

GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments 
-fmessage-length=0 
-fdebug-prefix-map=/var/folders/xd/42gpsdk973540hm355_3lfr40000gn/T/go-build182361935=/tmp/go-build
 
-gno-record-gcc-switches -fno-common"

Clives-MBP:android seebe$ 


     

On Friday, October 19, 2018 at 1:16:48 AM UTC-7, clive.boulton wrote:
>
> Step 34 of 35 fails?
>
>
> I googled for a solution. Doubled checked my go version and xcode cli 
> tools are installed and working. Attached go env outputs:
>
>
>
> Clives-MBP:android seebe$ make env
>
> mkdir -p /Users/seebe/.gradle
>
> mkdir -p /Users/seebe/.android
>
> docker build -t perkeep/android devenv
>
> Sending build context to Docker daemon  4.096kB
>
> Step 1/35 : FROM openjdk:8-jdk
>
>  ---> 77582d6037d7
>
> Step 2/35 : MAINTAINER camlistore <[email protected]>
>
>  ---> Using cache
>
>  ---> 6d9e0f3e757d
>
> Step 3/35 : RUN echo "Adding gopher user and group" && groupadd --system 
> --gid 1000 gopher && useradd --system --gid gopher --uid 1000 --shell 
> /bin/bash --create-home gopher && mkdir /home/gopher/.gradle && chown 
> --recursive gopher:gopher /home/gopher
>
>  ---> Using cache
>
>  ---> 31bfbf183243
>
> Step 4/35 : RUN apt-get update && apt-get -y upgrade
>
>  ---> Using cache
>
>  ---> bfc19d6c1985
>
> Step 5/35 : RUN apt-get install -y lib32z1 lib32stdc++6
>
>  ---> Using cache
>
>  ---> 46da722745b2
>
> Step 6/35 : RUN apt-get -y --no-install-recommends install curl gcc
>
>  ---> Using cache
>
>  ---> e77457fa3b45
>
> Step 7/35 : RUN apt-get -y --no-install-recommends install ca-certificates 
> libc6-dev git
>
>  ---> Using cache
>
>  ---> 39bee3742d2b
>
> Step 8/35 : USER gopher
>
>  ---> Using cache
>
>  ---> 3fca9aed1854
>
> Step 9/35 : VOLUME "/home/gopher/.gradle"
>
>  ---> Using cache
>
>  ---> ec21446be7b6
>
> Step 10/35 : ENV GOPHER /home/gopher
>
>  ---> Using cache
>
>  ---> e4cd83422cd6
>
> Step 11/35 : WORKDIR $GOPHER
>
>  ---> Using cache
>
>  ---> 883cdedc9eee
>
> Step 12/35 : RUN mkdir android-sdk
>
>  ---> Using cache
>
>  ---> 6f4a6f7d4631
>
> Step 13/35 : ENV ANDROID_HOME $GOPHER/android-sdk
>
>  ---> Using cache
>
>  ---> 65cfadecfa20
>
> Step 14/35 : WORKDIR $ANDROID_HOME
>
>  ---> Using cache
>
>  ---> 34dba83e0247
>
> Step 15/35 : RUN curl -O 
> https://dl.google.com/android/repository/sdk-tools-linux-3859397.zip
>
>  ---> Using cache
>
>  ---> 244857d5d15b
>
> Step 16/35 : RUN echo 
> '444e22ce8ca0f67353bda4b85175ed3731cae3ffa695ca18119cbacef1c1bea0  
> sdk-tools-linux-3859397.zip' 
> | sha256sum -c
>
>  ---> Using cache
>
>  ---> 0a9e0167ef10
>
> Step 17/35 : RUN unzip sdk-tools-linux-3859397.zip
>
>  ---> Using cache
>
>  ---> 2e12d577b08f
>
> Step 18/35 : RUN echo y | $ANDROID_HOME/tools/bin/sdkmanager --update
>
>  ---> Using cache
>
>  ---> cc2e17bb1199
>
> Step 19/35 : RUN echo y | $ANDROID_HOME/tools/bin/sdkmanager 
> 'platforms;android-27'
>
>  ---> Using cache
>
>  ---> db7dbb15a884
>
> Step 20/35 : RUN echo y | $ANDROID_HOME/tools/bin/sdkmanager 
> 'build-tools;27.0.0'
>
>  ---> Using cache
>
>  ---> 3998c5d8eb6d
>
> Step 21/35 : RUN echo y | $ANDROID_HOME/tools/bin/sdkmanager 
> 'extras;android;m2repository'
>
>  ---> Using cache
>
>  ---> a2ce7b92e971
>
> Step 22/35 : RUN echo y | $ANDROID_HOME/tools/bin/sdkmanager 'ndk-bundle'
>
>  ---> Using cache
>
>  ---> 4e9e10ea76b8
>
> Step 23/35 : WORKDIR $GOPHER
>
>  ---> Using cache
>
>  ---> 66a41abbd75e
>
> Step 24/35 : RUN curl -O 
> https://storage.googleapis.com/golang/go1.11.linux-amd64.tar.gz
>
>  ---> Using cache
>
>  ---> b3f35cbd55ab
>
> Step 25/35 : RUN echo 
> 'b3fcf280ff86558e0559e185b601c9eade0fd24c900b4c63cd14d1d38613e499  
> go1.11.linux-amd64.tar.gz' 
> | sha256sum -c
>
>  ---> Using cache
>
>  ---> f519d319478c
>
> Step 26/35 : RUN tar -xzf go1.11.linux-amd64.tar.gz
>
>  ---> Using cache
>
>  ---> 1ed4a10c35aa
>
> Step 27/35 : ENV GOPATH $GOPHER
>
>  ---> Using cache
>
>  ---> 64699f438ecb
>
> Step 28/35 : ENV GOROOT $GOPHER/go
>
>  ---> Using cache
>
>  ---> 9efee86f1ad2
>
> Step 29/35 : ENV PATH $PATH:$GOROOT/bin:$GOPHER/bin
>
>  ---> Using cache
>
>  ---> ad2f1f1034c0
>
> Step 30/35 : RUN go get -u golang.org/x/mobile/cmd/gomobile
>
>  ---> Using cache
>
>  ---> a64c64e6f30a
>
> Step 31/35 : WORKDIR $GOPATH/src/golang.org/x/mobile/cmd/gomobile
>
>  ---> Using cache
>
>  ---> ffb206ef299f
>
> Step 32/35 : RUN git reset --hard 069be623eb8e75049d64f1419849b3e92aab1c81
>
>  ---> Using cache
>
>  ---> eeb7ae07513f
>
> Step 33/35 : RUN go install
>
>  ---> Using cache
>
>  ---> 59f54137951e
>
> Step 34/35 : RUN gomobile init -ndk $ANDROID_HOME/ndk-bundle
>
>  ---> Running in 804663c67248
>
> gomobile: go install -gcflags=-shared -ldflags=-shared 
> -pkgdir=/home/gopher/pkg/gomobile/pkg_android_arm std failed: exit status 2
>
> # runtime/cgo
>
> /home/gopher/android-sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld:
>  
> error: cannot open crtbegin_dynamic.o: No such file or directory
>
> /home/gopher/android-sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld:
>  
> error: cannot open crtend_android.o: No such file or directory
>
> /home/gopher/android-sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld:
>  
> error: cannot find -llog
>
> /home/gopher/android-sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld:
>  
> error: cannot find -ldl
>
> /home/gopher/android-sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld:
>  
> error: cannot find -lc
>
> /home/gopher/android-sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld:
>  
> error: cannot find -ldl
>
> /tmp/go-build295875760/b081/_x003.o:gcc_android.c:function fatalf: error: 
> undefined reference to 'fprintf'
>
> /tmp/go-build295875760/b081/_x003.o:gcc_android.c:function fatalf: error: 
> undefined reference to 'vfprintf'
>
> /tmp/go-build295875760/b081/_x003.o:gcc_android.c:function fatalf: error: 
> undefined reference to 'fprintf'
>
> /tmp/go-build295875760/b081/_x003.o:gcc_android.c:function fatalf: error: 
> undefined reference to '__android_log_vprint'
>
> /tmp/go-build295875760/b081/_x003.o:gcc_android.c:function fatalf: error: 
> undefined reference to 'abort'
>
> /tmp/go-build295875760/b081/_x003.o:gcc_android.c:function fatalf: error: 
> undefined reference to '__sF'
>
> /tmp/go-build295875760/b081/_x004.o:gcc_android_arm.c:function inittls: 
> error: undefined reference to 'pthread_key_create'
>
> /tmp/go-build295875760/b081/_x004.o:gcc_android_arm.c:function inittls: 
> error: undefined reference to 'pthread_setspecific'
>
> /tmp/go-build295875760/b081/_x004.o:gcc_android_arm.c:function inittls: 
> error: undefined reference to 'pthread_setspecific'
>
> /tmp/go-build295875760/b081/_x006.o:gcc_libinit.c:function 
> x_cgo_sys_thread_create: error: undefined reference to 'strerror'
>
> /tmp/go-build295875760/b081/_x006.o:gcc_libinit.c:function 
> x_cgo_sys_thread_create: error: undefined reference to 'fprintf'
>
> /tmp/go-build295875760/b081/_x006.o:gcc_libinit.c:function 
> x_cgo_sys_thread_create: error: undefined reference to 'abort'
>
> /tmp/go-build295875760/b081/_x006.o:gcc_libinit.c:function 
> x_cgo_sys_thread_create: error: undefined reference to '__sF'
>
> /tmp/go-build295875760/b081/_x006.o:gcc_libinit.c:function 
> _cgo_try_pthread_create: error: undefined reference to 'pthread_create'
>
> /tmp/go-build295875760/b081/_x006.o:gcc_libinit.c:function 
> _cgo_try_pthread_create: error: undefined reference to 'pthread_detach'
>
> /tmp/go-build295875760/b081/_x006.o:gcc_libinit.c:function 
> _cgo_try_pthread_create: error: undefined reference to 'nanosleep'
>
> /tmp/go-build295875760/b081/_x006.o:gcc_libinit.c:function 
> _cgo_wait_runtime_init_done: error: undefined reference to 
> 'pthread_mutex_lock'
>
> /tmp/go-build295875760/b081/_x006.o:gcc_libinit.c:function 
> _cgo_wait_runtime_init_done: error: undefined reference to 
> 'pthread_cond_wait'
>
> /tmp/go-build295875760/b081/_x006.o:gcc_libinit.c:function 
> _cgo_wait_runtime_init_done: error: undefined reference to 
> 'pthread_mutex_unlock'
>
> /tmp/go-build295875760/b081/_x006.o:gcc_libinit.c:function 
> x_cgo_notify_runtime_init_done: error: undefined reference to 
> 'pthread_mutex_lock'
>
> /tmp/go-build295875760/b081/_x006.o:gcc_libinit.c:function 
> x_cgo_notify_runtime_init_done: error: undefined reference to 
> 'pthread_cond_broadcast'
>
> /tmp/go-build295875760/b081/_x006.o:gcc_libinit.c:function 
> x_cgo_notify_runtime_init_done: error: undefined reference to 
> 'pthread_mutex_unlock'
>
> /tmp/go-build295875760/b081/_x006.o:gcc_libinit.c:function 
> x_cgo_set_context_function: error: undefined reference to 
> 'pthread_mutex_lock'
>
> /tmp/go-build295875760/b081/_x006.o:gcc_libinit.c:function 
> x_cgo_set_context_function: error: undefined reference to 
> 'pthread_mutex_unlock'
>
> /tmp/go-build295875760/b081/_x006.o:gcc_libinit.c:function 
> _cgo_get_context_function: error: undefined reference to 
> 'pthread_mutex_lock'
>
> /tmp/go-build295875760/b081/_x006.o:gcc_libinit.c:function 
> _cgo_get_context_function: error: undefined reference to 
> 'pthread_mutex_unlock'
>
> /tmp/go-build295875760/b081/_x007.o:gcc_linux_arm.c:function 
> _cgo_sys_thread_start: error: undefined reference to 'pthread_sigmask'
>
> /tmp/go-build295875760/b081/_x007.o:gcc_linux_arm.c:function 
> _cgo_sys_thread_start: error: undefined reference to 'memset'
>
> /tmp/go-build295875760/b081/_x007.o:gcc_linux_arm.c:function 
> _cgo_sys_thread_start: error: undefined reference to 'pthread_attr_init'
>
> /tmp/go-build295875760/b081/_x007.o:gcc_linux_arm.c:function 
> _cgo_sys_thread_start: error: undefined reference to 
> 'pthread_attr_getstacksize'
>
> /tmp/go-build295875760/b081/_x007.o:gcc_linux_arm.c:function 
> _cgo_sys_thread_start: error: undefined reference to 'pthread_sigmask'
>
> /tmp/go-build295875760/b081/_x007.o:gcc_linux_arm.c:function 
> _cgo_sys_thread_start: error: undefined reference to 'strerror'
>
> /tmp/go-build295875760/b081/_x007.o:gcc_linux_arm.c:function sigfillset: 
> error: undefined reference to '__errno'
>
> /tmp/go-build295875760/b081/_x007.o:gcc_linux_arm.c:function sigfillset: 
> error: undefined reference to 'memset'
>
> /tmp/go-build295875760/b081/_x007.o:gcc_linux_arm.c:function threadentry: 
> error: undefined reference to 'free'
>
> /tmp/go-build295875760/b081/_x007.o:gcc_linux_arm.c:function x_cgo_init: 
> error: undefined reference to 'pthread_attr_init'
>
> /tmp/go-build295875760/b081/_x007.o:gcc_linux_arm.c:function x_cgo_init: 
> error: undefined reference to 'pthread_attr_getstacksize'
>
> /tmp/go-build295875760/b081/_x007.o:gcc_linux_arm.c:function x_cgo_init: 
> error: undefined reference to 'pthread_attr_destroy'
>
> /tmp/go-build295875760/b081/_x008.o:gcc_setenv.c:function x_cgo_setenv: 
> error: undefined reference to 'setenv'
>
> /tmp/go-build295875760/b081/_x008.o:gcc_setenv.c:function x_cgo_unsetenv: 
> error: undefined reference to 'unsetenv'
>
> /tmp/go-build295875760/b081/_x010.o:gcc_util.c:function 
> x_cgo_thread_start: error: undefined reference to 'malloc'
>
> /tmp/go-build295875760/b081/_x010.o:gcc_util.c:function 
> x_cgo_thread_start: error: undefined reference to 'fprintf'
>
> /tmp/go-build295875760/b081/_x010.o:gcc_util.c:function 
> x_cgo_thread_start: error: undefined reference to 'abort'
>
> /tmp/go-build295875760/b081/_x010.o:gcc_util.c:function 
> x_cgo_thread_start: error: undefined reference to '__sF'
>
> clang: error: linker command failed with exit code 1 (use -v to see 
> invocation)
>
>
> The command '/bin/sh -c gomobile init -ndk $ANDROID_HOME/ndk-bundle' 
> returned a non-zero code: 1
>
> make: *** [env] Error 1
>
> Clives-MBP:android seebe$ 
>
> Clives-MBP:android seebe$ go env
>
> GOARCH="amd64"
>
> GOBIN=""
>
> GOCACHE="/Users/seebe/Library/Caches/go-build"
>
> GOEXE=""
>
> GOFLAGS=""
>
> GOHOSTARCH="amd64"
>
> GOHOSTOS="darwin"
>
> GOOS="darwin"
>
> GOPATH="/Users/seebe/go"
>
> GOPROXY=""
>
> GORACE=""
>
> GOROOT="/usr/local/Cellar/go/1.11.1/libexec"
>
> GOTMPDIR=""
>
> GOTOOLDIR="/usr/local/Cellar/go/1.11.1/libexec/pkg/tool/darwin_amd64"
>
> GCCGO="gccgo"
>
> CC="clang"
>
> CXX="clang++"
>
> CGO_ENABLED="1"
>
> GOMOD=""
>
> CGO_CFLAGS="-g -O2"
>
> CGO_CPPFLAGS=""
>
> CGO_CXXFLAGS="-g -O2"
>
> CGO_FFLAGS="-g -O2"
>
> CGO_LDFLAGS="-g -O2"
>
> PKG_CONFIG="pkg-config"
>
> GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments 
> -fmessage-length=0 
> -fdebug-prefix-map=/var/folders/xd/42gpsdk973540hm355_3lfr40000gn/T/go-build394807282=/tmp/go-build
>  
> -gno-record-gcc-switches -fno-common"
>
> Clives-MBP:android seebe$ 
>
>
> On Thursday, October 18, 2018 at 3:41:47 PM UTC-7, mathieu.lonjaret wrote:
>>
>> You don't seem to have (built) the perkeep/android docker image.
>> You need to run 'make env' first to build it.
>>
>>
>> On Fri, 19 Oct 2018 at 00:28, clive.boulton <[email protected]> wrote:
>>
>>> Decided I should get the docker build working first as reference. 
>>>
>>> Any idea why $ make dockerdebug or $ make dockerbuild both return "make: 
>>> *** [dockerdebug] Error 125"
>>>
>>> The terminal says Unable to find image 'perkeep/android:latest' locally 
>>>
>>> I tried stackoverflow for a solution. 
>>>  
>>>
>>> 2:44 PM (30 minutes 
>>>
>>>>
>>>>

-- 
You received this message because you are subscribed to the Google Groups 
"Perkeep" 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