Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provided binaries don't work on Arch Linux anymore #3824

Open
despairblue opened this issue Sep 25, 2021 · 51 comments
Open

Provided binaries don't work on Arch Linux anymore #3824

despairblue opened this issue Sep 25, 2021 · 51 comments

Comments

@despairblue
Copy link
Contributor

I'm getting this when I start it:

symbol lookup error: /usr/lib/libgio-2.0.so.0: undefined symbol: g_module_open_full

I supposed glib2 has been upgraded and is not not compatible anymore.

@despairblue
Copy link
Contributor Author

despairblue commented Sep 25, 2021

I tried to build it manually, which failed for, I think, a different reason:

Build Log
info building esy-skia@github:revery-ui/esy-skia#60e0260@d41d8cd9
error: build failed with exit code: 1
  build log:
    # esy-build-package: building: esy-skia@github:revery-ui/esy-skia#60e0260
    # esy-build-package: pwd: /home/despairblue/.esy/3/b/esy_skia-01fafb2b
    # esy-build-package: running: 'bash' './esy/build.sh' 'linux' '/home/despairblue/.esy/3_____________________________________________________________/i/esy_libjpeg_turbo-e4385a3b'
    buildtools                           @ 505de88083136eefd056e5ee4ca0f01fe9b33de8
    common                               @ 9737551d7a52c3db3262db5856e6bcd62c462b92
    third_party/externals/angle2         @ b001528ffa00e7c15a5002124f707570e59a5697
    third_party/externals/dng_sdk        @ 96443b262250c390b0caefbf3eed8463ba35ecae
    third_party/externals/expat          @ android-6.0.1_r55
    third_party/externals/freetype       @ fa6da7bf6dcbcfa22d2464259ad1cccee3233189
    third_party/externals/googletest     @ dd43b9998e9a44a579a7aba6c1309407d1a5ed95
    third_party/externals/harfbuzz       @ 1.4.2
    third_party/externals/icu            @ ec9c1133693148470ffe2e5e53576998e3650c1d
    third_party/externals/imgui          @ 6384eee34f08cb7eab8d835043e1738e4adcdf75
    third_party/externals/jsoncpp        @ 1.0.0
    third_party/externals/libjpeg-turbo  @ 1.5.3
    third_party/externals/libpng         @ v1.6.33
    third_party/externals/libwebp        @ v0.6.1
    third_party/externals/lua            @ v5-3-4
    third_party/externals/microhttpd     @ 748945ec6f1c67b7efc934ab0808e1d32f2fb98d
    third_party/externals/piex           @ bb217acdca1cc0c16b704669dd6f91a1b509c406
    third_party/externals/rapidjson      @ af223d44f4e8d3772cb1ac0ce8bc2a132b51717f
    third_party/externals/sdl            @ 5d7cfcca344034aff9327f77fc181ae3754e7a90
    third_party/externals/sfntly         @ b18b09b6114b9b7fe6fc2f96d8b15e8a72f66916
    third_party/externals/spirv-headers  @ 661ad91124e6af2272afd00f804d8aa276e17107
    third_party/externals/spirv-tools    @ e9e4393b1c5aad7553c05782acefbe32b42644bd
    third_party/externals/swiftshader    @ cbb80f5f0078a9941f3ec43e83e52c3d15a43bea
    third_party/externals/zlib           @ e7afdfe128e01ca480a28f757b571957befdd962
    llvm toolset-7.0 does not need to be manually activated
    Done. Made 44 targets from 27 files in 33ms
    ninja: Entering directory `/home/despairblue/.esy/3/b/esy_skia-01fafb2b/out/Static'
    [1/1206] stamp obj/arm64.stamp
    [2/1206] stamp obj/compile_processors.stamp
    [3/1206] stamp obj/armv7.stamp
    [4/1206] stamp obj/crc32.stamp
    [5/1206] stamp obj/fontmgr_custom.stamp
    [6/1206] stamp obj/fontmgr_empty.stamp
    [7/1206] stamp obj/fontmgr_fuchsia.stamp
    [8/1206] compile ../../src/ports/SkFontConfigInterface.cpp
    FAILED: obj/src/ports/fontmgr_fontconfig.SkFontConfigInterface.o 
    clang++ -MMD -MF obj/src/ports/fontmgr_fontconfig.SkFontConfigInterface.o.d -DNDEBUG -DSK_SAMPLES_FOR_X -DSK_GAMMA_APPLY_TO_A8 -DSK_ENABLE_DISCRETE_GPU -DGR_TEST_UTILS=1 -DSKIA_IMPLEMENTATION=1 -I../../include/android -I../../include/c -I../../include/codec -I../../include/config -I../../include/core -I../../include/effects -I../../include/encode -I../../include/gpu -I../../include/atlastext -I../../include/pathops -I../../include/ports -I../../include/svg -I../../include/utils -I../../include/utils/mac -I../../include/private -I../../src/c -I../../src/codec -I../../src/core -I../../src/effects -I../../src/fonts -I../../src/image -I../../src/images -I../../src/lazy -I../../src/opts -I../../src/pathops -I../../src/pdf -I../../src/ports -I../../src/sfnt -I../../src/shaders -I../../src/shaders/gradients -I../../src/sksl -I../../src/utils -I../../src/utils/win -I../../src/xml -I../../third_party/gif -I../../src/gpu -fstrict-aliasing -fPIC -fvisibility=hidden -O3 -fdata-sections -ffunction-sections -g -Werror -Wall -Wextra -Winit-self -Wpointer-arith -Wsign-compare -Wvla -Wno-deprecated-declarations -Wno-maybe-uninitialized -Wno-extra-semi-stmt -Weverything -Wno-unknown-warning-option -Wno-anon-enum-enum-conversion -Wno-sizeof-array-div -Wno-nonportable-include-path -Wno-nonportable-system-include-path -Wno-cast-align -Wno-cast-qual -Wno-conversion -Wno-disabled-macro-expansion -Wno-documentation -Wno-documentation-unknown-command -Wno-double-promotion -Wno-exit-time-destructors -Wno-float-equal -Wno-format-nonliteral -Wno-global-constructors -Wno-missing-prototypes -Wno-missing-variable-declarations -Wno-pedantic -Wno-reserved-id-macro -Wno-shadow -Wno-shift-sign-overflow -Wno-signed-enum-bitfield -Wno-switch-enum -Wno-undef -Wno-unreachable-code -Wno-unreachable-code-break -Wno-unreachable-code-return -Wno-unused-macros -Wno-unused-member-function -Wno-unused-template -Wno-zero-as-null-pointer-constant -Wno-bad-function-cast -Wno-covered-switch-default -Wno-deprecated -Wno-missing-noreturn -Wno-old-style-cast -Wno-padded -Wno-newline-eof -Wno-implicit-fallthrough -Wno-unused-parameter -I/home/despairblue/.esy/3_____________________________________________________________/i/esy_libjpeg_turbo-e4385a3b/include -Wno-poison-system-directories -std=c++11 -fvisibility-inlines-hidden -fno-exceptions -fno-rtti -Wnon-virtual-dtor -Wno-noexcept-type -Wno-abstract-vbase-init -Wno-weak-vtables -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-undefined-func-template -c ../../src/ports/SkFontConfigInterface.cpp -o obj/src/ports/fontmgr_fontconfig.SkFontConfigInterface.o
    In file included from ../../src/ports/SkFontConfigInterface.cpp:8:
    In file included from ../../include/ports/SkFontConfigInterface.h:13:
    ../../include/core/SkTypeface.h:304:13: error: '~SkTypeface' overrides a destructor but is not marked 'override' [-Werror,-Wsuggest-destructor-override]
        virtual ~SkTypeface();
                ^
    ../../include/core/../private/SkWeakRefCnt.h:63:5: note: overridden virtual function is here
        ~SkWeakRefCnt() override {
        ^
    1 error generated.
    [9/1206] compile ../../src/gpu/GrBackendSurface.cpp
    [10/1206] compile ../../src/effects/Sk2DPathEffect.cpp
    FAILED: obj/src/effects/effects.Sk2DPathEffect.o 
    clang++ -MMD -MF obj/src/effects/effects.Sk2DPathEffect.o.d -DNDEBUG -DSK_SAMPLES_FOR_X -DSK_GAMMA_APPLY_TO_A8 -DSK_ENABLE_DISCRETE_GPU -DGR_TEST_UTILS=1 -DSKIA_IMPLEMENTATION=1 -I../../include/android -I../../include/c -I../../include/codec -I../../include/config -I../../include/core -I../../include/effects -I../../include/encode -I../../include/gpu -I../../include/atlastext -I../../include/pathops -I../../include/ports -I../../include/svg -I../../include/utils -I../../include/utils/mac -I../../include/private -I../../src/c -I../../src/codec -I../../src/core -I../../src/effects -I../../src/fonts -I../../src/image -I../../src/images -I../../src/lazy -I../../src/opts -I../../src/pathops -I../../src/pdf -I../../src/ports -I../../src/sfnt -I../../src/shaders -I../../src/shaders/gradients -I../../src/sksl -I../../src/utils -I../../src/utils/win -I../../src/xml -I../../third_party/gif -I../../src/gpu -fstrict-aliasing -fPIC -fvisibility=hidden -O3 -fdata-sections -ffunction-sections -g -Werror -Wall -Wextra -Winit-self -Wpointer-arith -Wsign-compare -Wvla -Wno-deprecated-declarations -Wno-maybe-uninitialized -Wno-extra-semi-stmt -Weverything -Wno-unknown-warning-option -Wno-anon-enum-enum-conversion -Wno-sizeof-array-div -Wno-nonportable-include-path -Wno-nonportable-system-include-path -Wno-cast-align -Wno-cast-qual -Wno-conversion -Wno-disabled-macro-expansion -Wno-documentation -Wno-documentation-unknown-command -Wno-double-promotion -Wno-exit-time-destructors -Wno-float-equal -Wno-format-nonliteral -Wno-global-constructors -Wno-missing-prototypes -Wno-missing-variable-declarations -Wno-pedantic -Wno-reserved-id-macro -Wno-shadow -Wno-shift-sign-overflow -Wno-signed-enum-bitfield -Wno-switch-enum -Wno-undef -Wno-unreachable-code -Wno-unreachable-code-break -Wno-unreachable-code-return -Wno-unused-macros -Wno-unused-member-function -Wno-unused-template -Wno-zero-as-null-pointer-constant -Wno-bad-function-cast -Wno-covered-switch-default -Wno-deprecated -Wno-missing-noreturn -Wno-old-style-cast -Wno-padded -Wno-newline-eof -Wno-implicit-fallthrough -Wno-unused-parameter -I/home/despairblue/.esy/3_____________________________________________________________/i/esy_libjpeg_turbo-e4385a3b/include -Wno-poison-system-directories -std=c++11 -fvisibility-inlines-hidden -fno-exceptions -fno-rtti -Wnon-virtual-dtor -Wno-noexcept-type -Wno-abstract-vbase-init -Wno-weak-vtables -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-undefined-func-template -c ../../src/effects/Sk2DPathEffect.cpp -o obj/src/effects/effects.Sk2DPathEffect.o
    In file included from ../../src/effects/Sk2DPathEffect.cpp:10:
    In file included from ../../src/core/SkReadBuffer.h:12:
    In file included from ../../include/core/SkSerialProcs.h:13:
    ../../include/core/SkTypeface.h:304:13: error: '~SkTypeface' overrides a destructor but is not marked 'override' [-Werror,-Wsuggest-destructor-override]
        virtual ~SkTypeface();
                ^
    ../../include/core/../private/SkWeakRefCnt.h:63:5: note: overridden virtual function is here
        ~SkWeakRefCnt() override {
        ^
    1 error generated.
    [11/1206] compile ../../src/effects/Sk1DPathEffect.cpp
    FAILED: obj/src/effects/effects.Sk1DPathEffect.o 
    clang++ -MMD -MF obj/src/effects/effects.Sk1DPathEffect.o.d -DNDEBUG -DSK_SAMPLES_FOR_X -DSK_GAMMA_APPLY_TO_A8 -DSK_ENABLE_DISCRETE_GPU -DGR_TEST_UTILS=1 -DSKIA_IMPLEMENTATION=1 -I../../include/android -I../../include/c -I../../include/codec -I../../include/config -I../../include/core -I../../include/effects -I../../include/encode -I../../include/gpu -I../../include/atlastext -I../../include/pathops -I../../include/ports -I../../include/svg -I../../include/utils -I../../include/utils/mac -I../../include/private -I../../src/c -I../../src/codec -I../../src/core -I../../src/effects -I../../src/fonts -I../../src/image -I../../src/images -I../../src/lazy -I../../src/opts -I../../src/pathops -I../../src/pdf -I../../src/ports -I../../src/sfnt -I../../src/shaders -I../../src/shaders/gradients -I../../src/sksl -I../../src/utils -I../../src/utils/win -I../../src/xml -I../../third_party/gif -I../../src/gpu -fstrict-aliasing -fPIC -fvisibility=hidden -O3 -fdata-sections -ffunction-sections -g -Werror -Wall -Wextra -Winit-self -Wpointer-arith -Wsign-compare -Wvla -Wno-deprecated-declarations -Wno-maybe-uninitialized -Wno-extra-semi-stmt -Weverything -Wno-unknown-warning-option -Wno-anon-enum-enum-conversion -Wno-sizeof-array-div -Wno-nonportable-include-path -Wno-nonportable-system-include-path -Wno-cast-align -Wno-cast-qual -Wno-conversion -Wno-disabled-macro-expansion -Wno-documentation -Wno-documentation-unknown-command -Wno-double-promotion -Wno-exit-time-destructors -Wno-float-equal -Wno-format-nonliteral -Wno-global-constructors -Wno-missing-prototypes -Wno-missing-variable-declarations -Wno-pedantic -Wno-reserved-id-macro -Wno-shadow -Wno-shift-sign-overflow -Wno-signed-enum-bitfield -Wno-switch-enum -Wno-undef -Wno-unreachable-code -Wno-unreachable-code-break -Wno-unreachable-code-return -Wno-unused-macros -Wno-unused-member-function -Wno-unused-template -Wno-zero-as-null-pointer-constant -Wno-bad-function-cast -Wno-covered-switch-default -Wno-deprecated -Wno-missing-noreturn -Wno-old-style-cast -Wno-padded -Wno-newline-eof -Wno-implicit-fallthrough -Wno-unused-parameter -I/home/despairblue/.esy/3_____________________________________________________________/i/esy_libjpeg_turbo-e4385a3b/include -Wno-poison-system-directories -std=c++11 -fvisibility-inlines-hidden -fno-exceptions -fno-rtti -Wnon-virtual-dtor -Wno-noexcept-type -Wno-abstract-vbase-init -Wno-weak-vtables -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-undefined-func-template -c ../../src/effects/Sk1DPathEffect.cpp -o obj/src/effects/effects.Sk1DPathEffect.o
    In file included from ../../src/effects/Sk1DPathEffect.cpp:10:
    In file included from ../../src/core/SkReadBuffer.h:12:
    In file included from ../../include/core/SkSerialProcs.h:13:
    ../../include/core/SkTypeface.h:304:13: error: '~SkTypeface' overrides a destructor but is not marked 'override' [-Werror,-Wsuggest-destructor-override]
        virtual ~SkTypeface();
                ^
    ../../include/core/../private/SkWeakRefCnt.h:63:5: note: overridden virtual function is here
        ~SkWeakRefCnt() override {
        ^
    1 error generated.
    [12/1206] compile ../../src/gpu/GrPaint.cpp
    FAILED: obj/src/gpu/gpu.GrPaint.o 
    clang++ -MMD -MF obj/src/gpu/gpu.GrPaint.o.d -DNDEBUG -DSK_SAMPLES_FOR_X -DSK_GAMMA_APPLY_TO_A8 -DSK_ENABLE_DISCRETE_GPU -DGR_TEST_UTILS=1 -DSKIA_IMPLEMENTATION=1 -I../../include/android -I../../include/c -I../../include/codec -I../../include/config -I../../include/core -I../../include/effects -I../../include/encode -I../../include/gpu -I../../include/atlastext -I../../include/pathops -I../../include/ports -I../../include/svg -I../../include/utils -I../../include/utils/mac -I../../include/private -I../../src/c -I../../src/codec -I../../src/core -I../../src/effects -I../../src/fonts -I../../src/image -I../../src/images -I../../src/lazy -I../../src/opts -I../../src/pathops -I../../src/pdf -I../../src/ports -I../../src/sfnt -I../../src/shaders -I../../src/shaders/gradients -I../../src/sksl -I../../src/utils -I../../src/utils/win -I../../src/xml -I../../third_party/gif -I../../src/gpu -fstrict-aliasing -fPIC -fvisibility=hidden -O3 -fdata-sections -ffunction-sections -g -Werror -Wall -Wextra -Winit-self -Wpointer-arith -Wsign-compare -Wvla -Wno-deprecated-declarations -Wno-maybe-uninitialized -Wno-extra-semi-stmt -Weverything -Wno-unknown-warning-option -Wno-anon-enum-enum-conversion -Wno-sizeof-array-div -Wno-nonportable-include-path -Wno-nonportable-system-include-path -Wno-cast-align -Wno-cast-qual -Wno-conversion -Wno-disabled-macro-expansion -Wno-documentation -Wno-documentation-unknown-command -Wno-double-promotion -Wno-exit-time-destructors -Wno-float-equal -Wno-format-nonliteral -Wno-global-constructors -Wno-missing-prototypes -Wno-missing-variable-declarations -Wno-pedantic -Wno-reserved-id-macro -Wno-shadow -Wno-shift-sign-overflow -Wno-signed-enum-bitfield -Wno-switch-enum -Wno-undef -Wno-unreachable-code -Wno-unreachable-code-break -Wno-unreachable-code-return -Wno-unused-macros -Wno-unused-member-function -Wno-unused-template -Wno-zero-as-null-pointer-constant -Wno-bad-function-cast -Wno-covered-switch-default -Wno-deprecated -Wno-missing-noreturn -Wno-old-style-cast -Wno-padded -Wno-newline-eof -Wno-implicit-fallthrough -Wno-unused-parameter -I/home/despairblue/.esy/3_____________________________________________________________/i/esy_libjpeg_turbo-e4385a3b/include -Wno-poison-system-directories -std=c++11 -fvisibility-inlines-hidden -fno-exceptions -fno-rtti -Wnon-virtual-dtor -Wno-noexcept-type -Wno-abstract-vbase-init -Wno-weak-vtables -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-undefined-func-template -c ../../src/gpu/GrPaint.cpp -o obj/src/gpu/gpu.GrPaint.o
    In file included from ../../src/gpu/GrPaint.cpp:8:
    In file included from ../../src/gpu/GrPaint.h:14:
    In file included from ../../src/gpu/GrFragmentProcessor.h:11:
    In file included from ../../src/gpu/GrProcessor.h:15:
    In file included from ../../src/gpu/GrProcessorUnitTest.h:15:
    In file included from ../../include/android/../private/GrTextureProxy.h:12:
    ../../include/private/GrSurfaceProxy.h:399:13: error: '~GrSurfaceProxy' overrides a destructor but is not marked 'override' [-Werror,-Wsuggest-destructor-override]
        virtual ~GrSurfaceProxy();
                ^
    ../../include/private/GrSurfaceProxy.h:149:13: note: overridden virtual function is here
        virtual ~GrIORefProxy() {
                ^
    In file included from ../../src/gpu/GrPaint.cpp:8:
    In file included from ../../src/gpu/GrPaint.h:14:
    In file included from ../../src/gpu/GrFragmentProcessor.h:11:
    In file included from ../../src/gpu/GrProcessor.h:19:
    In file included from ../../src/gpu/GrSurfaceProxyPriv.h:13:
    In file included from ../../src/gpu/GrResourceProvider.h:15:
    In file included from ../../src/core/SkScalerContext.h:19:
    ../../include/core/SkTypeface.h:304:13: error: '~SkTypeface' overrides a destructor but is not marked 'override' [-Werror,-Wsuggest-destructor-override]
        virtual ~SkTypeface();
                ^
    ../../include/core/../private/SkWeakRefCnt.h:63:5: note: overridden virtual function is here
        ~SkWeakRefCnt() override {
        ^
    2 errors generated.
    [13/1206] compile ../../src/gpu/GrAuditTrail.cpp
    FAILED: obj/src/gpu/gpu.GrAuditTrail.o 
    clang++ -MMD -MF obj/src/gpu/gpu.GrAuditTrail.o.d -DNDEBUG -DSK_SAMPLES_FOR_X -DSK_GAMMA_APPLY_TO_A8 -DSK_ENABLE_DISCRETE_GPU -DGR_TEST_UTILS=1 -DSKIA_IMPLEMENTATION=1 -I../../include/android -I../../include/c -I../../include/codec -I../../include/config -I../../include/core -I../../include/effects -I../../include/encode -I../../include/gpu -I../../include/atlastext -I../../include/pathops -I../../include/ports -I../../include/svg -I../../include/utils -I../../include/utils/mac -I../../include/private -I../../src/c -I../../src/codec -I../../src/core -I../../src/effects -I../../src/fonts -I../../src/image -I../../src/images -I../../src/lazy -I../../src/opts -I../../src/pathops -I../../src/pdf -I../../src/ports -I../../src/sfnt -I../../src/shaders -I../../src/shaders/gradients -I../../src/sksl -I../../src/utils -I../../src/utils/win -I../../src/xml -I../../third_party/gif -I../../src/gpu -fstrict-aliasing -fPIC -fvisibility=hidden -O3 -fdata-sections -ffunction-sections -g -Werror -Wall -Wextra -Winit-self -Wpointer-arith -Wsign-compare -Wvla -Wno-deprecated-declarations -Wno-maybe-uninitialized -Wno-extra-semi-stmt -Weverything -Wno-unknown-warning-option -Wno-anon-enum-enum-conversion -Wno-sizeof-array-div -Wno-nonportable-include-path -Wno-nonportable-system-include-path -Wno-cast-align -Wno-cast-qual -Wno-conversion -Wno-disabled-macro-expansion -Wno-documentation -Wno-documentation-unknown-command -Wno-double-promotion -Wno-exit-time-destructors -Wno-float-equal -Wno-format-nonliteral -Wno-global-constructors -Wno-missing-prototypes -Wno-missing-variable-declarations -Wno-pedantic -Wno-reserved-id-macro -Wno-shadow -Wno-shift-sign-overflow -Wno-signed-enum-bitfield -Wno-switch-enum -Wno-undef -Wno-unreachable-code -Wno-unreachable-code-break -Wno-unreachable-code-return -Wno-unused-macros -Wno-unused-member-function -Wno-unused-template -Wno-zero-as-null-pointer-constant -Wno-bad-function-cast -Wno-covered-switch-default -Wno-deprecated -Wno-missing-noreturn -Wno-old-style-cast -Wno-padded -Wno-newline-eof -Wno-implicit-fallthrough -Wno-unused-parameter -I/home/despairblue/.esy/3_____________________________________________________________/i/esy_libjpeg_turbo-e4385a3b/include -Wno-poison-system-directories -std=c++11 -fvisibility-inlines-hidden -fno-exceptions -fno-rtti -Wnon-virtual-dtor -Wno-noexcept-type -Wno-abstract-vbase-init -Wno-weak-vtables -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-undefined-func-template -c ../../src/gpu/GrAuditTrail.cpp -o obj/src/gpu/gpu.GrAuditTrail.o
    In file included from ../../src/gpu/GrAuditTrail.cpp:8:
    In file included from ../../include/private/GrAuditTrail.h:13:
    In file included from ../../include/private/GrRenderTargetProxy.h:11:
    ../../include/private/GrSurfaceProxy.h:399:13: error: '~GrSurfaceProxy' overrides a destructor but is not marked 'override' [-Werror,-Wsuggest-destructor-override]
        virtual ~GrSurfaceProxy();
                ^
    ../../include/private/GrSurfaceProxy.h:149:13: note: overridden virtual function is here
        virtual ~GrIORefProxy() {
                ^
    In file included from ../../src/gpu/GrAuditTrail.cpp:9:
    In file included from ../../src/gpu/ops/GrOp.h:15:
    In file included from ../../src/gpu/GrXferProcessor.h:14:
    In file included from ../../src/gpu/GrProcessor.h:19:
    In file included from ../../src/gpu/GrSurfaceProxyPriv.h:13:
    In file included from ../../src/gpu/GrResourceProvider.h:15:
    In file included from ../../src/core/SkScalerContext.h:19:
    ../../include/core/SkTypeface.h:304:13: error: '~SkTypeface' overrides a destructor but is not marked 'override' [-Werror,-Wsuggest-destructor-override]
        virtual ~SkTypeface();
                ^
    ../../include/core/../private/SkWeakRefCnt.h:63:5: note: overridden virtual function is here
        ~SkWeakRefCnt() override {
        ^
    2 errors generated.
    [14/1206] compile ../../src/gpu/GrPath.cpp
    FAILED: obj/src/gpu/gpu.GrPath.o 
    clang++ -MMD -MF obj/src/gpu/gpu.GrPath.o.d -DNDEBUG -DSK_SAMPLES_FOR_X -DSK_GAMMA_APPLY_TO_A8 -DSK_ENABLE_DISCRETE_GPU -DGR_TEST_UTILS=1 -DSKIA_IMPLEMENTATION=1 -I../../include/android -I../../include/c -I../../include/codec -I../../include/config -I../../include/core -I../../include/effects -I../../include/encode -I../../include/gpu -I../../include/atlastext -I../../include/pathops -I../../include/ports -I../../include/svg -I../../include/utils -I../../include/utils/mac -I../../include/private -I../../src/c -I../../src/codec -I../../src/core -I../../src/effects -I../../src/fonts -I../../src/image -I../../src/images -I../../src/lazy -I../../src/opts -I../../src/pathops -I../../src/pdf -I../../src/ports -I../../src/sfnt -I../../src/shaders -I../../src/shaders/gradients -I../../src/sksl -I../../src/utils -I../../src/utils/win -I../../src/xml -I../../third_party/gif -I../../src/gpu -fstrict-aliasing -fPIC -fvisibility=hidden -O3 -fdata-sections -ffunction-sections -g -Werror -Wall -Wextra -Winit-self -Wpointer-arith -Wsign-compare -Wvla -Wno-deprecated-declarations -Wno-maybe-uninitialized -Wno-extra-semi-stmt -Weverything -Wno-unknown-warning-option -Wno-anon-enum-enum-conversion -Wno-sizeof-array-div -Wno-nonportable-include-path -Wno-nonportable-system-include-path -Wno-cast-align -Wno-cast-qual -Wno-conversion -Wno-disabled-macro-expansion -Wno-documentation -Wno-documentation-unknown-command -Wno-double-promotion -Wno-exit-time-destructors -Wno-float-equal -Wno-format-nonliteral -Wno-global-constructors -Wno-missing-prototypes -Wno-missing-variable-declarations -Wno-pedantic -Wno-reserved-id-macro -Wno-shadow -Wno-shift-sign-overflow -Wno-signed-enum-bitfield -Wno-switch-enum -Wno-undef -Wno-unreachable-code -Wno-unreachable-code-break -Wno-unreachable-code-return -Wno-unused-macros -Wno-unused-member-function -Wno-unused-template -Wno-zero-as-null-pointer-constant -Wno-bad-function-cast -Wno-covered-switch-default -Wno-deprecated -Wno-missing-noreturn -Wno-old-style-cast -Wno-padded -Wno-newline-eof -Wno-implicit-fallthrough -Wno-unused-parameter -I/home/despairblue/.esy/3_____________________________________________________________/i/esy_libjpeg_turbo-e4385a3b/include -Wno-poison-system-directories -std=c++11 -fvisibility-inlines-hidden -fno-exceptions -fno-rtti -Wnon-virtual-dtor -Wno-noexcept-type -Wno-abstract-vbase-init -Wno-weak-vtables -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-undefined-func-template -c ../../src/gpu/GrPath.cpp -o obj/src/gpu/gpu.GrPath.o
    In file included from ../../src/gpu/GrPath.cpp:8:
    In file included from ../../src/gpu/GrPath.h:12:
    In file included from ../../src/gpu/GrPathRendering.h:12:
    In file included from ../../src/gpu/GrPipeline.h:12:
    In file included from ../../src/gpu/GrFragmentProcessor.h:11:
    In file included from ../../src/gpu/GrProcessor.h:15:
    In file included from ../../src/gpu/GrProcessorUnitTest.h:15:
    In file included from ../../include/android/../private/GrTextureProxy.h:12:
    ../../include/private/GrSurfaceProxy.h:399:13: error: '~GrSurfaceProxy' overrides a destructor but is not marked 'override' [-Werror,-Wsuggest-destructor-override]
        virtual ~GrSurfaceProxy();
                ^
    ../../include/private/GrSurfaceProxy.h:149:13: note: overridden virtual function is here
        virtual ~GrIORefProxy() {
                ^
    In file included from ../../src/gpu/GrPath.cpp:8:
    In file included from ../../src/gpu/GrPath.h:12:
    In file included from ../../src/gpu/GrPathRendering.h:12:
    In file included from ../../src/gpu/GrPipeline.h:12:
    In file included from ../../src/gpu/GrFragmentProcessor.h:11:
    In file included from ../../src/gpu/GrProcessor.h:19:
    In file included from ../../src/gpu/GrSurfaceProxyPriv.h:13:
    In file included from ../../src/gpu/GrResourceProvider.h:15:
    In file included from ../../src/core/SkScalerContext.h:19:
    ../../include/core/SkTypeface.h:304:13: error: '~SkTypeface' overrides a destructor but is not marked 'override' [-Werror,-Wsuggest-destructor-override]
        virtual ~SkTypeface();
                ^
    ../../include/core/../private/SkWeakRefCnt.h:63:5: note: overridden virtual function is here
        ~SkWeakRefCnt() override {
        ^
    In file included from ../../src/gpu/GrPath.cpp:8:
    In file included from ../../src/gpu/GrPath.h:12:
    In file included from ../../src/gpu/GrPathRendering.h:12:
    In file included from ../../src/gpu/GrPipeline.h:16:
    In file included from ../../src/gpu/GrProgramDesc.h:15:
    ../../src/gpu/glsl/GrGLSLFragmentShaderBuilder.h:25:13: error: '~GrGLSLFragmentBuilder' overrides a destructor but is not marked 'override' [-Werror,-Wsuggest-destructor-override]
        virtual ~GrGLSLFragmentBuilder() {}
                ^
    ../../src/gpu/glsl/GrGLSLShaderBuilder.h:26:13: note: overridden virtual function is here
        virtual ~GrGLSLShaderBuilder() {}
                ^
    3 errors generated.
    [15/1206] compile ../../src/opts/SkOpts_avx.cpp
    FAILED: obj/src/opts/avx.SkOpts_avx.o 
    clang++ -MMD -MF obj/src/opts/avx.SkOpts_avx.o.d -DNDEBUG -DSK_SAMPLES_FOR_X -DSK_GAMMA_APPLY_TO_A8 -DSK_ENABLE_DISCRETE_GPU -DGR_TEST_UTILS=1 -DSKIA_IMPLEMENTATION=1 -I../../include/android -I../../include/c -I../../include/codec -I../../include/config -I../../include/core -I../../include/effects -I../../include/encode -I../../include/gpu -I../../include/atlastext -I../../include/pathops -I../../include/ports -I../../include/svg -I../../include/utils -I../../include/utils/mac -I../../include/private -I../../src/c -I../../src/codec -I../../src/core -I../../src/effects -I../../src/fonts -I../../src/image -I../../src/images -I../../src/lazy -I../../src/opts -I../../src/pathops -I../../src/pdf -I../../src/ports -I../../src/sfnt -I../../src/shaders -I../../src/shaders/gradients -I../../src/sksl -I../../src/utils -I../../src/utils/win -I../../src/xml -I../../third_party/gif -I../../src/gpu -mavx -fstrict-aliasing -fPIC -fvisibility=hidden -O3 -fdata-sections -ffunction-sections -g -Werror -Wall -Wextra -Winit-self -Wpointer-arith -Wsign-compare -Wvla -Wno-deprecated-declarations -Wno-maybe-uninitialized -Wno-extra-semi-stmt -Weverything -Wno-unknown-warning-option -Wno-anon-enum-enum-conversion -Wno-sizeof-array-div -Wno-nonportable-include-path -Wno-nonportable-system-include-path -Wno-cast-align -Wno-cast-qual -Wno-conversion -Wno-disabled-macro-expansion -Wno-documentation -Wno-documentation-unknown-command -Wno-double-promotion -Wno-exit-time-destructors -Wno-float-equal -Wno-format-nonliteral -Wno-global-constructors -Wno-missing-prototypes -Wno-missing-variable-declarations -Wno-pedantic -Wno-reserved-id-macro -Wno-shadow -Wno-shift-sign-overflow -Wno-signed-enum-bitfield -Wno-switch-enum -Wno-undef -Wno-unreachable-code -Wno-unreachable-code-break -Wno-unreachable-code-return -Wno-unused-macros -Wno-unused-member-function -Wno-unused-template -Wno-zero-as-null-pointer-constant -Wno-bad-function-cast -Wno-covered-switch-default -Wno-deprecated -Wno-missing-noreturn -Wno-old-style-cast -Wno-padded -Wno-newline-eof -Wno-implicit-fallthrough -Wno-unused-parameter -I/home/despairblue/.esy/3_____________________________________________________________/i/esy_libjpeg_turbo-e4385a3b/include -Wno-poison-system-directories -std=c++11 -fvisibility-inlines-hidden -fno-exceptions -fno-rtti -Wnon-virtual-dtor -Wno-noexcept-type -Wno-abstract-vbase-init -Wno-weak-vtables -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-undefined-func-template -c ../../src/opts/SkOpts_avx.cpp -o obj/src/opts/avx.SkOpts_avx.o
    In file included from ../../src/opts/SkOpts_avx.cpp:11:
    ../../src/opts/SkRasterPipeline_opts.h:1688:15: error: AVX vector return of type 'V<unsigned long>' (vector of 8 'unsigned long' values) without 'avx512f' enabled changes the ABI [-Werror,-Wpsabi]
        auto px = gather(ptr, ix);
                  ^
    1 error generated.
    [16/1206] compile ../../src/effects/SkAlphaThresholdFilter.cpp
    FAILED: obj/src/effects/effects.SkAlphaThresholdFilter.o 
    clang++ -MMD -MF obj/src/effects/effects.SkAlphaThresholdFilter.o.d -DNDEBUG -DSK_SAMPLES_FOR_X -DSK_GAMMA_APPLY_TO_A8 -DSK_ENABLE_DISCRETE_GPU -DGR_TEST_UTILS=1 -DSKIA_IMPLEMENTATION=1 -I../../include/android -I../../include/c -I../../include/codec -I../../include/config -I../../include/core -I../../include/effects -I../../include/encode -I../../include/gpu -I../../include/atlastext -I../../include/pathops -I../../include/ports -I../../include/svg -I../../include/utils -I../../include/utils/mac -I../../include/private -I../../src/c -I../../src/codec -I../../src/core -I../../src/effects -I../../src/fonts -I../../src/image -I../../src/images -I../../src/lazy -I../../src/opts -I../../src/pathops -I../../src/pdf -I../../src/ports -I../../src/sfnt -I../../src/shaders -I../../src/shaders/gradients -I../../src/sksl -I../../src/utils -I../../src/utils/win -I../../src/xml -I../../third_party/gif -I../../src/gpu -fstrict-aliasing -fPIC -fvisibility=hidden -O3 -fdata-sections -ffunction-sections -g -Werror -Wall -Wextra -Winit-self -Wpointer-arith -Wsign-compare -Wvla -Wno-deprecated-declarations -Wno-maybe-uninitialized -Wno-extra-semi-stmt -Weverything -Wno-unknown-warning-option -Wno-anon-enum-enum-conversion -Wno-sizeof-array-div -Wno-nonportable-include-path -Wno-nonportable-system-include-path -Wno-cast-align -Wno-cast-qual -Wno-conversion -Wno-disabled-macro-expansion -Wno-documentation -Wno-documentation-unknown-command -Wno-double-promotion -Wno-exit-time-destructors -Wno-float-equal -Wno-format-nonliteral -Wno-global-constructors -Wno-missing-prototypes -Wno-missing-variable-declarations -Wno-pedantic -Wno-reserved-id-macro -Wno-shadow -Wno-shift-sign-overflow -Wno-signed-enum-bitfield -Wno-switch-enum -Wno-undef -Wno-unreachable-code -Wno-unreachable-code-break -Wno-unreachable-code-return -Wno-unused-macros -Wno-unused-member-function -Wno-unused-template -Wno-zero-as-null-pointer-constant -Wno-bad-function-cast -Wno-covered-switch-default -Wno-deprecated -Wno-missing-noreturn -Wno-old-style-cast -Wno-padded -Wno-newline-eof -Wno-implicit-fallthrough -Wno-unused-parameter -I/home/despairblue/.esy/3_____________________________________________________________/i/esy_libjpeg_turbo-e4385a3b/include -Wno-poison-system-directories -std=c++11 -fvisibility-inlines-hidden -fno-exceptions -fno-rtti -Wnon-virtual-dtor -Wno-noexcept-type -Wno-abstract-vbase-init -Wno-weak-vtables -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-undefined-func-template -c ../../src/effects/SkAlphaThresholdFilter.cpp -o obj/src/effects/effects.SkAlphaThresholdFilter.o
    In file included from ../../src/effects/SkAlphaThresholdFilter.cpp:13:
    In file included from ../../src/core/SkReadBuffer.h:12:
    In file included from ../../include/core/SkSerialProcs.h:13:
    ../../include/core/SkTypeface.h:304:13: error: '~SkTypeface' overrides a destructor but is not marked 'override' [-Werror,-Wsuggest-destructor-override]
        virtual ~SkTypeface();
                ^
    ../../include/core/../private/SkWeakRefCnt.h:63:5: note: overridden virtual function is here
        ~SkWeakRefCnt() override {
        ^
    In file included from ../../src/effects/SkAlphaThresholdFilter.cpp:19:
    In file included from ../../src/gpu/GrColorSpaceXform.h:12:
    In file included from ../../src/gpu/GrFragmentProcessor.h:11:
    In file included from ../../src/gpu/GrProcessor.h:15:
    In file included from ../../src/gpu/GrProcessorUnitTest.h:15:
    In file included from ../../include/android/../private/GrTextureProxy.h:12:
    ../../include/private/GrSurfaceProxy.h:399:13: error: '~GrSurfaceProxy' overrides a destructor but is not marked 'override' [-Werror,-Wsuggest-destructor-override]
        virtual ~GrSurfaceProxy();
                ^
    ../../include/private/GrSurfaceProxy.h:149:13: note: overridden virtual function is here
        virtual ~GrIORefProxy() {
                ^
    In file included from ../../src/effects/SkAlphaThresholdFilter.cpp:20:
    ../../include/gpu/GrContext.h:89:13: error: '~GrContext' overrides a destructor but is not marked 'override' [-Werror,-Wsuggest-destructor-override]
        virtual ~GrContext();
                ^
    ../../include/core/SkRefCnt.h:127:14: note: overridden virtual function is here
    class SK_API SkRefCnt : public SkRefCntBase {
                 ^
    In file included from ../../src/effects/SkAlphaThresholdFilter.cpp:20:
    ../../include/gpu/GrContext.h:367:5: error: '~GrContextThreadSafeProxy' overrides a destructor but is not marked 'override' [-Werror,-Wsuggest-destructor-override]
        ~GrContextThreadSafeProxy();
        ^
    ../../include/core/SkRefCnt.h:127:14: note: overridden virtual function is here
    class SK_API SkRefCnt : public SkRefCntBase {
                 ^
    In file included from ../../src/effects/SkAlphaThresholdFilter.cpp:21:
    In file included from ../../src/gpu/GrFixedClip.h:11:
    In file included from ../../src/gpu/GrClip.h:12:
    In file included from ../../src/gpu/GrRenderTargetContext.h:14:
    In file included from ../../src/gpu/GrContextPriv.h:13:
    In file included from ../../src/gpu/text/GrAtlasManager.h:11:
    In file included from ../../src/gpu/GrDrawOpAtlas.h:15:
    In file included from ../../src/gpu/ops/GrDrawOp.h:14:
    In file included from ../../src/gpu/GrPipeline.h:16:
    In file included from ../../src/gpu/GrProgramDesc.h:15:
    ../../src/gpu/glsl/GrGLSLFragmentShaderBuilder.h:25:13: error: '~GrGLSLFragmentBuilder' overrides a destructor but is not marked 'override' [-Werror,-Wsuggest-destructor-override]
        virtual ~GrGLSLFragmentBuilder() {}
                ^
    ../../src/gpu/glsl/GrGLSLShaderBuilder.h:26:13: note: overridden virtual function is here
        virtual ~GrGLSLShaderBuilder() {}
                ^
    5 errors generated.
    [17/1206] compile ../../src/effects/SkArithmeticImageFilter.cpp
    FAILED: obj/src/effects/effects.SkArithmeticImageFilter.o 
    clang++ -MMD -MF obj/src/effects/effects.SkArithmeticImageFilter.o.d -DNDEBUG -DSK_SAMPLES_FOR_X -DSK_GAMMA_APPLY_TO_A8 -DSK_ENABLE_DISCRETE_GPU -DGR_TEST_UTILS=1 -DSKIA_IMPLEMENTATION=1 -I../../include/android -I../../include/c -I../../include/codec -I../../include/config -I../../include/core -I../../include/effects -I../../include/encode -I../../include/gpu -I../../include/atlastext -I../../include/pathops -I../../include/ports -I../../include/svg -I../../include/utils -I../../include/utils/mac -I../../include/private -I../../src/c -I../../src/codec -I../../src/core -I../../src/effects -I../../src/fonts -I../../src/image -I../../src/images -I../../src/lazy -I../../src/opts -I../../src/pathops -I../../src/pdf -I../../src/ports -I../../src/sfnt -I../../src/shaders -I../../src/shaders/gradients -I../../src/sksl -I../../src/utils -I../../src/utils/win -I../../src/xml -I../../third_party/gif -I../../src/gpu -fstrict-aliasing -fPIC -fvisibility=hidden -O3 -fdata-sections -ffunction-sections -g -Werror -Wall -Wextra -Winit-self -Wpointer-arith -Wsign-compare -Wvla -Wno-deprecated-declarations -Wno-maybe-uninitialized -Wno-extra-semi-stmt -Weverything -Wno-unknown-warning-option -Wno-anon-enum-enum-conversion -Wno-sizeof-array-div -Wno-nonportable-include-path -Wno-nonportable-system-include-path -Wno-cast-align -Wno-cast-qual -Wno-conversion -Wno-disabled-macro-expansion -Wno-documentation -Wno-documentation-unknown-command -Wno-double-promotion -Wno-exit-time-destructors -Wno-float-equal -Wno-format-nonliteral -Wno-global-constructors -Wno-missing-prototypes -Wno-missing-variable-declarations -Wno-pedantic -Wno-reserved-id-macro -Wno-shadow -Wno-shift-sign-overflow -Wno-signed-enum-bitfield -Wno-switch-enum -Wno-undef -Wno-unreachable-code -Wno-unreachable-code-break -Wno-unreachable-code-return -Wno-unused-macros -Wno-unused-member-function -Wno-unused-template -Wno-zero-as-null-pointer-constant -Wno-bad-function-cast -Wno-covered-switch-default -Wno-deprecated -Wno-missing-noreturn -Wno-old-style-cast -Wno-padded -Wno-newline-eof -Wno-implicit-fallthrough -Wno-unused-parameter -I/home/despairblue/.esy/3_____________________________________________________________/i/esy_libjpeg_turbo-e4385a3b/include -Wno-poison-system-directories -std=c++11 -fvisibility-inlines-hidden -fno-exceptions -fno-rtti -Wnon-virtual-dtor -Wno-noexcept-type -Wno-abstract-vbase-init -Wno-weak-vtables -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-undefined-func-template -c ../../src/effects/SkArithmeticImageFilter.cpp -o obj/src/effects/effects.SkArithmeticImageFilter.o
    In file included from ../../src/effects/SkArithmeticImageFilter.cpp:13:
    In file included from ../../src/core/SkReadBuffer.h:12:
    In file included from ../../include/core/SkSerialProcs.h:13:
    ../../include/core/SkTypeface.h:304:13: error: '~SkTypeface' overrides a destructor but is not marked 'override' [-Werror,-Wsuggest-destructor-override]
        virtual ~SkTypeface();
                ^
    ../../include/core/../private/SkWeakRefCnt.h:63:5: note: overridden virtual function is here
        ~SkWeakRefCnt() override {
        ^
    In file included from ../../src/effects/SkArithmeticImageFilter.cpp:19:
    In file included from ../../src/gpu/GrClip.h:11:
    In file included from ../../src/gpu/GrAppliedClip.h:11:
    In file included from ../../src/gpu/GrFragmentProcessor.h:11:
    In file included from ../../src/gpu/GrProcessor.h:15:
    In file included from ../../src/gpu/GrProcessorUnitTest.h:15:
    In file included from ../../include/android/../private/GrTextureProxy.h:12:
    ../../include/private/GrSurfaceProxy.h:399:13: error: '~GrSurfaceProxy' overrides a destructor but is not marked 'override' [-Werror,-Wsuggest-destructor-override]
        virtual ~GrSurfaceProxy();
                ^
    ../../include/private/GrSurfaceProxy.h:149:13: note: overridden virtual function is here
        virtual ~GrIORefProxy() {
                ^
    In file included from ../../src/effects/SkArithmeticImageFilter.cpp:19:
    In file included from ../../src/gpu/GrClip.h:12:
    In file included from ../../src/gpu/GrRenderTargetContext.h:13:
    ../../include/gpu/GrContext.h:89:13: error: '~GrContext' overrides a destructor but is not marked 'override' [-Werror,-Wsuggest-destructor-override]
        virtual ~GrContext();
                ^
    ../../include/core/SkRefCnt.h:127:14: note: overridden virtual function is here
    class SK_API SkRefCnt : public SkRefCntBase {
                 ^
    In file included from ../../src/effects/SkArithmeticImageFilter.cpp:19:
    In file included from ../../src/gpu/GrClip.h:12:
    In file included from ../../src/gpu/GrRenderTargetContext.h:13:
    ../../include/gpu/GrContext.h:367:5: error: '~GrContextThreadSafeProxy' overrides a destructor but is not marked 'override' [-Werror,-Wsuggest-destructor-override]
        ~GrContextThreadSafeProxy();
        ^
    ../../include/core/SkRefCnt.h:127:14: note: overridden virtual function is here
    class SK_API SkRefCnt : public SkRefCntBase {
                 ^
    In file included from ../../src/effects/SkArithmeticImageFilter.cpp:19:
    In file included from ../../src/gpu/GrClip.h:12:
    In file included from ../../src/gpu/GrRenderTargetContext.h:14:
    In file included from ../../src/gpu/GrContextPriv.h:13:
    In file included from ../../src/gpu/text/GrAtlasManager.h:11:
    In file included from ../../src/gpu/GrDrawOpAtlas.h:15:
    In file included from ../../src/gpu/ops/GrDrawOp.h:14:
    In file included from ../../src/gpu/GrPipeline.h:16:
    In file included from ../../src/gpu/GrProgramDesc.h:15:
    ../../src/gpu/glsl/GrGLSLFragmentShaderBuilder.h:25:13: error: '~GrGLSLFragmentBuilder' overrides a destructor but is not marked 'override' [-Werror,-Wsuggest-destructor-override]
        virtual ~GrGLSLFragmentBuilder() {}
                ^
    ../../src/gpu/glsl/GrGLSLShaderBuilder.h:26:13: note: overridden virtual function is here
        virtual ~GrGLSLShaderBuilder() {}
                ^
    5 errors generated.
    ninja: build stopped: subcommand failed.
    error: command failed: 'bash' './esy/build.sh' 'linux' '/home/despairblue/.esy/3_____________________________________________________________/i/esy_libjpeg_turbo-e4385a3b' (exited with 1)
    esy-build-package: exiting with errors above...
    
  building esy-skia@github:revery-ui/esy-skia#60e0260
esy: exiting due to errors above


</details>

@despairblue
Copy link
Contributor Author

I think the build error was fixed in revery here: revery-ui/revery#1033

@despairblue
Copy link
Contributor Author

I upgraded revery in the resolutions of the package.json to 14402ad200a6c659afa67315b7fe36cdb1c5ef3c but it still fails with the same errors.

@Et7f3
Copy link
Contributor

Et7f3 commented Sep 25, 2021

Can you try this branch https://github.com/revery-ui/esy-skia/tree/fix-oni2-3824

@despairblue
Copy link
Contributor Author

Just tried only with overriding esy-skia like this:

        "esy-skia": "revery-ui/esy-skia#a1c5de7b1a1bc0a6eadabdefc7cee338d29748e8",

Which still failed, now I try overriding revery and esy-skia like this:

        "revery": "revery-ui/revery#14402ad200a6c659afa67315b7fe36cdb1c5ef3c",
        "esy-skia": "revery-ui/esy-skia#a1c5de7b1a1bc0a6eadabdefc7cee338d29748e8",

@despairblue
Copy link
Contributor Author

Same, I think I have to go into esy_libjpeg_turbo and have to fix it there too. I'll try that.

@despairblue
Copy link
Contributor Author

So I still get this:

Details
info building esy-skia@github:revery-ui/esy-skia#a1c5de7b1a1bc0a6eadabdefc7cee338d29748e8@d41d8cd9
error: build failed with exit code: 1
  build log:
    # esy-build-package: building: esy-skia@github:revery-ui/esy-skia#a1c5de7b1a1bc0a6eadabdefc7cee338d29748e8
    # esy-build-package: pwd: /home/despairblue/.esy/3/b/esy_skia-894eea68
    # esy-build-package: running: 'bash' './esy/build.sh' 'linux' '/home/despairblue/.esy/3_____________________________________________________________/i/esy_libjpeg_turbo-e4385a3b'
    buildtools                           @ 505de88083136eefd056e5ee4ca0f01fe9b33de8
    third_party/externals/angle2         @ b001528ffa00e7c15a5002124f707570e59a5697
    third_party/externals/dng_sdk        @ 96443b262250c390b0caefbf3eed8463ba35ecae
    third_party/externals/expat          @ android-6.0.1_r55
    third_party/externals/freetype       @ fa6da7bf6dcbcfa22d2464259ad1cccee3233189
    third_party/externals/googletest     @ dd43b9998e9a44a579a7aba6c1309407d1a5ed95
    third_party/externals/harfbuzz       @ 1.4.2
    third_party/externals/icu            @ ec9c1133693148470ffe2e5e53576998e3650c1d
    third_party/externals/imgui          @ 6384eee34f08cb7eab8d835043e1738e4adcdf75
    third_party/externals/jsoncpp        @ 1.0.0
    third_party/externals/libjpeg-turbo  @ 1.5.3
    third_party/externals/libpng         @ v1.6.33
    third_party/externals/libwebp        @ v0.6.1
    third_party/externals/lua            @ v5-3-4
    third_party/externals/microhttpd     @ 748945ec6f1c67b7efc934ab0808e1d32f2fb98d
    third_party/externals/piex           @ bb217acdca1cc0c16b704669dd6f91a1b509c406
    third_party/externals/rapidjson      @ af223d44f4e8d3772cb1ac0ce8bc2a132b51717f
    third_party/externals/sdl            @ 5d7cfcca344034aff9327f77fc181ae3754e7a90
    third_party/externals/sfntly         @ b18b09b6114b9b7fe6fc2f96d8b15e8a72f66916
    third_party/externals/spirv-headers  @ 661ad91124e6af2272afd00f804d8aa276e17107
    third_party/externals/spirv-tools    @ e9e4393b1c5aad7553c05782acefbe32b42644bd
    third_party/externals/swiftshader    @ cbb80f5f0078a9941f3ec43e83e52c3d15a43bea
    third_party/externals/zlib           @ e7afdfe128e01ca480a28f757b571957befdd962
    llvm toolset-7.0 does not need to be manually activated
    Done. Made 45 targets from 27 files in 34ms
    ninja: Entering directory `/home/despairblue/.esy/3/b/esy_skia-894eea68/out/Static'
    [1/1230] stamp obj/arm64.stamp
    [2/1230] stamp obj/armv7.stamp
    [3/1230] stamp obj/compile_processors.stamp
    [4/1230] stamp obj/crc32.stamp
    [5/1230] compile ../../src/effects/SkColorMatrix.cpp
    [6/1230] compile ../../src/effects/Sk1DPathEffect.cpp
    [7/1230] compile ../../src/ports/SkFontConfigInterface_direct.cpp
    [8/1230] stamp obj/fontmgr_custom.stamp
    [9/1230] stamp obj/fontmgr_empty.stamp
    [10/1230] compile ../../src/effects/SkColorFilterImageFilter.cpp
    [11/1230] compile ../../src/gpu/GrPaint.cpp
    FAILED: obj/src/gpu/gpu.GrPaint.o 
    clang++ -MMD -MF obj/src/gpu/gpu.GrPaint.o.d -DNDEBUG -DSK_SAMPLES_FOR_X -DSK_GAMMA_APPLY_TO_A8 -DSK_ENABLE_DISCRETE_GPU -DGR_TEST_UTILS=1 -DSKIA_IMPLEMENTATION=1 -I../../include/android -I../../include/c -I../../include/codec -I../../include/config -I../../include/core -I../../include/effects -I../../include/encode -I../../include/gpu -I../../include/atlastext -I../../include/pathops -I../../include/ports -I../../include/svg -I../../include/utils -I../../include/utils/mac -I../../include/private -I../../src/c -I../../src/codec -I../../src/core -I../../src/effects -I../../src/fonts -I../../src/image -I../../src/images -I../../src/lazy -I../../src/opts -I../../src/pathops -I../../src/pdf -I../../src/ports -I../../src/sfnt -I../../src/shaders -I../../src/shaders/gradients -I../../src/sksl -I../../src/utils -I../../src/utils/win -I../../src/xml -I../../third_party/gif -I../../experimental/svg/model -I../../src/gpu -fstrict-aliasing -fPIC -fvisibility=hidden -O3 -fdata-sections -ffunction-sections -g -Werror -Wall -Wextra -Winit-self -Wpointer-arith -Wsign-compare -Wvla -Wno-deprecated-declarations -Wno-maybe-uninitialized -Wno-extra-semi-stmt -Weverything -Wno-unknown-warning-option -Wno-anon-enum-enum-conversion -Wno-sizeof-array-div -Wno-psabi -Wno-suggest-destructor-override -Wno-suggest-override -Wno-uninitialized-const-reference -Wno-poison-system-directories -Wno-nonportable-include-path -Wno-nonportable-system-include-path -Wno-cast-align -Wno-cast-qual -Wno-conversion -Wno-disabled-macro-expansion -Wno-documentation -Wno-documentation-unknown-command -Wno-double-promotion -Wno-exit-time-destructors -Wno-float-equal -Wno-format-nonliteral -Wno-global-constructors -Wno-missing-prototypes -Wno-missing-variable-declarations -Wno-pedantic -Wno-reserved-id-macro -Wno-shadow -Wno-shift-sign-overflow -Wno-signed-enum-bitfield -Wno-switch-enum -Wno-undef -Wno-unreachable-code -Wno-unreachable-code-break -Wno-unreachable-code-return -Wno-unused-macros -Wno-unused-member-function -Wno-unused-template -Wno-zero-as-null-pointer-constant -Wno-bad-function-cast -Wno-covered-switch-default -Wno-deprecated -Wno-missing-noreturn -Wno-old-style-cast -Wno-padded -Wno-newline-eof -Wno-implicit-fallthrough -Wno-unused-parameter -I/home/despairblue/.esy/3_____________________________________________________________/i/esy_libjpeg_turbo-e4385a3b/include -std=c++11 -fvisibility-inlines-hidden -fno-exceptions -fno-rtti -Wnon-virtual-dtor -Wno-noexcept-type -Wno-abstract-vbase-init -Wno-weak-vtables -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-undefined-func-template -c ../../src/gpu/GrPaint.cpp -o obj/src/gpu/gpu.GrPaint.o
    In file included from ../../src/gpu/GrPaint.cpp:8:
    In file included from ../../src/gpu/GrPaint.h:14:
    In file included from ../../src/gpu/GrFragmentProcessor.h:11:
    In file included from ../../src/gpu/GrProcessor.h:15:
    In file included from ../../src/gpu/GrProcessorUnitTest.h:15:
    In file included from ../../include/android/../private/GrTextureProxy.h:12:
    ../../include/private/GrSurfaceProxy.h:149:13: error: '~GrIORefProxy' marked 'override' but does not override any member functions
        virtual ~GrIORefProxy() override {
                ^
    1 error generated.
    [12/1230] compile ../../src/effects/Sk2DPathEffect.cpp
    [13/1230] compile ../../src/ports/SkFontConfigInterface_direct_factory.cpp
    [14/1230] compile ../../src/ports/SkFontConfigInterface.cpp
    [15/1230] compile ../../src/ports/SkFontMgr_fontconfig_factory.cpp
    [16/1230] compile ../../src/gpu/GrPath.cpp
    FAILED: obj/src/gpu/gpu.GrPath.o 
    clang++ -MMD -MF obj/src/gpu/gpu.GrPath.o.d -DNDEBUG -DSK_SAMPLES_FOR_X -DSK_GAMMA_APPLY_TO_A8 -DSK_ENABLE_DISCRETE_GPU -DGR_TEST_UTILS=1 -DSKIA_IMPLEMENTATION=1 -I../../include/android -I../../include/c -I../../include/codec -I../../include/config -I../../include/core -I../../include/effects -I../../include/encode -I../../include/gpu -I../../include/atlastext -I../../include/pathops -I../../include/ports -I../../include/svg -I../../include/utils -I../../include/utils/mac -I../../include/private -I../../src/c -I../../src/codec -I../../src/core -I../../src/effects -I../../src/fonts -I../../src/image -I../../src/images -I../../src/lazy -I../../src/opts -I../../src/pathops -I../../src/pdf -I../../src/ports -I../../src/sfnt -I../../src/shaders -I../../src/shaders/gradients -I../../src/sksl -I../../src/utils -I../../src/utils/win -I../../src/xml -I../../third_party/gif -I../../experimental/svg/model -I../../src/gpu -fstrict-aliasing -fPIC -fvisibility=hidden -O3 -fdata-sections -ffunction-sections -g -Werror -Wall -Wextra -Winit-self -Wpointer-arith -Wsign-compare -Wvla -Wno-deprecated-declarations -Wno-maybe-uninitialized -Wno-extra-semi-stmt -Weverything -Wno-unknown-warning-option -Wno-anon-enum-enum-conversion -Wno-sizeof-array-div -Wno-psabi -Wno-suggest-destructor-override -Wno-suggest-override -Wno-uninitialized-const-reference -Wno-poison-system-directories -Wno-nonportable-include-path -Wno-nonportable-system-include-path -Wno-cast-align -Wno-cast-qual -Wno-conversion -Wno-disabled-macro-expansion -Wno-documentation -Wno-documentation-unknown-command -Wno-double-promotion -Wno-exit-time-destructors -Wno-float-equal -Wno-format-nonliteral -Wno-global-constructors -Wno-missing-prototypes -Wno-missing-variable-declarations -Wno-pedantic -Wno-reserved-id-macro -Wno-shadow -Wno-shift-sign-overflow -Wno-signed-enum-bitfield -Wno-switch-enum -Wno-undef -Wno-unreachable-code -Wno-unreachable-code-break -Wno-unreachable-code-return -Wno-unused-macros -Wno-unused-member-function -Wno-unused-template -Wno-zero-as-null-pointer-constant -Wno-bad-function-cast -Wno-covered-switch-default -Wno-deprecated -Wno-missing-noreturn -Wno-old-style-cast -Wno-padded -Wno-newline-eof -Wno-implicit-fallthrough -Wno-unused-parameter -I/home/despairblue/.esy/3_____________________________________________________________/i/esy_libjpeg_turbo-e4385a3b/include -std=c++11 -fvisibility-inlines-hidden -fno-exceptions -fno-rtti -Wnon-virtual-dtor -Wno-noexcept-type -Wno-abstract-vbase-init -Wno-weak-vtables -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-undefined-func-template -c ../../src/gpu/GrPath.cpp -o obj/src/gpu/gpu.GrPath.o
    In file included from ../../src/gpu/GrPath.cpp:8:
    In file included from ../../src/gpu/GrPath.h:12:
    In file included from ../../src/gpu/GrPathRendering.h:12:
    In file included from ../../src/gpu/GrPipeline.h:12:
    In file included from ../../src/gpu/GrFragmentProcessor.h:11:
    In file included from ../../src/gpu/GrProcessor.h:15:
    In file included from ../../src/gpu/GrProcessorUnitTest.h:15:
    In file included from ../../include/android/../private/GrTextureProxy.h:12:
    ../../include/private/GrSurfaceProxy.h:149:13: error: '~GrIORefProxy' marked 'override' but does not override any member functions
        virtual ~GrIORefProxy() override {
                ^
    1 error generated.
    [17/1230] compile ../../src/effects/SkAlphaThresholdFilter.cpp
    FAILED: obj/src/effects/effects.SkAlphaThresholdFilter.o 
    clang++ -MMD -MF obj/src/effects/effects.SkAlphaThresholdFilter.o.d -DNDEBUG -DSK_SAMPLES_FOR_X -DSK_GAMMA_APPLY_TO_A8 -DSK_ENABLE_DISCRETE_GPU -DGR_TEST_UTILS=1 -DSKIA_IMPLEMENTATION=1 -I../../include/android -I../../include/c -I../../include/codec -I../../include/config -I../../include/core -I../../include/effects -I../../include/encode -I../../include/gpu -I../../include/atlastext -I../../include/pathops -I../../include/ports -I../../include/svg -I../../include/utils -I../../include/utils/mac -I../../include/private -I../../src/c -I../../src/codec -I../../src/core -I../../src/effects -I../../src/fonts -I../../src/image -I../../src/images -I../../src/lazy -I../../src/opts -I../../src/pathops -I../../src/pdf -I../../src/ports -I../../src/sfnt -I../../src/shaders -I../../src/shaders/gradients -I../../src/sksl -I../../src/utils -I../../src/utils/win -I../../src/xml -I../../third_party/gif -I../../experimental/svg/model -I../../src/gpu -fstrict-aliasing -fPIC -fvisibility=hidden -O3 -fdata-sections -ffunction-sections -g -Werror -Wall -Wextra -Winit-self -Wpointer-arith -Wsign-compare -Wvla -Wno-deprecated-declarations -Wno-maybe-uninitialized -Wno-extra-semi-stmt -Weverything -Wno-unknown-warning-option -Wno-anon-enum-enum-conversion -Wno-sizeof-array-div -Wno-psabi -Wno-suggest-destructor-override -Wno-suggest-override -Wno-uninitialized-const-reference -Wno-poison-system-directories -Wno-nonportable-include-path -Wno-nonportable-system-include-path -Wno-cast-align -Wno-cast-qual -Wno-conversion -Wno-disabled-macro-expansion -Wno-documentation -Wno-documentation-unknown-command -Wno-double-promotion -Wno-exit-time-destructors -Wno-float-equal -Wno-format-nonliteral -Wno-global-constructors -Wno-missing-prototypes -Wno-missing-variable-declarations -Wno-pedantic -Wno-reserved-id-macro -Wno-shadow -Wno-shift-sign-overflow -Wno-signed-enum-bitfield -Wno-switch-enum -Wno-undef -Wno-unreachable-code -Wno-unreachable-code-break -Wno-unreachable-code-return -Wno-unused-macros -Wno-unused-member-function -Wno-unused-template -Wno-zero-as-null-pointer-constant -Wno-bad-function-cast -Wno-covered-switch-default -Wno-deprecated -Wno-missing-noreturn -Wno-old-style-cast -Wno-padded -Wno-newline-eof -Wno-implicit-fallthrough -Wno-unused-parameter -I/home/despairblue/.esy/3_____________________________________________________________/i/esy_libjpeg_turbo-e4385a3b/include -std=c++11 -fvisibility-inlines-hidden -fno-exceptions -fno-rtti -Wnon-virtual-dtor -Wno-noexcept-type -Wno-abstract-vbase-init -Wno-weak-vtables -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-undefined-func-template -c ../../src/effects/SkAlphaThresholdFilter.cpp -o obj/src/effects/effects.SkAlphaThresholdFilter.o
    In file included from ../../src/effects/SkAlphaThresholdFilter.cpp:19:
    In file included from ../../src/gpu/GrColorSpaceXform.h:12:
    In file included from ../../src/gpu/GrFragmentProcessor.h:11:
    In file included from ../../src/gpu/GrProcessor.h:15:
    In file included from ../../src/gpu/GrProcessorUnitTest.h:15:
    In file included from ../../include/android/../private/GrTextureProxy.h:12:
    ../../include/private/GrSurfaceProxy.h:149:13: error: '~GrIORefProxy' marked 'override' but does not override any member functions
        virtual ~GrIORefProxy() override {
                ^
    1 error generated.
    [18/1230] compile ../../src/ports/SkFontMgr_fontconfig.cpp
    [19/1230] compile ../../src/effects/SkArithmeticImageFilter.cpp
    FAILED: obj/src/effects/effects.SkArithmeticImageFilter.o 
    clang++ -MMD -MF obj/src/effects/effects.SkArithmeticImageFilter.o.d -DNDEBUG -DSK_SAMPLES_FOR_X -DSK_GAMMA_APPLY_TO_A8 -DSK_ENABLE_DISCRETE_GPU -DGR_TEST_UTILS=1 -DSKIA_IMPLEMENTATION=1 -I../../include/android -I../../include/c -I../../include/codec -I../../include/config -I../../include/core -I../../include/effects -I../../include/encode -I../../include/gpu -I../../include/atlastext -I../../include/pathops -I../../include/ports -I../../include/svg -I../../include/utils -I../../include/utils/mac -I../../include/private -I../../src/c -I../../src/codec -I../../src/core -I../../src/effects -I../../src/fonts -I../../src/image -I../../src/images -I../../src/lazy -I../../src/opts -I../../src/pathops -I../../src/pdf -I../../src/ports -I../../src/sfnt -I../../src/shaders -I../../src/shaders/gradients -I../../src/sksl -I../../src/utils -I../../src/utils/win -I../../src/xml -I../../third_party/gif -I../../experimental/svg/model -I../../src/gpu -fstrict-aliasing -fPIC -fvisibility=hidden -O3 -fdata-sections -ffunction-sections -g -Werror -Wall -Wextra -Winit-self -Wpointer-arith -Wsign-compare -Wvla -Wno-deprecated-declarations -Wno-maybe-uninitialized -Wno-extra-semi-stmt -Weverything -Wno-unknown-warning-option -Wno-anon-enum-enum-conversion -Wno-sizeof-array-div -Wno-psabi -Wno-suggest-destructor-override -Wno-suggest-override -Wno-uninitialized-const-reference -Wno-poison-system-directories -Wno-nonportable-include-path -Wno-nonportable-system-include-path -Wno-cast-align -Wno-cast-qual -Wno-conversion -Wno-disabled-macro-expansion -Wno-documentation -Wno-documentation-unknown-command -Wno-double-promotion -Wno-exit-time-destructors -Wno-float-equal -Wno-format-nonliteral -Wno-global-constructors -Wno-missing-prototypes -Wno-missing-variable-declarations -Wno-pedantic -Wno-reserved-id-macro -Wno-shadow -Wno-shift-sign-overflow -Wno-signed-enum-bitfield -Wno-switch-enum -Wno-undef -Wno-unreachable-code -Wno-unreachable-code-break -Wno-unreachable-code-return -Wno-unused-macros -Wno-unused-member-function -Wno-unused-template -Wno-zero-as-null-pointer-constant -Wno-bad-function-cast -Wno-covered-switch-default -Wno-deprecated -Wno-missing-noreturn -Wno-old-style-cast -Wno-padded -Wno-newline-eof -Wno-implicit-fallthrough -Wno-unused-parameter -I/home/despairblue/.esy/3_____________________________________________________________/i/esy_libjpeg_turbo-e4385a3b/include -std=c++11 -fvisibility-inlines-hidden -fno-exceptions -fno-rtti -Wnon-virtual-dtor -Wno-noexcept-type -Wno-abstract-vbase-init -Wno-weak-vtables -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-undefined-func-template -c ../../src/effects/SkArithmeticImageFilter.cpp -o obj/src/effects/effects.SkArithmeticImageFilter.o
    In file included from ../../src/effects/SkArithmeticImageFilter.cpp:19:
    In file included from ../../src/gpu/GrClip.h:11:
    In file included from ../../src/gpu/GrAppliedClip.h:11:
    In file included from ../../src/gpu/GrFragmentProcessor.h:11:
    In file included from ../../src/gpu/GrProcessor.h:15:
    In file included from ../../src/gpu/GrProcessorUnitTest.h:15:
    In file included from ../../include/android/../private/GrTextureProxy.h:12:
    ../../include/private/GrSurfaceProxy.h:149:13: error: '~GrIORefProxy' marked 'override' but does not override any member functions
        virtual ~GrIORefProxy() override {
                ^
    1 error generated.
    [20/1230] compile ../../src/opts/SkOpts_avx.cpp
    ninja: build stopped: subcommand failed.
    error: command failed: 'bash' './esy/build.sh' 'linux' '/home/despairblue/.esy/3_____________________________________________________________/i/esy_libjpeg_turbo-e4385a3b' (exited with 255)
    esy-build-package: exiting with errors above...
    
  building esy-skia@github:revery-ui/esy-skia#a1c5de7b1a1bc0a6eadabdefc7cee338d29748e8
esy: exiting due to errors above

I cloned https://github.com/revery-ui/libjpeg-turbo/ now and try to find the file GrTextureProxy.h, but can't find it. I'm probably looking in the wrong place 🤔

@despairblue
Copy link
Contributor Author

Is it possible this error comes from code generation and I would need to understand skia or libjpeg to figure out where the error comes from in the source?

@despairblue
Copy link
Contributor Author

Oh, the error is actually different, before it was complaining about it overriding the other thing without being marked as such, now it complains about overriding the other thing but not overriding member functions...

@despairblue
Copy link
Contributor Author

I didn't see a way to fix this now without learning C++ and rewriting parts of skia 😄

So I forked esy-skia removed -Werror from the cflags.

@despairblue
Copy link
Contributor Author

Actually disregard everything I said so far (except the binaries not working). I wasn't on the current master, my local oni repo was probably out of date for a couple of months...

With current master everything works actually.

So I guess we just need to recreate the binaries in CI with a newer glibc version installed?

@despairblue
Copy link
Contributor Author

I'll try the docker build instructions to see if they produce broken binaries on my arch system. If so, I'll try to use a more recent version of centos and see if that fixes it.

@Et7f3
Copy link
Contributor

Et7f3 commented Sep 26, 2021

Oh, the error is actually different, before it was complaining about it overriding the other thing without being marked as such, now it complains about overriding the other thing but not overriding member functions...

I have done a monkey patch but not compiled myself mb. I expected the change to be small and pass directly. But this seem like a clang bug because now he want to remove it. Clang13 is around the corner so it might be fixed.

For another CI build maybe ask @zbaylin why do you need the docker build building directly on your arch doesn't work ?

@despairblue
Copy link
Contributor Author

For another CI build maybe ask @zbaylin why do you need the docker build building directly on your arch doesn't work ?

It does, I want to check though if building it on centos and running it on Arch works.
If that would not work then retriggering CI to create a new nightly won't fix it, right?

My goal is to be able to run the nightlies on Arch again.

@despairblue
Copy link
Contributor Author

Yeah, using the docker build process still creates a binary having this error:

/tmp/.mount_OnivimaqTmiB/usr/bin/Oni2_editor: symbol lookup error: /usr/lib/libgio-2.0.so.0: undefined symbol: g_module_open_full

I'll check if upgrading to centos 8 helps.

@despairblue
Copy link
Contributor Author

Ok, no idea how to do that, install centos-release-scl is not available or not necessary anymore unter centos 8 and yum-config-manager does not exist anymore.

Would it be easier to take a newer ubuntu and compile on that one? What was the reason for choosing centos?

@t-wiser
Copy link

t-wiser commented Sep 27, 2021

What was the reason for choosing centos?

Believe it or not, there are still quite a few people stuck using CentOS 7. Some of us like to to be able to use OniVim on such systems.

I believe that the thought is that picking the oldest supported RedHat release provides a good base to cover pretty much any other distro.

@despairblue
Copy link
Contributor Author

What was the reason for choosing centos?

Believe it or not, there are still quite a few people stuck using CentOS 7. Some of us like to to be able to use OniVim on such systems.

I believe that the thought is that picking the oldest supported RedHat release provides a good base to cover pretty much any other distro.

I guess we can have our cake and eat it too, just need to run 2 Linux pipelines, right?

@despairblue
Copy link
Contributor Author

Currently when trying to compile oni in a docker container with ubuntu 20.04 I get a lot of those

relocation R_X86_64_32S against symbol `caml_data_segments' can not be used when making a PIE object; recompile with -fPIE

Anybody knows what that means?

@despairblue
Copy link
Contributor Author

Nevermind that, I was sharing the build cache of my system with the docker image and that caused the issue.

@Et7f3
Copy link
Contributor

Et7f3 commented Sep 27, 2021

out of subject:

But this seem like a clang bug because now he want to remove it. Clang13 is around the corner so it might be fixed.

I compiled with apple clang 12 no warning and with clang quite recent (compiled from main a month ago) I can reproduce the warning. I have also removed flags: -Wno-suggest-destructor-override -Wno-suggest-override and added -Weverything

So I don't know how arch linux package clang 🤷

@despairblue
Copy link
Contributor Author

out of subject:

But this seem like a clang bug because now he want to remove it. Clang13 is around the corner so it might be fixed.

I compiled with apple clang 12 no warning and with clang quite recent (compiled from main a month ago) I can reproduce the warning. I have also removed flags: -Wno-suggest-destructor-override -Wno-suggest-override and added -Weverything

So I don't know how arch linux package clang 🤷

I'll check that out today.

@despairblue
Copy link
Contributor Author

@Et7f3 yeah so basically what I said there is correct:

#3824 (comment)

Everything I said about the errors related to esy-skia and clang was wrong. I just didn't git pull before building.

Sorry about the confusion.


What remains though is that the binaries generated on CentOS do not work on Arch Linux at the moment.

@Et7f3
Copy link
Contributor

Et7f3 commented Sep 28, 2021

Can you grep g_module_open_full in .esy to detect which dependencies require this symbol (and need to be updated)

@despairblue
Copy link
Contributor Author

despairblue commented Sep 28, 2021

I'll let you know when it finds something, has been running for 20 minutes now 😄

@despairblue
Copy link
Contributor Author

I tried ag g_module_open_full and it could not find anything. grep g_module_open_full is still running.

@Et7f3
Copy link
Contributor

Et7f3 commented Sep 28, 2021

If you don't find something it means a dependencies on host library so you might also look in /lib* /usr/lib* /usr/local/lib* ...

@Et7f3
Copy link
Contributor

Et7f3 commented Sep 28, 2021

Ah I have other idea in man ld.so I see LD_DEBUG try to export as libs and run your binary. 🤦🏻libgio require this symbol and it is absent of your machine hence the error. You can cancel.

@Et7f3
Copy link
Contributor

Et7f3 commented Sep 28, 2021

@despairblue
Copy link
Contributor Author

forum.manjaro.org/t/vscodium-appimage-wont-launch-symbol-lookup-error-libgio/84462/3 Seem to be glibc issue grimacing

Yeah, that was my first thought since this happens from time to time with arch.

I supposed glib2 has been upgraded and is not not compatible anymore.

Having 2 binaries, one for old linux systems and one for newer systems, would solve this, right?

@despairblue
Copy link
Contributor Author

Ah I have other idea in man ld.so I see LD_DEBUG try to export as libs and run your binary. 🤦🏻libgio require this symbol and it is absent of your machine hence the error. You can cancel.

Should I still do that? If yes, what exactly should I do? I feel a bit lost with the instructions 😬

@DJNighswander
Copy link

output.txt

I'm currently having the same error, also on arch. Here's the output with LD_DEBUG=libs set

@Et7f3
Copy link
Contributor

Et7f3 commented Sep 29, 2021

Sorry if it was unclear (it was late in my timezone).

so you tried to build with docker centos7

Yeah, using the docker build process still creates a binary having this error

in dockerfile I see hardcoded version

RUN rpm -i https://download-ib01.fedoraproject.org/pub/epel/7/x86_64/Packages/c/colm-0.13.0.4-2.el7.x86_64.rpm
but no version on lib so they should be most up to date version precompiled.

what I was trying to test with LD_DEBUG allow to identify wich lib require this symbol. If we identify this lib we can try to vendor a more up to date version. Here is a tuto http://www.bnikolic.co.uk/blog/linux-ld-debug.html

if we don't manage to vendor it then craft a new dockerfile can help.

thanks @DJNighswander

@Et7f3
Copy link
Contributor

Et7f3 commented Sep 29, 2021

@DJNighswander I don't see which lib import g_module_open_full can you try other option of LD_DEBUG ?

@despairblue
Copy link
Contributor Author

@Et7f3 does this help?

[I]  ✘  ~  LD_DEBUG=all Downloads/Onivim2-x86_64-master.AppImage . -f &| grep g_module_open_full
   1993666:	symbol=g_module_open_full;  lookup in file=/tmp/.mount_Onivim47iS2N/usr/bin/Oni2_editor [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/usr/lib/libstdc++.so.6 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/usr/lib/libX11.so.6 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/tmp/.mount_Onivim47iS2N/usr/lib/libxkbfile.so.1 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/tmp/.mount_Onivim47iS2N/usr/lib/libacl.so.1 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/usr/lib/libICE.so.6 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/usr/lib/libSM.so.6 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/tmp/.mount_Onivim47iS2N/usr/lib/libncurses.so.5 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/tmp/.mount_Onivim47iS2N/usr/lib/libtinfo.so.5 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/tmp/.mount_Onivim47iS2N/usr/lib/libXt.so.6 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/usr/lib/libharfbuzz.so.0 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/tmp/.mount_Onivim47iS2N/usr/lib/libgtk-3.so.0 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/tmp/.mount_Onivim47iS2N/usr/lib/libgdk-3.so.0 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/usr/lib/libpangocairo-1.0.so.0 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/usr/lib/libpango-1.0.so.0 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/tmp/.mount_Onivim47iS2N/usr/lib/libatk-1.0.so.0 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/tmp/.mount_Onivim47iS2N/usr/lib/libcairo-gobject.so.2 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/tmp/.mount_Onivim47iS2N/usr/lib/libcairo.so.2 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/tmp/.mount_Onivim47iS2N/usr/lib/libgdk_pixbuf-2.0.so.0 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/usr/lib/libgio-2.0.so.0 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/usr/lib/libgobject-2.0.so.0 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/usr/lib/libglib-2.0.so.0 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/usr/lib/libfreetype.so.6 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/usr/lib/libfontconfig.so.1 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/usr/lib/libz.so.1 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/tmp/.mount_Onivim47iS2N/usr/lib/libbz2.so.1 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/tmp/.mount_Onivim47iS2N/usr/lib/libjpeg.so.62 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/usr/lib/libpthread.so.0 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/usr/lib/libGL.so.1 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/tmp/.mount_Onivim47iS2N/usr/lib/libGLU.so.1 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/tmp/.mount_Onivim47iS2N/usr/lib/libXxf86vm.so.1 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/tmp/.mount_Onivim47iS2N/usr/lib/libXrandr.so.2 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/tmp/.mount_Onivim47iS2N/usr/lib/libXinerama.so.1 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/tmp/.mount_Onivim47iS2N/usr/lib/libXcursor.so.1 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/tmp/.mount_Onivim47iS2N/usr/lib/libXi.so.6 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/usr/lib/libm.so.6 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/usr/lib/libdl.so.2 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/usr/lib/libgcc_s.so.1 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/usr/lib/libc.so.6 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/lib64/ld-linux-x86-64.so.2 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/usr/lib/libxcb.so.1 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/tmp/.mount_Onivim47iS2N/usr/lib/libattr.so.1 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/usr/lib/libuuid.so.1 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/tmp/.mount_Onivim47iS2N/usr/lib/libgraphite2.so.3 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/tmp/.mount_Onivim47iS2N/usr/lib/libgmodule-2.0.so.0 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/tmp/.mount_Onivim47iS2N/usr/lib/libXfixes.so.3 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/tmp/.mount_Onivim47iS2N/usr/lib/libatk-bridge-2.0.so.0 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/tmp/.mount_Onivim47iS2N/usr/lib/libwayland-client.so.0 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/tmp/.mount_Onivim47iS2N/usr/lib/libepoxy.so.0 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/usr/lib/libpangoft2-1.0.so.0 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/tmp/.mount_Onivim47iS2N/usr/lib/libXcomposite.so.1 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/tmp/.mount_Onivim47iS2N/usr/lib/libXdamage.so.1 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/tmp/.mount_Onivim47iS2N/usr/lib/libxkbcommon.so.0 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/tmp/.mount_Onivim47iS2N/usr/lib/libwayland-cursor.so.0 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/tmp/.mount_Onivim47iS2N/usr/lib/libwayland-egl.so.1 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/tmp/.mount_Onivim47iS2N/usr/lib/libXext.so.6 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/usr/lib/librt.so.1 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/usr/lib/libfribidi.so.0 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/usr/lib/libthai.so.0 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/tmp/.mount_Onivim47iS2N/usr/lib/libpixman-1.so.0 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/usr/lib/libEGL.so.1 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/tmp/.mount_Onivim47iS2N/usr/lib/libpng15.so.15 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/tmp/.mount_Onivim47iS2N/usr/lib/libxcb-shm.so.0 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/tmp/.mount_Onivim47iS2N/usr/lib/libxcb-render.so.0 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/tmp/.mount_Onivim47iS2N/usr/lib/libXrender.so.1 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/tmp/.mount_Onivim47iS2N/usr/lib/libmount.so.1 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/usr/lib/libresolv.so.2 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/usr/lib/libffi.so.7 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/tmp/.mount_Onivim47iS2N/usr/lib/libpcre.so.1 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/usr/lib/libbz2.so.1.0 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/usr/lib/libpng16.so.16 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/usr/lib/libbrotlidec.so.1 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/usr/lib/libexpat.so.1 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/usr/lib/libGLdispatch.so.0 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/usr/lib/libGLX.so.0 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/tmp/.mount_Onivim47iS2N/usr/lib/libXau.so.6 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/usr/lib/libXdmcp.so.6 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/tmp/.mount_Onivim47iS2N/usr/lib/libatspi.so.0 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/tmp/.mount_Onivim47iS2N/usr/lib/libdbus-1.so.3 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/tmp/.mount_Onivim47iS2N/usr/lib/libffi.so.6 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/usr/lib/libdatrie.so.1 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/tmp/.mount_Onivim47iS2N/usr/lib/libblkid.so.1 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/tmp/.mount_Onivim47iS2N/usr/lib/libselinux.so.1 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/usr/lib/libbrotlicommon.so.1 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/tmp/.mount_Onivim47iS2N/usr/lib/libsystemd.so.0 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/tmp/.mount_Onivim47iS2N/usr/lib/libcap.so.2 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/tmp/.mount_Onivim47iS2N/usr/lib/liblzma.so.5 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/tmp/.mount_Onivim47iS2N/usr/lib/liblz4.so.1 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/tmp/.mount_Onivim47iS2N/usr/lib/libgcrypt.so.11 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/usr/lib/libgpg-error.so.0 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/tmp/.mount_Onivim47iS2N/usr/lib/libdw.so.1 [0]
   1993666:	symbol=g_module_open_full;  lookup in file=/tmp/.mount_Onivim47iS2N/usr/lib/libelf.so.1 [0]
   1993666:	/usr/lib/libgio-2.0.so.0: error: symbol lookup error: undefined symbol: g_module_open_full (fatal)
/tmp/.mount_Onivim47iS2N/usr/bin/Oni2_editor: symbol lookup error: /usr/lib/libgio-2.0.so.0: undefined symbol: g_module_open_full

@despairblue
Copy link
Contributor Author

I don't think it actually does help, because it points to /usr/lib/libgio-2.0.so.0 just like the initial error 🤔

@Et7f3
Copy link
Contributor

Et7f3 commented Sep 29, 2021

Can you send the full log because here we only see where this symbol is searched not which originate this research

@despairblue
Copy link
Contributor Author

@Et7f3

debug.log

There you go ❤️

@Et7f3
Copy link
Contributor

Et7f3 commented Sep 29, 2021

Ok I read the logs:
Just to be sure I read the log correctly I taken two small example

   2007826:     symbol=stderr;  lookup in file=Downloads/Onivim2-x86_64-master.AppImage [0]
   2007826:     binding file /usr/lib/libc.so.6 [0] to Downloads/Onivim2-x86_64-master.AppImage [0]: normal symbol `stderr' [GLIBC_2.2.5]

I read ld is searching stderr that is undefined in libc and found inside Onivim2-x86_64-master.AppImage

  2007826:     symbol=strlen;  lookup in file=Downloads/Onivim2-x86_64-master.AppImage [0]
   2007826:     symbol=strlen;  lookup in file=/usr/lib/libdl.so.2 [0]
   2007826:     symbol=strlen;  lookup in file=/usr/lib/libpthread.so.0 [0]
   2007826:     symbol=strlen;  lookup in file=/usr/lib/libz.so.1 [0]
   2007826:     symbol=strlen;  lookup in file=/usr/lib/libc.so.6 [0]
   2007826:     binding file /usr/lib/libz.so.1 [0] to /usr/lib/libc.so.6 [0]: normal symbol `strlen' [GLIBC_2.2.5]

And here we seek strlen for libz and we have found it in libc.

when we see the undefined symbol we see this line before So for me it is a internal relocation (wtf I though it did at link time for inter so symbol)

   2007836:     relocation processing: /usr/lib/libgio-2.0.so.0

From here I see these solutions:

  • package and distribute a esy-glib (glib2 not glibc) this mean also package meson (last time I tried and abandoned) https://www.fr.linuxfromscratch.org/view/blfs-svn/general/glib2.html
  • put glib2 as submodule and build it in the dockerfile (I don't know if classical CentOs will be able to run it or if AppImage will take a copy of this lib)
  • 2 DockerFile one for recent distro and one for CentOs

@despairblue
Copy link
Contributor Author

Given your solutions, I think I can only help with the last one. I don't think I understand enough about native development to help with the other two. 😞

@despairblue
Copy link
Contributor Author

I'm currently trying to create a docker build based on ubuntu 20.04, but I hit some compilation errors:

Build Log
info building revery@github:revery-ui/revery#dd10c87@d41d8cd9
error: build failed with exit code: 1
  build log:
    # esy-build-package: building: revery@github:revery-ui/revery#dd10c87
    # esy-build-package: pwd: /esy/store/source/i/revery__c08c82f1
    # esy-build-package: running: 'dune' 'build' '-p' 'reason-harfbuzz,reason-skia,reason-sdl2,Revery'
        discover packages/reason-sdl2/src/c_flags.sexp,packages/reason-sdl2/src/c_library_flags.sexp,packages/reason-sdl2/src/cxx_flags.sexp,packages/reason-sdl2/src/flags.sexp
    SDL2 Library Folder Path: /esy/store/3_________________________________________________________________________/i/esy_sdl2-2.0.14000-d781248c/lib
             gcc packages/reason-skia/src/wrapped/lib/raw_bindings.o
    gcc: warning: /esy/store/3_________________________________________________________________________/i/esy_sdl2-2.0.14000-d781248c/lib/libSDL2.a: linker input file unused because linking not done
             gcc packages/reason-skia/src/wrapped/c/c_stubs.o
    c_stubs.c: In function 'reason_skia_make_sdl2_gl_interface':
    c_stubs.c:30:53: warning: passing argument 2 of 'gr_glinterface_assemble_gl_interface' from incompatible pointer type [-Wincompatible-pointer-types]
       30 |             gr_glinterface_assemble_gl_interface(0, reason_skia_sdl2_get);
          |                                                     ^~~~~~~~~~~~~~~~~~~~
          |                                                     |
          |                                                     void * (*)(void *, const char *)
    In file included from c_stubs.h:1,
                     from c_stubs.c:6:
    /esy/store/3_________________________________________________________________________/i/esy_skia-3d7edf69/include/c/gr_context.h:40:34: note: expected 'gr_gl_get_proc' {aka 'void (* (*)(void *, const char *))(void)'} but argument is of type 'void * (*)(void *, const char *)'
       40 | SK_C_API const gr_glinterface_t* gr_glinterface_assemble_gl_interface(void* ctx, gr_gl_get_proc get);
          |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    c_stubs.c:30:13: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
       30 |             gr_glinterface_assemble_gl_interface(0, reason_skia_sdl2_get);
          |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    c_stubs.c: In function 'reason_skia_make_sdl2_gles_interface':
    c_stubs.c:36:55: warning: passing argument 2 of 'gr_glinterface_assemble_gles_interface' from incompatible pointer type [-Wincompatible-pointer-types]
       36 |             gr_glinterface_assemble_gles_interface(0, reason_skia_sdl2_get);
          |                                                       ^~~~~~~~~~~~~~~~~~~~
          |                                                       |
          |                                                       void * (*)(void *, const char *)
    In file included from c_stubs.h:1,
                     from c_stubs.c:6:
    /esy/store/3_________________________________________________________________________/i/esy_skia-3d7edf69/include/c/gr_context.h:41:34: note: expected 'gr_gl_get_proc' {aka 'void (* (*)(void *, const char *))(void)'} but argument is of type 'void * (*)(void *, const char *)'
       41 | SK_C_API const gr_glinterface_t* gr_glinterface_assemble_gles_interface(void* ctx, gr_gl_get_proc get);
          |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    c_stubs.c:36:13: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
       36 |             gr_glinterface_assemble_gles_interface(0, reason_skia_sdl2_get);
          |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    gcc: warning: /esy/store/3_________________________________________________________________________/i/esy_sdl2-2.0.14000-d781248c/lib/libSDL2.a: linker input file unused because linking not done
          ocamlc packages/reason-skia/src/wrapped/bindings/.SkiaWrappedBindings.objs/byte/skiaWrappedBindings__Skia_generated_type_stubs.{cmi,cmo,cmt}
    File "packages/reason-skia/src/wrapped/bindings/skia_generated_type_stubs.ml", line 91, characters 4-63:
    91 |   | Struct ({ tag = "sk_fontmetrics_t"} as s'), "fMaxCharWidth" ->
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    Warning 11 [redundant-case]: this match case is unused.
    File "packages/reason-skia/src/wrapped/bindings/skia_generated_type_stubs.ml", line 94, characters 4-63:
    94 |   | Struct ({ tag = "sk_fontmetrics_t"} as s'), "fAvgCharWidth" ->
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    Warning 11 [redundant-case]: this match case is unused.
    File "packages/reason-skia/src/wrapped/bindings/skia_generated_type_stubs.ml", line 155, characters 4-78:
    155 |   | Ctypes_static.Primitive Cstubs_internals.Int64_t, "RGB_V_SK_PIXELGEOMETRY" ->
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    Warning 11 [redundant-case]: this match case is unused.
        ocamlopt packages/reason-skia/src/wrapped/bindings/.SkiaWrappedBindings.objs/native/skiaWrappedBindings__Skia_generated_type_stubs.{cmx,o}
    File "packages/reason-skia/src/wrapped/bindings/skia_generated_type_stubs.ml", line 91, characters 4-63:
    91 |   | Struct ({ tag = "sk_fontmetrics_t"} as s'), "fMaxCharWidth" ->
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    Warning 11 [redundant-case]: this match case is unused.
    File "packages/reason-skia/src/wrapped/bindings/skia_generated_type_stubs.ml", line 94, characters 4-63:
    94 |   | Struct ({ tag = "sk_fontmetrics_t"} as s'), "fAvgCharWidth" ->
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    Warning 11 [redundant-case]: this match case is unused.
    File "packages/reason-skia/src/wrapped/bindings/skia_generated_type_stubs.ml", line 155, characters 4-78:
    155 |   | Ctypes_static.Primitive Cstubs_internals.Int64_t, "RGB_V_SK_PIXELGEOMETRY" ->
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    Warning 11 [redundant-case]: this match case is unused.
        ocamlopt packages/reason-sdl2/src/sdl2.cmxs (exit 2)
    (cd /esy/store/3/b/revery-06da1968/default && /esy/store/3_________________________________________________________________________/i/ocaml-4.12.0-bfdfbfff/bin/ocamlopt.opt -w -40 -g -shared -linkall -I packages/reason-sdl2/src -o packages/reason-sdl2/src/sdl2.cmxs packages/reason-sdl2/src/sdl2.cmxa)
    /usr/bin/ld: cannot find -lXrandr
    /usr/bin/ld: cannot find -lXinerama
    /usr/bin/ld: cannot find -lXcursor
    /usr/bin/ld: cannot find -lXi
    collect2: error: ld returned 1 exit status
    File "caml_startup", line 1:
    Error: Error during linking (exit code 1)
        ocamlopt packages/reason-skia/src/wrapped/stubgen/stubgen.exe (exit 2)
    (cd /esy/store/3/b/revery-06da1968/default && /esy/store/3_________________________________________________________________________/i/ocaml-4.12.0-bfdfbfff/bin/ocamlopt.opt -w -40 -g -o packages/reason-skia/src/wrapped/stubgen/stubgen.exe /esy/store/3_________________________________________________________________________/i/ocaml-4.12.0-bfdfbfff/lib/ocaml/unix.cmxa -I /esy/store/3_________________________________________________________________________/i/ocaml-4.12.0-bfdfbfff/lib/ocaml /esy/store/3_________________________________________________________________________/i/ocaml-4.12.0-bfdfbfff/lib/ocaml/bigarray.cmxa -I /esy/store/3_________________________________________________________________________/i/ocaml-4.12.0-bfdfbfff/lib/ocaml /esy/store/3_________________________________________________________________________/i/opam__s__integers-opam__c__0.4.0-1ba949d7/lib/integers/integers.cmxa -I /esy/store/3_________________________________________________________________________/i/opam__s__integers-opam__c__0.4.0-1ba949d7/lib/integers /esy/store/3_________________________________________________________________________/i/opam__s__ctypes-opam__c__0.15.1-589a19e2/lib/ctypes/ctypes.cmxa -I /esy/store/3_________________________________________________________________________/i/opam__s__ctypes-opam__c__0.15.1-589a19e2/lib/ctypes packages/reason-skia/src/wrapped/types/SkiaWrappedTypes.cmxa packages/reason-sdl2/src/sdl2.cmxa -I packages/reason-sdl2/src packages/reason-skia/src/wrapped/c/skia_wrapped_c.cmxa -I packages/reason-skia/src/wrapped/c /esy/store/3_________________________________________________________________________/i/ocaml-4.12.0-bfdfbfff/lib/ocaml/str.cmxa -I /esy/store/3_________________________________________________________________________/i/ocaml-4.12.0-bfdfbfff/lib/ocaml /esy/store/3_________________________________________________________________________/i/opam__s__ctypes-opam__c__0.15.1-589a19e2/lib/ctypes/cstubs.cmxa -I /esy/store/3_________________________________________________________________________/i/opam__s__ctypes-opam__c__0.15.1-589a19e2/lib/ctypes packages/reason-skia/src/wrapped/bindings/SkiaWrappedBindings.cmxa packages/reason-skia/src/wrapped/stubgen/.stubgen.eobjs/native/dune__exe__Stubgen.cmx)
    /usr/bin/ld: cannot find -lXrandr
    /usr/bin/ld: cannot find -lXinerama
    /usr/bin/ld: cannot find -lXcursor
    /usr/bin/ld: cannot find -lXi
    collect2: error: ld returned 1 exit status
    File "caml_startup", line 1:
    Error: Error during linking (exit code 1)
    error: command failed: 'dune' 'build' '-p' 'reason-harfbuzz,reason-skia,reason-sdl2,Revery' (exited with 1)
    esy-build-package: exiting with errors above...
    
  building revery@github:revery-ui/revery#dd10c87
esy: exiting due to errors above

@Et7f3
Copy link
Contributor

Et7f3 commented Oct 1, 2021

You miss this dependencies
/usr/bin/ld: cannot find -lXrandr
/usr/bin/ld: cannot find -lXinerama
/usr/bin/ld: cannot find -lXcursor
/usr/bin/ld: cannot find -lXi
In revery wiki we list of pkg to install

https://github.com/revery-ui/revery/wiki/Building-&-Installing#for-ubuntu-you-may-need-these-additional-packages

@marcinkoziej
Copy link
Contributor

Hi.
I use a docker image to build onivim2 using an ubuntu:focal image https://github.com/marcinkoziej/onivim2-builder
I think You could try to convert the Dockerfile to use archlinux image instead. Find the package name counterparts and replace "apt" with arch package manager, and check if you need the patch - i used it to alter the things packed into the AppImage.

@web3Gurung
Copy link

@despairblue Hey!
I found a way to make Onivim2 work on an Arch based system. It's not a permanent fix but rather a shortcut way. I'm not a dev, so idk much about the way I made Onivim2 work on an Arch based system :)

What the problem could be here: it seems that glib version >= 2.70 gives an error and doesn't work on Arch based systems, so this is what i did to make it work by using the glib version 2.68.4 (the version with which Onivim2 still worked).

Solution: Patch glib2 version 2.68.4 into Onivim2 AppImage and the method is what I followed -

  1. Check out this patching technique: Arch Forum
  2. Downloaded the AppImageTool from its Github release page
  3. In the last step where it says to repack the squashfs-root along with the AppImage (in the forum), I used this command ARCH=x86_64 ./appimagetool-x86_64.AppImage squashfs-root Onivim2-x86_64.AppImage where the appimagetool was downloaded from github in the same directory.
  4. Tadaah! Onivim2 now runs on your Arch based linux OS! Now, you either run it by ./Onivim2-x86_64.AppImage or double click on it by using a GUI based file manager.

@despairblue
Copy link
Contributor Author

@despairblue Hey! I found a way to make Onivim2 work on an Arch based system. It's not a permanent fix but rather a shortcut way. I'm not a dev, so idk much about the way I made Onivim2 work on an Arch based system :)

What the problem could be here: it seems that glib version >= 2.70 gives an error and doesn't work on Arch based systems, so this is what i did to make it work by using the glib version 2.68.4 (the version with which Onivim2 still worked).

Solution: Patch glib2 version 2.68.4 into Onivim2 AppImage and the method is what I followed -

  1. Check out this patching technique: Arch Forum
  2. Downloaded the AppImageTool from its Github release page
  3. In the last step where it says to repack the squashfs-root along with the AppImage (in the forum), I used this command ARCH=x86_64 ./appimagetool-x86_64.AppImage squashfs-root Onivim2-x86_64.AppImage where the appimagetool was downloaded from github in the same directory.
  4. Tadaah! Onivim2 now runs on your Arch based linux OS! Now, you either run it by ./Onivim2-x86_64.AppImage or double click on it by using a GUI based file manager.

That works too. I found the solution in the Arch forum, but didn't try it. Since I worked a bit on Oni I know how to compile it, so recompiling it on my system was easier for me 🤷🏾

I'd like to find the time to create a docker based build on a newer ubuntu version that produces a binary that also works on arch.

@VarLad
Copy link

VarLad commented Oct 18, 2021

Is OniVim2 still going on?
I feel like the development has slowed down a lot
How close is this to the 0.6 release?

@Clonkk
Copy link

Clonkk commented Oct 20, 2021

@VarLad See #3811

@AutoUpdatingBSoD
Copy link

Is this issue still ongoing?

I have a separate AppImage/AUR package that refuses to run for the exact same reason as this one and I don't want to spend a lot of time fixing it. I'm not a regular Arch Linux user anymore (for now, until I get my Steam Deck).

@AutoUpdatingBSoD
Copy link

I've already spent entirely too much time on what should have just been a naming convention fix.

@santilococo
Copy link

@AutoUpdatingBSoD You can download onivim2-bin from the AUR or manually download the AppImage from this repo.

@AutoUpdatingBSoD
Copy link

AutoUpdatingBSoD commented Sep 1, 2022

@santilococo I'm sorry I wasn't clear. I meant an AUR package/PKGBUILD I was developing/maintaining which has the exact same issue as this. But it doesn't matter, I've relinquished control of it to someone with more experience and time. So it won't matter anymore anyway.

Thanks for the feedback though, and I'm sorry I didn't get back to you! Past couple of months have been hectic and GitHub wasn't even on my radar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants