georust / georust/proj

Linking error when compiling with 'bundled_proj' feature on Apple Silicon

Open
#57 14 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
186
Forks
63
PR merge metrics
No merged PRs in 30d

Description

```
cargo test --features "bundled_proj"
```

```
$ cargo test --features "bundled_proj"
Compiling approx v0.3.2
Compiling proj v0.20.6 (/Users/coreyf/Desktop/dev/georust/proj)
error: linking with `cc` failed: exit code: 1
|
= note: "cc" "-arch" "arm64" "-L" "/Users/coreyf/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.10ingj40cbe4borj.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.11fn116tw8nkd70w.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.18txdfkpvx0wwx6z.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.1bd6updi42gyixo1.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.1bkgo0al4a863uug.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.1bn3rkwb8iqzabh7.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.1d2s1nq0em3eqzly.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.1drnthnrqypo39mn.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.1fkvtcbqhcqx05r5.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.1g50imb6okpovw8f.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.1hauolsatc01qin8.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.1hxqql8pyer0upe2.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.1npteib36zljvnhl.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.1ratu9pbg7mn8fnm.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.1s53rdwcuibz2ckx.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.1tv4jj49i20h52vm.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.1u6ubhjcmyn69vq0.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.1xc7kekgf1dos00z.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.1xv5bfel57dmgcnx.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.1y4r9ipsflrb2dso.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.20wzwivz9293caki.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.213gijffzb22ipeg.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.224zh2mag6z4ml45.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.2251ie3mswn860jc.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.22e681rj5d8qxgq2.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.24hlksmwbws37sn5.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.2adt9mvpvi1gv8ab.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.2aq321umn0j05q6d.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.2b3wpt9tuagfrls5.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.2g30xq86i3s7tul.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.2go81aea09n0ueg6.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.2hjj1d1lbq2lrp52.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.2qjjl69tnydfwf2f.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.2r9jxnee6yt4or.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.2s3q814iqklata8d.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.2yllp33pcn4pehax.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.2zyq6iot82irlftd.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.33ipixuxlsf5yimy.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.38a938m4qf5n55xz.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.3c34fmjy4batnb8z.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.3cq155oredr77527.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.3dnnmibrw96vag3p.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.3g8uerxbfzmf7vdk.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.3mcrdkz04f873cot.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.3r7eebvtuxfnmgsa.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.3tc3xzajp2fx899f.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.3tg2nl2i6ufhe4mw.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.3ucyrq9lx9n0heks.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.3wfsogsf13rrsivo.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.41inetmydes9ty49.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.435pue1l5hwid6c0.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.4b5mjlo7s7127tji.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.4bht5egcc9kt4uuf.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.4co4w6a8kaqb0jdh.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.4eusky92tz6e6e4j.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.4i3ikg2ex5evt85z.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.4jft0iq614upsqyi.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.4n356617sy5tj2ze.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.4nbw2szeh1fevdo1.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.4pdglkzbtxs8ld32.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.4v92ot1iqr9hmu7w.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.4yp32bs47b68hr00.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.52ca6015s3d4mrpu.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.546emph797iaevfq.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.54j1x6530irgiv9c.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.56xm94j03y2tkutk.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.57yjhyp3s9ofmjnt.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.58k6awnydbn7gmvs.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.58z2c5zib4xakjh5.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.5ewlbfmpsl1cgq.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.5rt3nbf82bch7ke.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.6ln2b8oe1iuvb42.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.8kegbvbgsc92bge.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.a5dr4rj76gxrrjb.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.b4rfnt3qgnzaquv.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.bvscs4wwtrmjqxk.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.gnnc1d52f3o7c86.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.ht3v3ud5qonx1es.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.omcemq9r8tipv5l.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.q6ekkc4ktogvwp5.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.q7cv36ruevjcgu4.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.rbymtdm8w4sq15t.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.sm4ml1ysgjoqw6n.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.tbwijz1wno1xppb.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.tfse1g2waz0dovq.rcgu.o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.tg5wgyqvnmjoc6.rcgu.o" "-o" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/proj-74201a339a3fe75c.1f57didjga5843ez.rcgu.o" "-Wl,-dead_strip" "-nodefaultlibs" "-L" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps" "-L" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/build/proj-sys-702b3ff54554385c/out/lib" "-L" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/build/proj-sys-702b3ff54554385c/out/lib64" "-L" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/build/proj-sys-702b3ff54554385c/out/build/lib" "-L" "/Users/coreyf/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "/Users/coreyf/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libtest-c04bf5353f69140c.rlib" "/Users/coreyf/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libterm-1679b8e962db5e51.rlib" "/Users/coreyf/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libgetopts-53270c793523aa3d.rlib" "/Users/coreyf/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libunicode_width-6e5f163d203931fb.rlib" "/Users/coreyf/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_std-da8c4278b088de0d.rlib" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/libthiserror-c3211ae51f4578b1.rlib" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/libproj_sys-330c7d9be9e5225c.rlib" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/liblibc-6dc103a5ed6ef582.rlib" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/libapprox-3c1f854685b50684.rlib" "/Users/coreyf/Desktop/dev/georust/proj/target/debug/deps/libnum_traits-e49431397aad97ac.rlib" "/Users/coreyf/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd-66c007ef72d8663e.rlib" "/Users/coreyf/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libpanic_unwind-a9451d2661722154.rlib" "/Users/coreyf/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libobject-762dc53d4ee196bf.rlib" "/Users/coreyf/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libaddr2line-8574628b478a5c23.rlib" "/Users/coreyf/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libgimli-81d5bba5f99dc60c.rlib" "/Users/coreyf/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_demangle-2ca8284befe9e594.rlib" "/Users/coreyf/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libhashbrown-b6e7b0a96c79838a.rlib" "/Users/coreyf/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_alloc-a91baa24b7903563.rlib" "/Users/coreyf/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libunwind-be586febb1d2abe5.rlib" "/Users/coreyf/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcfg_if-91703e117e420011.rlib" "/Users/coreyf/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liblibc-8293d4970e524cf2.rlib" "/Users/coreyf/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liballoc-59ea5e5ce6eb23cb.rlib" "/Users/coreyf/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_core-92186cf5c5d5835d.rlib" "/Users/coreyf/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcore-80a2abfc52170c57.rlib" "/Users/coreyf/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcompiler_builtins-e46c25039c9cecae.rlib" "-lsqlite3" "-ltiff" "-lc++" "-lSystem" "-lresolv" "-lc" "-lm"
= note: ld: warning: directory not found for option '-L/Users/coreyf/Desktop/dev/georust/proj/target/debug/build/proj-sys-702b3ff54554385c/out/lib64'
ld: library not found for -ltiff
clang: error: linker command failed with exit code 1 (use -v to see invocation)

error: aborting due to previous error

error: could not compile `proj`

To learn more, run the command again with --verbose.
```

This seems to be the line it's struggling with:

https://github.com/georust/proj/blob/3c33538e41eae09409d94ab990b45516da216c0d/proj-sys/build.rs#L107-L110

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the failure with `cargo test --features "bundled_proj"` on Apple Silicon and start by inspecting the `bundled_proj` feature and the linker paths shown in the error. No source files or tests are named; done means the feature links successfully and the command completes.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.