-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
0.13.1: compile, undefined symbol: sqlite3_unlock_notify #6280
Comments
I think this should be an upstream issue. Please look solution at https://github.com/launchbadge/sqlx |
@EYHN this issue should not have been closed. It couldn't be a SQLx bug. Take a look at the other errors. It's failing on unconditional re-exports from within the same crate. It's very clear that something has gone catastrophically wrong with the build process itself. |
Full log can be seen here
Does this issue?
|
That's a completely different error. |
Sorry, that's my another try, I've updated it |
@EYHN Could you reopen it? |
It seems that when executing the sqlx procedural macros, the error occurs |
Yeah I know, the report said that |
By looking at the source code, it seems that the procedural macro of sqlx will call sqlite at runtime, and according to the default configuration of its upstream libsqlite3-sys, it will use sqlite3 in your system. Do you have sqlite3 installed on your system? |
Of course, I install both sqlite 3.45.2 and sqlx-cli 0.7.3 |
Sorry, I don't have an archlinux machine, but I used the archlinux docker image and did not reproduce the error you described. Below is my Dockerfile, which runs smoothly FROM archlinux/archlinux:base-devel
SHELL ["/bin/bash", "-c"]
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}"
RUN pacman -Syu
RUN pacman -S nodejs-lts-iron npm git --noconfirm
RUN npm install -g yarn
RUN git clone https://github.com/toeverything/AFFiNE.git
WORKDIR AFFiNE
RUN yarn install
RUN yarn workspace @affine/native build
RUN yarn workspace @affine/storage build Our rust package can be built successfully in both our CI and devcontainers, so I guess this error may be related to the sqlite installed in your system. |
No, don't use |
based on the building docs, you should use nodejs-lts-hydrogen instead of nodejs-lts-iron |
No difference, cannot reproduce error |
You haven't did so... I always build in clean chroot, so it should be repeatable |
I did, you can try run this FROM archlinux/archlinux:base-devel
SHELL ["/bin/bash", "-c"]
RUN pacman -Syu
RUN pacman -S nodejs-lts-hydrogen npm git rust yarn --noconfirm
RUN git clone https://github.com/toeverything/AFFiNE.git
WORKDIR AFFiNE
RUN git checkout tags/v0.13.1
RUN yarn install
RUN yarn workspace @affine/native build
RUN yarn workspace @affine/storage build |
the tag is |
I guess this is a devtools rustflags issue, thanks a lot |
We enable the |
Okay, thanks a lot, hopefully, it'll solve the issue, I am still not sure why this can't be build under devtools and local machine but okay in docker |
I also encountered a similar problem. I just found out that sqlx does not support the build flag "-flto=auto" (Link Time Optimization, LTO) which is enabled by default by the Arch Linux package build system (makepkg tool). It's necessary to disable this compile flag during the build of sqlx by adding the build configuration "options=('!lto')" to the PKGBUILD script for the package. Once this is done, the package builds normally, without errors. The discussion about the mentioned issue can be viewed at: ffplayout/ffplayout#580 |
What happened?
git clone and checkout the 0.13.1
use
get the output
Distribution version
Linux
What browsers are you seeing the problem on if you're using web version?
Other
Are you self-hosting?
Relevant log output
No response
Anything else?
The text was updated successfully, but these errors were encountered: