Rust: 였λ₯˜: `cc`둜 μ—°κ²° μ‹€νŒ¨: μ’…λ£Œ μ½”λ“œ: 1(μ§€λ‚œ 2μ£Ό μ΄λ‚΄μ—λ§Œ λ‚˜νƒ€λ‚¨)

에 λ§Œλ“  2015λ…„ 05μ›” 11일  Β·  52μ½”λ©˜νŠΈ  Β·  좜처: rust-lang/rust

이것은 λ…Ή 포트 μ˜€λ””μ˜€ μƒμžμ˜ λ¬Έμ œμž…λ‹ˆλ‹€.

TravisλŠ” 졜근 μ•½ 2μ£Ό 전에 μœ„μ˜ λͺ¨λ“  ν•­λͺ©μ—μ„œ μ œλŒ€λ‘œ μž‘λ™ν–ˆμŒμ—λ„ λΆˆκ΅¬ν•˜κ³  μ•Όκ°„ 및 베타와 둜컬 컴퓨터 λͺ¨λ‘μ—μ„œ μ‹€νŒ¨ν•˜κΈ° μ‹œμž‘ν–ˆμŠ΅λ‹ˆλ‹€( μ—¬κΈ° μ°Έμ‘° ).

크레이트 μžμ²΄λŠ” 잘 λΉŒλ“œλ˜μ§€λ§Œ 두 예제 λͺ¨λ‘ μ—°κ²° 였λ₯˜(μœ„μ— 링크됨)λ₯Ό λ°œμƒμ‹œν‚΅λ‹ˆλ‹€.

@alexcrichton λ‚˜λŠ” 이것이 #16734와 관련이 μžˆμ„ 수 μžˆλ‹€κ³  μƒκ°ν–ˆμ§€λ§Œ 아직 ν•΄κ²° 방법을 κ°œλ°œν•˜κ±°λ‚˜ 리포지토리 λ‚΄μ—μ„œ 문제의 직접적인 원인을 식별할 수 μ—†μ—ˆμŠ΅λ‹ˆλ‹€. λ‚˜λŠ” λ˜ν•œ μ™œ 그것이 μ§€λ‚œ 2μ£Ό 이내에 λ°œμƒν•˜κΈ° μ‹œμž‘ν–ˆλŠ”μ§€ μ„€λͺ…ν•  수 μ—†μŠ΅λ‹ˆλ‹€. λ‹Ήμ‹ (λ˜λŠ” λ‹€λ₯Έ λˆ„κ΅°κ°€)이 아이디어가 μžˆλŠ” κ²½μš°μ— λŒ€λΉ„ν•˜μ—¬ κ²Œμ‹œν•  것이라고 μƒκ°ν–ˆμŠ΅λ‹ˆλ‹€.

κ°€μž₯ μœ μš©ν•œ λŒ“κΈ€

2년이 μ§€λ‚œ μ§€κΈˆλ„ 이런 일이 λ²Œμ–΄μ§€κ³  μžˆλŠ” 것 κ°™μŠ΅λ‹ˆκΉŒ? +1

λͺ¨λ“  52 λŒ“κΈ€

였λ₯˜ λ‘œκ·Έκ°€ λ³€κ²½λ˜μ—ˆκ±°λ‚˜ 사라진 것 κ°™μŠ΅λ‹ˆλ‹€. μƒˆλ‘œμš΄ 였λ₯˜ 둜그 μ„ΈνŠΈλ₯Ό μš”μ ν•  수 μžˆμŠ΅λ‹ˆκΉŒ?

@alexcrichton μ•„, μ£„μ†‘ν•©λ‹ˆλ‹€! λ‹€μŒμ€ μƒˆλ‘œμš΄ 였λ₯˜ 둜그 μž…λ‹ˆλ‹€.

맀λ ₯적인! λ‚˜λŠ” 이것이 μ•„λ§ˆλ„ Rust 버그가 μ•„λ‹ˆλΌ Cargo 버그라고 μƒκ°ν•˜μ§€λ§Œ, 그것은... ν™•μ‹€νžˆ ν₯λ―Έλ‘­μŠ΅λ‹ˆλ‹€. μ—¬κΈ°μ„œ λ¬Έμ œλŠ” 링컀가 λ‹€μŒκ³Ό 같이 ν˜ΈμΆœλœλ‹€λŠ” κ²ƒμž…λ‹ˆλ‹€.

cc -o foo/libfoo.so -L foo -lfoo

이 경우 foo λŠ” portaudio μ΄μ§€λ§Œ λ‘˜ λ‹€ libportaudio.so _and_ μ‹œμŠ€ν…œ libportaudio.so λŒ€ν•΄ λ§ν¬ν•˜λŠ” 동적 라이브러리λ₯Ό μƒμ„±ν•˜κ³  μžˆμŠ΅λ‹ˆλ‹€. . λΆˆν–‰νžˆλ„ μ΄λŸ¬ν•œ 이름은 λ™μΌν•˜λ―€λ‘œ 링컀가 좜λ ₯ libportaudio.so 파일 _first_λ₯Ό μƒμ„±ν•œ λ‹€μŒ 이λ₯Ό μ—°κ²°ν•˜λ €κ³  μ‹œλ„ν•˜λŠ” κ²ƒμœΌλ‘œ λ³΄μž…λ‹ˆλ‹€(κ·ΈλŸ¬λ‚˜ μœ νš¨ν•˜μ§€ μ•ŠκΈ° λ•Œλ¬Έμ— 였λ₯˜κ°€ λ°œμƒν•©λ‹ˆλ‹€).

헐; 박사; 이것은 https://github.com/rust-lang/cargo/commit/27efa7ba03a2054bf8b62f8d5c568918b7d35b0d 둜 인해 λ°œμƒν•˜λ©° 크레이트의 이름을 λ°”κΎΈκ±°λ‚˜ dylibλ₯Ό λΉŒλ“œν•˜μ§€ μ•ŠμŒμœΌλ‘œμ¨ μˆ˜μ •λ©λ‹ˆλ‹€.

ν•˜μ§€λ§Œ μ§€κΈˆμ€ 이 버그가 Rust 버그가 μ•„λ‹ˆκΈ° λ•Œλ¬Έμ— λ‹«κ² μŠ΅λ‹ˆλ‹€. κ·ΈλŸ¬λ‚˜ 이 μ‚¬μš© 사둀가 μž‘λ™ν•˜λ„λ‘ ν•˜λŠ” 데 관심이 μžˆλ‹€λ©΄ Cargo에 λŒ€ν•œ 버그λ₯Ό μ—΄μ–΄ μ΅œμƒμœ„ μˆ˜μ€€μ—μ„œ 파일 이름에 ν•΄μ‹œλ₯Ό λ‹€μ‹œ μΆ”κ°€ν•  수 μžˆμŠ΅λ‹ˆκΉŒ? μΆ”κ°€ν•˜λŠ” 것이 합리적인 ꡬ성인 것 κ°™μŠ΅λ‹ˆλ‹€. :)

μ €λŠ” μš°λΆ„νˆ¬ 12.04λ₯Ό μ‚¬μš© μ€‘μž…λ‹ˆλ‹€.

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 12.04.5 LTS
Release:    12.04
Codename:   precise

$ sudo cargo build --verbose > cargo.log 2>&1
   Compiling bitflags v0.1.1
     Running `rustc /home/alanb/.cargo/registry/src/github.com-0a35038f75765ae4/bitflags-0.1.1/src/lib.rs --crate-name bitflags --crate-type lib -g -C metadata=dd68b8369bcd8ff0 -C extra-filename=-dd68b8369bcd8ff0 --out-dir /home/alanb/src/git/hub/exa/target/debug/deps --emit=dep-info,link -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps -Awarnings`
   Compiling byteorder v0.3.10
     Running `rustc /home/alanb/.cargo/registry/src/github.com-0a35038f75765ae4/byteorder-0.3.10/src/lib.rs --crate-name byteorder --crate-type lib -g -C metadata=399c175f6a7726ac -C extra-filename=-399c175f6a7726ac --out-dir /home/alanb/src/git/hub/exa/target/debug/deps --emit=dep-info,link -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps -Awarnings`
   Compiling matches v0.1.2
     Running `rustc /home/alanb/.cargo/registry/src/github.com-0a35038f75765ae4/matches-0.1.2/lib.rs --crate-name matches --crate-type lib -g -C metadata=68291f81832fc22d -C extra-filename=-68291f81832fc22d --out-dir /home/alanb/src/git/hub/exa/target/debug/deps --emit=dep-info,link -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps -Awarnings`
   Compiling rustc-serialize v0.3.15
     Running `rustc /home/alanb/.cargo/registry/src/github.com-0a35038f75765ae4/rustc-serialize-0.3.15/src/lib.rs --crate-name rustc_serialize --crate-type lib -g -C metadata=c1e8163a38ed3d54 -C extra-filename=-c1e8163a38ed3d54 --out-dir /home/alanb/src/git/hub/exa/target/debug/deps --emit=dep-info,link -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps -Awarnings`
   Compiling unicode-width v0.1.1
     Running `rustc /home/alanb/.cargo/registry/src/github.com-0a35038f75765ae4/unicode-width-0.1.1/src/lib.rs --crate-name unicode_width --crate-type lib -g --cfg feature=\"default\" -C metadata=130fd712a1a101ee -C extra-filename=-130fd712a1a101ee --out-dir /home/alanb/src/git/hub/exa/target/debug/deps --emit=dep-info,link -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps -Awarnings`
   Compiling ansi_term v0.5.2
     Running `rustc /home/alanb/.cargo/registry/src/github.com-0a35038f75765ae4/ansi_term-0.5.2/src/ansi_term.rs --crate-name ansi_term --crate-type lib -g -C metadata=099aa38433e28470 -C extra-filename=-099aa38433e28470 --out-dir /home/alanb/src/git/hub/exa/target/debug/deps --emit=dep-info,link -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps -Awarnings`
   Compiling threadpool v0.1.4
     Running `rustc /home/alanb/.cargo/registry/src/github.com-0a35038f75765ae4/threadpool-0.1.4/src/lib.rs --crate-name threadpool --crate-type lib -g -C metadata=7afb0ed74cdfb4ee -C extra-filename=-7afb0ed74cdfb4ee --out-dir /home/alanb/src/git/hub/exa/target/debug/deps --emit=dep-info,link -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps -Awarnings`
   Compiling pkg-config v0.3.5
     Running `rustc /home/alanb/.cargo/registry/src/github.com-0a35038f75765ae4/pkg-config-0.3.5/src/lib.rs --crate-name pkg_config --crate-type lib -g -C metadata=8cd0cf26131c0646 -C extra-filename=-8cd0cf26131c0646 --out-dir /home/alanb/src/git/hub/exa/target/debug/deps --emit=dep-info,link -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps -Awarnings`
   Compiling gcc v0.3.8
     Running `rustc /home/alanb/.cargo/registry/src/github.com-0a35038f75765ae4/gcc-0.3.8/src/lib.rs --crate-name gcc --crate-type lib -g -C metadata=f054ee6639177d8d -C extra-filename=-f054ee6639177d8d --out-dir /home/alanb/src/git/hub/exa/target/debug/deps --emit=dep-info,link -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps -Awarnings`
   Compiling libc v0.1.8
     Running `rustc /home/alanb/.cargo/registry/src/github.com-0a35038f75765ae4/libc-0.1.8/rust/src/liblibc/lib.rs --crate-name libc --crate-type lib -g --cfg feature=\"cargo-build\" --cfg feature=\"default\" -C metadata=ef5cbad4ef5c7a1e -C extra-filename=-ef5cbad4ef5c7a1e --out-dir /home/alanb/src/git/hub/exa/target/debug/deps --emit=dep-info,link -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps -Awarnings`
   Compiling natord v1.0.8
     Running `rustc /home/alanb/.cargo/registry/src/github.com-0a35038f75765ae4/natord-1.0.8/lib.rs --crate-name natord --crate-type lib -g -C metadata=a05c856d0c2a4fbf -C extra-filename=-a05c856d0c2a4fbf --out-dir /home/alanb/src/git/hub/exa/target/debug/deps --emit=dep-info,link -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps -Awarnings`
/home/alanb/.cargo/registry/src/github.com-0a35038f75765ae4/natord-1.0.8/lib.rs:88:34: 97:26 note: shadowed label `'digits` declared here
/home/alanb/.cargo/registry/src/github.com-0a35038f75765ae4/natord-1.0.8/lib.rs:88                         'digits: loop {
/home/alanb/.cargo/registry/src/github.com-0a35038f75765ae4/natord-1.0.8/lib.rs:89                             read_left!();
/home/alanb/.cargo/registry/src/github.com-0a35038f75765ae4/natord-1.0.8/lib.rs:90                             read_right!();
/home/alanb/.cargo/registry/src/github.com-0a35038f75765ae4/natord-1.0.8/lib.rs:91                             match (ll, rr) {
/home/alanb/.cargo/registry/src/github.com-0a35038f75765ae4/natord-1.0.8/lib.rs:92                                 (Some(ll_), Some(rr_)) => return_unless_equal!(ll_.cmp(&rr_)),
/home/alanb/.cargo/registry/src/github.com-0a35038f75765ae4/natord-1.0.8/lib.rs:93                                 (Some(_), None) => return Greater,
                                                                                   ...
   Compiling regex-syntax v0.1.2
     Running `rustc /home/alanb/.cargo/registry/src/github.com-0a35038f75765ae4/regex-syntax-0.1.2/src/lib.rs --crate-name regex_syntax --crate-type lib -g -C metadata=74cdf8e4e9018a0c -C extra-filename=-74cdf8e4e9018a0c --out-dir /home/alanb/src/git/hub/exa/target/debug/deps --emit=dep-info,link -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps -Awarnings`
   Compiling term_grid v0.1.1
     Running `rustc /home/alanb/.cargo/registry/src/github.com-0a35038f75765ae4/term_grid-0.1.1/src/lib.rs --crate-name term_grid --crate-type lib -g -C metadata=94d230454780f24c -C extra-filename=-94d230454780f24c --out-dir /home/alanb/src/git/hub/exa/target/debug/deps --emit=dep-info,link -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps --extern unicode_width=/home/alanb/src/git/hub/exa/target/debug/deps/libunicode_width-130fd712a1a101ee.rlib -Awarnings`
   Compiling pad v0.1.4
     Running `rustc /home/alanb/.cargo/registry/src/github.com-0a35038f75765ae4/pad-0.1.4/src/lib.rs --crate-name pad --crate-type lib -g -C metadata=8b41ff1b2f475326 -C extra-filename=-8b41ff1b2f475326 --out-dir /home/alanb/src/git/hub/exa/target/debug/deps --emit=dep-info,link -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps --extern unicode_width=/home/alanb/src/git/hub/exa/target/debug/deps/libunicode_width-130fd712a1a101ee.rlib -Awarnings`
   Compiling tz v0.2.0
     Running `rustc /home/alanb/.cargo/registry/src/github.com-0a35038f75765ae4/tz-0.2.0/src/lib.rs --crate-name tz --crate-type lib -g -C metadata=908fc5615f8315f2 -C extra-filename=-908fc5615f8315f2 --out-dir /home/alanb/src/git/hub/exa/target/debug/deps --emit=dep-info,link -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps --extern byteorder=/home/alanb/src/git/hub/exa/target/debug/deps/libbyteorder-399c175f6a7726ac.rlib -Awarnings`
   Compiling memchr v0.1.3
     Running `rustc /home/alanb/.cargo/registry/src/github.com-0a35038f75765ae4/memchr-0.1.3/src/lib.rs --crate-name memchr --crate-type lib -g -C metadata=38e2ee286f7e4bdb -C extra-filename=-38e2ee286f7e4bdb --out-dir /home/alanb/src/git/hub/exa/target/debug/deps --emit=dep-info,link -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps --extern libc=/home/alanb/src/git/hub/exa/target/debug/deps/liblibc-ef5cbad4ef5c7a1e.rlib -Awarnings`
   Compiling users v0.4.2
     Running `rustc /home/alanb/.cargo/registry/src/github.com-0a35038f75765ae4/users-0.4.2/src/lib.rs --crate-name users --crate-type lib -g -C metadata=20f00ef534fe78a3 -C extra-filename=-20f00ef534fe78a3 --out-dir /home/alanb/src/git/hub/exa/target/debug/deps --emit=dep-info,link -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps --extern libc=/home/alanb/src/git/hub/exa/target/debug/deps/liblibc-ef5cbad4ef5c7a1e.rlib -Awarnings`
   Compiling num_cpus v0.2.6
     Running `rustc /home/alanb/.cargo/registry/src/github.com-0a35038f75765ae4/num_cpus-0.2.6/src/lib.rs --crate-name num_cpus --crate-type lib -g -C metadata=16707c6acca9fe91 -C extra-filename=-16707c6acca9fe91 --out-dir /home/alanb/src/git/hub/exa/target/debug/deps --emit=dep-info,link -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps --extern libc=/home/alanb/src/git/hub/exa/target/debug/deps/liblibc-ef5cbad4ef5c7a1e.rlib -Awarnings`
   Compiling rand v0.3.8
     Running `rustc /home/alanb/.cargo/registry/src/github.com-0a35038f75765ae4/rand-0.3.8/src/lib.rs --crate-name rand --crate-type lib -g -C metadata=de6cdb9e4fd93d55 -C extra-filename=-de6cdb9e4fd93d55 --out-dir /home/alanb/src/git/hub/exa/target/debug/deps --emit=dep-info,link -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps --extern libc=/home/alanb/src/git/hub/exa/target/debug/deps/liblibc-ef5cbad4ef5c7a1e.rlib -Awarnings`
   Compiling log v0.3.1
     Running `rustc /home/alanb/.cargo/registry/src/github.com-0a35038f75765ae4/log-0.3.1/src/lib.rs --crate-name log --crate-type lib -g -C metadata=8a6aba167994951e -C extra-filename=-8a6aba167994951e --out-dir /home/alanb/src/git/hub/exa/target/debug/deps --emit=dep-info,link -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps --extern libc=/home/alanb/src/git/hub/exa/target/debug/deps/liblibc-ef5cbad4ef5c7a1e.rlib -Awarnings`
   Compiling aho-corasick v0.2.1
     Running `rustc /home/alanb/.cargo/registry/src/github.com-0a35038f75765ae4/aho-corasick-0.2.1/src/lib.rs --crate-name aho_corasick --crate-type lib -g -C metadata=068913d97bcdea39 -C extra-filename=-068913d97bcdea39 --out-dir /home/alanb/src/git/hub/exa/target/debug/deps --emit=dep-info,link -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps --extern memchr=/home/alanb/src/git/hub/exa/target/debug/deps/libmemchr-38e2ee286f7e4bdb.rlib -Awarnings`
   Compiling libz-sys v0.1.6
     Running `rustc /home/alanb/.cargo/registry/src/github.com-0a35038f75765ae4/libz-sys-0.1.6/build.rs --crate-name build_script_build --crate-type bin -C prefer-dynamic -g --out-dir /home/alanb/src/git/hub/exa/target/debug/build/libz-sys-78922e0e40333890 --emit=dep-info,link -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps --extern pkg_config=/home/alanb/src/git/hub/exa/target/debug/deps/libpkg_config-8cd0cf26131c0646.rlib -Awarnings`
   Compiling libgit2-sys v0.2.18 (https://github.com/alexcrichton/git2-rs.git#889cf3dd)
     Running `rustc /home/alanb/.cargo/git/checkouts/git2-rs-8b74d411676c498c/master/libgit2-sys/build.rs --crate-name build_script_build --crate-type bin -C prefer-dynamic -g --out-dir /home/alanb/src/git/hub/exa/target/debug/build/libgit2-sys-ee62f8ed694e2d9b --emit=dep-info,link -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps --extern pkg_config=/home/alanb/src/git/hub/exa/target/debug/deps/libpkg_config-8cd0cf26131c0646.rlib -Awarnings`
   Compiling libssh2-sys v0.1.26
     Running `rustc /home/alanb/.cargo/registry/src/github.com-0a35038f75765ae4/libssh2-sys-0.1.26/build.rs --crate-name build_script_build --crate-type bin -C prefer-dynamic -g --out-dir /home/alanb/src/git/hub/exa/target/debug/build/libssh2-sys-197403f26ef746c2 --emit=dep-info,link -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps --extern pkg_config=/home/alanb/src/git/hub/exa/target/debug/deps/libpkg_config-8cd0cf26131c0646.rlib -Awarnings`
   Compiling openssl-sys v0.6.3
     Running `rustc /home/alanb/.cargo/registry/src/github.com-0a35038f75765ae4/openssl-sys-0.6.3/build.rs --crate-name build_script_build --crate-type bin -C prefer-dynamic -g --out-dir /home/alanb/src/git/hub/exa/target/debug/build/openssl-sys-f1940735b7e345d7 --emit=dep-info,link -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps --extern gcc=/home/alanb/src/git/hub/exa/target/debug/deps/libgcc-f054ee6639177d8d.rlib --extern pkg_config=/home/alanb/src/git/hub/exa/target/debug/deps/libpkg_config-8cd0cf26131c0646.rlib -Awarnings`
   Compiling getopts v0.2.11
     Running `rustc /home/alanb/.cargo/registry/src/github.com-0a35038f75765ae4/getopts-0.2.11/src/lib.rs --crate-name getopts --crate-type lib -g -C metadata=1dade5d0522f070b -C extra-filename=-1dade5d0522f070b --out-dir /home/alanb/src/git/hub/exa/target/debug/deps --emit=dep-info,link -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps --extern log=/home/alanb/src/git/hub/exa/target/debug/deps/liblog-8a6aba167994951e.rlib -Awarnings`
     Running `/home/alanb/src/git/hub/exa/target/debug/build/libz-sys-78922e0e40333890/build-script-build`
     Running `rustc /home/alanb/.cargo/registry/src/github.com-0a35038f75765ae4/libz-sys-0.1.6/src/lib.rs --crate-name libz_sys --crate-type lib -g -C metadata=78922e0e40333890 -C extra-filename=-78922e0e40333890 --out-dir /home/alanb/src/git/hub/exa/target/debug/deps --emit=dep-info,link -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps --extern libc=/home/alanb/src/git/hub/exa/target/debug/deps/liblibc-ef5cbad4ef5c7a1e.rlib -Awarnings -L native=/usr/lib/x86_64-linux-gnu -l z`
     Running `/home/alanb/src/git/hub/exa/target/debug/build/openssl-sys-f1940735b7e345d7/build-script-build`
     Running `rustc /home/alanb/.cargo/registry/src/github.com-0a35038f75765ae4/openssl-sys-0.6.3/src/lib.rs --crate-name openssl_sys --crate-type lib -g -C metadata=f1940735b7e345d7 -C extra-filename=-f1940735b7e345d7 --out-dir /home/alanb/src/git/hub/exa/target/debug/deps --emit=dep-info,link -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps --extern libc=/home/alanb/src/git/hub/exa/target/debug/deps/liblibc-ef5cbad4ef5c7a1e.rlib -Awarnings -L native=/usr/lib/x86_64-linux-gnu -L native=/home/alanb/src/git/hub/exa/target/debug/build/openssl-sys-f1940735b7e345d7/out -l ssl -l crypto -l static=old_openssl_shim`
     Running `/home/alanb/src/git/hub/exa/target/debug/build/libssh2-sys-197403f26ef746c2/build-script-build`
   Compiling regex v0.1.38
     Running `rustc /home/alanb/.cargo/registry/src/github.com-0a35038f75765ae4/regex-0.1.38/src/lib.rs --crate-name regex --crate-type lib -g --cfg feature=\"pattern\" -C metadata=32ebc1f1da8b6841 -C extra-filename=-32ebc1f1da8b6841 --out-dir /home/alanb/src/git/hub/exa/target/debug/deps --emit=dep-info,link -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps --extern regex_syntax=/home/alanb/src/git/hub/exa/target/debug/deps/libregex_syntax-74cdf8e4e9018a0c.rlib --extern aho_corasick=/home/alanb/src/git/hub/exa/target/debug/deps/libaho_corasick-068913d97bcdea39.rlib --extern memchr=/home/alanb/src/git/hub/exa/target/debug/deps/libmemchr-38e2ee286f7e4bdb.rlib -Awarnings`
     Running `/home/alanb/src/git/hub/exa/target/debug/build/libgit2-sys-ee62f8ed694e2d9b/build-script-build`
     Running `rustc /home/alanb/.cargo/registry/src/github.com-0a35038f75765ae4/libssh2-sys-0.1.26/lib.rs --crate-name libssh2_sys --crate-type lib -g -C metadata=197403f26ef746c2 -C extra-filename=-197403f26ef746c2 --out-dir /home/alanb/src/git/hub/exa/target/debug/deps --emit=dep-info,link -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps --extern libz_sys=/home/alanb/src/git/hub/exa/target/debug/deps/liblibz_sys-78922e0e40333890.rlib --extern openssl_sys=/home/alanb/src/git/hub/exa/target/debug/deps/libopenssl_sys-f1940735b7e345d7.rlib --extern libc=/home/alanb/src/git/hub/exa/target/debug/deps/liblibc-ef5cbad4ef5c7a1e.rlib -Awarnings -L native=/home/alanb/src/git/hub/exa/target/debug/build/libssh2-sys-197403f26ef746c2/out/lib -l static=ssh2 -L native=/usr/lib/x86_64-linux-gnu -L native=/usr/lib/x86_64-linux-gnu -L native=/home/alanb/src/git/hub/exa/target/debug/build/openssl-sys-f1940735b7e345d7/out`
   Compiling regex_macros v0.1.20
     Running `rustc /home/alanb/.cargo/registry/src/github.com-0a35038f75765ae4/regex_macros-0.1.20/src/lib.rs --crate-name regex_macros --crate-type dylib -C prefer-dynamic -g -C metadata=a3af5052cb03f830 -C extra-filename=-a3af5052cb03f830 --out-dir /home/alanb/src/git/hub/exa/target/debug/deps --emit=dep-info,link -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps --extern regex=/home/alanb/src/git/hub/exa/target/debug/deps/libregex-32ebc1f1da8b6841.rlib -Awarnings`
   Compiling num v0.1.25
     Running `rustc /home/alanb/.cargo/registry/src/github.com-0a35038f75765ae4/num-0.1.25/src/lib.rs --crate-name num --crate-type lib -g --cfg feature=\"rustc-serialize\" --cfg feature=\"default\" --cfg feature=\"rand\" --cfg feature=\"rational\" --cfg feature=\"bigint\" --cfg feature=\"complex\" -C metadata=7ad397ad0b46ae38 -C extra-filename=-7ad397ad0b46ae38 --out-dir /home/alanb/src/git/hub/exa/target/debug/deps --emit=dep-info,link -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps --extern rustc_serialize=/home/alanb/src/git/hub/exa/target/debug/deps/librustc_serialize-c1e8163a38ed3d54.rlib --extern rand=/home/alanb/src/git/hub/exa/target/debug/deps/librand-de6cdb9e4fd93d55.rlib -Awarnings`
   Compiling url v0.2.35
     Running `rustc /home/alanb/.cargo/registry/src/github.com-0a35038f75765ae4/url-0.2.35/src/lib.rs --crate-name url --crate-type lib -g -C metadata=a74304d08ea0134d -C extra-filename=-a74304d08ea0134d --out-dir /home/alanb/src/git/hub/exa/target/debug/deps --emit=dep-info,link -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps --extern rustc_serialize=/home/alanb/src/git/hub/exa/target/debug/deps/librustc_serialize-c1e8163a38ed3d54.rlib --extern matches=/home/alanb/src/git/hub/exa/target/debug/deps/libmatches-68291f81832fc22d.rlib -Awarnings`
   Compiling number_prefix v0.2.4
     Running `rustc /home/alanb/.cargo/registry/src/github.com-0a35038f75765ae4/number_prefix-0.2.4/src/lib.rs --crate-name number_prefix --crate-type lib -g -C metadata=790423cf7d755cf7 -C extra-filename=-790423cf7d755cf7 --out-dir /home/alanb/src/git/hub/exa/target/debug/deps --emit=dep-info,link -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps --extern num=/home/alanb/src/git/hub/exa/target/debug/deps/libnum-7ad397ad0b46ae38.rlib -Awarnings`
   Compiling locale v0.1.8
     Running `rustc /home/alanb/.cargo/registry/src/github.com-0a35038f75765ae4/locale-0.1.8/src/lib.rs --crate-name locale --crate-type lib -g -C metadata=c1d2b96a2e42e568 -C extra-filename=-c1d2b96a2e42e568 --out-dir /home/alanb/src/git/hub/exa/target/debug/deps --emit=dep-info,link -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps --extern num=/home/alanb/src/git/hub/exa/target/debug/deps/libnum-7ad397ad0b46ae38.rlib --extern libc=/home/alanb/src/git/hub/exa/target/debug/deps/liblibc-ef5cbad4ef5c7a1e.rlib -Awarnings`
   Compiling datetime v0.2.1
     Running `rustc /home/alanb/.cargo/registry/src/github.com-0a35038f75765ae4/datetime-0.2.1/src/lib.rs --crate-name datetime --crate-type lib -g -C metadata=f06f68585cec8716 -C extra-filename=-f06f68585cec8716 --out-dir /home/alanb/src/git/hub/exa/target/debug/deps --emit=dep-info,link -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps --extern tz=/home/alanb/src/git/hub/exa/target/debug/deps/libtz-908fc5615f8315f2.rlib --extern regex=/home/alanb/src/git/hub/exa/target/debug/deps/libregex-32ebc1f1da8b6841.rlib --extern pad=/home/alanb/src/git/hub/exa/target/debug/deps/libpad-8b41ff1b2f475326.rlib --extern regex_macros=/home/alanb/src/git/hub/exa/target/debug/deps/libregex_macros-a3af5052cb03f830.so --extern num=/home/alanb/src/git/hub/exa/target/debug/deps/libnum-7ad397ad0b46ae38.rlib --extern locale=/home/alanb/src/git/hub/exa/target/debug/deps/liblocale-c1d2b96a2e42e568.rlib -Awarnings`
     Running `rustc /home/alanb/.cargo/git/checkouts/git2-rs-8b74d411676c498c/master/libgit2-sys/lib.rs --crate-name libgit2_sys --crate-type lib -g -C metadata=ee62f8ed694e2d9b -C extra-filename=-ee62f8ed694e2d9b --out-dir /home/alanb/src/git/hub/exa/target/debug/deps --emit=dep-info,link -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps --extern libz_sys=/home/alanb/src/git/hub/exa/target/debug/deps/liblibz_sys-78922e0e40333890.rlib --extern openssl_sys=/home/alanb/src/git/hub/exa/target/debug/deps/libopenssl_sys-f1940735b7e345d7.rlib --extern libssh2_sys=/home/alanb/src/git/hub/exa/target/debug/deps/liblibssh2_sys-197403f26ef746c2.rlib --extern libc=/home/alanb/src/git/hub/exa/target/debug/deps/liblibc-ef5cbad4ef5c7a1e.rlib -Awarnings -L native=/home/alanb/src/git/hub/exa/target/debug/build/libgit2-sys-ee62f8ed694e2d9b/out/lib -L native=/home/alanb/src/git/hub/exa/target/debug/build/libssh2-sys-197403f26ef746c2/out/lib -L native=/usr/lib/x86_64-linux-gnu -l rt -l static=git2 -l static=ssh2 -l ssl -l crypto -l dl -l z -L native=/home/alanb/src/git/hub/exa/target/debug/build/libssh2-sys-197403f26ef746c2/out/lib -L native=/usr/lib/x86_64-linux-gnu -L native=/usr/lib/x86_64-linux-gnu -L native=/home/alanb/src/git/hub/exa/target/debug/build/openssl-sys-f1940735b7e345d7/out`
   Compiling git2 v0.2.13 (https://github.com/alexcrichton/git2-rs.git#889cf3dd)
     Running `rustc /home/alanb/.cargo/git/checkouts/git2-rs-8b74d411676c498c/master/src/lib.rs --crate-name git2 --crate-type lib -g -C metadata=2660a0a5365057d0 -C extra-filename=-2660a0a5365057d0 --out-dir /home/alanb/src/git/hub/exa/target/debug/deps --emit=dep-info,link -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps --extern url=/home/alanb/src/git/hub/exa/target/debug/deps/liburl-a74304d08ea0134d.rlib --extern libgit2_sys=/home/alanb/src/git/hub/exa/target/debug/deps/liblibgit2_sys-ee62f8ed694e2d9b.rlib --extern libc=/home/alanb/src/git/hub/exa/target/debug/deps/liblibc-ef5cbad4ef5c7a1e.rlib --extern bitflags=/home/alanb/src/git/hub/exa/target/debug/deps/libbitflags-dd68b8369bcd8ff0.rlib -Awarnings -L native=/home/alanb/src/git/hub/exa/target/debug/build/libgit2-sys-ee62f8ed694e2d9b/out/lib -L native=/home/alanb/src/git/hub/exa/target/debug/build/libssh2-sys-197403f26ef746c2/out/lib -L native=/usr/lib/x86_64-linux-gnu -L native=/home/alanb/src/git/hub/exa/target/debug/build/libssh2-sys-197403f26ef746c2/out/lib -L native=/usr/lib/x86_64-linux-gnu -L native=/usr/lib/x86_64-linux-gnu -L native=/home/alanb/src/git/hub/exa/target/debug/build/openssl-sys-f1940735b7e345d7/out`
   Compiling exa v0.3.0 (file:///home/alanb/src/git/hub/exa)
     Running `rustc src/main.rs --crate-name exa --crate-type bin -g --cfg feature=\"git2\" --cfg feature=\"git\" --cfg feature=\"default\" --out-dir /home/alanb/src/git/hub/exa/target/debug --emit=dep-info,link -L dependency=/home/alanb/src/git/hub/exa/target/debug -L dependency=/home/alanb/src/git/hub/exa/target/debug/deps --extern datetime=/home/alanb/src/git/hub/exa/target/debug/deps/libdatetime-f06f68585cec8716.rlib --extern locale=/home/alanb/src/git/hub/exa/target/debug/deps/liblocale-c1d2b96a2e42e568.rlib --extern libc=/home/alanb/src/git/hub/exa/target/debug/deps/liblibc-ef5cbad4ef5c7a1e.rlib --extern threadpool=/home/alanb/src/git/hub/exa/target/debug/deps/libthreadpool-7afb0ed74cdfb4ee.rlib --extern git2=/home/alanb/src/git/hub/exa/target/debug/deps/libgit2-2660a0a5365057d0.rlib --extern natord=/home/alanb/src/git/hub/exa/target/debug/deps/libnatord-a05c856d0c2a4fbf.rlib --extern getopts=/home/alanb/src/git/hub/exa/target/debug/deps/libgetopts-1dade5d0522f070b.rlib --extern ansi_term=/home/alanb/src/git/hub/exa/target/debug/deps/libansi_term-099aa38433e28470.rlib --extern num_cpus=/home/alanb/src/git/hub/exa/target/debug/deps/libnum_cpus-16707c6acca9fe91.rlib --extern pad=/home/alanb/src/git/hub/exa/target/debug/deps/libpad-8b41ff1b2f475326.rlib --extern bitflags=/home/alanb/src/git/hub/exa/target/debug/deps/libbitflags-dd68b8369bcd8ff0.rlib --extern number_prefix=/home/alanb/src/git/hub/exa/target/debug/deps/libnumber_prefix-790423cf7d755cf7.rlib --extern unicode_width=/home/alanb/src/git/hub/exa/target/debug/deps/libunicode_width-130fd712a1a101ee.rlib --extern users=/home/alanb/src/git/hub/exa/target/debug/deps/libusers-20f00ef534fe78a3.rlib --extern term_grid=/home/alanb/src/git/hub/exa/target/debug/deps/libterm_grid-94d230454780f24c.rlib -L native=/home/alanb/src/git/hub/exa/target/debug/build/libgit2-sys-ee62f8ed694e2d9b/out/lib -L native=/home/alanb/src/git/hub/exa/target/debug/build/libssh2-sys-197403f26ef746c2/out/lib -L native=/usr/lib/x86_64-linux-gnu -L native=/home/alanb/src/git/hub/exa/target/debug/build/libssh2-sys-197403f26ef746c2/out/lib -L native=/usr/lib/x86_64-linux-gnu -L native=/usr/lib/x86_64-linux-gnu -L native=/home/alanb/src/git/hub/exa/target/debug/build/openssl-sys-f1940735b7e345d7/out`
src/feature/xattr_linux.rs:4:5: 4:22 warning: unused import, #[warn(unused_imports)] on by default
src/feature/xattr_linux.rs:4 use std::ffi::CString;
                                 ^~~~~~~~~~~~~~~~~

λ˜‘κ°™λ‹€. regex extern ν¬λ ˆμ΄νŠΈκ°€ μžˆλŠ” macosxμ—μ„œ.

error: linking with `cc` failed: exit code: 1
note: "cc" "-m64" "-L" "/nfs/zfs-student-3/users/gbersac/.multirust/toolchains/nightly/lib/rustlib/x86_64-apple-darwin/lib" "/nfs/zfs-student-3/users/gbersac/project/expert-system/target/debug/expert_sys.0.o" "-o" "/nfs/zfs-student-3/users/gbersac/project/expert-system/target/debug/expert_sys" "-Wl,-dead_strip" "-nodefaultlibs" "-L" "/nfs/zfs-student-3/users/gbersac/project/expert-system/target/debug" "-L" "/nfs/zfs-student-3/users/gbersac/project/expert-system/target/debug/deps" "-L" "/nfs/zfs-student-3/users/gbersac/.multirust/toolchains/nightly/lib/rustlib/x86_64-apple-darwin/lib" "/nfs/zfs-student-3/users/gbersac/project/expert-system/target/debug/libexpert_sys.rlib" "/nfs/zfs-student-3/users/gbersac/project/expert-system/target/debug/deps/libregex-97f2411d639fa5c9.rlib" "/nfs/zfs-student-3/users/gbersac/project/expert-system/target/debug/deps/libaho_corasick-32050201217e44e8.rlib" "/nfs/zfs-student-3/users/gbersac/project/expert-system/target/debug/deps/libmemchr-940d9877eaa7970c.rlib" "/nfs/zfs-student-3/users/gbersac/project/expert-system/target/debug/deps/liblibc-adb8b8e7aaa2f93f.rlib" "/nfs/zfs-student-3/users/gbersac/project/expert-system/target/debug/deps/libregex_syntax-695a6c2a2c33e892.rlib" "/nfs/zfs-student-3/users/gbersac/.multirust/toolchains/nightly/lib/rustlib/x86_64-apple-darwin/lib/libstd-17a8ccbd.rlib" "/nfs/zfs-student-3/users/gbersac/.multirust/toolchains/nightly/lib/rustlib/x86_64-apple-darwin/lib/libcollections-17a8ccbd.rlib" "/nfs/zfs-student-3/users/gbersac/.multirust/toolchains/nightly/lib/rustlib/x86_64-apple-darwin/lib/librustc_unicode-17a8ccbd.rlib" "/nfs/zfs-student-3/users/gbersac/.multirust/toolchains/nightly/lib/rustlib/x86_64-apple-darwin/lib/librand-17a8ccbd.rlib" "/nfs/zfs-student-3/users/gbersac/.multirust/toolchains/nightly/lib/rustlib/x86_64-apple-darwin/lib/liballoc-17a8ccbd.rlib" "/nfs/zfs-student-3/users/gbersac/.multirust/toolchains/nightly/lib/rustlib/x86_64-apple-darwin/lib/liballoc_jemalloc-17a8ccbd.rlib" "/nfs/zfs-student-3/users/gbersac/.multirust/toolchains/nightly/lib/rustlib/x86_64-apple-darwin/lib/liblibc-17a8ccbd.rlib" "/nfs/zfs-student-3/users/gbersac/.multirust/toolchains/nightly/lib/rustlib/x86_64-apple-darwin/lib/libcore-17a8ccbd.rlib" "-l" "System" "-l" "pthread" "-l" "c" "-l" "m" "-Wl,-rpath,@loader_path/../../../../.multirust/toolchains/nightly/lib/rustlib/x86_64-apple-darwin/lib" "-Wl,-rpath,/usr/local/lib/rustlib/x86_64-apple-darwin/lib" "-l" "compiler-rt"
note: xcrun: error: invalid active developer path (/Applications/Xcode.app/Contents/Developer), missing xcrun at: /Applications/Xcode.app/Contents/Developer/usr/bin/xcrun

error: aborting due to previous error
Could not compile `expert_sys`.

macosxμ—μ„œ 쒅속성이 μ—†λŠ” κ°„λ‹¨ν•œ μ• ν”Œλ¦¬μΌ€μ΄μ…˜ μ‚¬μš©(https://github.com/yanns/rust-playground/tree/master/todo-list):

cargo run --target=x86_64-unknown-linux-musl
   Compiling todo-list v0.1.0 (file:///Users/yannsimon/projects/rust/rust-playground/todo-list)
error: linking with `cc` failed: exit code: 1
note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-nostdlib" "-static" "-Wl,--eh-frame-hdr" "-Wl,-(" "/Users/yannsimon/.multirust/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib/crt1.o" "/Users/yannsimon/.multirust/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib/crti.o" "-L" "/Users/yannsimon/.multirust/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib" "/Users/yannsimon/projects/rust/rust-playground/todo-list/target/x86_64-unknown-linux-musl/debug/todo_list.0.o" "-o" "/Users/yannsimon/projects/rust/rust-playground/todo-list/target/x86_64-unknown-linux-musl/debug/todo_list" "-Wl,--gc-sections" "-nodefaultlibs" "-L" "/Users/yannsimon/projects/rust/rust-playground/todo-list/target/x86_64-unknown-linux-musl/debug" "-L" "/Users/yannsimon/projects/rust/rust-playground/todo-list/target/x86_64-unknown-linux-musl/debug/deps" "-L" "/Users/yannsimon/.multirust/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib" "-Wl,-Bstatic" "-Wl,-Bdynamic" "/Users/yannsimon/.multirust/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib/libstd-d16b8f0e.rlib" "/Users/yannsimon/.multirust/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib/libcollections-d16b8f0e.rlib" "/Users/yannsimon/.multirust/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib/librustc_unicode-d16b8f0e.rlib" "/Users/yannsimon/.multirust/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib/librand-d16b8f0e.rlib" "/Users/yannsimon/.multirust/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib/liballoc-d16b8f0e.rlib" "/Users/yannsimon/.multirust/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib/liballoc_jemalloc-d16b8f0e.rlib" "/Users/yannsimon/.multirust/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib/liblibc-d16b8f0e.rlib" "/Users/yannsimon/.multirust/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib/libcore-d16b8f0e.rlib" "-l" "util" "-l" "compiler-rt" "/Users/yannsimon/.multirust/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib/crtn.o" "-Wl,-)"
note: clang: warning: argument unused during compilation: '-nodefaultlibs'
ld: unknown option: --as-needed
clang: error: linker command failed with exit code 1 (use -v to see invocation)

error: aborting due to previous error
error: Could not compile `todo-list`.

macosx 10.11.1μ—μ„œ κ°€μž₯ κ°„λ‹¨ν•œ μ‘μš© ν”„λ‘œκ·Έλž¨:

> rustc --version
rustc 1.10.0 (cfcb716cf 2016-07-03)
> cargo --version
cargo 0.11.0-nightly (259324c 2016-05-20)
> rustup show
Default host: x86_64-apple-darwin

installed toolchains
--------------------

stable-x86_64-apple-darwin (default)
1.8.0-x86_64-apple-darwin

installed targets for active toolchain
--------------------------------------

mipsel-unknown-linux-gnu
mipsel-unknown-linux-musl
x86_64-apple-darwin

active toolchain
----------------

stable-x86_64-apple-darwin (default)
rustc 1.10.0 (cfcb716cf 2016-07-03)
> cargo new hello --bin && cd hello
> cargo build --target=mipsel-unknown-linux-gnu
   Compiling hello v0.1.0 (file:///Users/Jon/Code/hello)
error: linking with `cc` failed: exit code: 1
note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-L" "/Users/Jon/.multirust/toolchains/stable-x86_64-apple-darwin/lib/rustlib/mipsel-unknown-linux-gnu/lib" "/Users/Jon/Code/hello/target/mipsel-unknown-linux-gnu/debug/hello.0.o" "-o" "/Users/Jon/Code/hello/target/mipsel-unknown-linux-gnu/debug/hello" "-Wl,--gc-sections" "-pie" "-nodefaultlibs" "-L" "/Users/Jon/Code/hello/target/mipsel-unknown-linux-gnu/debug" "-L" "/Users/Jon/Code/hello/target/mipsel-unknown-linux-gnu/debug/deps" "-L" "/Users/Jon/.multirust/toolchains/stable-x86_64-apple-darwin/lib/rustlib/mipsel-unknown-linux-gnu/lib" "-Wl,-Bstatic" "-Wl,-Bdynamic" "/Users/Jon/.multirust/toolchains/stable-x86_64-apple-darwin/lib/rustlib/mipsel-unknown-linux-gnu/lib/libstd-e8edd0fd.rlib" "/Users/Jon/.multirust/toolchains/stable-x86_64-apple-darwin/lib/rustlib/mipsel-unknown-linux-gnu/lib/libcollections-e8edd0fd.rlib" "/Users/Jon/.multirust/toolchains/stable-x86_64-apple-darwin/lib/rustlib/mipsel-unknown-linux-gnu/lib/libpanic_unwind-e8edd0fd.rlib" "/Users/Jon/.multirust/toolchains/stable-x86_64-apple-darwin/lib/rustlib/mipsel-unknown-linux-gnu/lib/librustc_unicode-e8edd0fd.rlib" "/Users/Jon/.multirust/toolchains/stable-x86_64-apple-darwin/lib/rustlib/mipsel-unknown-linux-gnu/lib/libunwind-e8edd0fd.rlib" "/Users/Jon/.multirust/toolchains/stable-x86_64-apple-darwin/lib/rustlib/mipsel-unknown-linux-gnu/lib/librand-e8edd0fd.rlib" "/Users/Jon/.multirust/toolchains/stable-x86_64-apple-darwin/lib/rustlib/mipsel-unknown-linux-gnu/lib/liballoc-e8edd0fd.rlib" "/Users/Jon/.multirust/toolchains/stable-x86_64-apple-darwin/lib/rustlib/mipsel-unknown-linux-gnu/lib/liballoc_jemalloc-e8edd0fd.rlib" "/Users/Jon/.multirust/toolchains/stable-x86_64-apple-darwin/lib/rustlib/mipsel-unknown-linux-gnu/lib/liblibc-e8edd0fd.rlib" "/Users/Jon/.multirust/toolchains/stable-x86_64-apple-darwin/lib/rustlib/mipsel-unknown-linux-gnu/lib/libcore-e8edd0fd.rlib" "-l" "dl" "-l" "pthread" "-l" "gcc_s" "-l" "pthread" "-l" "c" "-l" "m" "-l" "rt" "-l" "util" "-l" "compiler-rt"
note: clang: warning: argument unused during compilation: '-pie'
ld: unknown option: --as-needed
clang: error: linker command failed with exit code 1 (use -v to see invocation)

error: aborting due to previous error
error: Could not compile `hello`.

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

2년이 μ§€λ‚œ μ§€κΈˆλ„ 이런 일이 λ²Œμ–΄μ§€κ³  μžˆλŠ” 것 κ°™μŠ΅λ‹ˆκΉŒ? πŸ€”

2년이 μ§€λ‚œ μ§€κΈˆλ„ 이런 일이 λ²Œμ–΄μ§€κ³  μžˆλŠ” 것 κ°™μŠ΅λ‹ˆκΉŒ? +1

Ubuntuλ₯Ό μ‚¬μš©ν•˜μ—¬ λ™μΌν•œ λ¬Έμ œκ°€ λ°œμƒν–ˆμœΌλ©° gcc-multilib둜 ν•΄κ²°ν•  수 μžˆμŠ΅λ‹ˆλ‹€.
sudo apt install gcc-multilib

@ivolvicente κ·€ν•˜μ˜ μ†”λ£¨μ…˜μ€ Ubuntu 16.04 LTSμ—μ„œ μž‘λ™ν•˜μ§€ μ•Šμ•˜μŠ΅λ‹ˆλ‹€. μ–΄λ–€ μ œμ•ˆμ΄ μžˆμœΌμ‹­λ‹ˆκΉŒ?

이것은 μ—¬μ „νžˆ β€‹β€‹λ°œμƒν•˜κ³  있으며 Rust λ²„κ·Έλ‘œ κ°„μ£Όλ˜μ–΄μ•Όν•©λ‹ˆλ‹€. λ‚˜λŠ” λ©°μΉ  λ™μ•ˆ 이 문제λ₯Ό ν•΄κ²°ν•˜λ €κ³  λ…Έλ ₯ν–ˆκ³  μ˜¨λΌμΈμ—μ„œ κ°€λŠ₯ν•œ λͺ¨λ“  닡변을 μ‹œλ„ν–ˆμ§€λ§Œ κ·Έ 쀑 아무 것도 μž‘λ™ν•˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€.

OpenSSL은 μ€‘μš”ν•œ λͺ¨λ“  λ‹€λ₯Έ 개발자 ν™˜κ²½μ—μ„œ 잘 μž‘λ™ν•©λ‹ˆλ‹€.

방금 MacOS Mojave둜 μ—…κ·Έλ ˆμ΄λ“œν–ˆλŠ”λ° Rustκ°€ μ œλŒ€λ‘œ μž‘λ™ν•˜κ±°λ‚˜ μ—°κ²°ν•˜λŠ” λ“±μ˜ μž‘μ—…μ„ μˆ˜ν–‰ν•  수 μ—†μŠ΅λ‹ˆλ‹€.

이제 뭐?

컬 -L https://git.io/rustlings | bashλŠ” MacOSμ—μ„œ λ°œμƒν•©λ‹ˆλ‹€.

이것은 μ—¬μ „νžˆ β€‹β€‹λ°œμƒν•˜κ³  있으며 Rust λ²„κ·Έλ‘œ κ°„μ£Όλ˜μ–΄μ•Όν•©λ‹ˆλ‹€. λ‚˜λŠ” λ©°μΉ  λ™μ•ˆ 이 문제λ₯Ό ν•΄κ²°ν•˜λ €κ³  λ…Έλ ₯ν–ˆκ³  μ˜¨λΌμΈμ—μ„œ κ°€λŠ₯ν•œ λͺ¨λ“  닡변을 μ‹œλ„ν–ˆμ§€λ§Œ κ·Έ 쀑 아무 것도 μž‘λ™ν•˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€.

OpenSSL은 μ€‘μš”ν•œ λͺ¨λ“  λ‹€λ₯Έ 개발자 ν™˜κ²½μ—μ„œ 잘 μž‘λ™ν•©λ‹ˆλ‹€.

방금 MacOS Mojave둜 μ—…κ·Έλ ˆμ΄λ“œν–ˆλŠ”λ° Rustκ°€ μ œλŒ€λ‘œ μž‘λ™ν•˜κ±°λ‚˜ μ—°κ²°ν•˜λŠ” λ“±μ˜ μž‘μ—…μ„ μˆ˜ν–‰ν•  수 μ—†μŠ΅λ‹ˆλ‹€.

이제 뭐?

Mojave둜 μ—…κ·Έλ ˆμ΄λ“œν•œ 후에도 μ΄λŸ¬ν•œ ν˜„μƒμ΄ λ°œμƒν•©λ‹ˆλ‹€.

λ‚˜λŠ”μ΄ λ¬Έμ œκ°€ μ—¬μ „νžˆ λ°œμƒν•˜κ³  있기 λ•Œλ¬Έμ—μ΄ 문제λ₯Ό μ—΄μ–΄μ•Όν•œλ‹€κ³  μƒκ°ν•©λ‹ˆλ‹€ ...

μ—…λ°μ΄νŠΈ :

제 κ²½μš°μ—λŠ” λ‹€μŒκ³Ό 같이 μˆ˜μ •λ˜μ—ˆμŠ΅λ‹ˆλ‹€.

sudo chown -R $USER:$USER target
cargo clean
cargo run

λ‚˜λŠ”μ΄ λ¬Έμ œκ°€ μ—¬μ „νžˆ λ°œμƒν•˜κ³  있기 λ•Œλ¬Έμ—μ΄ 문제λ₯Ό μ—΄μ–΄μ•Όν•œλ‹€κ³  μƒκ°ν•©λ‹ˆλ‹€ ...

μ—…λ°μ΄νŠΈ :

제 κ²½μš°μ—λŠ” λ‹€μŒκ³Ό 같이 μˆ˜μ •λ˜μ—ˆμŠ΅λ‹ˆλ‹€.

sudo chown -R $USER:$USER target
cargo clean
cargo run

λ™μΌν•œ λ¬Έμ œκ°€ μžˆμŠ΅λ‹ˆλ‹€. μ†”λ£¨μ…˜μœΌλ‘œ λ‚΄ 문제λ₯Ό ν•΄κ²°ν•  수 μ—†μŠ΅λ‹ˆλ‹€.
κ΄€λ ¨ 버전:

rustc 1.34.2 (6c2484dc3 2019-05-13)
cargo 1.34.0 (6789d8a0a 2019-04-01)

λ‚˜λŠ” yew 예제λ₯Ό μž‘μ„±ν•©λ‹ˆλ‹€.

use yew::html;
use yew::prelude::*;

struct Model {
    value: i64,
}

enum Msg {
    DoIt,
}

impl Component for Model {
    type Message = Msg;
    type Properties = ();
    fn create(_: Self::Properties, _: ComponentLink<Self>) -> Self {
        Self {
            value: 0,
        }
    }

    fn update(&mut self, msg: Self::Message) -> ShouldRender {
        match msg {
            Msg::DoIt => self.value = self.value + 1
        }
        true
    }
}

impl Renderable<Model> for Model {
    fn view(&self) -> Html<Self> {
        html! {
            <div>
               <button onclick=|_| Msg::DoIt,>{ "+1" }</button>
                <p>{ self.value }</p>
            </div>
        }
    }
}

fn main() {
    yew::initialize();
    App::<Model>::new().mount_to_body();
    yew::run_loop();
}

그리고 μ£Όλͺ© 버전:

[dependencies]
yew = "0.6"

좜λ ₯은

error: linking with `cc` failed: exit code: 1
  |
  = note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-L" ...............

Amethyst와 Rocketμ—μ„œ cargo test --all λ₯Ό μ‹€ν–‰ν•  λ•Œ 이 λ¬Έμ œκ°€ λ°œμƒν•©λ‹ˆλ‹€.

이 였λ₯˜λŠ” amethyst new μ˜ν•΄ μƒμ„±λœ ν”„λ‘œμ νŠΈλ₯Ό μ»΄νŒŒμΌν•˜λ €κ³  ν•  λ•Œ λ‚˜νƒ€λ‚©λ‹ˆλ‹€. 그것이 λ§ν•˜λŠ” λ°”λ‹₯
/usr/bin/ld: cannot find -lxcb-render /usr/bin/ld: cannot find -lxcb-shape /usr/bin/ld: cannot find -lxcb-xfixes

"noria-server"μ—μ„œ Noria DB 컴파일 μ‹œ 이 였λ₯˜κ°€ λ°œμƒν•©λ‹ˆλ‹€.

μ•ˆλ…• μ–˜λ“€μ•„, μ‹œλ„
sudo xcode-select --reset

λ‚˜λ₯Ό μœ„ν•΄ μΌν–ˆλ‹€.

sudo xcode-select --reset

μ•„λ‹ˆμš”

μ΄κ²ƒμœΌλ‘œ ν•΄κ²°:

yum install postgresql-devel
cargo install diesel_cli --no-default-features --features postgres

@kentkrantz 의 힌트둜 Fedoraμ—μ„œ λ‚΄ 였λ₯˜λ₯Ό ν•΄κ²°ν–ˆμŠ΅λ‹ˆλ‹€.

sudo dnf install postgresql-devel  #which installs libpq-devel actually

Apple 컴퓨터λ₯Ό μ‚¬μš©ν•˜λŠ” 경우 이 λͺ…령을 μ‚¬μš©ν•˜μ—¬ 도ꡬ 체인을 μ„€μΉ˜ν•˜μ—¬ 이 문제λ₯Ό ν•΄κ²°ν•  수 μžˆμŠ΅λ‹ˆλ‹€. " xcode-select --install " , brew install Rustλ₯Ό μ‚¬μš©ν•˜λŠ” 경우 Rustλ₯Ό μ œκ±°ν•œ λ‹€μŒ λ‹€μŒμœΌλ‘œ μ„€μΉ˜ν•˜μ‹­μ‹œμ˜€.
Rust 곡식 μ„€μΉ˜ κ°€μ΄λ“œ ~

https://apple.stackexchange.com/questions/254380/why-am-i-getting-an-invalid-active-developer-path-when-attempting-to-use-git-a

λ‹€μŒ λͺ…령을 μ‹€ν–‰ν•©λ‹ˆλ‹€.
xcode 선택 --μ„€μΉ˜

κ·Έλž˜λ„ μž‘λ™ν•˜μ§€ μ•ŠλŠ” 경우:
xcode-select --reset

λ‹€μŒ νƒœκ·Έμ—μ„œ λ™μΌν•œ 였λ₯˜κ°€ λ°œμƒν–ˆμŠ΅λ‹ˆλ‹€(둜컬 디렉토리λ₯Ό μ—¬λŸ¬ 번 좜λ ₯ν•œ ν›„).

= note: xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

xcode-select --install λͺ…령을 μ‹€ν–‰ν•˜λ©΄ 트릭이 μˆ˜ν–‰λ©λ‹ˆλ‹€.

κ°μ‚¬ν•©λ‹ˆλ‹€!

- 이

μ•ˆλ…• μ–˜λ“€μ•„, μ‹œλ„
sudo xcode-select --reset

λ‚˜λ₯Ό μœ„ν•΄ μΌν–ˆλ‹€.

정말 κ°μ‚¬ν•©λ‹ˆλ‹€

이 xcodeκ°€ μ΅œμ‹  μƒνƒœκ°€ μ•„λ‹ˆκΈ° λ•Œλ¬Έμ— λ‹€μ‹œ λ””λ²„κΉ…ν•˜λŠ” 데 λͺ‡ μ‹œκ°„μ„ λ³΄λƒˆμŠ΅λ‹ˆλ‹€.

λˆ„κ΅¬λ‚˜ 같은 λ­”κ°€λ₯Ό μ œμ•ˆ κ°•μ œν•˜κ³  μ‹Άμ–΄ xcode-select install λ‚΄ 컴퓨터λ₯Ό μ‹œμž‘ν•˜κ±°λ‚˜ 주기적으둜 λ˜λŠ” λͺ¨λ“  μ‹œκ°„μ„ μ‹€ν–‰ ...

Mac μ‚¬μš©μž 인 경우 터미널에 μ•„λž˜ λͺ…령을 μ‹œλ„ν•˜μ‹­μ‹œμ˜€.
xcode 선택 --μ„€μΉ˜

λ‚˜λŠ” Mac을 μœ„ν•΄ μ‹œλ„ν–ˆκ³  이제 λ‚΄ 녹이 그것을 μ‚¬μš©ν•˜κΈ° μ‹œμž‘ν–ˆμŠ΅λ‹ˆλ‹€ .....

xcode 선택 --μ„€μΉ˜

μœ„μ˜ μˆ˜λ¦¬λŠ” 잘 μž‘λ™ν•©λ‹ˆλ‹€ ... λ‚΄ OSλ₯Ό 10.12μ—μ„œ 10.14 (Catalina)둜 μ—…λ°μ΄νŠΈν•˜κ³  문제λ₯Ό ν•΄κ²°ν•˜κΈ° μ‹œμž‘ν–ˆμŠ΅λ‹ˆλ‹€. λ”°λΌμ„œ μœ„μ˜ 문제λ₯Ό ν•΄κ²°ν•˜λ €λ©΄ μœ„μ˜ λͺ…령을 터미널에 μ‚¬μš©ν•˜μ‹­μ‹œμ˜€ .....

감사 ν•΄μš”!

cargo install diesel_cli λŠ” mysql/postgres/...κ°€ 사전 μ„€μΉ˜λ˜μ–΄ μžˆμ–΄μ•Ό ν•˜κΈ° λ•Œλ¬Έμ—
Postgresλ₯Ό μ„€μΉ˜ν•˜κΈ°λ§Œ ν•˜λ©΄ λ‹€μŒκ³Ό 같이 λ©λ‹ˆλ‹€.

cargo install diesel_cli --no-default-features --features postgres

이것은 3λ…„ 이상 후에도 μ—¬μ „νžˆ λ°œμƒν•©λ‹ˆλ‹€.

μ•ˆλ…•ν•˜μ„Έμš”, νŒ¨λ¦¬ν‹° λΉ„νŠΈμ½”μΈμ„ κ΅¬μΆ•ν•˜λ €κ³  ν•˜λŠ”λ° 이 였λ₯˜κ°€ λ°œμƒν•©λ‹ˆλ‹€.

그듀은 λ‹€μŒκ³Ό 같이 λ§ν•©λ‹ˆλ‹€.

  • ν™”λ¬Ό λΉŒλ“œ -p pbtc

ν•˜μ§€λ§Œ λ‚œ κ·Έλƒ₯

  • ν™”λ¬Ό λΉŒλ“œ

그런 λ‹€μŒμ΄ 였λ₯˜κ°€ λ°œμƒν•©λ‹ˆλ‹€. ν•΄κ²°ν•˜λ €λ©΄ μ˜¬λ°”λ₯Έ λͺ…령을 내리고 정리해야 ν•©λ‹ˆλ‹€.

  • ν™”λ¬Ό μ²­μ†Œ
  • ν™”λ¬Ό λΉŒλ“œ -p pbtc

Ubunutu 20μ—μ„œ λ™μΌν•œ 였λ₯˜κ°€ λ°œμƒν•©λ‹ˆλ‹€.

sudo apt install gcc-multilib μ‹œλ„ν–ˆμ§€λ§Œ μ†Œμš©μ΄ μžˆμŠ΅λ‹ˆλ‹€.

cargo clean μ‹œλ„λŠ” νš¨κ³Όκ°€ μžˆμ§€λ§Œ cargo run λ˜λŠ” build 전에 μˆ˜ν–‰ν•˜λŠ” 것은 ν”„λ‘œμ νŠΈλ₯Ό λΉŒλ“œν•˜λŠ” 데 μ•½ 25뢄이 κ±Έλ¦¬λ―€λ‘œ μ‹€ν–‰ κ°€λŠ₯ν•œ μ†”λ£¨μ…˜μ΄ μ•„λ‹™λ‹ˆλ‹€.

Finished dev [unoptimized + debuginfo] target(s) in 24m 45s

ν™”λ¬Ό μ°½κ³ :

[dependencies]
async-graphql = "1.12.2"
async-graphql-actix-web = "1.4.2"
actix-web = "2.0.0"
actix-rt = "1.0.0"

rustup check :

stable-x86_64-unknown-linux-gnu - Up to date : 1.43.1 (8d69840ab 2020-05-04)

μ•ˆλ…•ν•˜μ„Έμš”
Mac의 κ²½μš°λ„ gccλ₯Ό μ„€μΉ˜ν•˜λŠ” 데 도움이 λ©λ‹ˆλ‹€. - brew install gcc
제 κ²½μš°μ—λŠ” Rustup을 λ‹€μ‹œ μ„€μΉ˜ν•˜κ³  xcode-select --install 및 xcode-select --reset 와 같은 λͺ…령이 도움이 λ˜μ§€ μ•Šμ•˜μŠ΅λ‹ˆλ‹€.

cargo install diesel_cli λŠ” mysql/postgres/...κ°€ 사전 μ„€μΉ˜λ˜μ–΄ μžˆμ–΄μ•Ό ν•˜κΈ° λ•Œλ¬Έμ—
Postgresλ₯Ό μ„€μΉ˜ν•˜κΈ°λ§Œ ν•˜λ©΄ λ‹€μŒκ³Ό 같이 λ©λ‹ˆλ‹€.

cargo install diesel_cli --no-default-features --features postgres

감사 ν•΄μš”!

cargo install diesel_cli λŠ” mysql/postgres/...κ°€ 사전 μ„€μΉ˜λ˜μ–΄ μžˆμ–΄μ•Ό ν•˜κΈ° λ•Œλ¬Έμ—
Postgresλ₯Ό μ„€μΉ˜ν•˜κΈ°λ§Œ ν•˜λ©΄ λ‹€μŒκ³Ό 같이 λ©λ‹ˆλ‹€.

cargo install diesel_cli --no-default-features --features postgres

감사 ν•΄μš”!

🌼✨🌱

이것은 Rustλ‚˜ Cargo의 였λ₯˜κ°€ μ•„λ‹™λ‹ˆλ‹€(적어도 제 κ²½μš°μ—λŠ”). μ €μ—κ²Œ 그것은 Postgres κΈ°λŠ₯으둜 λ””μ €_cliλ₯Ό μ»΄νŒŒμΌν•˜κΈ° μœ„ν•΄ PostGres 개발 도ꡬλ₯Ό μ„€μΉ˜ν•˜λŠ” 것에 κ΄€ν•œ κ²ƒμ΄μ—ˆμŠ΅λ‹ˆλ‹€.

λ¬Έμ œλŠ” 컴파일러(λ˜λŠ” ν™”λ¬Ό)κ°€ μœ μ΅ν•œ 였λ₯˜ λ©”μ‹œμ§€λ₯Ό μ œκ³΅ν•˜μ§€ μ•ŠλŠ”λ‹€λŠ” κ²ƒμž…λ‹ˆλ‹€.

Ubuntu 20 및 mysql의 경우 λ‹€μŒμ„ μˆ˜ν–‰ν–ˆμŠ΅λ‹ˆλ‹€.

sudo apt-get install libmysqlclient-dev
cargo install diesel_cli --no-default-features --features mysql

λ‚˜λŠ” ν–ˆλ‹€.

=> Xcode-select --install
Xcode-select: error: command line tools are already installed, use "Software Update" to install updates

κ·Έ λ‹€μŒμ—

=> sudo xcode-select -switch /Library/Developer/CommandLineTools

sudo xcodebuild -license λŠ” MacOSμ—μ„œ μ €μ—κ²Œ νš¨κ³Όμ μ΄μ—ˆμŠ΅λ‹ˆλ‹€.

λ‚˜λ₯Ό μœ„ν•΄ (Ubuntuμ—μ„œ) lstdc ++λ₯Ό μ°Έμ‘°ν•˜λ©΄ λ§ˆλ²•μ΄ μƒκ²ΌμŠ΅λ‹ˆλ‹€.

ν™”λ¬Ό λͺ…λ Ήκ³Ό ν•¨κ»˜ RUSTFLAGS='-Clink-arg=-lstdc++' μ „λ‹¬ν•˜κ±°λ‚˜ 그에 따라 ꡬ성을 λ³€κ²½ν•˜λ©΄ 도움이 될 수 μžˆμŠ΅λ‹ˆλ‹€.

μš°λΆ„νˆ¬ 18 LTS
λ¨Όμ € I --verbose
$ cargo build --verbose
κ·Έ ν›„ λ‚˜λŠ” 화물이 μ‚¬μš© κ°€λŠ₯ν•œ λͺ¨λ“  μžμ›μ„ κ°€μ Έκ°”λ‹€λŠ” 것을 μ•Œμ•˜μŠ΅λ‹ˆλ‹€( top λͺ…λ Ή μ‚¬μš©).
κ·Έλž˜μ„œ κ·Έ 후에 --jobs 1
$ cargo build --release --verbose --jobs 1
lib λˆ„λ½μ— λŒ€ν•œ 였λ₯˜κ°€ λ°œμƒν•©λ‹ˆλ‹€.
λˆ„λ½ 된 libλ₯Ό μ„€μΉ˜ ν•œ ν›„ λ¬Έμ œμ—†μ΄ μ‹€ν–‰λ©λ‹ˆλ‹€.

이것은 3λ…„ 이상 후에도 μ—¬μ „νžˆ λ°œμƒν•©λ‹ˆλ‹€.

Rust 뒀에 μžˆλŠ” κ°œλ°œμžλ“€μ΄ 3λ…„ 이상 이 문제λ₯Ό ν•΄κ²°ν•˜μ§€ μ•ŠλŠ” 것을 λ³΄λŠ” 것은 μƒλ‹Ήνžˆ μ§œμ¦λ‚˜λŠ” μΌμž…λ‹ˆλ‹€.

@porplax

Rust 뒀에 μžˆλŠ” κ°œλ°œμžλ“€μ΄ 3λ…„ 이상 이 문제λ₯Ό ν•΄κ²°ν•˜μ§€ μ•ŠλŠ” 것을 λ³΄λŠ” 것은 μƒλ‹Ήνžˆ μ§œμ¦λ‚˜λŠ” μΌμž…λ‹ˆλ‹€.

λ¬Έμ œκ°€ 5λ…„ 이상 μ’…λ£Œλ˜μ—ˆλ‹€λŠ” 점을 κ³ λ €ν•˜λ©΄ λ†€λΌμš΄ 일이 μ•„λ‹™λ‹ˆλ‹€.

μœ μ‚¬ν•œ λ¬Έμ œκ°€ μžˆλŠ” 경우(그리고 " cc μ‹€νŒ¨"κ°€ μ—¬λŸ¬ 가지 이유둜 λ‚˜νƒ€λ‚  수 있음) μž¬μƒμ‚°μœΌλ‘œ μƒˆ 문제λ₯Ό λ§Œλ“œμ‹­μ‹œμ˜€.

제 κ²½μš°μ—λŠ” OpenSSL λ•Œλ¬Έμ΄μ—ˆμŠ΅λ‹ˆλ‹€.

sudo apt-get -y install gcc-multilib pkg-config libssl-dev
cargo clean
cargo run

μš°λΆ„νˆ¬ 20.04μ—μ„œλ„ 이 λ¬Έμ œκ°€ λ°œμƒν•©λ‹ˆλ‹€.

μ €λŠ” Ubuntu 20.04λ₯Ό μ‚¬μš© 쀑이며 λ‹€μŒκ³Ό 같은 였λ₯˜κ°€ λ°œμƒν–ˆμŠ΅λ‹ˆλ‹€.

cargo install diesel_cli --no-default-features --features postgres

κ·Έλž˜μ„œ λ‚˜λŠ” 지침에 따라 postgresλ₯Ό μ„€μΉ˜

sudo apt-get install libpq-dev

그리고 그것은 λ‚΄ 문제λ₯Ό ν•΄κ²°ν–ˆμŠ΅λ‹ˆλ‹€.

libxcb-shape0-dev λ₯Ό μ„€μΉ˜ν•˜μ—¬ 문제λ₯Ό ν•΄κ²°ν•  수 μžˆμ—ˆμŠ΅λ‹ˆλ‹€. 이것은 라이브러리 λ¬Έμ œμ™€ κ΄€λ ¨λœ 것 κ°™μŠ΅λ‹ˆλ‹€. 더 λ‚˜μ€ 였λ₯˜ λ©”μ‹œμ§€κ°€ 쒋을 κ²ƒμž…λ‹ˆλ‹€.

μ €λŠ” Ubuntu 20.04λ₯Ό μ‚¬μš© 쀑이며 λ‹€μŒκ³Ό 같은 였λ₯˜κ°€ λ°œμƒν–ˆμŠ΅λ‹ˆλ‹€.

cargo install diesel_cli --no-default-features --features postgres

κ·Έλž˜μ„œ λ‚˜λŠ” 지침에 따라 postgresλ₯Ό μ„€μΉ˜

sudo apt-get install libpq-dev

그리고 그것은 λ‚΄ 문제λ₯Ό ν•΄κ²°ν–ˆμŠ΅λ‹ˆλ‹€.

맀우 κ°μ‚¬ν•©λ‹ˆλ‹€!

μ €λŠ” Manjaroλ₯Ό μ‚¬μš© 쀑이며 이 λͺ…령을 μ‹€ν–‰ν•˜λŠ” λ™μ•ˆ 이 λ¬Έμ œκ°€ λ°œμƒν–ˆμŠ΅λ‹ˆλ‹€.
cargo install diesel_cli --no-default-features --features "postgres"
κ·ΈλŸ¬λ‚˜ postgresql νŒ¨ν‚€μ§€λ₯Ό μ„€μΉ˜ν•˜λ©΄ λ¬Έμ œκ°€ ν•΄κ²°λ˜μ—ˆμŠ΅λ‹ˆλ‹€.
sudo pacman -S postgresql

μ €λŠ” Mac Catalina 10.15λ₯Ό μ‚¬μš© 쀑이고 λͺ¨λ“  μ†”λ£¨μ…˜μ„ μ‹œλ„ν•˜κ³  μž‘λ™ν•˜λŠ” μ†”λ£¨μ…˜μ€ λ‹€μŒκ³Ό κ°™μŠ΅λ‹ˆλ‹€.

sudo xcode-select --reset
cargo clean
cargo build
이 νŽ˜μ΄μ§€κ°€ 도움이 λ˜μ—ˆλ‚˜μš”?
0 / 5 - 0 λ“±κΈ‰