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 <walk...@gmail.com > <javascript:>> 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.