tursodatabase / tursodatabase/libsql

Error during building JS/WASM

Open
#445 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
17.2k
Forks
531
Avg merge
1h 12m
Merged PRs (30d)
1

Description

Hi, I'm trying use libsql in the browser.

I've cloned the libsql repo and ran the steps below to create .js api files and .wasm files.
Building JS/WASM

However, I get the error below during the final make process

⚡ (./configure --enable-all && make sqlite3.c && cd ext/wasm && make)

configure: WARNING: Can't find Tcl configuration definitions
configure: WARNING: *** Without Tcl the regression tests cannot be executed ***
configure: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***
GNUmakefile:798: target `jswasm/sqlite3.wasm' given more than once in the same rule.
GNUmakefile:800: warning: overriding commands for target `echo'
GNUmakefile:798: warning: ignoring old commands for target `echo'
GNUmakefile:800: warning: overriding commands for target `"not'
GNUmakefile:798: warning: ignoring old commands for target `"not'
GNUmakefile:800: warning: overriding commands for target `using'
GNUmakefile:798: warning: ignoring old commands for target `using'
GNUmakefile:800: warning: overriding commands for target `wasm-opt'
GNUmakefile:798: warning: ignoring old commands for target `wasm-opt'
GNUmakefile:800: warning: overriding commands for target `for'
GNUmakefile:798: warning: ignoring old commands for target `for'
GNUmakefile:800: warning: overriding commands for target `post-process'
GNUmakefile:798: warning: ignoring old commands for target `post-process'
GNUmakefile:800: warning: overriding commands for target `optimizing"'
GNUmakefile:798: warning: ignoring old commands for target `optimizing"'
GNUmakefile:800: warning: overriding commands for target `jswasm/sqlite3.wasm'
GNUmakefile:798: warning: ignoring old commands for target `jswasm/sqlite3.wasm'
GNUmakefile:800: warning: overriding commands for target `-o'
GNUmakefile:798: warning: ignoring old commands for target `-o'
GNUmakefile:800: target `jswasm/sqlite3.wasm' given more than once in the same rule.
GNUmakefile:800: warning: overriding commands for target `||'
GNUmakefile:798: warning: ignoring old commands for target `||'
GNUmakefile:803: warning: overriding commands for target `echo'
GNUmakefile:800: warning: ignoring old commands for target `echo'
GNUmakefile:803: warning: overriding commands for target `"not'
GNUmakefile:800: warning: ignoring old commands for target `"not'
GNUmakefile:803: warning: overriding commands for target `using'
GNUmakefile:800: warning: ignoring old commands for target `using'
GNUmakefile:803: warning: overriding commands for target `wasm-opt'
GNUmakefile:800: warning: ignoring old commands for target `wasm-opt'
GNUmakefile:803: warning: overriding commands for target `for'
GNUmakefile:800: warning: ignoring old commands for target `for'
GNUmakefile:803: warning: overriding commands for target `post-process'
GNUmakefile:800: warning: ignoring old commands for target `post-process'
GNUmakefile:803: warning: overriding commands for target `optimizing"'
GNUmakefile:800: warning: ignoring old commands for target `optimizing"'
GNUmakefile:803: warning: overriding commands for target `jswasm/sqlite3.wasm'
GNUmakefile:800: warning: ignoring old commands for target `jswasm/sqlite3.wasm'
GNUmakefile:803: warning: overriding commands for target `-o'
GNUmakefile:800: warning: ignoring old commands for target `-o'
GNUmakefile:803: target `jswasm/sqlite3.wasm' given more than once in the same rule.
GNUmakefile:803: warning: overriding commands for target `||'
GNUmakefile:800: warning: ignoring old commands for target `||'
GNUmakefile:806: warning: overriding commands for target `echo'
GNUmakefile:803: warning: ignoring old commands for target `echo'
GNUmakefile:806: warning: overriding commands for target `"not'
GNUmakefile:803: warning: ignoring old commands for target `"not'
GNUmakefile:806: warning: overriding commands for target `using'
GNUmakefile:803: warning: ignoring old commands for target `using'
GNUmakefile:806: warning: overriding commands for target `wasm-opt'
GNUmakefile:803: warning: ignoring old commands for target `wasm-opt'
GNUmakefile:806: warning: overriding commands for target `for'
GNUmakefile:803: warning: ignoring old commands for target `for'
GNUmakefile:806: warning: overriding commands for target `post-process'
GNUmakefile:803: warning: ignoring old commands for target `post-process'
GNUmakefile:806: warning: overriding commands for target `optimizing"'
GNUmakefile:803: warning: ignoring old commands for target `optimizing"'
GNUmakefile:806: warning: overriding commands for target `jswasm/sqlite3.wasm'
GNUmakefile:803: warning: ignoring old commands for target `jswasm/sqlite3.wasm'
GNUmakefile:806: warning: overriding commands for target `-o'
GNUmakefile:803: warning: ignoring old commands for target `-o'
GNUmakefile:806: target `jswasm/sqlite3.wasm' given more than once in the same rule.
GNUmakefile:806: warning: overriding commands for target `||'
GNUmakefile:803: warning: ignoring old commands for target `||'
awk: unknown option -e ignored

awk: can't open file -e
 source line number 1
../../sqlite3.c:61702:11: error: no member named 'pWalMethodsData' in 'struct Pager'
  pPager->pWalMethodsData = pWalMethodsData;
  ~~~~~~  ^
1 error generated.
make: *** [c-pp] Error 1

However it works fine with the sqlite repo

Thanks in advance.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the command from the issue in the repository's ext/wasm build path, then inspect GNUmakefile around lines 798-806 and the generated sqlite3.c error near line 61702. Compare the same JS/WASM build steps with the referenced sqlite repository. Done means the documented make command completes without the GNUmakefile, awk, or Pager errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, wasm
Domain
build-system, databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.