You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am adapting the Avalonia framework for HarmonyOS Next. Now a crash occurs in the SkiaSharp native library. I want to debug the SkiaSharp native library, so I need to compile libSkiaSharp.so
tag: v2.88.9
Also I want to ask, how to compile binary for arm64-musl via docker?
cesun@DESKTOP-TLCCGV1:~/SkiaSharp/scripts/Docker/alpine/amd64$ sudo sh ./build-local.sh
./build-local.sh: 4: Bad substitution
[+] Building 1.6s (11/11) FINISHED docker:default
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 1.41kB 0.0s
=> [internal] load metadata for docker.io/amd64/alpine:3.9 1.3s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 55B 0.0s
=> [1/7] FROM docker.io/amd64/alpine:3.9@sha256:65b3a80ebe7471beecbc090c5b2cdd0aafeaefa0715f8f12e40dc918a3a70e32 0.0s
=> CACHED [2/7] RUN apk add -X https://dl-cdn.alpinelinux.org/alpine/v3.16/main -u alpine-keys --allow-untrusted 0.0s
=> CACHED [3/7] RUN apk add --no-cache bash curl wget python python3 git build-base ninja fontconfig-dev libintl clang 0.0s
=> CACHED [4/7] RUN git clone https://gn.googlesource.com/gn /usr/share/gn &&cd /usr/share/gn && git checkout d4be45bb28fbfc16a41a1e02c86137df6815f2dd && python build/gen.py --allow 0.0s
=> CACHED [5/7] RUN wget -O dotnet.tar.gz https://dotnetcli.azureedge.net/dotnet/Sdk/3.1.412/dotnet-sdk-3.1.412-linux-musl-x64.tar.gz && dotnet_sha512='f81ec24d3550bd414fb0fa154007f88a2e2956 0.0s => CACHED [6/7] RUN dotnet help 0.0s => CACHED [7/7] WORKDIR /work 0.0s => exporting to image 0.0s => => exporting layers 0.0s => => writing image sha256:c53a87465befb4899f55258d19e5e18f8057688d033947d070ca9a07e8c8512d 0.0s => => naming to docker.io/library/skiasharp-alpine 0.0s 1 warning found (use docker --debug to expand): - LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 27)error NU1202: Package Microsoft.DotNet.XHarness.CLI 8.0.0-prerelease.23307.1 is not compatible with netcoreapp3.1 (.NETCoreApp,Version=v3.1) / any. Package Microsoft.DotNet.XHarness.CLI 8.0.0-prerelease.23307.1 supports:error NU1202: - net6.0 (.NETCoreApp,Version=v6.0) / anyerror NU1202: - net7.0 (.NETCoreApp,Version=v7.0) / anyerror NU1202: - net8.0 (.NETCoreApp,Version=v8.0) / anyPackage "microsoft.dotnet.xharness.cli" failed to restore, due to Microsoft.DotNet.ToolPackage.ToolPackageException: The tool package could not be restored. at Microsoft.DotNet.Tools.Tool.Install.ProjectRestorer.Restore(FilePath project, PackageLocation packageLocation, String verbosity) at Microsoft.DotNet.ToolPackage.ToolPackageInstaller.InstallPackageToExternalManagedLocation(PackageLocation packageLocation, PackageId packageId, VersionRange versionRange, String targetFramework, String verbosity) at Microsoft.DotNet.Tools.Tool.Restore.ToolRestoreCommand.InstallPackages(ToolManifestPackage package, Nullable`1 configFile)Tool 'cake.tool' (version '2.3.0') was restored. Available commands: dotnet-cakeTool 'nano-api-scan' (version '1.0.1') was restored. Available commands: nano-api-scanTool 'dotnet-reportgenerator-globaltool' (version '5.1.19') was restored. Available commands: reportgeneratorRestore partially failed.The assembly 'Cake.Xamarin, Version=3.1.0.0, Culture=neutral, PublicKeyToken=null'is referencing an older version of Cake.Core (0.33.0). For best compatibility it should target Cake.Core version 2.0.0.The assembly 'Cake.XCode, Version=5.0.0.0, Culture=neutral, PublicKeyToken=null'is referencing an older version of Cake.Core (1.0.0). For best compatibility it should target Cake.Core version 2.0.0.The assembly 'Cake.FileHelpers, Version=4.0.1.0, Culture=neutral, PublicKeyToken=null'is referencing an older version of Cake.Core (1.0.0). For best compatibility it should target Cake.Core version 2.0.0.The assembly 'Cake.Json, Version=6.0.1.0, Culture=neutral, PublicKeyToken=null'is referencing an older version of Cake.Core (1.0.0). For best compatibility it should target Cake.Core version 2.0.0.Arguments: target externals-linux configuration Release buildarch x64 variant alpineSource Control: PREVIEW_LABEL preview FEATURE_NAME BUILD_NUMBER 0 GIT_SHA GIT_BRANCH_NAME GIT_URL ========================================externals-linux========================================Arguments: target Default configuration Release buildarch x64 variant alpine========================================git-sync-deps========================================Traceback (most recent call last): File "/usr/lib/python3.6/urllib/request.py", line 1318, in do_open encode_chunked=req.has_header('Transfer-encoding')) File "/usr/lib/python3.6/http/client.py", line 1254, in request self._send_request(method, url, body, headers, encode_chunked) File "/usr/lib/python3.6/http/client.py", line 1300, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "/usr/lib/python3.6/http/client.py", line 1249, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/usr/lib/python3.6/http/client.py", line 1036, in _send_output self.send(msg) File "/usr/lib/python3.6/http/client.py", line 974, in send self.connect() File "/usr/lib/python3.6/http/client.py", line 1407, in connect super().connect() File "/usr/lib/python3.6/http/client.py", line 946, in connect (self.host,self.port), self.timeout, self.source_address) File "/usr/lib/python3.6/socket.py", line 724, in create_connection raise err File "/usr/lib/python3.6/socket.py", line 713, in create_connection sock.connect(sa)OSError: [Errno 101] Network unreachableDuring handling of the above exception, another exception occurred:Traceback (most recent call last): File "/work/externals/skia/bin/fetch-gn", line 29, in <module> f.write(urlopen(url).read()) File "/usr/lib/python3.6/urllib/request.py", line 223, in urlopen return opener.open(url, data, timeout) File "/usr/lib/python3.6/urllib/request.py", line 526, in open response = self._open(req, data) File "/usr/lib/python3.6/urllib/request.py", line 544, in _open'_open', req) File "/usr/lib/python3.6/urllib/request.py", line 504, in _call_chain result = func(*args) File "/usr/lib/python3.6/urllib/request.py", line 1361, in https_open context=self._context, check_hostname=self._check_hostname) File "/usr/lib/python3.6/urllib/request.py", line 1320, in do_open raise URLError(err)urllib.error.URLError: <urlopen error [Errno 101] Network unreachable>Skipping "../src"./work/externals/skia/buildtools @ 505de88083136eefd056e5ee4ca0f01fe9b33de8/work/externals/skia/common @ 9737551d7a52c3db3262db5856e6bcd62c462b92/work/externals/skia/third_party/externals/d3d12allocator @ 169895d529dfce00390a20e69c2f516066fe7a3b/work/externals/skia/third_party/externals/dng_sdk @ c8d0c9b1d16bfda56f15165d39e0ffa360a11123/work/externals/skia/third_party/externals/brotli @ e61745a6b7add50d380cfd7d3883dd6c62fc2c71/work/externals/skia/third_party/externals/egl-registry @ a0bca08de07c7d7651047bedc0b653cfaaa4f2ae/work/externals/skia/third_party/externals/jinja2 @ a82a4944a7f2496639f34a89c9923be5908b80aa/work/externals/skia/third_party/externals/libjpeg-turbo @ 9b894306ec3b28cea46e84c32b56773a98c483da/work/externals/skia/third_party/externals/expat @ 624da0f593bb8d7e146b9f42b06d8e6c80d032a3/work/externals/skia/third_party/externals/libgifcodec @ d06d2a6d42baf6c0c91cacc28df2542a911d05fe/work/externals/skia/third_party/externals/icu @ dbd3825b31041d782c5b504c59dcfb5ac7dda08c/work/externals/skia/third_party/externals/markupsafe @ 0944e71f4b2cb9a871bcbe353f95e889b64a611a/work/externals/skia/third_party/externals/lua @ e354c6355e7f48e087678ec49e340ca0696725b1/work/externals/skia/third_party/externals/libwebp @ ca332209cb5567c9b249c86788cb2dbf8847e760/work/externals/skia/third_party/externals/imgui @ 9418dcb69355558f70de260483424412c5ca2fce/work/externals/skia/third_party/externals/angle2 @ 47b3db22be33213eea4ad58f2453ee1088324ceb/work/externals/skia/third_party/externals/glslang @ 4dcc12d1a441b29d5901bc708bb1343d29d6459f/work/externals/skia/third_party/externals/opengl-registry @ 14b80ebeab022b2c78f84a573f01028c96075553/work/externals/skia/third_party/externals/freetype @ 40c5681ab92e7db1298273ccf3c816e6a1498260/work/externals/skia/third_party/externals/opencl-lib @ 4e6d30e406d2e5a65e1d65e404fe6df5f772a32b/work/externals/skia/third_party/externals/opencl-registry @ 932ed55c85f887041291cef8019e54280c033c35/work/externals/skia/third_party/externals/harfbuzz @ 4584bcdc326564829d3cee3572386c90e4fd1974/work/externals/skia/third_party/externals/piex @ bb217acdca1cc0c16b704669dd6f91a1b509c406/work/externals/skia/third_party/externals/shaderc @ 011139094ec790ff7f32ea2d80286255fc9ed18b/work/externals/skia/third_party/externals/libpng @ f135775ad4e5d4408d2e12ffcc71bb36e6b48551/work/externals/skia/third_party/externals/spirv-headers @ c0df742ec0b8178ad58c68cff3437ad4b6a06e26/work/externals/skia/third_party/externals/zlib @ 3ca9f16f02950edffa391ec19cea856090158e9e/work/externals/skia/third_party/externals/sfntly @ b55ff303ea2f9e26702b514cf6a3196a2e3e2974/work/externals/skia/third_party/externals/microhttpd @ 748945ec6f1c67b7efc934ab0808e1d32f2fb98d/work/externals/skia/third_party/externals/oboe @ b02a12d1dd821118763debec6b83d00a8a0ee419/work/externals/skia/third_party/externals/spirv-cross @ bdbef7b1f3982fe99a62d076043036abe6dd6d80/work/externals/skia/third_party/externals/spirv-tools @ e95fbfb1f509ad7a7fdfb72ac35fe412d72fc4a4/work/externals/skia/third_party/externals/wuffs @ 00cc8a50aa0c86b6bcb37e9ece8fb100047cc17b/work/externals/skia/third_party/externals/dawn @ f3c829047220ec1305c6a3202ee3e067e10512c9/work/externals/skia/third_party/externals/sdl @ 5d7cfcca344034aff9327f77fc181ae3754e7a90/work/externals/skia/third_party/externals/swiftshader @ 019feda602ec90e99c448256e1ce11f6fdb622e8Traceback (most recent call last): File "/work/externals/skia/tools/git-sync-deps", line 266, in <module> exit(main(sys.argv[1:])) File "/work/externals/skia/tools/git-sync-deps", line 261, in main os.path.join(os.path.dirname(deps_file_path), 'bin', 'fetch-gn')]) File "/usr/lib/python3.6/subprocess.py", line 311, in check_call raise CalledProcessError(retcode, cmd)subprocess.CalledProcessError: Command '['/usr/bin/python3', '/work/externals/skia/bin/fetch-gn']' returned non-zero exit status 1.An error occurred when executing task 'git-sync-deps'.Error: Process 'python3' failed with error: 1An error occurred when executing task 'externals-linux'.Error: .NET CLI: Process returned an error (exit code 1).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am adapting the Avalonia framework for HarmonyOS Next. Now a crash occurs in the SkiaSharp native library. I want to debug the SkiaSharp native library, so I need to compile libSkiaSharp.so
tag: v2.88.9
Also I want to ask, how to compile binary for arm64-musl via docker?
Beta Was this translation helpful? Give feedback.
All reactions