Re: [v8-users] `fetch v8` failing in alpine linux

2018-07-20 Thread Tyler Christensen
I think "a bear of a time building v8" was pretty accurate. I found myself 
trying to do exactly the same thing and finally stumbled upon the ancient 
incantation to please the compiler gods.

I posted a gist of the Dockerfile I came up with 
here: https://gist.github.com/tylerchr/15a74b05944cfb90729db6a51265b6c9. 
Maybe it'll be useful to you.

On Friday, April 20, 2018 at 1:57:09 AM UTC-6, Ben Noordhuis wrote:
>
> On Thu, Apr 19, 2018 at 6:59 PM, Andrew Walker  > wrote: 
> > I'm attempting to Dockerize an application that uses a particular set of 
> > golang bindings to V8, and I'm having a bear of a time building v8. I 
> can't 
> > seem to even get past `fetch v8`. Just to see where it's going wrong, I 
> > fired up a container with docker run --rm -it golang:1.10.1-alpine sh , 
> the 
> > full output of which I've attached here. 
> > 
> > Of note: 
> > 
> > fetch v8 
> > Running: gclient root 
> > Running: gclient config --spec 'solutions = [ 
> >   { 
> > "url": "https://chromium.googlesource.com/v8/v8.git;, 
> > "managed": False, 
> > "name": "v8", 
> > "deps_file": "DEPS", 
> > "custom_deps": {}, 
> >   }, 
> > ] 
> > ' 
> > Running: gclient sync --with_branch_heads 
> > 
> >  running 'git -c core.deltaBaseCacheLimit=2g clone --no-checkout 
> > --progress https://chromium.googlesource.com/v8/v8.git 
> > /go/src/github.com/augustoroman/v8/v8/build/_gclient_v8_0EgZCM' in 
> > '/go/src/github.com/augustoroman/v8/v8/build' 
> > Cloning into 
> > '/go/src/github.com/augustoroman/v8/v8/build/_gclient_v8_0EgZCM'... 
> > remote: Sending approximately 281.07 MiB ... 
> > remote: Counting objects: 7737, done 
> > remote: Finding sources: 100% (77/77) 
> > Receiving objects:  61% (340664/550333), 209.62 MiB | 4.31 MiB/s 
> > [0:01:00] Still working on: 
> > [0:01:00]   v8 
> > Receiving objects:  80% (440267/550333), 253.80 MiB | 4.37 MiB/s 
> > [0:01:10] Still working on: 
> > [0:01:10]   v8 
> > remote: Total 550333 (delta 468207), reused 550305 (delta 468207) 
> > Receiving objects: 100% (550333/550333), 280.76 MiB | 4.04 MiB/s, done. 
> > Resolving deltas:  16% (76489/468207) 
> > [0:01:20] Still working on: 
> > [0:01:20]   v8 
> > Resolving deltas:  56% (262278/468207) 
> > [0:01:30] Still working on: 
> > [0:01:30]   v8 
> > Resolving deltas:  74% (346589/468207) 
> > [0:01:40] Still working on: 
> > [0:01:40]   v8 
> > Resolving deltas:  87% (407434/468207) 
> > [0:01:50] Still working on: 
> > [0:01:50]   v8 
> > Resolving deltas:  96% (451652/468207) 
> > [0:02:00] Still working on: 
> > [0:02:00]   v8 
> > Resolving deltas: 100% (468207/468207), done. 
> > 
> > [0:02:10] Still working on: 
> > [0:02:10]   v8 
> > 
> > Syncing projects:   0% ( 0/ 2) 
> > [0:02:16] Still working on: 
> > [0:02:16]   v8 
> > Syncing projects: 100% (22/22), done. 
> > 
> >  running 'download_from_google_storage --no_resume 
> --platform=linux* 
> > --no_auth --bucket chromium-clang-format -s 
> > v8/buildtools/linux64/clang-format.sha1' in 
> > '/go/src/github.com/augustoroman/v8/v8/build' 
> > 0> Failed to fetch file 
> > gs://chromium-clang-format/5349d1954e17f6ccafb6e6663b0f13cdb2bb33c8 for 
> > v8/buildtools/linux64/clang-format, skipping. [Err: 
> > [E2018-04-19T16:51:05.202078Z 1210 0 venv.go:942] Command (cwd=): 
> > [/root/.vpython-root/fff9ce/bin/python -B -E -s -m pip install 
> --isolated 
> > --compile --no-index --find-links 
> /tmp/vpython_bootstrap201545775/packages 
> > --requirement /tmp/vpython_bootstrap201545775/requirements.txt 
> > --no-binary=:none: --only-binary=:all: --use-wheel] 
> > Process output: 
> > Collecting appdirs==1.4.3 (from -r 
> > /tmp/vpython_bootstrap201545775/requirements.txt (line 1)) 
> > Collecting asn1crypto==0.22.0 (from -r 
> > /tmp/vpython_bootstrap201545775/requirements.txt (line 2)) 
> > Collecting boto==2.48.0 (from -r 
> > /tmp/vpython_bootstrap201545775/requirements.txt (line 3)) 
> > Collecting cffi==1.10.0 (from -r 
> > /tmp/vpython_bootstrap201545775/requirements.txt (line 4)) 
> >   Could not find a version that satisfies the requirement cffi==1.10.0 
> (from 
> > -r /tmp/vpython_bootstrap201545775/requirements.txt (line 4)) (from 
> > versions: ) 
> > No matching distribution found for cffi==1.10.0 (from -r 
> > /tmp/vpython_bootstrap201545775/requirements.txt (line 4)) 
> > 
> > 
> > Any help would be most appreciated. 
>
> I don't know if there is a way to fix that.  Some of the things it 
> downloads are ELF binaries that are linked against glibc; alpine of 
> course uses musl. 
>

-- 
-- 
v8-users mailing list
v8-users@googlegroups.com
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to v8-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [v8-users] `fetch v8` failing in alpine linux

2018-04-20 Thread Ben Noordhuis
On Thu, Apr 19, 2018 at 6:59 PM, Andrew Walker  wrote:
> I'm attempting to Dockerize an application that uses a particular set of
> golang bindings to V8, and I'm having a bear of a time building v8. I can't
> seem to even get past `fetch v8`. Just to see where it's going wrong, I
> fired up a container with docker run --rm -it golang:1.10.1-alpine sh , the
> full output of which I've attached here.
>
> Of note:
>
> fetch v8
> Running: gclient root
> Running: gclient config --spec 'solutions = [
>   {
> "url": "https://chromium.googlesource.com/v8/v8.git;,
> "managed": False,
> "name": "v8",
> "deps_file": "DEPS",
> "custom_deps": {},
>   },
> ]
> '
> Running: gclient sync --with_branch_heads
>
>  running 'git -c core.deltaBaseCacheLimit=2g clone --no-checkout
> --progress https://chromium.googlesource.com/v8/v8.git
> /go/src/github.com/augustoroman/v8/v8/build/_gclient_v8_0EgZCM' in
> '/go/src/github.com/augustoroman/v8/v8/build'
> Cloning into
> '/go/src/github.com/augustoroman/v8/v8/build/_gclient_v8_0EgZCM'...
> remote: Sending approximately 281.07 MiB ...
> remote: Counting objects: 7737, done
> remote: Finding sources: 100% (77/77)
> Receiving objects:  61% (340664/550333), 209.62 MiB | 4.31 MiB/s
> [0:01:00] Still working on:
> [0:01:00]   v8
> Receiving objects:  80% (440267/550333), 253.80 MiB | 4.37 MiB/s
> [0:01:10] Still working on:
> [0:01:10]   v8
> remote: Total 550333 (delta 468207), reused 550305 (delta 468207)
> Receiving objects: 100% (550333/550333), 280.76 MiB | 4.04 MiB/s, done.
> Resolving deltas:  16% (76489/468207)
> [0:01:20] Still working on:
> [0:01:20]   v8
> Resolving deltas:  56% (262278/468207)
> [0:01:30] Still working on:
> [0:01:30]   v8
> Resolving deltas:  74% (346589/468207)
> [0:01:40] Still working on:
> [0:01:40]   v8
> Resolving deltas:  87% (407434/468207)
> [0:01:50] Still working on:
> [0:01:50]   v8
> Resolving deltas:  96% (451652/468207)
> [0:02:00] Still working on:
> [0:02:00]   v8
> Resolving deltas: 100% (468207/468207), done.
>
> [0:02:10] Still working on:
> [0:02:10]   v8
>
> Syncing projects:   0% ( 0/ 2)
> [0:02:16] Still working on:
> [0:02:16]   v8
> Syncing projects: 100% (22/22), done.
>
>  running 'download_from_google_storage --no_resume --platform=linux*
> --no_auth --bucket chromium-clang-format -s
> v8/buildtools/linux64/clang-format.sha1' in
> '/go/src/github.com/augustoroman/v8/v8/build'
> 0> Failed to fetch file
> gs://chromium-clang-format/5349d1954e17f6ccafb6e6663b0f13cdb2bb33c8 for
> v8/buildtools/linux64/clang-format, skipping. [Err:
> [E2018-04-19T16:51:05.202078Z 1210 0 venv.go:942] Command (cwd=):
> [/root/.vpython-root/fff9ce/bin/python -B -E -s -m pip install --isolated
> --compile --no-index --find-links /tmp/vpython_bootstrap201545775/packages
> --requirement /tmp/vpython_bootstrap201545775/requirements.txt
> --no-binary=:none: --only-binary=:all: --use-wheel]
> Process output:
> Collecting appdirs==1.4.3 (from -r
> /tmp/vpython_bootstrap201545775/requirements.txt (line 1))
> Collecting asn1crypto==0.22.0 (from -r
> /tmp/vpython_bootstrap201545775/requirements.txt (line 2))
> Collecting boto==2.48.0 (from -r
> /tmp/vpython_bootstrap201545775/requirements.txt (line 3))
> Collecting cffi==1.10.0 (from -r
> /tmp/vpython_bootstrap201545775/requirements.txt (line 4))
>   Could not find a version that satisfies the requirement cffi==1.10.0 (from
> -r /tmp/vpython_bootstrap201545775/requirements.txt (line 4)) (from
> versions: )
> No matching distribution found for cffi==1.10.0 (from -r
> /tmp/vpython_bootstrap201545775/requirements.txt (line 4))
>
>
> Any help would be most appreciated.

I don't know if there is a way to fix that.  Some of the things it
downloads are ELF binaries that are linked against glibc; alpine of
course uses musl.

-- 
-- 
v8-users mailing list
v8-users@googlegroups.com
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to v8-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[v8-users] `fetch v8` failing in alpine linux

2018-04-19 Thread Andrew Walker
I'm attempting to Dockerize an application that uses a particular set of golang 
bindings to V8 , and I'm having a bear 
of a time building v8. I can't seem to even get past `fetch v8`. Just to 
see where it's going wrong, I fired up a container with docker run --rm -it 
golang:1.10.1-alpine sh , the full output of which I've attached here.

Of note:

fetch v8
Running: gclient root
Running: gclient config --spec 'solutions = [
  {
"url": "https://chromium.googlesource.com/v8/v8.git;,
"managed": False,
"name": "v8",
"deps_file": "DEPS",
"custom_deps": {},
  },
]
'
Running: gclient sync --with_branch_heads

 running 'git -c core.deltaBaseCacheLimit=2g clone --no-checkout 
--progress https://chromium.googlesource.com/v8/v8.git 
/go/src/github.com/augustoroman/v8/v8/build/_gclient_v8_0EgZCM' in 
'/go/src/github.com/augustoroman/v8/v8/build'
Cloning into 
'/go/src/github.com/augustoroman/v8/v8/build/_gclient_v8_0EgZCM'...
remote: Sending approximately 281.07 MiB ...
remote: Counting objects: 7737, done
remote: Finding sources: 100% (77/77)
Receiving objects:  61% (340664/550333), 209.62 MiB | 4.31 MiB/s
[0:01:00] Still working on:
[0:01:00]   v8
Receiving objects:  80% (440267/550333), 253.80 MiB | 4.37 MiB/s
[0:01:10] Still working on:
[0:01:10]   v8
remote: Total 550333 (delta 468207), reused 550305 (delta 468207)
Receiving objects: 100% (550333/550333), 280.76 MiB | 4.04 MiB/s, done.
Resolving deltas:  16% (76489/468207)
[0:01:20] Still working on:
[0:01:20]   v8
Resolving deltas:  56% (262278/468207)
[0:01:30] Still working on:
[0:01:30]   v8
Resolving deltas:  74% (346589/468207)
[0:01:40] Still working on:
[0:01:40]   v8
Resolving deltas:  87% (407434/468207)
[0:01:50] Still working on:
[0:01:50]   v8
Resolving deltas:  96% (451652/468207)
[0:02:00] Still working on:
[0:02:00]   v8
Resolving deltas: 100% (468207/468207), done.

[0:02:10] Still working on:
[0:02:10]   v8

Syncing projects:   0% ( 0/ 2)
[0:02:16] Still working on:
[0:02:16]   v8
Syncing projects: 100% (22/22), done.

 running 'download_from_google_storage --no_resume 
--platform=linux* --no_auth --bucket chromium-clang-format -s 
v8/buildtools/linux64/clang-format.sha1' in 
'/go/src/github.com/augustoroman/v8/v8/build'
0> Failed to fetch file 
gs://chromium-clang-format/5349d1954e17f6ccafb6e6663b0f13cdb2bb33c8 for 
v8/buildtools/linux64/clang-format, skipping. [Err: 
[E2018-04-19T16:51:05.202078Z 1210 0 venv.go:942] Command (cwd=): 
[/root/.vpython-root/fff9ce/bin/python -B -E -s -m pip install --isolated 
--compile --no-index --find-links /tmp/vpython_bootstrap201545775/packages 
--requirement /tmp/vpython_bootstrap201545775/requirements.txt 
--no-binary=:none: --only-binary=:all: --use-wheel]
Process output:
Collecting appdirs==1.4.3 (from -r 
/tmp/vpython_bootstrap201545775/requirements.txt (line 1))
Collecting asn1crypto==0.22.0 (from -r 
/tmp/vpython_bootstrap201545775/requirements.txt (line 2))
Collecting boto==2.48.0 (from -r 
/tmp/vpython_bootstrap201545775/requirements.txt (line 3))
Collecting cffi==1.10.0 (from -r 
/tmp/vpython_bootstrap201545775/requirements.txt (line 4))
  Could not find a version that satisfies the requirement cffi==1.10.0 
(from -r /tmp/vpython_bootstrap201545775/requirements.txt (line 4)) (from 
versions: )
No matching distribution found for cffi==1.10.0 (from -r 
/tmp/vpython_bootstrap201545775/requirements.txt (line 4))


Any help would be most appreciated.

-- 
-- 
v8-users mailing list
v8-users@googlegroups.com
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to v8-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
/go # apk --no-cache add ca-certificates wget g++ gcc libtool make git python 
py-pip python-dev
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/community/x86_64/APKINDEX.tar.gz
(1/37) Installing libgcc (6.4.0-r5)
(2/37) Installing libstdc++ (6.4.0-r5)
(3/37) Installing binutils-libs (2.28-r3)
(4/37) Installing binutils (2.28-r3)
(5/37) Installing gmp (6.1.2-r1)
(6/37) Installing isl (0.18-r0)
(7/37) Installing libgomp (6.4.0-r5)
(8/37) Installing libatomic (6.4.0-r5)
(9/37) Installing pkgconf (1.3.10-r0)
(10/37) Installing mpfr3 (3.1.5-r1)
(11/37) Installing mpc1 (1.0.3-r1)
(12/37) Installing gcc (6.4.0-r5)
(13/37) Installing musl-dev (1.1.18-r3)
(14/37) Installing libc-dev (0.7.1-r0)
(15/37) Installing g++ (6.4.0-r5)
(16/37) Installing libssh2 (1.8.0-r2)
(17/37) Installing libcurl (7.59.0-r0)
(18/37) Installing expat (2.2.5-r0)
(19/37) Installing pcre2 (10.30-r0)
(20/37) Installing git (2.15.0-r1)
(21/37) Installing ncurses-terminfo-base (6.0_p20171125-r0)
(22/37) Installing ncurses-terminfo (6.0_p20171125-r0)
(23/37) Installing