BitBoxSwiss / bitbox-wallet-app

The BitBoxApp for desktop and mobile.
https://bitbox.swiss/app
Apache License 2.0
256 stars 87 forks source link

Build failed for make qt-linux for Arch Linux Package #2480

Open NicoHood opened 11 months ago

NicoHood commented 11 months ago

Hi, I am trying to build this app natively for archlinux. I have no idea why the build process fails, as there is little to no information in the terminal.

As a reference this is my PKGBUILD, where you can see the steps that are being executed and the dependencys I have installed. I guess some dependencies are missing, but I dont know yet which it is.

pkgname=bitbox-wallet-app
pkgver=4.40.0
pkgrel=1
pkgdesc="BitBox cryptocurrency hardware wallet desktop app with Bitcoin, Segwit, Bech32 and native Litecoin support in an AppImage"
arch=('x86_64')
url="https://github.com/digitalbitbox/bitbox-wallet-app"
license=('Apache')
depends=('hicolor-icon-theme' 'zlib' 'fuse')
makedepends=('p7zip' 'nodejs-lts-hydrogen' 'qt5-base' 'npm>=9' 'go' 'git')
validpgpkeys=('DD09E41309750EBFAE0DEF63509249B068D215AE')

source=("https://github.com/digitalbitbox/${pkgname}/archive/refs/tags/v${pkgver}.tar.gz"
    )
sha512sums=('863fad1d762f9f1c2ce7da6f07c92380fd4247ec9dc367a15574f63026b2ef6ca148c7632327575c4400806188fc200bbce6223c942c0ee8b139bf1816afac9a')

prepare() {
    make -C "${pkgname}-${pkgver}" envinit
}

build() {
    make -C "${pkgname}-${pkgver}" qt-linux
}

package() {
    cd "${srcdir}/${pkgname}-${pkgver}"
# todo
}

This is the terminal log (only the last few lines, as the log is very long):

[...]

# import config
packagefile bytes=/tmp/go-build3768617782/b048/_pkg_.a
packagefile compress/gzip=/tmp/go-build3768617782/b144/_pkg_.a
packagefile encoding/binary=/tmp/go-build3768617782/b054/_pkg_.a
packagefile encoding/json=/tmp/go-build3768617782/b052/_pkg_.a
packagefile fmt=/tmp/go-build3768617782/b021/_pkg_.a
packagefile google.golang.org/protobuf/encoding/prototext=/tmp/go-build3768617782/b310/_pkg_.a
packagefile google.golang.org/protobuf/encoding/protowire=/tmp/go-build3768617782/b290/_pkg_.a
packagefile google.golang.org/protobuf/internal/descopts=/tmp/go-build3768617782/b297/_pkg_.a
packagefile google.golang.org/protobuf/internal/detrand=/tmp/go-build3768617782/b292/_pkg_.a
packagefile google.golang.org/protobuf/internal/encoding/messageset=/tmp/go-build3768617782/b302/_pkg_.a
packagefile google.golang.org/protobuf/internal/encoding/tag=/tmp/go-build3768617782/b312/_pkg_.a
packagefile google.golang.org/protobuf/internal/errors=/tmp/go-build3768617782/b291/_pkg_.a
packagefile google.golang.org/protobuf/internal/filedesc=/tmp/go-build3768617782/b295/_pkg_.a
packagefile google.golang.org/protobuf/internal/flags=/tmp/go-build3768617782/b300/_pkg_.a
packagefile google.golang.org/protobuf/internal/genid=/tmp/go-build3768617782/b303/_pkg_.a
packagefile google.golang.org/protobuf/internal/order=/tmp/go-build3768617782/b305/_pkg_.a
packagefile google.golang.org/protobuf/internal/pragma=/tmp/go-build3768617782/b293/_pkg_.a
packagefile google.golang.org/protobuf/internal/strs=/tmp/go-build3768617782/b301/_pkg_.a
packagefile google.golang.org/protobuf/proto=/tmp/go-build3768617782/b304/_pkg_.a
packagefile google.golang.org/protobuf/reflect/protoreflect=/tmp/go-build3768617782/b289/_pkg_.a
packagefile google.golang.org/protobuf/reflect/protoregistry=/tmp/go-build3768617782/b306/_pkg_.a
packagefile google.golang.org/protobuf/runtime/protoiface=/tmp/go-build3768617782/b307/_pkg_.a
packagefile hash/crc32=/tmp/go-build3768617782/b145/_pkg_.a
packagefile io/ioutil=/tmp/go-build3768617782/b154/_pkg_.a
packagefile math=/tmp/go-build3768617782/b025/_pkg_.a
packagefile math/bits=/tmp/go-build3768617782/b026/_pkg_.a
packagefile reflect=/tmp/go-build3768617782/b023/_pkg_.a
packagefile sort=/tmp/go-build3768617782/b033/_pkg_.a
packagefile strconv=/tmp/go-build3768617782/b027/_pkg_.a
packagefile strings=/tmp/go-build3768617782/b046/_pkg_.a
packagefile sync=/tmp/go-build3768617782/b029/_pkg_.a
packagefile sync/atomic=/tmp/go-build3768617782/b031/_pkg_.a
packagefile unicode/utf8=/tmp/go-build3768617782/b028/_pkg_.a
EOF
/usr/lib/go/pkg/tool/linux_amd64/compile -o $WORK/b309/_pkg_.a -trimpath "$WORK/b309=>" -p google.golang.org/protobuf/internal/impl -lang=go1.11 -complete -installsuffix shared -buildid mtQ11yA4WrZppDKXvoCB/mtQ11yA4WrZppDKXvoCB -goversion go1.21.5 -c=4 -shared -nolocalimports -importcfg $WORK/b309/importcfg -pack /build/bitbox-wallet-app/src/bitbox-wallet-app-4.40.0/vendor/google.golang.org/protobuf/internal/impl/api_export.go /build/bitbox-wallet-app/src/bitbox-wallet-app-4.40.0/vendor/google.golang.org/protobuf/internal/impl/checkinit.go /build/bitbox-wallet-app/src/bitbox-wallet-app-4.40.0/vendor/google.golang.org/protobuf/internal/impl/codec_extension.go /build/bitbox-wallet-app/src/bitbox-wallet-app-4.40.0/vendor/google.golang.org/protobuf/internal/impl/codec_field.go /build/bitbox-wallet-app/src/bitbox-wallet-app-4.40.0/vendor/google.golang.org/protobuf/internal/impl/codec_gen.go /build/bitbox-wallet-app/src/bitbox-wallet-app-4.40.0/vendor/google.golang.org/protobuf/internal/impl/codec_map.go /build/bitbox-wallet-app/src/bitbox-wallet-app-4.40.0/vendor/google.golang.org/protobuf/internal/impl/codec_map_go112.go /build/bitbox-wallet-app/src/bitbox-wallet-app-4.40.0/vendor/google.golang.org/protobuf/internal/impl/codec_message.go /build/bitbox-wallet-app/src/bitbox-wallet-app-4.40.0/vendor/google.golang.org/protobuf/internal/impl/codec_messageset.go /build/bitbox-wallet-app/src/bitbox-wallet-app-4.40.0/vendor/google.golang.org/protobuf/internal/impl/codec_tables.go /build/bitbox-wallet-app/src/bitbox-wallet-app-4.40.0/vendor/google.golang.org/protobuf/internal/impl/codec_unsafe.go /build/bitbox-wallet-app/src/bitbox-wallet-app-4.40.0/vendor/google.golang.org/protobuf/internal/impl/convert.go /build/bitbox-wallet-app/src/bitbox-wallet-app-4.40.0/vendor/google.golang.org/protobuf/internal/impl/convert_list.go /build/bitbox-wallet-app/src/bitbox-wallet-app-4.40.0/vendor/google.golang.org/protobuf/internal/impl/convert_map.go /build/bitbox-wallet-app/src/bitbox-wallet-app-4.40.0/vendor/google.golang.org/protobuf/internal/impl/decode.go /build/bitbox-wallet-app/src/bitbox-wallet-app-4.40.0/vendor/google.golang.org/protobuf/internal/impl/encode.go /build/bitbox-wallet-app/src/bitbox-wallet-app-4.40.0/vendor/google.golang.org/protobuf/internal/impl/enum.go /build/bitbox-wallet-app/src/bitbox-wallet-app-4.40.0/vendor/google.golang.org/protobuf/internal/impl/extension.go /build/bitbox-wallet-app/src/bitbox-wallet-app-4.40.0/vendor/google.golang.org/protobuf/internal/impl/legacy_enum.go /build/bitbox-wallet-app/src/bitbox-wallet-app-4.40.0/vendor/google.golang.org/protobuf/internal/impl/legacy_export.go /build/bitbox-wallet-app/src/bitbox-wallet-app-4.40.0/vendor/google.golang.org/protobuf/internal/impl/legacy_extension.go /build/bitbox-wallet-app/src/bitbox-wallet-app-4.40.0/vendor/google.golang.org/protobuf/internal/impl/legacy_file.go /build/bitbox-wallet-app/src/bitbox-wallet-app-4.40.0/vendor/google.golang.org/protobuf/internal/impl/legacy_message.go /build/bitbox-wallet-app/src/bitbox-wallet-app-4.40.0/vendor/google.golang.org/protobuf/internal/impl/merge.go /build/bitbox-wallet-app/src/bitbox-wallet-app-4.40.0/vendor/google.golang.org/protobuf/internal/impl/merge_gen.go /build/bitbox-wallet-app/src/bitbox-wallet-app-4.40.0/vendor/google.golang.org/protobuf/internal/impl/message.go /build/bitbox-wallet-app/src/bitbox-wallet-app-4.40.0/vendor/google.golang.org/protobuf/internal/impl/message_reflect.go /build/bitbox-wallet-app/src/bitbox-wallet-app-4.40.0/vendor/google.golang.org/protobuf/internal/impl/message_reflect_field.go /build/bitbox-wallet-app/src/bitbox-wallet-app-4.40.0/vendor/google.golang.org/protobuf/internal/impl/message_reflect_gen.go /build/bitbox-wallet-app/src/bitbox-wallet-app-4.40.0/vendor/google.golang.org/protobuf/internal/impl/pointer_unsafe.go /build/bitbox-wallet-app/src/bitbox-wallet-app-4.40.0/vendor/google.golang.org/protobuf/internal/impl/validate.go /build/bitbox-wallet-app/src/bitbox-wallet-app-4.40.0/vendor/google.golang.org/protobuf/internal/impl/weak.go
/usr/lib/go/pkg/tool/linux_amd64/buildid -w $WORK/b309/_pkg_.a # internal
cp $WORK/b309/_pkg_.a /build/.cache/go-build/53/539cf0bc3f35073a26c3a0e39f944dbf3eb143c10b91a4e2050d649d42446a60-d # internal
mkdir -p $WORK/b308/
cat >/tmp/go-build3768617782/b308/importcfg << 'EOF' # internal
# import config
packagefile google.golang.org/protobuf/internal/descopts=/tmp/go-build3768617782/b297/_pkg_.a
packagefile google.golang.org/protobuf/internal/filedesc=/tmp/go-build3768617782/b295/_pkg_.a
packagefile google.golang.org/protobuf/internal/impl=/tmp/go-build3768617782/b309/_pkg_.a
packagefile google.golang.org/protobuf/reflect/protoreflect=/tmp/go-build3768617782/b289/_pkg_.a
packagefile google.golang.org/protobuf/reflect/protoregistry=/tmp/go-build3768617782/b306/_pkg_.a
packagefile reflect=/tmp/go-build3768617782/b023/_pkg_.a
EOF
/usr/lib/go/pkg/tool/linux_amd64/compile -o $WORK/b308/_pkg_.a -trimpath "$WORK/b308=>" -p google.golang.org/protobuf/internal/filetype -lang=go1.11 -complete -installsuffix shared -buildid BD6t6aWqeclHamv-LNJZ/BD6t6aWqeclHamv-LNJZ -goversion go1.21.5 -c=4 -shared -nolocalimports -importcfg $WORK/b308/importcfg -pack /build/bitbox-wallet-app/src/bitbox-wallet-app-4.40.0/vendor/google.golang.org/protobuf/internal/filetype/build.go
/usr/lib/go/pkg/tool/linux_amd64/buildid -w $WORK/b308/_pkg_.a # internal
cp $WORK/b308/_pkg_.a /build/.cache/go-build/ea/ea0126948fc9d71d0ff040d106c58bea1648eb796a42386abd823f12b0f30408-d # internal
mkdir -p $WORK/b294/
cat >/tmp/go-build3768617782/b294/importcfg << 'EOF' # internal
# import config
packagefile google.golang.org/protobuf/internal/filedesc=/tmp/go-build3768617782/b295/_pkg_.a
packagefile google.golang.org/protobuf/internal/filetype=/tmp/go-build3768617782/b308/_pkg_.a
packagefile google.golang.org/protobuf/internal/impl=/tmp/go-build3768617782/b309/_pkg_.a
packagefile google.golang.org/protobuf/internal/version=/tmp/go-build3768617782/b313/_pkg_.a
EOF
/usr/lib/go/pkg/tool/linux_amd64/compile -o $WORK/b294/_pkg_.a -trimpath "$WORK/b294=>" -p google.golang.org/protobuf/runtime/protoimpl -lang=go1.11 -complete -installsuffix shared -buildid BMqsPdm8zcmyL2oC0FFy/BMqsPdm8zcmyL2oC0FFy -goversion go1.21.5 -c=4 -shared -nolocalimports -importcfg $WORK/b294/importcfg -pack /build/bitbox-wallet-app/src/bitbox-wallet-app-4.40.0/vendor/google.golang.org/protobuf/runtime/protoimpl/impl.go /build/bitbox-wallet-app/src/bitbox-wallet-app-4.40.0/vendor/google.golang.org/protobuf/runtime/protoimpl/version.go
/usr/lib/go/pkg/tool/linux_amd64/buildid -w $WORK/b294/_pkg_.a # internal
cp $WORK/b294/_pkg_.a /build/.cache/go-build/2c/2c2508013fac81a5a7dc66d767ab214460422dedc9a479f6da994016303d630a-d # internal
mkdir -p $WORK/b288/
cat >/tmp/go-build3768617782/b288/importcfg << 'EOF' # internal
# import config
packagefile google.golang.org/protobuf/reflect/protoreflect=/tmp/go-build3768617782/b289/_pkg_.a
packagefile google.golang.org/protobuf/runtime/protoimpl=/tmp/go-build3768617782/b294/_pkg_.a
packagefile reflect=/tmp/go-build3768617782/b023/_pkg_.a
packagefile sync=/tmp/go-build3768617782/b029/_pkg_.a
EOF
/usr/lib/go/pkg/tool/linux_amd64/compile -o $WORK/b288/_pkg_.a -trimpath "$WORK/b288=>" -p github.com/digitalbitbox/bitbox02-api-go/api/firmware/messages -lang=go1.13 -complete -installsuffix shared -buildid jeJqIs0jLUV7GgkI3Hh6/jeJqIs0jLUV7GgkI3Hh6 -goversion go1.21.5 -c=4 -shared -nolocalimports -importcfg $WORK/b288/importcfg -pack /build/bitbox-wallet-app/src/bitbox-wallet-app-4.40.0/vendor/github.com/digitalbitbox/bitbox02-api-go/api/firmware/messages/antiklepto.pb.go /build/bitbox-wallet-app/src/bitbox-wallet-app-4.40.0/vendor/github.com/digitalbitbox/bitbox02-api-go/api/firmware/messages/backup_commands.pb.go /build/bitbox-wallet-app/src/bitbox-wallet-app-4.40.0/vendor/github.com/digitalbitbox/bitbox02-api-go/api/firmware/messages/bitbox02_system.pb.go /build/bitbox-wallet-app/src/bitbox-wallet-app-4.40.0/vendor/github.com/digitalbitbox/bitbox02-api-go/api/firmware/messages/btc.pb.go /build/bitbox-wallet-app/src/bitbox-wallet-app-4.40.0/vendor/github.com/digitalbitbox/bitbox02-api-go/api/firmware/messages/cardano.pb.go /build/bitbox-wallet-app/src/bitbox-wallet-app-4.40.0/vendor/github.com/digitalbitbox/bitbox02-api-go/api/firmware/messages/common.pb.go /build/bitbox-wallet-app/src/bitbox-wallet-app-4.40.0/vendor/github.com/digitalbitbox/bitbox02-api-go/api/firmware/messages/eth.pb.go /build/bitbox-wallet-app/src/bitbox-wallet-app-4.40.0/vendor/github.com/digitalbitbox/bitbox02-api-go/api/firmware/messages/hww.pb.go /build/bitbox-wallet-app/src/bitbox-wallet-app-4.40.0/vendor/github.com/digitalbitbox/bitbox02-api-go/api/firmware/messages/keystore.pb.go /build/bitbox-wallet-app/src/bitbox-wallet-app-4.40.0/vendor/github.com/digitalbitbox/bitbox02-api-go/api/firmware/messages/mnemonic.pb.go /build/bitbox-wallet-app/src/bitbox-wallet-app-4.40.0/vendor/github.com/digitalbitbox/bitbox02-api-go/api/firmware/messages/perform_attestation.pb.go /build/bitbox-wallet-app/src/bitbox-wallet-app-4.40.0/vendor/github.com/digitalbitbox/bitbox02-api-go/api/firmware/messages/system.pb.go
/usr/lib/go/pkg/tool/linux_amd64/buildid -w $WORK/b288/_pkg_.a # internal
cp $WORK/b288/_pkg_.a /build/.cache/go-build/59/597f93aa9bec6bc5eb3e2482844debece1882659ec507aa96f2a8be7d3502c4e-d # internal
mkdir -p $WORK/b286/
cat >/tmp/go-build3768617782/b286/importcfg << 'EOF' # internal
# import config
packagefile bytes=/tmp/go-build3768617782/b048/_pkg_.a
packagefile container/ring=/tmp/go-build3768617782/b287/_pkg_.a
packagefile crypto/ecdsa=/tmp/go-build3768617782/b078/_pkg_.a
packagefile crypto/elliptic=/tmp/go-build3768617782/b085/_pkg_.a
packagefile crypto/rand=/tmp/go-build3768617782/b065/_pkg_.a
packagefile crypto/sha256=/tmp/go-build3768617782/b091/_pkg_.a
packagefile encoding/base32=/tmp/go-build3768617782/b117/_pkg_.a
packagefile encoding/binary=/tmp/go-build3768617782/b054/_pkg_.a
packagefile encoding/hex=/tmp/go-build3768617782/b049/_pkg_.a
packagefile encoding/json=/tmp/go-build3768617782/b052/_pkg_.a
packagefile errors=/tmp/go-build3768617782/b004/_pkg_.a
packagefile fmt=/tmp/go-build3768617782/b021/_pkg_.a
packagefile github.com/btcsuite/btcd/btcec/v2=/tmp/go-build3768617782/b072/_pkg_.a
packagefile github.com/btcsuite/btcd/btcutil/base58=/tmp/go-build3768617782/b112/_pkg_.a
packagefile github.com/digitalbitbox/bitbox02-api-go/api/common=/tmp/go-build3768617782/b285/_pkg_.a
packagefile github.com/digitalbitbox/bitbox02-api-go/api/firmware/messages=/tmp/go-build3768617782/b288/_pkg_.a
packagefile github.com/digitalbitbox/bitbox02-api-go/util/errp=/tmp/go-build3768617782/b227/_pkg_.a
packagefile github.com/digitalbitbox/bitbox02-api-go/util/semver=/tmp/go-build3768617782/b226/_pkg_.a
packagefile github.com/flynn/noise=/tmp/go-build3768617782/b314/_pkg_.a
packagefile google.golang.org/protobuf/proto=/tmp/go-build3768617782/b304/_pkg_.a
packagefile math/big=/tmp/go-build3768617782/b067/_pkg_.a
packagefile strconv=/tmp/go-build3768617782/b027/_pkg_.a
packagefile strings=/tmp/go-build3768617782/b046/_pkg_.a
packagefile sync=/tmp/go-build3768617782/b029/_pkg_.a
packagefile time=/tmp/go-build3768617782/b040/_pkg_.a
EOF
/usr/lib/go/pkg/tool/linux_amd64/compile -o $WORK/b286/_pkg_.a -trimpath "$WORK/b286=>" -p github.com/digitalbitbox/bitbox02-api-go/api/firmware -lang=go1.13 -complete -installsuffix shared -buildid 7T0NKi-qPbNdvJ-Unbgb/7T0NKi-qPbNdvJ-Unbgb -goversion go1.21.5 -c=4 -shared -nolocalimports -importcfg $WORK/b286/importcfg -pack /build/bitbox-wallet-app/src/bitbox-wallet-app-4.40.0/vendor/github.com/digitalbitbox/bitbox02-api-go/api/firmware/attestation.go /build/bitbox-wallet-app/src/bitbox-wallet-app-4.40.0/vendor/github.com/digitalbitbox/bitbox02-api-go/api/firmware/backup.go /build/bitbox-wallet-app/src/bitbox-wallet-app-4.40.0/vendor/github.com/digitalbitbox/bitbox02-api-go/api/firmware/btc.go /build/bitbox-wallet-app/src/bitbox-wallet-app-4.40.0/vendor/github.com/digitalbitbox/bitbox02-api-go/api/firmware/cardano.go /build/bitbox-wallet-app/src/bitbox-wallet-app-4.40.0/vendor/github.com/digitalbitbox/bitbox02-api-go/api/firmware/device.go /build/bitbox-wallet-app/src/bitbox-wallet-app-4.40.0/vendor/github.com/digitalbitbox/bitbox02-api-go/api/firmware/error.go /build/bitbox-wallet-app/src/bitbox-wallet-app-4.40.0/vendor/github.com/digitalbitbox/bitbox02-api-go/api/firmware/eth.go /build/bitbox-wallet-app/src/bitbox-wallet-app-4.40.0/vendor/github.com/digitalbitbox/bitbox02-api-go/api/firmware/event.go /build/bitbox-wallet-app/src/bitbox-wallet-app-4.40.0/vendor/github.com/digitalbitbox/bitbox02-api-go/api/firmware/mnemonic.go /build/bitbox-wallet-app/src/bitbox-wallet-app-4.40.0/vendor/github.com/digitalbitbox/bitbox02-api-go/api/firmware/pairing.go /build/bitbox-wallet-app/src/bitbox-wallet-app-4.40.0/vendor/github.com/digitalbitbox/bitbox02-api-go/api/firmware/query.go /build/bitbox-wallet-app/src/bitbox-wallet-app-4.40.0/vendor/github.com/digitalbitbox/bitbox02-api-go/api/firmware/random.go /build/bitbox-wallet-app/src/bitbox-wallet-app-4.40.0/vendor/github.com/digitalbitbox/bitbox02-api-go/api/firmware/sdcard.go /build/bitbox-wallet-app/src/bitbox-wallet-app-4.40.0/vendor/github.com/digitalbitbox/bitbox02-api-go/api/firmware/secp256k1.go /build/bitbox-wallet-app/src/bitbox-wallet-app-4.40.0/vendor/github.com/digitalbitbox/bitbox02-api-go/api/firmware/status.go /build/bitbox-wallet-app/src/bitbox-wallet-app-4.40.0/vendor/github.com/digitalbitbox/bitbox02-api-go/api/firmware/system.go
/usr/lib/go/pkg/tool/linux_amd64/buildid -w $WORK/b286/_pkg_.a # internal
cp $WORK/b286/_pkg_.a /build/.cache/go-build/b4/b42a0b30f44f039bd8ead3891e98f08b3eaae76af0035bf5420f5aa6b19eb686-d # internal
make[3]: *** [Makefile.linux:9: linux] Error 1
make[3]: Leaving directory '/build/bitbox-wallet-app/src/bitbox-wallet-app-4.40.0/frontends/qt/server'
make[2]: *** [Makefile:4: linux] Error 2
make[2]: Leaving directory '/build/bitbox-wallet-app/src/bitbox-wallet-app-4.40.0/frontends/qt/server'
make[1]: *** [Makefile:28: linux] Error 2
make[1]: Leaving directory '/build/bitbox-wallet-app/src/bitbox-wallet-app-4.40.0/frontends/qt'
make: *** [Makefile:68: qt-linux] Error 2
make: Leaving directory '/build/bitbox-wallet-app/src/bitbox-wallet-app-4.40.0'
==> ERROR: A failure occurred in build().
    Aborting...
==> ERROR: Build failed, check /var/lib/archbuild/extra-x86_64/nicohood/build
baizon commented 5 months ago

It seems that you're not very familiar with making on linux. You see the error make[3]: *** [Makefile.linux:9: linux] Error 1, which seems to be the file .../frontends/qt/server/Makefile.linux, at line 9. There you have CC=clang \, so I guess you need the clang package. I would recommend to close this issue.