-
Notifications
You must be signed in to change notification settings - Fork 397
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
Compiling diesel-migrations
for FreeBSD fails.
#520
Comments
I have two projects that use |
The environment variable breaked procedural macro crates which depends on `libsqlite3-sys`, such as `migrations_macros`. Even without the variable, `libsqlite3-sys` finds the correct path anyway. Fixes cross-rs#520.
The environment variable broke procedural macro crates which depends on `libsqlite3-sys`, such as `migrations_macros`. Even without the variable, `libsqlite3-sys` finds the correct path anyway. Fixes cross-rs#520.
the environment variable broke procedural macro crates which depends on `libsqlite3-sys`, such as `migrations_macros`. even without the variable, `libsqlite3-sys` finds the correct path anyway. fixes cross-rs#520.
the environment variable has broken procedural macro crates which depends on `libsqlite3-sys`, such as `migrations_macros`. even without the variable, `libsqlite3-sys` finds the correct path anyway. fixes cross-rs#520.
This seems to be caused by I have filed a fix for this issue: #549. |
It's great that you found the issue. I'm excited to try on this patch. |
the environment variable has broken procedural macro crates which depends on `libsqlite3-sys`, such as `migrations_macros`. even without the variable, `libsqlite3-sys` finds the correct path anyway. fixes cross-rs#520.
505: Make the `USER` variable to `docker` optional r=reitermarkus a=eZanmoto Populating this variable fails under Linux if the local user doesn't have a username. This may happen when using Docker and mapping a user ID from the host into a container, such as when using `--user=$(id -u):$(id -g)`. I suggest making the `USER` environment variable passed to `docker` optional, which allows `cross` to work in the given scenario. 511: FreeBSD: add libssp r=reitermarkus a=junhochoi This is required to build some native projects which is build with -fstack-protector when linked. Also update sqlite3 version (quarterly is updated) 549: don't set `SQLITE3_LIB_DIR` in FreeBSD images r=reitermarkus a=tesaguri The environment variable has broken procedural macro crates which depend on `libsqlite3-sys`, such as `migrations_macros`. Even without the variable, `libsqlite3-sys` finds the correct path anyway. This fixes #520, as shown in the CI at [tesaguri/cross-freebsd-diesel_migrations-test] repository. Additionally, this PR updates `freebsd{,-extras}.sh` to use OpenSSL from the base system, because the URLs `https://pkg.freebsd.org/FreeBSD:12:{amd64,i686}/quarterly/All/openssl-1.1.1j,1.txz` returns `404` now. [tesaguri/cross-freebsd-diesel_migrations-test]: https://github.com/tesaguri/cross-freebsd-diesel_migrations-test Co-authored-by: Sean Kelleher <[email protected]> Co-authored-by: Junho Choi <[email protected]> Co-authored-by: Markus Reiter <[email protected]> Co-authored-by: Daiki Mizukami <[email protected]>
511: FreeBSD: add libssp r=reitermarkus a=junhochoi This is required to build some native projects which is build with -fstack-protector when linked. Also update sqlite3 version (quarterly is updated) 549: don't set `SQLITE3_LIB_DIR` in FreeBSD images r=reitermarkus a=tesaguri The environment variable has broken procedural macro crates which depend on `libsqlite3-sys`, such as `migrations_macros`. Even without the variable, `libsqlite3-sys` finds the correct path anyway. This fixes #520, as shown in the CI at [tesaguri/cross-freebsd-diesel_migrations-test] repository. Additionally, this PR updates `freebsd{,-extras}.sh` to use OpenSSL from the base system, because the URLs `https://pkg.freebsd.org/FreeBSD:12:{amd64,i686}/quarterly/All/openssl-1.1.1j,1.txz` returns `404` now. [tesaguri/cross-freebsd-diesel_migrations-test]: https://github.com/tesaguri/cross-freebsd-diesel_migrations-test Co-authored-by: Junho Choi <[email protected]> Co-authored-by: Markus Reiter <[email protected]> Co-authored-by: Daiki Mizukami <[email protected]>
549: don't set `SQLITE3_LIB_DIR` in FreeBSD images r=reitermarkus a=tesaguri The environment variable has broken procedural macro crates which depend on `libsqlite3-sys`, such as `migrations_macros`. Even without the variable, `libsqlite3-sys` finds the correct path anyway. This fixes #520, as shown in the CI at [tesaguri/cross-freebsd-diesel_migrations-test] repository. Additionally, this PR updates `freebsd{,-extras}.sh` to use OpenSSL from the base system, because the URLs `https://pkg.freebsd.org/FreeBSD:12:{amd64,i686}/quarterly/All/openssl-1.1.1j,1.txz` returns `404` now. [tesaguri/cross-freebsd-diesel_migrations-test]: https://github.com/tesaguri/cross-freebsd-diesel_migrations-test Co-authored-by: Daiki Mizukami <[email protected]>
the environment variable has broken procedural macro crates which depends on `libsqlite3-sys`, such as `migrations_macros`. even without the variable, `libsqlite3-sys` finds the correct path anyway. fixes cross-rs#520.
the environment variable has broken procedural macro crates which depends on `libsqlite3-sys`, such as `migrations_macros`. even without the variable, `libsqlite3-sys` finds the correct path anyway. fixes cross-rs#520.
549: don't set `SQLITE3_LIB_DIR` in FreeBSD images r=reitermarkus a=tesaguri The environment variable has broken procedural macro crates which depend on `libsqlite3-sys`, such as `migrations_macros`. Even without the variable, `libsqlite3-sys` finds the correct path anyway. This fixes #520, as shown in the CI at [tesaguri/cross-freebsd-diesel_migrations-test] repository. ~Additionally, this PR updates `freebsd{,-extras}.sh` to use OpenSSL from the base system, because the URLs `https://pkg.freebsd.org/FreeBSD:12:{amd64,i686}/quarterly/All/openssl-1.1.1j,1.txz` returns `404` now.~ [tesaguri/cross-freebsd-diesel_migrations-test]: https://github.com/tesaguri/cross-freebsd-diesel_migrations-test Co-authored-by: Daiki Mizukami <[email protected]>
Compiling
diesel-migrations
withcross build --target=x86_64-unknown-freebsd
results in the following error:Cargo.toml
:main.rs
:Is this an issue with the cross' FreeBSD setup, or with diesel-migrations?
The text was updated successfully, but these errors were encountered: