Open frewsxcv opened 3 years ago
@michaelkirk Are you able to repro?
Unfortunately, I'm armless for a while.
ld: library not found for -ltiff
IIRC I think I hacked around that without solving it by disabling the tiff integration just to get it to build.
I should have taken better notes... 😓
This seems to be the line it's struggling with:
println!( "cargo:rustc-link-search={}", &out_path.join("lib64").display() );
I had that output too, but IIRC that's not the critical error, but I could be mistaken.
Ah you're right, that's just a warning
I'm no longer having any issues building proj on aarch64.
I'm going to close this, but feel free to open if you aren't able to build on arm+apple.
I am seeing this error on apple silicon with proj-v0.24.0
I am able to build but cannot run tests.
When testing running cargo test -v
I get a linker error for libtiff
where it appears the linker is looking for a lib64
directory as stated above.
I have both libtiff-4.3.0
and proj-8.2.0
installed via brew.
proj currently requires proj 8.1.0 as a link target, though that may not be the source of the current error. Does running cargo test --features bundled_proj give you the same error?
Could you also please include the exact error output?
running cargo test --features bundled_proj
gives me the same error so does using cargo test --no-default-features
cargo test --verbose
Fresh cfg-if v1.0.0
Fresh autocfg v1.0.1
Fresh unicode-xid v0.2.2
Fresh glob v0.3.0
Fresh version_check v0.9.3
Fresh wyz v0.2.0
Fresh funty v1.1.0
Fresh tap v1.0.1
Fresh regex-syntax v0.6.25
Fresh unicode-width v0.1.9
Fresh bitflags v1.3.2
Fresh adler v1.0.2
Fresh termcolor v1.1.2
Fresh humantime v2.1.0
Fresh vec_map v0.8.2
Fresh strsim v0.8.0
Fresh ansi_term v0.11.0
Fresh lazy_static v1.4.0
Fresh lazycell v1.3.0
Fresh cc v1.0.72
Fresh rustc-hash v1.1.0
Fresh peeking_take_while v0.1.2
Fresh shlex v1.1.0
Fresh pkg-config v0.3.22
Fresh libloading v0.7.2
Fresh textwrap v0.11.0
Fresh libc v0.2.107
Fresh cmake v0.1.46
Fresh memchr v2.3.4
Fresh proc-macro2 v1.0.32
Fresh radium v0.5.3
Fresh quote v1.0.10
Fresh aho-corasick v0.7.15
Fresh atty v0.2.14
Fresh log v0.4.14
Fresh xattr v0.2.2
Fresh crc32fast v1.2.1
Fresh filetime v0.2.15
Fresh which v3.1.1
Fresh bitvec v0.19.5
Fresh regex v1.4.6
Fresh clang-sys v1.3.0
Fresh miniz_oxide v0.4.4
Fresh clap v2.33.3
Fresh syn v1.0.81
Fresh num-traits v0.2.14
Fresh nom v6.2.1
Fresh env_logger v0.8.4
Fresh tar v0.4.37
Fresh cexpr v0.5.0
Fresh flate2 v1.0.22
Fresh thiserror-impl v1.0.30
Fresh geo-types v0.7.2
Fresh approx v0.3.2
Fresh bindgen v0.59.1
Fresh thiserror v1.0.30
Fresh proj-sys v0.21.0 (/proj/proj-sys)
Compiling proj v0.24.0 (/proj)
Running `rustc --crate-name proj --edition=2018 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --emit=dep-info,link -C embed-bitcode=no -C split-debuginfo=unpacked -C debuginfo=2 --test --cfg 'feature="default"' --cfg 'feature="geo-types"' -C metadata=9392060a9ee76561 -C extra-filename=-9392060a9ee76561 --out-dir /proj/target/debug/deps -C incremental=/proj/target/debug/incremental -L dependency=/proj/target/debug/deps --extern approx=/proj/target/debug/deps/libapprox-9f5de25b051c1dfb.rlib --extern geo_types=/proj/target/debug/deps/libgeo_types-9b3eacdd1981a1ee.rlib --extern libc=/proj/target/debug/deps/liblibc-ff0c70f2ccc8b1fc.rlib --extern num_traits=/proj/target/debug/deps/libnum_traits-dd2a8f17dcefa508.rlib --extern proj_sys=/proj/target/debug/deps/libproj_sys-b0e700f63bb062d2.rlib --extern thiserror=/proj/target/debug/deps/libthiserror-58e881423875c387.rlib -L native=/proj/target/debug/build/proj-sys-7f6096c05b5733fd/out/lib -L /proj/target/debug/build/proj-sys-7f6096c05b5733fd/out/lib64 -L /proj/target/debug/build/proj-sys-7f6096c05b5733fd/out/build/lib`
error: linking with `cc` failed: exit status: 1
|
= note: "cc" "-arch" "arm64" "/proj/target/debug/deps/proj-9392060a9ee76561.11x46393atiu75ph.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.12l9ga6fexa1f84i.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.14amw1vvuypm5sya.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.16g8d7dyz10x765x.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.18u1ob3tbf8zlvlq.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.1i0r8vhbc1bzn174.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.1j1y1yu3tsgpbszb.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.1mvvjeuw22yauzdr.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.1tbv7v5wgefwph3v.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.1u9od1zr55pkw4h.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.1yklulfjxyc51vcg.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.24523hll41aaty7a.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.24we8nxpinevurb1.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.25xp7750mh4sa5m7.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.29l4dfzcv2hi8jl6.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.29rmjgf3kw41sjqb.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.2bmjt7lnstzm1p5w.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.2gs7pza6dph62urd.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.2mjqu1dwisokjm3e.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.2ppzg3dtraoqn0iv.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.2xkvztlm7dqdbesc.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.340wdjxtwk4p1xbw.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.362ix1ijjzhxdbso.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.3a7f6uwukcyhm9wa.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.3dbp0786oepllcte.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.3f7qtzwxc16w9n6n.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.3ffbmrkmytbpytc0.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.3gnenjwmcqvlhvio.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.3h3m0fq59769ph8x.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.3k4ltiqbdt804css.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.3kzgcr29px9avl5o.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.3l7yztascnkp9kl2.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.3otkqflxttv8eddx.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.3p66rqr77w8vtmqm.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.3q6ilbmlmpvdo4ep.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.3s31jncsdbvs4i6r.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.3ts9a5wygv57up05.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.3u4zcddy8qvhwyii.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.3wo12x2zhdchwgcp.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.3x3tpz1vqvkq1siu.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.400sg146h8um6wja.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.41of70ve272y70as.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.42menja1d6gur828.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.45xlqn29mpb1h1nh.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.46p1xw493t4luya8.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.47rnp1v6udfl511o.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.48504a0rxaw4izju.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.49sfrim7okqzyko0.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.49z5t2gq6a7d1o3r.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.4amfhgkb572j9g3i.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.4amwfv9h5d87ic1o.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.4d53yand6lbt4441.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.4h7hjwkiqyq14def.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.4l47b8mb2ahqp9uv.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.4mk7dywgt43q52lj.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.4n9enlbcas3hlfe5.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.4p7v9txxmf71b2cv.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.4pt563qi6ea0nuua.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.4qqdvirxkqruc7w5.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.4rrjxzgwu1y4bo5u.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.4suwqiqpfz7oxlxa.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.4vdyxbov2wn53kd9.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.4wvkcdip07p98pi5.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.4zzdkljmj15dpn1d.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.505oaogtixkf507s.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.50zd3xr11tdccmjb.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.51i7vk9641wttksb.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.541yjzlhrq02d8ns.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.54qirxf9k8ivsyui.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.56ybui3745mfvy7h.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.5982xdb20yaatsm1.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.5bwgbcz55jf35x25.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.5cx1d1hnu49gpvo0.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.5d9fubsdf6sqbm59.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.9q0xl71y6p7arzq.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.bvjlk4c6ui3sbos.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.cr6nrnj3h332kw2.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.dobl4ynjpqs0dzi.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.e12ai5jtyh565vk.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.e68sqfkdcqts77f.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.edpb45585ptefdx.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.fb1crx9vauobsgn.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.ht98uy53iwezkl1.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.isc71vblznvor8v.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.j3oondk6y72u2xy.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.md7yzfo7a2ddorf.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.mw20o3jwpiqh9s4.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.p2izcmp2i33brsv.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.r1147yzyzjcgbh3.rcgu.o" "/proj/target/debug/deps/proj-9392060a9ee76561.3ov3xhnma80vutzd.rcgu.o" "-L" "/proj/target/debug/deps" "-L" "/proj/target/debug/build/proj-sys-7f6096c05b5733fd/out/lib" "-L" "/proj/target/debug/build/proj-sys-7f6096c05b5733fd/out/lib64" "-L" "/proj/target/debug/build/proj-sys-7f6096c05b5733fd/out/build/lib" "-L" "/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "/proj/target/debug/deps/libgeo_types-9b3eacdd1981a1ee.rlib" "/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libtest-06ff11d645105e2b.rlib" "/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libterm-f05ecaeca66814e6.rlib" "/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libgetopts-6ad0d034fc8e15c7.rlib" "/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libunicode_width-c4beacdc35405cb8.rlib" "/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_std-fc0f4647def297a8.rlib" "/proj/target/debug/deps/libthiserror-58e881423875c387.rlib" "/proj/target/debug/deps/libproj_sys-b0e700f63bb062d2.rlib" "/proj/target/debug/deps/liblibc-ff0c70f2ccc8b1fc.rlib" "/proj/target/debug/deps/libapprox-9f5de25b051c1dfb.rlib" "/proj/target/debug/deps/libnum_traits-dd2a8f17dcefa508.rlib" "/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd-000cdec9267bfd7b.rlib" "/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libpanic_unwind-2669f3cbce8358f4.rlib" "/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libobject-86461a1c60728ccb.rlib" "/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libaddr2line-f17574752cb5ddba.rlib" "/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libgimli-3bb606c936cc0d28.rlib" "/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd_detect-8139a4b0cda20184.rlib" "/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_demangle-ea0823eca3e9abf9.rlib" "/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libhashbrown-4f19e1259f6028e7.rlib" "/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_alloc-435daca85b8e10b5.rlib" "/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libunwind-d73085abefd284c6.rlib" "/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcfg_if-e6a09ca0044b34e5.rlib" "/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liblibc-e07333f48f53c71e.rlib" "/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liballoc-2a49b0d9fbc7a459.rlib" "/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_core-b66dda66aafe36c9.rlib" "/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcore-34d0b58da984bf31.rlib" "/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcompiler_builtins-01275baa20724171.rlib" "-lsqlite3" "-ltiff" "-lc++" "-liconv" "-lSystem" "-lresolv" "-lc" "-lm" "-liconv" "-L" "/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "-o" "/proj/target/debug/deps/proj-9392060a9ee76561" "-Wl,-dead_strip" "-nodefaultlibs"
= note: ld: warning: directory not found for option '-L/proj/target/debug/build/proj-sys-7f6096c05b5733fd/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`
Caused by:
process didn't exit successfully: `rustc --crate-name proj --edition=2018 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --emit=dep-info,link -C embed-bitcode=no -C split-debuginfo=unpacked -C debuginfo=2 --test --cfg 'feature="default"' --cfg 'feature="geo-types"' -C metadata=9392060a9ee76561 -C extra-filename=-9392060a9ee76561 --out-dir /proj/target/debug/deps -C incremental=/proj/target/debug/incremental -L dependency=/proj/target/debug/deps --extern approx=/proj/target/debug/deps/libapprox-9f5de25b051c1dfb.rlib --extern geo_types=/proj/target/debug/deps/libgeo_types-9b3eacdd1981a1ee.rlib --extern libc=/proj/target/debug/deps/liblibc-ff0c70f2ccc8b1fc.rlib --extern num_traits=/proj/target/debug/deps/libnum_traits-dd2a8f17dcefa508.rlib --extern proj_sys=/proj/target/debug/deps/libproj_sys-b0e700f63bb062d2.rlib --extern thiserror=/proj/target/debug/deps/libthiserror-58e881423875c387.rlib -L native=/proj/target/debug/build/proj-sys-7f6096c05b5733fd/out/lib -L /proj/target/debug/build/proj-sys-7f6096c05b5733fd/out/lib64 -L /proj/target/debug/build/proj-sys-7f6096c05b5733fd/out/build/lib` (exit status: 1)
note I have removed username $HOME path from the output
my understanding is libtiff
is not required right?
I feel it's very likely that I broke this with #92, sorry.
I'm looking into an appropriate fix now...
Hmm, I'm actually not able to reproduce your experience with proj 8.2 installed via homebrew on my aarch64.
@highway900 would you mind including some more verbose output so we can better see what's going on?
Run cargo clean && cargo test -vv
, and post the output starting with: "Compiling proj-sys v0.21.0"
Also, if you have the time, it'd be interesting to verify if things work for you pre #93 - e.g. by building from 801f653.
Can you also confirm that you're running aarch64 homebrew (from /opt/homebrew) and not the legacy rosetta version (from /usr/local)?
$ arch
arm64
$ brew --prefix
/opt/homebrew
Ok this worked. Looks like a cargo clean
must have fixed my issue, though IIRC I had done this...
Maybe my terminal sessions restarted and libtiff
could be found now...
Everything is working now though 👍
Apologies and thanks for the help.
Definitely running arm64
and latest homebrew (only just installed for the first time)
Hit the same issue today, cargo clean
and restarting terminal worked!
This seems to be the line it's struggling with:
https://github.com/georust/proj/blob/3c33538e41eae09409d94ab990b45516da216c0d/proj-sys/build.rs#L107-L110