We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
docker Build
sqlite3-binding.c:35901:42: error: 'pread64' undeclared here (not in a function); did you mean 'pread'?
alist
Dependencies
Operational
v3.20.1
189CloudPC
拉取最新源码docker build报错:
docker build
n/a
devioa@Devioa-Desktop:~$ ./b alist Saved working directory and index state WIP on main: d1d1a08 fix(deps): update module github.com/caarlos0/env/v7 to v9 (#4728) Already up to date. On branch main Your branch is up to date with 'origin/main'. Changes not staged for commit: (use "git add <file>..." to update what will be committed) (use "git restore <file>..." to discard changes in working directory) modified: Dockerfile no changes added to commit (use "git add" and/or "git commit -a") Dropped refs/stash@{0} (c2185dd92df52bd20bd95494587ca9beeb16e45b) Sending build context to Docker daemon 5.642MB Step 1/16 : FROM alpine:edge as builder ---> 855f10c27d71 Step 2/16 : LABEL stage=go-builder ---> Using cache ---> 1cf40c25d1ce Step 3/16 : WORKDIR /app/ ---> Using cache ---> 680af8acc85a Step 4/16 : COPY ./ ./ ---> e56e6f1915a3 Step 5/16 : RUN apk add --no-cache bash curl gcc git go musl-dev; bash build.sh release docker ---> Running in b74901cb41b6 fetch https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz fetch https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz (1/30) Upgrading musl (1.2.3-r4 -> 1.2.4-r5) (2/30) Installing ncurses-terminfo-base (6.4_p20230708-r0) (3/30) Installing libncursesw (6.4_p20230708-r0) (4/30) Installing readline (8.2.1-r2) (5/30) Installing bash (5.2.15-r5) Executing bash-5.2.15-r5.post-install (6/30) Installing ca-certificates (20230506-r0) (7/30) Installing brotli-libs (1.0.9-r15) (8/30) Installing c-ares (1.19.1-r1) (9/30) Installing libunistring (1.1-r2) (10/30) Installing libidn2 (2.3.4-r2) (11/30) Installing nghttp2-libs (1.54.0-r0) (12/30) Installing libcurl (8.1.2-r2) (13/30) Installing curl (8.1.2-r2) (14/30) Installing libgcc (13.1.1_git20230701-r0) (15/30) Installing jansson (2.14-r4) (16/30) Installing libstdc++ (13.1.1_git20230701-r0) (17/30) Installing zstd-libs (1.5.5-r5) (18/30) Installing binutils (2.40-r12) (19/30) Installing libgomp (13.1.1_git20230701-r0) (20/30) Installing libatomic (13.1.1_git20230701-r0) (21/30) Installing gmp (6.2.1-r3) (22/30) Installing isl26 (0.26-r1) (23/30) Installing mpfr4 (4.2.0-r3) (24/30) Installing mpc1 (1.3.1-r1) (25/30) Installing gcc (13.1.1_git20230701-r0) (26/30) Installing libexpat (2.5.0-r2) (27/30) Installing pcre2 (10.42-r1) (28/30) Installing git (2.41.0-r1) (29/30) Installing musl-dev (1.2.4-r5) (30/30) Installing go (1.20.5-r2) Executing busybox-1.36.0-r5.trigger Executing ca-certificates-20230506-r0.trigger OK: 341 MiB in 44 packages backend version: v3.20.1 frontend version: 3.20.0 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 1601k 100 1601k 0 0 795k 0 0:00:02 0:00:02 --:--:-- 5393k dist/assets/ dist/assets/AddOrEdit.b70bbe19.js dist/assets/List.9e243c11.js dist/assets/entry.0d68331b.js dist/assets/backup-restore-legacy.4ea1a4fe.js dist/assets/Images.4e0c4bc8.js dist/assets/Upload.e0a559a6.js dist/assets/aliyun_office-legacy.96c85385.js dist/assets/entry.cc719c3a.js dist/assets/text-editor-legacy.1e3a47c2.js dist/assets/Profile-legacy.fdb6c574.js dist/assets/video_box-legacy.be52b971.js dist/assets/Metas.129bbbd4.js dist/assets/Profile.51fe9906.js dist/assets/ResponsiveGrid-legacy.c9014815.js dist/assets/lg.22b72ba5.ttf dist/assets/markdown-legacy.8de9266a.js dist/assets/aliyun_video-legacy.7c5df4f8.js dist/assets/About.53c43a39.js dist/assets/DeletePopover.3f213c6e.js dist/assets/SettingItem.75536692.js dist/assets/index.81a41051.js dist/assets/Markdown-legacy.322aa06b.js dist/assets/entry.e8dcc9d0.js dist/assets/html-legacy.68d423d2.js dist/assets/index-legacy.557aae49.js dist/assets/useUtil-legacy.356b2918.js dist/assets/index.ed1095f6.js dist/assets/audio.5f758bbf.js dist/assets/aliyun_video.3abc4ea2.js dist/assets/index-legacy.369209b5.js dist/assets/Markdown.bcfe027d.js dist/assets/index-legacy.2f58e9cc.js dist/assets/Paginator-legacy.b5ebd747.js dist/assets/Grid-legacy.a2e974ca.js dist/assets/icon-legacy.dfa07949.js dist/assets/FolderTree-legacy.1013cc1e.js dist/assets/index.5a40572c.js dist/assets/Qbit-legacy.0587904a.js dist/assets/Layout.5cf83b7c.js dist/assets/index.a233c8ae.js dist/assets/2fa.7923a6c9.js dist/assets/Messenger-legacy.15335db8.js dist/assets/Upload-legacy.ff71f956.js dist/assets/Folder-legacy.89d150ac.js dist/assets/Copy-legacy.3081a433.js dist/assets/video_box.79dd7952.js dist/assets/ipa-legacy.00847f97.js dist/assets/File.f1c610ed.js dist/assets/index-legacy.1516105c.js dist/assets/index-legacy.80df7100.js dist/assets/ImageWithError-legacy.cb7b24d1.js dist/assets/index.4a94520f.js dist/assets/2fa-legacy.bb520d81.js dist/assets/FolderTree.ca20537a.js dist/assets/SettingItem-legacy.e9829fd0.js dist/assets/ipa.93c6087e.js dist/assets/html.ec012115.js dist/assets/video.4bf321dd.js dist/assets/entry-legacy.68ef45ed.js dist/assets/Aria2-legacy.4be55020.js dist/assets/Qbit.bcca7896.js dist/assets/AddOrEdit-legacy.183eeb34.js dist/assets/audio-legacy.c23599a0.js dist/assets/Wether-legacy.a9175598.js dist/assets/video-legacy.68a32c45.js dist/assets/PackageDownload-legacy.72809328.js dist/assets/text-editor.04669c8c.js dist/assets/markdown.85d90343.js dist/assets/entry-legacy.b8785488.js dist/assets/index-legacy.241238ba.js dist/assets/AddOrEdit.f6200551.js dist/assets/Layout-legacy.49b81901.js dist/assets/Aria2.4dc10256.js dist/assets/lg.fefc5c0d.woff dist/assets/Copy.be1b43a0.js dist/assets/item_type.be442da4.js dist/assets/index.583970a8.js dist/assets/Users.f3ea39e6.js dist/assets/Tasks.5b0980bd.js dist/assets/entry.8a6fd658.js dist/assets/loading.298ad3ff.gif dist/assets/Messenger.fddb2d06.js dist/assets/url.6788bd31.js dist/assets/Images-legacy.e24db3ee.js dist/assets/List-legacy.086d3904.js dist/assets/Tasks-legacy.329c6e80.js dist/assets/image.3093ca77.js dist/assets/backup-restore.0dbb575b.js dist/assets/entry-legacy.9395f38a.js dist/assets/Users-legacy.b246cd06.js dist/assets/Storages-legacy.e90da82a.js dist/assets/About-legacy.0cd1d13e.js dist/assets/Grid.2835f459.js dist/assets/markdown_with_word_wrap.c4efa1e1.js dist/assets/Paginator.c375d614.js dist/assets/index.d81a3e4b.css dist/assets/AddOrEdit-legacy.9e20c096.js dist/assets/polyfills-legacy.afdb24a8.js dist/assets/Folder.0395c53d.js dist/assets/plist.e38245d9.js dist/assets/PackageDownload.c16097ab.js dist/assets/AddOrEdit-legacy.8fdf8e38.js dist/assets/AddOrEdit.a63775b3.js dist/assets/lg.f2fe1c00.svg dist/assets/entry-legacy.29885041.js dist/assets/image-legacy.97c07330.js dist/assets/Folder.b511ba9e.css dist/assets/indexes-legacy.e0a13ad3.js dist/assets/useUtil.0d2c0a1b.js dist/assets/Other.24a03f95.js dist/assets/Wether.dcbe29e2.js dist/assets/url-legacy.20224166.js dist/assets/aliyun_office.757511f6.js dist/assets/index-legacy.09f2bd5b.js dist/assets/markdown_with_word_wrap-legacy.fa7d2e67.js dist/assets/File-legacy.7963a6a4.js dist/assets/api.07b4c27d.js dist/assets/Storages.00f77537.js dist/assets/Password-legacy.6ea85193.js dist/assets/Other-legacy.0fb48152.js dist/assets/ImageWithError.6805ed4c.js dist/assets/index.7f5f1bd2.js dist/assets/ResponsiveGrid.472f4c0b.js dist/assets/plist-legacy.b9894919.js dist/assets/Password.e13c208c.js dist/assets/indexes.bb20d006.js dist/assets/Common.b7aaae91.js dist/assets/api-legacy.99900cdc.js dist/assets/Upload.e07b7e71.js dist/assets/Upload-legacy.cdfc1016.js dist/assets/icon.e4efec8c.js dist/assets/item_type-legacy.d1f1c701.js dist/assets/audio.e5b5af14.css dist/assets/Metas-legacy.c08076a7.js dist/assets/DeletePopover-legacy.a7049867.js dist/assets/Common-legacy.c933bc16.js dist/images/ dist/images/infuse.webp dist/images/potplayer.webp dist/images/nplayer.webp dist/images/mxplayer.webp dist/images/mxplayer-pro.webp dist/images/iina.webp dist/images/vlc.webp dist/index.html dist/static/ dist/static/epub.js/ dist/static/epub.js/viewer.html dist/streamer/ dist/streamer/mitm.html dist/streamer/sw.js go: downloading github.com/spf13/cobra v1.7.0 go: downloading github.com/sirupsen/logrus v1.9.2 go: downloading github.com/pkg/errors v0.9.1 go: downloading gorm.io/gorm v1.24.5 go: downloading github.com/gin-gonic/gin v1.9.1 go: downloading github.com/caarlos0/env/v7 v7.1.0 go: downloading github.com/natefinch/lumberjack v2.0.0+incompatible go: downloading gorm.io/driver/mysql v1.4.7 go: downloading gorm.io/driver/postgres v1.4.8 go: downloading gorm.io/driver/sqlite v1.4.4 go: downloading github.com/gin-contrib/cors v1.4.0 go: downloading github.com/deckarep/golang-set/v2 v2.3.0 go: downloading github.com/maruel/natural v1.1.0 go: downloading github.com/go-resty/resty/v2 v2.7.0 go: downloading github.com/Xhofe/go-cache v0.0.0-20220723083548-714439c8af9a go: downloading github.com/google/uuid v1.3.0 go: downloading github.com/json-iterator/go v1.1.12 go: downloading github.com/golang-jwt/jwt/v4 v4.5.0 go: downloading github.com/SheltonZhu/115driver v1.0.14 go: downloading github.com/coreos/go-oidc v2.2.1+incompatible go: downloading github.com/pquerna/otp v1.4.0 go: downloading golang.org/x/oauth2 v0.10.0 go: downloading github.com/aws/aws-sdk-go v1.44.262 go: downloading github.com/avast/retry-go v3.0.0+incompatible go: downloading github.com/dustinxie/ecc v0.0.0-20210511000915-959544187564 go: downloading github.com/jlaffaye/ftp v0.1.0 go: downloading github.com/ipfs/go-ipfs-api v0.6.0 go: downloading github.com/disintegration/imaging v1.6.2 go: downloading github.com/u2takey/ffmpeg-go v0.4.1 go: downloading golang.org/x/image v0.9.0 go: downloading github.com/foxxorcat/mopan-sdk-go v0.1.0 go: downloading github.com/t3rm1n4l/go-mega v0.0.0-20230228171823-a01a2cda13ca go: downloading github.com/pkg/sftp v1.13.5 go: downloading golang.org/x/crypto v0.11.0 go: downloading github.com/hirochachacha/go-smb2 v1.1.0 go: downloading github.com/upyun/go-sdk/v3 v3.0.4 go: downloading github.com/Xhofe/wopan-sdk-go v0.1.1 go: downloading github.com/gorilla/websocket v1.5.0 go: downloading github.com/blevesearch/bleve/v2 v2.3.8 go: downloading github.com/go-sql-driver/mysql v1.7.0 go: downloading github.com/jackc/pgx/v5 v5.3.0 go: downloading github.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc go: downloading github.com/mattn/go-sqlite3 v1.14.15 go: downloading golang.org/x/sys v0.10.0 go: downloading github.com/pquerna/cachecontrol v0.1.0 go: downloading gopkg.in/square/go-jose.v2 v2.6.0 go: downloading github.com/aliyun/aliyun-oss-go-sdk v2.2.5+incompatible go: downloading github.com/gaoyb7/115drive-webdav v0.1.8 go: downloading github.com/orzogc/fake115uploader v0.3.3-0.20221009101310-08b764073b77 go: downloading github.com/skip2/go-qrcode v0.0.0-20200617195104-da1b6568686e go: downloading github.com/spf13/pflag v1.0.5 go: downloading github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd go: downloading github.com/jinzhu/now v1.1.5 go: downloading github.com/gin-contrib/sse v0.1.0 go: downloading github.com/modern-go/reflect2 v1.0.2 go: downloading github.com/mattn/go-isatty v0.0.19 go: downloading golang.org/x/net v0.12.0 go: downloading github.com/jinzhu/inflection v1.0.0 go: downloading github.com/hashicorp/go-multierror v1.1.1 go: downloading github.com/ipfs/boxo v0.8.0 go: downloading github.com/libp2p/go-libp2p v0.26.3 go: downloading github.com/mitchellh/go-homedir v1.1.0 go: downloading github.com/multiformats/go-multiaddr v0.8.0 go: downloading github.com/multiformats/go-multibase v0.1.1 go: downloading github.com/whyrusleeping/tar-utils v0.0.0-20180509141711-8c6c8ba81d5c go: downloading github.com/u2takey/go-utils v0.3.1 go: downloading github.com/kr/fs v0.1.0 go: downloading github.com/blevesearch/bleve_index_api v1.0.5 go: downloading github.com/go-playground/validator/v10 v10.14.0 go: downloading github.com/pelletier/go-toml/v2 v2.0.8 go: downloading github.com/ugorji/go/codec v1.2.11 go: downloading google.golang.org/protobuf v1.31.0 go: downloading gopkg.in/yaml.v3 v3.0.1 go: downloading github.com/aead/ecdh v0.2.0 go: downloading github.com/andreburgaud/crypt2go v1.1.0 go: downloading github.com/pierrec/lz4/v4 v4.1.17 go: downloading github.com/bluele/gcache v0.0.2 go: downloading golang.org/x/time v0.0.0-20220922220347-f3bd1da661af go: downloading github.com/geoffgarside/ber v1.1.0 go: downloading github.com/blevesearch/geo v0.1.17 go: downloading github.com/RoaringBitmap/roaring v0.9.4 go: downloading github.com/blevesearch/scorch_segment_api/v2 v2.1.4 go: downloading github.com/blevesearch/vellum v1.0.9 go: downloading github.com/blevesearch/zapx/v11 v11.3.7 go: downloading github.com/blevesearch/zapx/v12 v12.3.7 go: downloading github.com/blevesearch/zapx/v13 v13.3.7 go: downloading github.com/blevesearch/zapx/v14 v14.3.7 go: downloading github.com/blevesearch/zapx/v15 v15.3.10 go: downloading go.etcd.io/bbolt v1.3.5 go: downloading github.com/blevesearch/upsidedown_store_api v1.0.2 go: downloading github.com/golang/protobuf v1.5.3 go: downloading github.com/blevesearch/gtreap v0.1.1 go: downloading github.com/hashicorp/errwrap v1.1.0 go: downloading github.com/jackc/pgpassfile v1.0.0 go: downloading github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a go: downloading golang.org/x/text v0.11.0 go: downloading github.com/ipfs/go-cid v0.4.0 go: downloading github.com/multiformats/go-multihash v0.2.1 go: downloading github.com/multiformats/go-varint v0.0.7 go: downloading github.com/libp2p/go-flow-metrics v0.1.0 go: downloading github.com/mr-tron/base58 v1.2.0 go: downloading github.com/multiformats/go-multicodec v0.8.1 go: downloading github.com/multiformats/go-base32 v0.1.0 go: downloading github.com/multiformats/go-base36 v0.2.0 go: downloading github.com/crackcomm/go-gitignore v0.0.0-20170627025303-887ab5e44cc3 go: downloading github.com/gabriel-vasile/mimetype v1.4.2 go: downloading github.com/go-playground/universal-translator v0.18.1 go: downloading github.com/leodido/go-urn v1.2.4 go: downloading github.com/golang/geo v0.0.0-20210211234256-740aa86cb551 go: downloading github.com/bits-and-blooms/bitset v1.2.0 go: downloading github.com/blevesearch/mmap-go v1.0.4 go: downloading github.com/golang/snappy v0.0.4 go: downloading github.com/multiformats/go-multistream v0.4.1 go: downloading github.com/decred/dcrd/dcrec/secp256k1/v4 v4.1.0 go: downloading github.com/minio/sha256-simd v1.0.0 go: downloading github.com/libp2p/go-buffer-pool v0.1.0 go: downloading github.com/blevesearch/snowballstem v0.9.0 go: downloading github.com/blevesearch/segment v0.9.1 go: downloading github.com/benbjohnson/clock v1.3.0 go: downloading github.com/go-playground/locales v0.14.1 go: downloading github.com/blevesearch/go-porterstemmer v1.0.3 go: downloading lukechampine.com/blake3 v1.1.7 go: downloading github.com/spaolacci/murmur3 v1.1.0 go: downloading github.com/klauspost/cpuid/v2 v2.2.4 go: downloading github.com/jmespath/go-jmespath v0.4.0 # github.com/mattn/go-sqlite3 sqlite3-binding.c:35901:42: error: 'pread64' undeclared here (not in a function); did you mean 'pread'? 35901 | { "pread64", (sqlite3_syscall_ptr)pread64, 0 }, | ^~~~~~~ | pread sqlite3-binding.c:35919:42: error: 'pwrite64' undeclared here (not in a function); did you mean 'pwrite'? 35919 | { "pwrite64", (sqlite3_syscall_ptr)pwrite64, 0 }, | ^~~~~~~~ | pwrite sqlite3-binding.c: In function 'seekAndRead': sqlite3-binding.c:35905:49: error: unknown type name 'off64_t'; did you mean 'off_t'? 35905 | #define osPread64 ((ssize_t(*)(int,void*,size_t,off64_t))aSyscall[10].pCurrent) | ^~~~~~~ sqlite3-binding.c:38767:11: note: in expansion of macro 'osPread64' 38767 | got = osPread64(id->h, pBuf, cnt, offset); | ^~~~~~~~~ sqlite3-binding.c:35905:58: error: expected ')' before 'aSyscall' 35905 | #define osPread64 ((ssize_t(*)(int,void*,size_t,off64_t))aSyscall[10].pCurrent) | ~ ^~~~~~~~ sqlite3-binding.c:38767:11: note: in expansion of macro 'osPread64' 38767 | got = osPread64(id->h, pBuf, cnt, offset); | ^~~~~~~~~ sqlite3-binding.c: In function 'seekAndWriteFd': sqlite3-binding.c:35923:57: error: unknown type name 'off64_t'; did you mean 'off_t'? 35923 | #define osPwrite64 ((ssize_t(*)(int,const void*,size_t,off64_t))\ | ^~~~~~~ sqlite3-binding.c:38896:17: note: in expansion of macro 'osPwrite64' 38896 | do{ rc = (int)osPwrite64(fd, pBuf, nBuf, iOff);}while( rc<0 && errno==EINTR); | ^~~~~~~~~~ sqlite3-binding.c:35924:21: error: expected ')' before 'aSyscall' 35924 | aSyscall[13].pCurrent) | ^~~~~~~~ sqlite3-binding.c:38896:17: note: in expansion of macro 'osPwrite64' 38896 | do{ rc = (int)osPwrite64(fd, pBuf, nBuf, iOff);}while( rc<0 && errno==EINTR); | ^~~~~~~~~~ sqlite3-binding.c:35923:21: note: to match this '(' 35923 | #define osPwrite64 ((ssize_t(*)(int,const void*,size_t,off64_t))\ | ^ sqlite3-binding.c:38896:17: note: in expansion of macro 'osPwrite64' 38896 | do{ rc = (int)osPwrite64(fd, pBuf, nBuf, iOff);}while( rc<0 && errno==EINTR); | ^~~~~~~~~~ The command '/bin/sh -c apk add --no-cache bash curl gcc git go musl-dev; bash build.sh release docker' returned a non-zero code: 1
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
Hello @devioa, your issue is invalid and will be closed. 你好 @devioa,你的issue无效,将被关闭。
I understand the golang version is incompatible with gorm.io/driver/sqlite.
No branches or pull requests
Please make sure of the following things
alist
and not something else(such asDependencies
orOperational
).Alist Version / Alist 版本
v3.20.1
Driver used / 使用的存储驱动
189CloudPC
Describe the bug / 问题描述
拉取最新源码
docker build
报错:Reproduction / 复现链接
n/a
Logs / 日志
The text was updated successfully, but these errors were encountered: