Skip to content

Instantly share code, notes, and snippets.

@themasch
Created February 18, 2017 13:08
Show Gist options
  • Save themasch/41aab23df9d57a578c26a1a501f7d9dc to your computer and use it in GitHub Desktop.
Save themasch/41aab23df9d57a578c26a1a501f7d9dc to your computer and use it in GitHub Desktop.
Compiling diesel_cli v0.11.0
Running `rustc --crate-name diesel /home/masch/.cargo/registry/src/github.com-1ecc6299db9ec823/diesel_cli-0.11.0/src/main.rs --crate-type bin -C opt-level=3 --cfg feature=\"diesel_infer_schema\" --cfg feature=\"diesel\" --cfg feature=\"postgres\" -C metadata=f84b371c3dd51f12 -C extra-filename=-f84b371c3dd51f12 --out-dir /tmp/cargo-install.MBOOMnMoiT2z/release/deps --emit=dep-info,link -L dependency=/tmp/cargo-install.MBOOMnMoiT2z/release/deps --extern diesel=/tmp/cargo-install.MBOOMnMoiT2z/release/deps/libdiesel-63c42e5060754d67.rlib --extern clap=/tmp/cargo-install.MBOOMnMoiT2z/release/deps/libclap-e3f10698ca416a26.rlib --extern diesel_infer_schema=/tmp/cargo-install.MBOOMnMoiT2z/release/deps/libdiesel_infer_schema-7489dace940df998.rlib --extern chrono=/tmp/cargo-install.MBOOMnMoiT2z/release/deps/libchrono-bf703a963ddf910e.rlib --extern dotenv=/tmp/cargo-install.MBOOMnMoiT2z/release/deps/libdotenv-c0ef68bcfc5b2489.rlib --cap-lints allow -L native=/usr/lib64/postgresql-9.5/lib64`
error: linking with `cc` failed: exit code: 1
|
= note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-L" "/home/masch/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/tmp/cargo-install.MBOOMnMoiT2z/release/deps/diesel-f84b371c3dd51f12.0.o" "-o" "/tmp/cargo-install.MBOOMnMoiT2z/release/deps/diesel-f84b371c3dd51f12" "-Wl,--gc-sections" "-pie" "-Wl,-O1" "-nodefaultlibs" "-L" "/tmp/cargo-install.MBOOMnMoiT2z/release/deps" "-L" "/usr/lib64/postgresql-9.5/lib64" "-L" "/home/masch/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "-Wl,-Bdynamic" "/tmp/cargo-install.MBOOMnMoiT2z/release/deps/libchrono-bf703a963ddf910e.rlib" "/tmp/cargo-install.MBOOMnMoiT2z/release/deps/libnum-5196260a17d9d54c.rlib" "/tmp/cargo-install.MBOOMnMoiT2z/release/deps/libnum_iter-2a175c94c0e0f047.rlib" "/tmp/cargo-install.MBOOMnMoiT2z/release/deps/libdotenv-c0ef68bcfc5b2489.rlib" "/tmp/cargo-install.MBOOMnMoiT2z/release/deps/libnum_integer-4431efb114b81eb7.rlib" "/tmp/cargo-install.MBOOMnMoiT2z/release/deps/libdiesel_infer_schema-7489dace940df998.rlib" "/tmp/cargo-install.MBOOMnMoiT2z/release/deps/libdiesel-63c42e5060754d67.rlib" "/tmp/cargo-install.MBOOMnMoiT2z/release/deps/libpq_sys-15bf24e613ea290f.rlib" "/tmp/cargo-install.MBOOMnMoiT2z/release/deps/libtime-21206bae916c8e9f.rlib" "/tmp/cargo-install.MBOOMnMoiT2z/release/deps/libnum_traits-d95403325b93dccb.rlib" "/tmp/cargo-install.MBOOMnMoiT2z/release/deps/libclap-e3f10698ca416a26.rlib" "/tmp/cargo-install.MBOOMnMoiT2z/release/deps/libunicode_segmentation-077e3519e0fde862.rlib" "/tmp/cargo-install.MBOOMnMoiT2z/release/deps/libvec_map-30b783050663ec47.rlib" "/tmp/cargo-install.MBOOMnMoiT2z/release/deps/libbitflags-e290cd5819b8b8f3.rlib" "/tmp/cargo-install.MBOOMnMoiT2z/release/deps/libansi_term-c475da7956866055.rlib" "/tmp/cargo-install.MBOOMnMoiT2z/release/deps/libstrsim-138c1b6b5d3ec75f.rlib" "/tmp/cargo-install.MBOOMnMoiT2z/release/deps/libunicode_width-532714aec7829268.rlib" "/tmp/cargo-install.MBOOMnMoiT2z/release/deps/libterm_size-eeb1ee5b5e1eb249.rlib" "/tmp/cargo-install.MBOOMnMoiT2z/release/deps/libbyteorder-64c292745be2fae0.rlib" "/tmp/cargo-install.MBOOMnMoiT2z/release/deps/libregex-fdb9994f7c855b40.rlib" "/tmp/cargo-install.MBOOMnMoiT2z/release/deps/libregex_syntax-99506361c8e90f54.rlib" "/tmp/cargo-install.MBOOMnMoiT2z/release/deps/libaho_corasick-5c6bc25d8d3a791d.rlib" "/tmp/cargo-install.MBOOMnMoiT2z/release/deps/libmemchr-e065dc882bfa2df6.rlib" "/tmp/cargo-install.MBOOMnMoiT2z/release/deps/libthread_local-6c1c3f7b9e578c1b.rlib" "/tmp/cargo-install.MBOOMnMoiT2z/release/deps/libthread_id-daa3e2ddc51f8d14.rlib" "/tmp/cargo-install.MBOOMnMoiT2z/release/deps/liblibc-7cef59ab52023ebd.rlib" "/tmp/cargo-install.MBOOMnMoiT2z/release/deps/libutf8_ranges-eee6e01646fa8d92.rlib" "/tmp/cargo-install.MBOOMnMoiT2z/release/deps/libsyn-d82b9c0e92d475ac.rlib" "/tmp/cargo-install.MBOOMnMoiT2z/release/deps/libunicode_xid-f45192a71fffe946.rlib" "/tmp/cargo-install.MBOOMnMoiT2z/release/deps/libquote-cfd383c7723d0075.rlib" "/home/masch/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-2ddb28df747fcb8c.rlib" "/home/masch/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-21709492a058d9ce.rlib" "/home/masch/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-e19aa6725ab01bfd.rlib" "/home/masch/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librand-99ff2e008613b591.rlib" "/home/masch/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcollections-e2513aecb8fbb70c.rlib" "/home/masch/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-f3200ab7e7fe644c.rlib" "/home/masch/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc_jemalloc-e83ac2302b5439a3.rlib" "/home/masch/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-dba58b8da674d203.rlib" "/home/masch/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_unicode-6d4348bcabf40a71.rlib" "/home/masch/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-9f45c45fdcba4301.rlib" "/home/masch/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-b4ef8c9d93bc879a.rlib" "-l" "pq" "-l" "util" "-l" "dl" "-l" "rt" "-l" "pthread" "-l" "gcc_s" "-l" "pthread" "-l" "c" "-l" "m" "-l" "rt" "-l" "util"
= note: /tmp/cargo-install.MBOOMnMoiT2z/release/deps/libdiesel-63c42e5060754d67.rlib(diesel-63c42e5060754d67.0.o): In function `drop::h9271b2d1bad5460b':
diesel.cgu-0.rs:(.text._ZN4drop17h9271b2d1bad5460bE+0x4): undefined reference to `PQclear'
/tmp/cargo-install.MBOOMnMoiT2z/release/deps/libdiesel-63c42e5060754d67.rlib(diesel-63c42e5060754d67.0.o): In function `diesel::pg::connection::raw::RawConnection::set_notice_processor::heb39c3abb1850757':
diesel.cgu-0.rs:(.text._ZN6diesel2pg10connection3raw13RawConnection20set_notice_processor17heb39c3abb1850757E+0x6): undefined reference to `PQsetNoticeProcessor'
/tmp/cargo-install.MBOOMnMoiT2z/release/deps/libdiesel-63c42e5060754d67.rlib(diesel-63c42e5060754d67.0.o): In function `_$LT$diesel..pg..connection..raw..RawConnection$u20$as$u20$core..ops..Drop$GT$::drop::h4ef33cd328f39b0c':
diesel.cgu-0.rs:(.text._ZN78_$LT$diesel..pg..connection..raw..RawConnection$u20$as$u20$core..ops..Drop$GT$4drop17h4ef33cd328f39b0cE+0x4): undefined reference to `PQfinish'
/tmp/cargo-install.MBOOMnMoiT2z/release/deps/libdiesel-63c42e5060754d67.rlib(diesel-63c42e5060754d67.0.o): In function `diesel::pg::connection::raw::RawResult::new::h4602d82c4b21fc78':
diesel.cgu-0.rs:(.text._ZN6diesel2pg10connection3raw9RawResult3new17h4602d82c4b21fc78E+0x21): undefined reference to `PQerrorMessage'
/tmp/cargo-install.MBOOMnMoiT2z/release/deps/libdiesel-63c42e5060754d67.rlib(diesel-63c42e5060754d67.0.o): In function `_$LT$diesel..pg..connection..raw..RawResult$u20$as$u20$core..ops..Drop$GT$::drop::hf9e61e9d191190e4':
diesel.cgu-0.rs:(.text._ZN74_$LT$diesel..pg..connection..raw..RawResult$u20$as$u20$core..ops..Drop$GT$4drop17hf9e61e9d191190e4E+0x4): undefined reference to `PQclear'
/tmp/cargo-install.MBOOMnMoiT2z/release/deps/libdiesel-63c42e5060754d67.rlib(diesel-63c42e5060754d67.0.o): In function `_$LT$diesel..pg..connection..row..PgRow$LT$$u27$a$GT$$u20$as$u20$diesel..row..Row$LT$diesel..pg..backend..Pg$GT$$GT$::take::h6b10915dbd7afab4':
diesel.cgu-0.rs:(.text._ZN116_$LT$diesel..pg..connection..row..PgRow$LT$$u27$a$GT$$u20$as$u20$diesel..row..Row$LT$diesel..pg..backend..Pg$GT$$GT$4take17h6b10915dbd7afab4E+0x2a): undefined reference to `PQgetisnull'
diesel.cgu-0.rs:(.text._ZN116_$LT$diesel..pg..connection..row..PgRow$LT$$u27$a$GT$$u20$as$u20$diesel..row..Row$LT$diesel..pg..backend..Pg$GT$$GT$4take17h6b10915dbd7afab4E+0x3e): undefined reference to `PQgetvalue'
diesel.cgu-0.rs:(.text._ZN116_$LT$diesel..pg..connection..row..PgRow$LT$$u27$a$GT$$u20$as$u20$diesel..row..Row$LT$diesel..pg..backend..Pg$GT$$GT$4take17h6b10915dbd7afab4E+0x4e): undefined reference to `PQgetlength'
/tmp/cargo-install.MBOOMnMoiT2z/release/deps/libdiesel-63c42e5060754d67.rlib(diesel-63c42e5060754d67.0.o): In function `diesel::pg::connection::result::PgResult::new::h8c3f7a6aaf8b3037':
diesel.cgu-0.rs:(.text._ZN6diesel2pg10connection6result8PgResult3new17h8c3f7a6aaf8b3037E+0x12): undefined reference to `PQresultStatus'
diesel.cgu-0.rs:(.text._ZN6diesel2pg10connection6result8PgResult3new17h8c3f7a6aaf8b3037E+0x36): undefined reference to `PQresultErrorField'
diesel.cgu-0.rs:(.text._ZN6diesel2pg10connection6result8PgResult3new17h8c3f7a6aaf8b3037E+0xe1): undefined reference to `PQclear'
/tmp/cargo-install.MBOOMnMoiT2z/release/deps/libdiesel-63c42e5060754d67.rlib(diesel-63c42e5060754d67.0.o): In function `diesel::pg::connection::result::PgResult::rows_affected::hc6f9b233c45c8eb6':
diesel.cgu-0.rs:(.text._ZN6diesel2pg10connection6result8PgResult13rows_affected17hc6f9b233c45c8eb6E+0x8): undefined reference to `PQcmdTuples'
/tmp/cargo-install.MBOOMnMoiT2z/release/deps/libdiesel-63c42e5060754d67.rlib(diesel-63c42e5060754d67.0.o): In function `diesel::pg::connection::result::PgResult::num_rows::hfdd9a8ec453a0a56':
diesel.cgu-0.rs:(.text._ZN6diesel2pg10connection6result8PgResult8num_rows17hfdd9a8ec453a0a56E+0x5): undefined reference to `PQntuples'
/tmp/cargo-install.MBOOMnMoiT2z/release/deps/libdiesel-63c42e5060754d67.rlib(diesel-63c42e5060754d67.0.o): In function `_$LT$diesel..pg..connection..result..PgErrorInformation$u20$as$u20$diesel..result..DatabaseErrorInformation$GT$::message::hd65b5196148211cd':
diesel.cgu-0.rs:(.text._ZN111_$LT$diesel..pg..connection..result..PgErrorInformation$u20$as$u20$diesel..result..DatabaseErrorInformation$GT$7message17hd65b5196148211cdE+0xd): undefined reference to `PQresultErrorField'
/tmp/cargo-install.MBOOMnMoiT2z/release/deps/libdiesel-63c42e5060754d67.rlib(diesel-63c42e5060754d67.0.o): In function `_$LT$diesel..pg..connection..result..PgErrorInformation$u20$as$u20$diesel..result..DatabaseErrorInformation$GT$::details::hd6d1b0cb6cd0ac8d':
diesel.cgu-0.rs:(.text._ZN111_$LT$diesel..pg..connection..result..PgErrorInformation$u20$as$u20$diesel..result..DatabaseErrorInformation$GT$7details17hd6d1b0cb6cd0ac8dE+0x11): undefined reference to `PQresultErrorField'
/tmp/cargo-install.MBOOMnMoiT2z/release/deps/libdiesel-63c42e5060754d67.rlib(diesel-63c42e5060754d67.0.o): In function `_$LT$diesel..pg..connection..result..PgErrorInformation$u20$as$u20$diesel..result..DatabaseErrorInformation$GT$::hint::h720eec71017cc070':
diesel.cgu-0.rs:(.text._ZN111_$LT$diesel..pg..connection..result..PgErrorInformation$u20$as$u20$diesel..result..DatabaseErrorInformation$GT$4hint17h720eec71017cc070E+0x11): undefined reference to `PQresultErrorField'
/tmp/cargo-install.MBOOMnMoiT2z/release/deps/libdiesel-63c42e5060754d67.rlib(diesel-63c42e5060754d67.0.o): In function `_$LT$diesel..pg..connection..result..PgErrorInformation$u20$as$u20$diesel..result..DatabaseErrorInformation$GT$::table_name::hf879f9d2e0e36caf':
diesel.cgu-0.rs:(.text._ZN111_$LT$diesel..pg..connection..result..PgErrorInformation$u20$as$u20$diesel..result..DatabaseErrorInformation$GT$10table_name17hf879f9d2e0e36cafE+0x11): undefined reference to `PQresultErrorField'
/tmp/cargo-install.MBOOMnMoiT2z/release/deps/libdiesel-63c42e5060754d67.rlib(diesel-63c42e5060754d67.0.o): In function `_$LT$diesel..pg..connection..result..PgErrorInformation$u20$as$u20$diesel..result..DatabaseErrorInformation$GT$::column_name::hed88e62dc96e29cb':
diesel.cgu-0.rs:(.text._ZN111_$LT$diesel..pg..connection..result..PgErrorInformation$u20$as$u20$diesel..result..DatabaseErrorInformation$GT$11column_name17hed88e62dc96e29cbE+0x11): undefined reference to `PQresultErrorField'
/tmp/cargo-install.MBOOMnMoiT2z/release/deps/libdiesel-63c42e5060754d67.rlib(diesel-63c42e5060754d67.0.o):diesel.cgu-0.rs:(.text._ZN111_$LT$diesel..pg..connection..result..PgErrorInformation$u20$as$u20$diesel..result..DatabaseErrorInformation$GT$15constraint_name17h6e4030c3a1ef419cE+0x11): more undefined references to `PQresultErrorField' follow
/tmp/cargo-install.MBOOMnMoiT2z/release/deps/libdiesel-63c42e5060754d67.rlib(diesel-63c42e5060754d67.0.o): In function `diesel::pg::connection::stmt::Statement::execute::h444e4d80bb74437d':
diesel.cgu-0.rs:(.text._ZN6diesel2pg10connection4stmt9Statement7execute17h444e4d80bb74437dE+0x159): undefined reference to `PQexecPrepared'
/tmp/cargo-install.MBOOMnMoiT2z/release/deps/libdiesel-63c42e5060754d67.rlib(diesel-63c42e5060754d67.0.o): In function `diesel::pg::connection::stmt::Statement::prepare::h40fd528e3aad3d45':
diesel.cgu-0.rs:(.text._ZN6diesel2pg10connection4stmt9Statement7prepare17h40fd528e3aad3d45E+0x258): undefined reference to `PQprepare'
diesel.cgu-0.rs:(.text._ZN6diesel2pg10connection4stmt9Statement7prepare17h40fd528e3aad3d45E+0x3bf): undefined reference to `PQclear'
/tmp/cargo-install.MBOOMnMoiT2z/release/deps/libdiesel-63c42e5060754d67.rlib(diesel-63c42e5060754d67.0.o): In function `_$LT$diesel..pg..connection..PgConnection$u20$as$u20$diesel..connection..SimpleConnection$GT$::batch_execute::hf1746e0c88e892d6':
diesel.cgu-0.rs:(.text._ZN93_$LT$diesel..pg..connection..PgConnection$u20$as$u20$diesel..connection..SimpleConnection$GT$13batch_execute17hf1746e0c88e892d6E+0xa8): undefined reference to `PQexec'
diesel.cgu-0.rs:(.text._ZN93_$LT$diesel..pg..connection..PgConnection$u20$as$u20$diesel..connection..SimpleConnection$GT$13batch_execute17hf1746e0c88e892d6E+0x184): undefined reference to `PQclear'
/tmp/cargo-install.MBOOMnMoiT2z/release/deps/libdiesel-63c42e5060754d67.rlib(diesel-63c42e5060754d67.0.o): In function `_$LT$diesel..pg..connection..PgConnection$u20$as$u20$diesel..connection..Connection$GT$::establish::hf528f7d6d987405e':
diesel.cgu-0.rs:(.text._ZN87_$LT$diesel..pg..connection..PgConnection$u20$as$u20$diesel..connection..Connection$GT$9establish17hf528f7d6d987405eE+0x68): undefined reference to `PQconnectdb'
diesel.cgu-0.rs:(.text._ZN87_$LT$diesel..pg..connection..PgConnection$u20$as$u20$diesel..connection..Connection$GT$9establish17hf528f7d6d987405eE+0x73): undefined reference to `PQstatus'
diesel.cgu-0.rs:(.text._ZN87_$LT$diesel..pg..connection..PgConnection$u20$as$u20$diesel..connection..Connection$GT$9establish17hf528f7d6d987405eE+0x7f): undefined reference to `PQerrorMessage'
diesel.cgu-0.rs:(.text._ZN87_$LT$diesel..pg..connection..PgConnection$u20$as$u20$diesel..connection..Connection$GT$9establish17hf528f7d6d987405eE+0x1cd): undefined reference to `PQfinish'
/tmp/cargo-install.MBOOMnMoiT2z/release/deps/libdiesel-63c42e5060754d67.rlib(diesel-63c42e5060754d67.0.o): In function `_$LT$diesel..pg..connection..PgConnection$u20$as$u20$diesel..connection..Connection$GT$::execute::h31fd6d38a9ce4dea':
diesel.cgu-0.rs:(.text._ZN87_$LT$diesel..pg..connection..PgConnection$u20$as$u20$diesel..connection..Connection$GT$7execute17h31fd6d38a9ce4deaE+0x172): undefined reference to `PQcmdTuples'
diesel.cgu-0.rs:(.text._ZN87_$LT$diesel..pg..connection..PgConnection$u20$as$u20$diesel..connection..Connection$GT$7execute17h31fd6d38a9ce4deaE+0x1b8): undefined reference to `PQclear'
diesel.cgu-0.rs:(.text._ZN87_$LT$diesel..pg..connection..PgConnection$u20$as$u20$diesel..connection..Connection$GT$7execute17h31fd6d38a9ce4deaE+0x22f): undefined reference to `PQclear'
collect2: error: ld returned 1 exit status
error: aborting due to previous error
error: failed to compile `diesel_cli v0.11.0`, intermediate artifacts can be found at `/tmp/cargo-install.MBOOMnMoiT2z`
Caused by:
Could not compile `diesel_cli`.
Caused by:
process didn't exit successfully: `rustc --crate-name diesel /home/masch/.cargo/registry/src/github.com-1ecc6299db9ec823/diesel_cli-0.11.0/src/main.rs --crate-type bin -C opt-level=3 --cfg feature="diesel_infer_schema" --cfg feature="diesel" --cfg feature="postgres" -C metadata=f84b371c3dd51f12 -C extra-filename=-f84b371c3dd51f12 --out-dir /tmp/cargo-install.MBOOMnMoiT2z/release/deps --emit=dep-info,link -L dependency=/tmp/cargo-install.MBOOMnMoiT2z/release/deps --extern diesel=/tmp/cargo-install.MBOOMnMoiT2z/release/deps/libdiesel-63c42e5060754d67.rlib --extern clap=/tmp/cargo-install.MBOOMnMoiT2z/release/deps/libclap-e3f10698ca416a26.rlib --extern diesel_infer_schema=/tmp/cargo-install.MBOOMnMoiT2z/release/deps/libdiesel_infer_schema-7489dace940df998.rlib --extern chrono=/tmp/cargo-install.MBOOMnMoiT2z/release/deps/libchrono-bf703a963ddf910e.rlib --extern dotenv=/tmp/cargo-install.MBOOMnMoiT2z/release/deps/libdotenv-c0ef68bcfc5b2489.rlib --cap-lints allow -L native=/usr/lib64/postgresql-9.5/lib64` (exit code: 101)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment