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

build failed on loongarch platform #11737

Open
zoze0 opened this issue Apr 21, 2024 · 1 comment
Open

build failed on loongarch platform #11737

zoze0 opened this issue Apr 21, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@zoze0
Copy link

zoze0 commented Apr 21, 2024

Provide the Bytebase version you are using

2.16.0

Describe the bug

Start building Bytebase monolithic 2.16.0...

Step 1 - building Bytebase frontend...
Lockfile is up to date, resolution step is skipped
Packages: +862
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 862, reused 862, downloaded 0, added 0, done
node_modules/.pnpm/leveldown@5.6.0/node_modules/leveldown: Running install script, failed in 1s
.../node_modules/leveldown install$ node-gyp-build
 gyp info it worked if it ends with ok
 gyp info using node-gyp@10.1.0
 gyp info using node@20.12.2 | linux | loong64
 gyp info find Python using Python version 3.11.6 found at "/usr/bin/python3"
 gyp info spawn /usr/bin/python3
 gyp info spawn args [
 gyp info spawn args '/home/loong/nodejs_20.12.2-0_loongarch64/usr/lib/node_modules/pnpm/dist/n…
│ gyp info spawn args 'binding.gyp',
│ gyp info spawn args '-f',
│ gyp info spawn args 'make',
│ gyp info spawn args '-I',
│ gyp info spawn args '/home/loong/gitee/Bytebase/frontend/node_modules/.pnpm/leveldown@5.6.0/no…
 gyp info spawn args '-I',
 gyp info spawn args '/home/loong/nodejs_20.12.2-0_loongarch64/usr/lib/node_modules/pnpm/dist/n…
│ gyp info spawn args '-I',
│ gyp info spawn args '/home/loong/.cache/node-gyp/20.12.2/include/node/common.gypi',
│ gyp info spawn args '-Dlibrary=shared_library',
│ gyp info spawn args '-Dvisibility=default',
│ gyp info spawn args '-Dnode_root_dir=/home/loong/.cache/node-gyp/20.12.2',
│ gyp info spawn args '-Dnode_gyp_dir=/home/loong/nodejs_20.12.2-0_loongarch64/usr/lib/node_modu…
 gyp info spawn args '-Dnode_lib_file=/home/loong/.cache/node-gyp/20.12.2/<(target_arch)/node.l…
│ gyp info spawn args '-Dmodule_root_dir=/home/loong/gitee/Bytebase/frontend/node_modules/.pnpm/
 gyp info spawn args '-Dnode_engine=v8',
 gyp info spawn args '--depth=.',
 gyp info spawn args '--no-parallel',
 gyp info spawn args '--generator-output',
 gyp info spawn args 'build',
 gyp info spawn args '-Goutput_dir=.'
 gyp info spawn args ]
 gyp info spawn make
 gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]make: 进入目录“/home/loong/gitee/Bytebase/frontend/node_modules/.pnpm/leveldown@5.6.0/node_mod…
   CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/builder.o
 In file included from ../deps/leveldb/leveldb-1.20/port/port_posix.h:47,
                  from ../deps/leveldb/leveldb-1.20/port/port.h:16,
                  from ../deps/leveldb/leveldb-1.20/db/filename.h:14,
                  from ../deps/leveldb/leveldb-1.20/db/builder.cc:7:
 ../deps/leveldb/leveldb-1.20/port/atomic_pointer.h:229:2: error: #error Please implement Atomi…
   229 | #error Please implement AtomicPointer for this platform.
       |  ^~~~~
 make: *** [deps/leveldb/leveldb.target.mk:155:Release/obj.target/leveldb/deps/leveldb/leveldb…
 make: 离开目录“/home/loong/gitee/Bytebase/frontend/node_modules/.pnpm/leveldown@5.6.0/node_mod…
 gyp ERR! build error 
 gyp ERR! stack Error: `make` failed with exit code: 2
 gyp ERR! stack at ChildProcess.<anonymous> (/home/loong/nodejs_20.12.2-0_loongarch64/usr/lib/n…
 gyp ERR! System Linux 6.9.0-rc3-loong64-desktop
 gyp ERR! command "/home/loong/nodejs_20.12.2-0_loongarch64/usr/bin/node" "/home/loong/nodejs_2…
│ gyp ERR! cwd /home/loong/gitee/Bytebase/frontend/node_modules/.pnpm/leveldown@5.6.0/node_modul…
│ gyp ERR! node -v v20.12.2
│ gyp ERR! node-gyp -v v10.1.0
│ gyp ERR! not ok 
└─ Failed in 1s at /home/loong/gitee/Bytebase/frontend/node_modules/.pnpm/leveldown@5.6.0/node_modules/leveldown                                                                                      
 ELIFECYCLE  Command failed with exit code 1.
Completed building Bytebase frontend.

Step 2 - building Bytebase backend...
backend/server/server_frontend_embed.go:17:12: pattern dist: no matching files found

Steps to reproduce

scripts/build_bytebase.sh

Expected behavior

Build successful

Provide the database you are using

No response

Provide the version control system you are using

No response

Additional context

https://github.com/Level/leveldown show that

This module will soon be deprecated, because it is superseded by classic-level.

@zoze0 zoze0 added the bug Something isn't working label Apr 21, 2024
@yousefak007
Copy link

add this

# fix error: "pattern dist: no matching files found"
mkdir -p ./backend/server/dist/assets/
touch ./backend/server/dist/assets/ignore

after line 40:

rm -rf ./backend/server/dist

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants