Skip to content
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

Ubuntu 20.04 LTS error: linking with cc failed: exit status: 1 #13018

Closed
2 tasks done
polarbeargo opened this issue Dec 12, 2023 · 3 comments
Closed
2 tasks done

Ubuntu 20.04 LTS error: linking with cc failed: exit status: 1 #13018

polarbeargo opened this issue Dec 12, 2023 · 3 comments
Labels
bug Something isn't working rust Related to Rust Polars

Comments

@polarbeargo
Copy link

polarbeargo commented Dec 12, 2023

Checks

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest version of Polars.

Reproducible example

I'm working in the docker container. I use the command ln -s /sample_project/target /usercode/sample_project/ to create a symbolic link (symlink) for the target folder then run example/read_csv use cargo run.

rustc --version
rustc 1.74.1 (a28077b28 2023-12-04)
cargo --version
cargo 1.74.1 (ecb9851af 2023-10-18)

Cargo.toml:

[dependencies]
polars = { version = "0.33.0", features = ["lazy", "csv"] }

[features]
write_output = ["polars/parquet"]
default = ["write_output"]

Log output

 Compiling sample_project v0.1.0 (/usercode/sample_project)
error: linking with `cc` failed: exit status: 1
  |
  = note: LC_ALL="C" PATH="/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/openvscode-server/bin/remote-cli:/root/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" VSLANG="1033" "cc" "-m64" "/tmp/rustcEJtG59/symbols.o" "/usercode/sample_project/target/debug/deps/sample_project-d5a42a8087b4daad.11p2f0qh8pjogrps.rcgu.o" "/usercode/sample_project/target/debug/deps/sample_project-d5a42a8087b4daad.14j0wtj0uzz117fo.rcgu.o" "/usercode/sample_project/target/debug/deps/sample_project-d5a42a8087b4daad.14tpuzhd9e3hutt8.rcgu.o" "/usercode/sample_project/target/debug/deps/sample_project-d5a42a8087b4daad.18atvx6rpaxgqmw5.rcgu.o" "/usercode/sample_project/target/debug/deps/sample_project-d5a42a8087b4daad.1b0oosg4ze5xktyf.rcgu.o" "/usercode/sample_project/target/debug/deps/sample_project-d5a42a8087b4daad.1b51awnkdz1dp7p2.rcgu.o" "/usercode/sample_project/target/debug/deps/sample_project-d5a42a8087b4daad.1xaocujh3e76udiz.rcgu.o" "/usercode/sample_project/target/debug/deps/sample_project-d5a42a8087b4daad.21dspzsxc2c02k1l.rcgu.o" "/usercode/sample_project/target/debug/deps/sample_project-d5a42a8087b4daad.27brq48v7evaaa12.rcgu.o" "/usercode/sample_project/target/debug/deps/sample_project-d5a42a8087b4daad.2h82a13me0q3sy8g.rcgu.o" "/usercode/sample_project/target/debug/deps/sample_project-d5a42a8087b4daad.2ioibhd5qxh98dzm.rcgu.o" "/usercode/sample_project/target/debug/deps/sample_project-d5a42a8087b4daad.2mvqrqn4hf3djyiq.rcgu.o" "/usercode/sample_project/target/debug/deps/sample_project-d5a42a8087b4daad.2rnnzii0y43hwm6x.rcgu.o" "/usercode/sample_project/target/debug/deps/sample_project-d5a42a8087b4daad.2s6sjtta5el2p8ip.rcgu.o" "/usercode/sample_project/target/debug/deps/sample_project-d5a42a8087b4daad.2tf0u0wz2a8hn2nu.rcgu.o" "/usercode/sample_project/target/debug/deps/sample_project-d5a42a8087b4daad.2w6bwgfdv8tk28md.rcgu.o" "/usercode/sample_project/target/debug/deps/sample_project-d5a42a8087b4daad.2yw3825q2xies1vl.rcgu.o" "/usercode/sample_project/target/debug/deps/sample_project-d5a42a8087b4daad.37iol6j7k998g1lj.rcgu.o" "/usercode/sample_project/target/debug/deps/sample_project-d5a42a8087b4daad.38ox7t1mxamp7d46.rcgu.o" "/usercode/sample_project/target/debug/deps/sample_project-d5a42a8087b4daad.3d8k7motkwi3usef.rcgu.o" "/usercode/sample_project/target/debug/deps/sample_project-d5a42a8087b4daad.3f09139qn07bmyo0.rcgu.o" "/usercode/sample_project/target/debug/deps/sample_project-d5a42a8087b4daad.3jxsxou0eawmqp4s.rcgu.o" "/usercode/sample_project/target/debug/deps/sample_project-d5a42a8087b4daad.3k38vylwreqs985d.rcgu.o" "/usercode/sample_project/target/debug/deps/sample_project-d5a42a8087b4daad.3nk4ak963dzbu6df.rcgu.o" "/usercode/sample_project/target/debug/deps/sample_project-d5a42a8087b4daad.3o9kldue6rid1k9c.rcgu.o" "/usercode/sample_project/target/debug/deps/sample_project-d5a42a8087b4daad.3o9wwpaiud2sxmg9.rcgu.o" "/usercode/sample_project/target/debug/deps/sample_project-d5a42a8087b4daad.3p88qvfzijxouuag.rcgu.o" "/usercode/sample_project/target/debug/deps/sample_project-d5a42a8087b4daad.3raa55ni8dgsa3xy.rcgu.o" "/usercode/sample_project/target/debug/deps/sample_project-d5a42a8087b4daad.3sjwlbt57rn4beel.rcgu.o" "/usercode/sample_project/target/debug/deps/sample_project-d5a42a8087b4daad.3tfxi4uydfhnyjiv.rcgu.o" "/usercode/sample_project/target/debug/deps/sample_project-d5a42a8087b4daad.3ujqonce4yo45ooj.rcgu.o" "/usercode/sample_project/target/debug/deps/sample_project-d5a42a8087b4daad.3w4nebcdz01q7zem.rcgu.o" "/usercode/sample_project/target/debug/deps/sample_project-d5a42a8087b4daad.3xe8twtcms8s2u2y.rcgu.o" "/usercode/sample_project/target/debug/deps/sample_project-d5a42a8087b4daad.3xslrrmm8s8uegkh.rcgu.o" "/usercode/sample_project/target/debug/deps/sample_project-d5a42a8087b4daad.43dqea18z0iz6vrl.rcgu.o" "/usercode/sample_project/target/debug/deps/sample_project-d5a42a8087b4daad.48pa0o3y4mr7x4nf.rcgu.o" "/usercode/sample_project/target/debug/deps/sample_project-d5a42a8087b4daad.4a8no4422b05of10.rcgu.o" "/usercode/sample_project/target/debug/deps/sample_project-d5a42a8087b4daad.4bprsn1yjkntwjcy.rcgu.o" "/usercode/sample_project/target/debug/deps/sample_project-d5a42a8087b4daad.4c6xs77mq6ajfkn0.rcgu.o" "/usercode/sample_project/target/debug/deps/sample_project-d5a42a8087b4daad.4eitm3dxwscevivg.rcgu.o" "/usercode/sample_project/target/debug/deps/sample_project-d5a42a8087b4daad.4lk8ifsthllb7ew9.rcgu.o" "/usercode/sample_project/target/debug/deps/sample_project-d5a42a8087b4daad.4lncpzavipye8pd6.rcgu.o" "/usercode/sample_project/target/debug/deps/sample_project-d5a42a8087b4daad.4mgdweeqt4g3fety.rcgu.o" "/usercode/sample_project/target/debug/deps/sample_project-d5a42a8087b4daad.4n9t5rqvz2uvmqmp.rcgu.o" "/usercode/sample_project/target/debug/deps/sample_project-d5a42a8087b4daad.4ogzp2zwgnsa8b8f.rcgu.o" "/usercode/sample_project/target/debug/deps/sample_project-d5a42a8087b4daad.4vavro1lalm8bsx3.rcgu.o" "/usercode/sample_project/target/debug/deps/sample_project-d5a42a8087b4daad.4whu78nm41ljfb0l.rcgu.o" "/usercode/sample_project/target/debug/deps/sample_project-d5a42a8087b4daad.4wubyffz5k9mhf86.rcgu.o" "/usercode/sample_project/target/debug/deps/sample_project-d5a42a8087b4daad.514s1o5sfxeo9ok0.rcgu.o" "/usercode/sample_project/target/debug/deps/sample_project-d5a42a8087b4daad.51fbjy9jbjf9ei2j.rcgu.o" "/usercode/sample_project/target/debug/deps/sample_project-d5a42a8087b4daad.51varfwa7b22r5cf.rcgu.o" "/usercode/sample_project/target/debug/deps/sample_project-d5a42a8087b4daad.56ltnimrjphjk3ax.rcgu.o" "/usercode/sample_project/target/debug/deps/sample_project-d5a42a8087b4daad.579zd5smfx1c5zek.rcgu.o" "/usercode/sample_project/target/debug/deps/sample_project-d5a42a8087b4daad.5tnrzk76xih2bme.rcgu.o" "/usercode/sample_project/target/debug/deps/sample_project-d5a42a8087b4daad.63tvz2t7ik72l92.rcgu.o" "/usercode/sample_project/target/debug/deps/sample_project-d5a42a8087b4daad.dv8h3182cgxxgye.rcgu.o" "/usercode/sample_project/target/debug/deps/sample_project-d5a42a8087b4daad.exybhqj4jqf1htp.rcgu.o" "/usercode/sample_project/target/debug/deps/sample_project-d5a42a8087b4daad.h4mxrggk3z4b1v3.rcgu.o" "/usercode/sample_project/target/debug/deps/sample_project-d5a42a8087b4daad.i8i7hkjt8h8jqli.rcgu.o" "/usercode/sample_project/target/debug/deps/sample_project-d5a42a8087b4daad.m2me342hcykgdr6.rcgu.o" "/usercode/sample_project/target/debug/deps/sample_project-d5a42a8087b4daad.n9g4wby4xmfy1id.rcgu.o" "/usercode/sample_project/target/debug/deps/sample_project-d5a42a8087b4daad.pzb78bnrlouxfkp.rcgu.o" "/usercode/sample_project/target/debug/deps/sample_project-d5a42a8087b4daad.tr1915wn91hsgot.rcgu.o" "/usercode/sample_project/target/debug/deps/sample_project-d5a42a8087b4daad.u1oyrxhwi9jp09a.rcgu.o" "/usercode/sample_project/target/debug/deps/sample_project-d5a42a8087b4daad.wmcmg8kqum9mcuk.rcgu.o" "/usercode/sample_project/target/debug/deps/sample_project-d5a42a8087b4daad.2rb0sqwzq6m79wu9.rcgu.o" "-Wl,--as-needed" "-L" "/usercode/sample_project/target/debug/deps" "-L" "/usercode/sample_project/target/debug/build/lz4-sys-77da87944c434cd6/out" "-L" "/usercode/sample_project/target/debug/build/zstd-sys-57893a99d8c0e6b7/out" "-L" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/sample_project/target/debug/deps/libpolars-c94f6c59e539d39b.rlib" "/sample_project/target/debug/deps/libpolars_lazy-98c9c7a0faca1e66.rlib" "/sample_project/target/debug/deps/libglob-cdd4a7a9bb204fbf.rlib" "/sample_project/target/debug/deps/libpolars_plan-7b2e097c1676ad4b.rlib" "/sample_project/target/debug/deps/libpolars_io-55fe35aa7d62fc66.rlib" "/sample_project/target/debug/deps/libhome-a9ad72c6bcc01223.rlib" "/sample_project/target/debug/deps/libmemmap2-56e7029b2519a462.rlib" "/sample_project/target/debug/deps/liblexical-3ca9855b463619b9.rlib" "/sample_project/target/debug/deps/libfast_float-81d835994c2582c0.rlib" "/sample_project/target/debug/deps/libpolars_time-b1d58dc080967d1e.rlib" "/sample_project/target/debug/deps/libnow-fd0b834a5d21f012.rlib" "/sample_project/target/debug/deps/libpolars_ops-69c88cfe70b3f67f.rlib" "/sample_project/target/debug/deps/libargminmax-1de6bc9182ae2dbc.rlib" "/sample_project/target/debug/deps/libatoi-de51897541fdf03e.rlib" "/sample_project/target/debug/deps/libpolars_core-ca4a2827b0be3493.rlib" "/sample_project/target/debug/deps/libindexmap-0e1af6154322e70a.rlib" "/sample_project/target/debug/deps/libequivalent-ed9b4663e47e1edb.rlib" "/sample_project/target/debug/deps/libxxhash_rust-11a6bab463a1b573.rlib" "/sample_project/target/debug/deps/libcomfy_table-79e2305bb39cb967.rlib" "/sample_project/target/debug/deps/libunicode_width-1a4f3cf873e347a1.rlib" "/sample_project/target/debug/deps/libstrum-a45a03983f72b191.rlib" "/sample_project/target/debug/deps/libcrossterm-08a1effdebab755a.rlib" "/sample_project/target/debug/deps/libparking_lot-14df1c589f27e087.rlib" "/sample_project/target/debug/deps/libparking_lot_core-af9543a52656f58f.rlib" "/sample_project/target/debug/deps/libsmallvec-bb4fc8b42bcd811d.rlib" "/sample_project/target/debug/deps/liblock_api-91f0166d90aa1d35.rlib" "/sample_project/target/debug/deps/libbitflags-4e2db452d1be487c.rlib" "/sample_project/target/debug/deps/librand_distr-049f972a2864b879.rlib" "/sample_project/target/debug/deps/librand-d42da86293e27a79.rlib" "/sample_project/target/debug/deps/librand_chacha-5a6700ffaabb2633.rlib" "/sample_project/target/debug/deps/libppv_lite86-aab5e7766ea1eccc.rlib" "/sample_project/target/debug/deps/librand_core-20027aed01912f95.rlib" "/sample_project/target/debug/deps/libpolars_row-7909bf7c3b66eae5.rlib" "/sample_project/target/debug/deps/libsmartstring-310136562b93b43d.rlib" "/sample_project/target/debug/deps/libpolars_arrow-315ccdbd3d3f1bc1.rlib" "/sample_project/target/debug/deps/libpolars_utils-8fbe2cf540ce50db.rlib" "/sample_project/target/debug/deps/libpolars_error-4b6f7a15af08a5fc.rlib" "/sample_project/target/debug/deps/libregex-230c737b6083edc6.rlib" "/sample_project/target/debug/deps/libregex_automata-d044311170a30704.rlib" "/sample_project/target/debug/deps/libaho_corasick-e035e307c377dd7a.rlib" "/sample_project/target/debug/deps/libregex_syntax-63d8ab8e2055c07e.rlib" "/sample_project/target/debug/deps/libthiserror-73fc356d61d0f542.rlib" "/sample_project/target/debug/deps/libarrow2-85b0721340fb9291.rlib" "/sample_project/target/debug/deps/liblexical_core-defe82e63443e935.rlib" "/sample_project/target/debug/deps/liblexical_write_float-2fd6e8302e298b0e.rlib" "/sample_project/target/debug/deps/liblexical_write_integer-2f0d216ca1352eaa.rlib" "/sample_project/target/debug/deps/liblexical_parse_float-1dc9e42acb09c0cc.rlib" "/sample_project/target/debug/deps/liblexical_parse_integer-b02d6037b240314a.rlib" "/sample_project/target/debug/deps/liblexical_util-ba75d636986e74ff.rlib" "/sample_project/target/debug/deps/libstatic_assertions-ada383b96cf5cc4f.rlib" "/sample_project/target/debug/deps/libforeign_vec-a3dda949288b9883.rlib" "/sample_project/target/debug/deps/libsimdutf8-b8eec2a11b59256c.rlib" "/sample_project/target/debug/deps/libdyn_clone-036d0302a32aa28a.rlib" "/sample_project/target/debug/deps/libbase64-38f8afbc0af88a01.rlib" "/sample_project/target/debug/deps/libethnum-3194473b72f6205f.rlib" "/sample_project/target/debug/deps/libparquet2-98d2b0bd278c233a.rlib" "/sample_project/target/debug/deps/libzstd-35f51552ae8bb34e.rlib" "/sample_project/target/debug/deps/libzstd_safe-a94b90442e13f01e.rlib" "/sample_project/target/debug/deps/libzstd_sys-ae1e5a89759d723d.rlib" "/sample_project/target/debug/deps/liblz4-31f0f9cf18eb3579.rlib" "/sample_project/target/debug/deps/liblz4_sys-b6b6c6828419616a.rlib" "/sample_project/target/debug/deps/libflate2-635287541d54efb3.rlib" "/sample_project/target/debug/deps/libminiz_oxide-f732f5e7712b095b.rlib" "/sample_project/target/debug/deps/libadler-f964279c2e86f4e3.rlib" "/sample_project/target/debug/deps/libcrc32fast-2a4e876ef1472818.rlib" "/sample_project/target/debug/deps/libbrotli-ad602fdfc69f52fe.rlib" "/sample_project/target/debug/deps/libbrotli_decompressor-663b7527ca179390.rlib" "/sample_project/target/debug/deps/liballoc_stdlib-8cdfd3e09b87d11e.rlib" "/sample_project/target/debug/deps/liballoc_no_stdlib-60af8930dc160716.rlib" "/sample_project/target/debug/deps/libasync_stream-997d6c3fd2019dfd.rlib" "/sample_project/target/debug/deps/libstreaming_decompression-c9981a58932d6d61.rlib" "/sample_project/target/debug/deps/libfallible_streaming_iterator-8fac5a1639bffce6.rlib" "/sample_project/target/debug/deps/libparquet_format_safe-aa12baf643bc93e4.rlib" "/sample_project/target/debug/deps/libfutures-851539cf020bd60b.rlib" "/sample_project/target/debug/deps/libfutures_executor-4926b84b0b4474fa.rlib" "/sample_project/target/debug/deps/libfutures_util-74660ff3b31e6a5f.rlib" "/sample_project/target/debug/deps/libmemchr-af41462fecef9a4f.rlib" "/sample_project/target/debug/deps/libfutures_io-e662074798cfee20.rlib" "/sample_project/target/debug/deps/libslab-ccb515b947468430.rlib" "/sample_project/target/debug/deps/libfutures_channel-bbc501093e343af2.rlib" "/sample_project/target/debug/deps/libpin_project_lite-b37f0e067f12070d.rlib" "/sample_project/target/debug/deps/libfutures_sink-6e89ae5dc8a7437a.rlib" "/sample_project/target/debug/deps/libfutures_task-f5910206b05be92e.rlib" "/sample_project/target/debug/deps/libpin_utils-bb8f5788293fdaa6.rlib" "/sample_project/target/debug/deps/libfutures_core-029e7e022e4c9463.rlib" "/sample_project/target/debug/deps/libsnap-847e24c8c1da5d2c.rlib" "/sample_project/target/debug/deps/libchrono-165128175df017d8.rlib" "/sample_project/target/debug/deps/libiana_time_zone-bd91b90375eebd84.rlib" "/sample_project/target/debug/deps/libstrength_reduce-3b390a35d7130945.rlib" "/sample_project/target/debug/deps/libmultiversion-8a65ad683efed5bf.rlib" "/sample_project/target/debug/deps/libtarget_features-3953213eb35bf6db.rlib" "/sample_project/target/debug/deps/libarrow_format-863175b144406467.rlib" "/sample_project/target/debug/deps/libserde-5128e5c6aa8d71e6.rlib" "/sample_project/target/debug/deps/libplanus-c7b5efdc2588dce3.rlib" "/sample_project/target/debug/deps/libarray_init_cursor-eb2756da81a4a9f0.rlib" "/sample_project/target/debug/deps/libhashbrown-62f680550a4930d1.rlib" "/sample_project/target/debug/deps/liballocator_api2-b61f305218155da6.rlib" "/sample_project/target/debug/deps/libnum_traits-8c377e221d3a6c19.rlib" "/sample_project/target/debug/deps/librayon-15230dad95d2a718.rlib" "/sample_project/target/debug/deps/librayon_core-af774f83cd7d1e79.rlib" "/sample_project/target/debug/deps/libcrossbeam_deque-6495f8cf7b805781.rlib" "/sample_project/target/debug/deps/libcrossbeam_epoch-129ae717e74930eb.rlib" "/sample_project/target/debug/deps/libmemoffset-9e36fc30f85a1d9e.rlib" "/sample_project/target/debug/deps/libscopeguard-3fc8d8c12a2f4305.rlib" "/sample_project/target/debug/deps/libcrossbeam_utils-cf2ae1215288967c.rlib" "/sample_project/target/debug/deps/libeither-75a2e853a0c29cec.rlib" "/sample_project/target/debug/deps/libbytemuck-199aebb847e52de1.rlib" "/sample_project/target/debug/deps/libahash-25d16adbc33bfc01.rlib" "/sample_project/target/debug/deps/libgetrandom-605d596894c86d12.rlib" "/sample_project/target/debug/deps/liblibc-e734eb8eb2e904b8.rlib" "/sample_project/target/debug/deps/libonce_cell-27a4a39a61a8812c.rlib" "/sample_project/target/debug/deps/libcfg_if-a089730e96456fc4.rlib" "/sample_project/target/debug/deps/libzerocopy-a1e376786611cc84.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-b149a04e58514815.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-66ab26aded3b7021.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-203bd07e88f5499a.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr-944cc9212e8025af.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-75c8462d252ad270.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-22352d501faf9820.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-572a7f05bd234c36.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-34e8486002d91949.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-42409efdb396b783.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-4fd4035a411de739.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-8a674d35d1eb7c28.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-5e6a3884dc55082a.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-49f8650898f03f75.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-55f4044cbfa42566.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-423f83c599bec464.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-9a7d54e02ce8af0d.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-c9af672b38877288.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-951d12e06c2387f8.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-9908bc779e4ab019.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/usercode/sample_project/target/debug/deps/sample_project-d5a42a8087b4daad" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs"
  = note: collect2: fatal error: ld terminated with signal 9 [Killed]
          compilation terminated.

Issue description

I use the command ln -s /sample_project/target /usercode/sample_project/ to create a symbolic link (symlink) for the target folder. The crate itself builds fine, however, example/read_csv causes the linking error while executing the cargo run on Ubuntu 20.04 LTS

Expected behavior

Should be able to run successfully without linking with cc failed like it run successfully on Mac OS.

Installed versions

Cargo.toml:

[dependencies]
polars = { version = "0.33.0", features = ["lazy", "csv"] }

[features]
write_output = ["polars/parquet"]
default = ["write_output"]
@polarbeargo polarbeargo added bug Something isn't working rust Related to Rust Polars labels Dec 12, 2023
@ritchie46
Copy link
Member

This seems something in your setup. What do you want us to do here?

@polarbeargo
Copy link
Author

polarbeargo commented Dec 12, 2023

I'm not sure what is missing cause this linking error. I also checked other similar issue 1, issue 2 it seems the linking error is cause by missing packages needed to compile but I didn't see any not find in my log.
Dockerfile(relate to system build):

FROM ubuntu:20.04

# Avoid prompts from apt
ARG DEBIAN_FRONTEND=noninteractive

# Update and install system build dependencies
RUN apt-get update && apt-get install -y \
   build-essential \
   curl \
   git \
   pkg-config \
   libssl-dev \
   ca-certificates
   
# Install Rust
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y

# Add cargo to PATH
ENV PATH="/root/.cargo/bin:${PATH}"
 

@polarbeargo
Copy link
Author

polarbeargo commented Dec 13, 2023

No worries I just solved this linking error by running the following command:

rustup self uninstall & curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh

Thank you so much for willing to help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working rust Related to Rust Polars
Projects
None yet
Development

No branches or pull requests

2 participants