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

error: linking with cc failed: exit code: 1 #60149

Closed
siddharthAktivoLabs opened this issue Apr 21, 2019 · 8 comments
Closed

error: linking with cc failed: exit code: 1 #60149

siddharthAktivoLabs opened this issue Apr 21, 2019 · 8 comments
Labels
A-linkage Area: linking into static, shared libraries and binaries T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@siddharthAktivoLabs
Copy link

siddharthAktivoLabs commented Apr 21, 2019

#error: linking with cc failed: exit code: 1

= note: "cc" "-m64" "-L"

...
"/Users/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libcompiler_builtins-35232c4af1148867.rlib" "-lSystem" "-lresolv" "-lc" "-lm" "-dynamiclib" "-Wl,-dylib"

= note: Undefined symbols for architecture x86_64:

        "_PyGILState_Ensure", referenced from:
            cpython::pythonrun::GILGuard::acquire::h5d9105c4ec778456 in libcpython-bb286e0f8eea1bd6.rlib(cpython-bb286e0f8eea1bd6.cpython.1n9xevhm-cgu.5.rcgu.o)
        "_Py_IsInitialized", referenced from:
            cpython::pythonrun::prepare_freethreaded_python::_$u7b$$u7b$closure$u7d$$u7d$::h36005de61bc73817 in libcpython-bb286e0f8eea1bd6.rlib(cpython-bb286e0f8eea1bd6.cpython.1n9xevhm-cgu.5.rcgu.o)
        "_Py_InitializeEx", referenced from:
            cpython::pythonrun::prepare_freethreaded_python::_$u7b$$u7b$closure$u7d$$u7d$::h36005de61bc73817 in libcpython-bb286e0f8eea1bd6.rlib(cpython-bb286e0f8eea1bd6.cpython.1n9xevhm-cgu.5.rcgu.o)
        "_PyExc_TypeError", referenced from:
            _$LT$cpython..objects..exc..TypeError$u20$as$u20$cpython..python..PythonObjectWithTypeObject$GT$::type_object::hcbe2b62528903270 in libcpython-bb286e0f8eea1bd6.rlib(cpython-bb286e0f8eea1bd6.cpython.1n9xevhm-cgu.2.rcgu.o)
        "_PyEval_ThreadsInitialized", referenced from:
            cpython::pythonrun::prepare_freethreaded_python::_$u7b$$u7b$closure$u7d$$u7d$::h36005de61bc73817 in libcpython-bb286e0f8eea1bd6.rlib(cpython-bb286e0f8eea1bd6.cpython.1n9xevhm-cgu.5.rcgu.o)
        "_PyDict_Next", referenced from:
            cpython::objects::dict::PyDict::items::he1515b7b41c2e175 in libcpython-bb286e0f8eea1bd6.rlib(cpython-bb286e0f8eea1bd6.cpython.1n9xevhm-cgu.2.rcgu.o)
        "_PyModule_Type", referenced from:
            _$LT$cpython..objects..module..PyModule$u20$as$u20$cpython..python..PythonObjectWithCheckedDowncast$GT$::downcast_from::h987bc9e7dbf35530 in libcpython-bb286e0f8eea1bd6.rlib(cpython-bb286e0f8eea1bd6.cpython.1n9xevhm-cgu.13.rcgu.o)
        "_PyErr_Print", referenced from:
            cpython::err::panic_after_error::h7734eef80b89461e in libcpython-bb286e0f8eea1bd6.rlib(cpython-bb286e0f8eea1bd6.cpython.1n9xevhm-cgu.4.rcgu.o)
        "_PyDict_GetItem", referenced from:
            cpython::objects::dict::PyDict::get_item::_$u7b$$u7b$closure$u7d$$u7d$::h57b4a830f902b7e4 in libcpython-bb286e0f8eea1bd6.rlib(cpython-bb286e0f8eea1bd6.cpython.1n9xevhm-cgu.2.rcgu.o)
        "_PyLong_FromUnsignedLongLong", referenced from:
            cpython::objects::num::_$LT$impl$u20$cpython..conversion..ToPyObject$u20$for$u20$u64$GT$::to_py_object::h0bfaf3c8ab3b3312 in libcpython-bb286e0f8eea1bd6.rlib(cpython-bb286e0f8eea1bd6.cpython.1n9xevhm-cgu.15.rcgu.o)
        "_PyModule_Create2", referenced from:
            python3_sys::modsupport::PyModule_Create::hd1dadf4f0d5ba512 in libcpython-bb286e0f8eea1bd6.rlib(cpython-bb286e0f8eea1bd6.cpython.1n9xevhm-cgu.2.rcgu.o)
        "_PyObject_SetAttr", referenced from:
            cpython::objectprotocol::ObjectProtocol::setattr::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::h6b93663c35ca1e4e in rust_bindings.294h0q408pvbnoze.rcgu.o
        "_PyUnicode_AsUTF8AndSize", referenced from:
            cpython::objects::string::PyString::data_impl::h4b32139303e1ec11 in libcpython-bb286e0f8eea1bd6.rlib(cpython-bb286e0f8eea1bd6.cpython.1n9xevhm-cgu.9.rcgu.o)
        "_PyUnicode_FromStringAndSize", referenced from:
            cpython::objects::string::PyString::new::new_impl::hf45c1a79d8223ee9 in libcpython-bb286e0f8eea1bd6.rlib(cpython-bb286e0f8eea1bd6.cpython.1n9xevhm-cgu.9.rcgu.o)
        "_PyExc_UnicodeDecodeError", referenced from:
            _$LT$cpython..objects..exc..UnicodeDecodeError$u20$as$u20$cpython..python..PythonObjectWithCheckedDowncast$GT$::downcast_from::h1722cd258436f850 in libcpython-bb286e0f8eea1bd6.rlib(cpython-bb286e0f8eea1bd6.cpython.1n9xevhm-cgu.2.rcgu.o)
        "_PyCFunction_NewEx", referenced from:
            cpython::function::py_fn_impl::ha3b678379f9c466f in libcpython-bb286e0f8eea1bd6.rlib(cpython-bb286e0f8eea1bd6.cpython.1n9xevhm-cgu.3.rcgu.o)
        "_PyUnicodeDecodeError_Create", referenced from:
            cpython::objects::exc::UnicodeDecodeError::new::h1de774c6719b332c in libcpython-bb286e0f8eea1bd6.rlib(cpython-bb286e0f8eea1bd6.cpython.1n9xevhm-cgu.2.rcgu.o)
        "_PyErr_Fetch", referenced from:
            cpython::err::PyErr::fetch::h5ce5d83e33a9d5f0 in libcpython-bb286e0f8eea1bd6.rlib(cpython-bb286e0f8eea1bd6.cpython.1n9xevhm-cgu.4.rcgu.o)
        "_PyErr_Restore", referenced from:
            cpython::err::PyErr::restore::h6b8e0ff92a83dbdf in rust_bindings.510youx40d1lskcb.rcgu.o
            cpython::err::PyErr::restore::h97940e90eef0375b in libcpython-bb286e0f8eea1bd6.rlib(cpython-bb286e0f8eea1bd6.cpython.1n9xevhm-cgu.4.rcgu.o)
        "__Py_Dealloc", referenced from:
            _$LT$T$u20$as$u20$cpython..python..PyDrop$GT$::release_ref::hf77b969aade7107b in rust_bindings.2suf8et7itskf9vu.rcgu.o
            _$LT$T$u20$as$u20$cpython..python..PyDrop$GT$::release_ref::h661bf78a05311f89 in rust_bindings.2v1weyvw3b7mhwth.rcgu.o
            _$LT$T$u20$as$u20$cpython..python..PyDrop$GT$::release_ref::hb380990e69b08b9f in libcpython-bb286e0f8eea1bd6.rlib(cpython-bb286e0f8eea1bd6.cpython.1n9xevhm-cgu.3.rcgu.o)
            _$LT$cpython..objects..object..PyObject$u20$as$u20$core..ops..drop..Drop$GT$::drop::h70e3f1960b057f37 in libcpython-bb286e0f8eea1bd6.rlib(cpython-bb286e0f8eea1bd6.cpython.1n9xevhm-cgu.3.rcgu.o)
        "_PyExc_SystemError", referenced from:
            cpython::function::handle_panic::h323073e26a8499e3 in libcpython-bb286e0f8eea1bd6.rlib(cpython-bb286e0f8eea1bd6.cpython.1n9xevhm-cgu.3.rcgu.o)
            _$LT$cpython..objects..exc..SystemError$u20$as$u20$cpython..python..PythonObjectWithTypeObject$GT$::type_object::ha412729647de6a34 in libcpython-bb286e0f8eea1bd6.rlib(cpython-bb286e0f8eea1bd6.cpython.1n9xevhm-cgu.2.rcgu.o)
        "_PyErr_SetString", referenced from:
            cpython::function::handle_panic::h323073e26a8499e3 in libcpython-bb286e0f8eea1bd6.rlib(cpython-bb286e0f8eea1bd6.cpython.1n9xevhm-cgu.3.rcgu.o)
        "_PyType_IsSubtype", referenced from:
            _$LT$cpython..objects..exc..UnicodeDecodeError$u20$as$u20$cpython..python..PythonObjectWithCheckedDowncast$GT$::downcast_from::h1722cd258436f850 in libcpython-bb286e0f8eea1bd6.rlib(cpython-bb286e0f8eea1bd6.cpython.1n9xevhm-cgu.2.rcgu.o)
            _$LT$cpython..objects..module..PyModule$u20$as$u20$cpython..python..PythonObjectWithCheckedDowncast$GT$::downcast_from::h987bc9e7dbf35530 in libcpython-bb286e0f8eea1bd6.rlib(cpython-bb286e0f8eea1bd6.cpython.1n9xevhm-cgu.13.rcgu.o)
        "_PyErr_PrintEx", referenced from:
            cpython::err::PyErr::print::he92fc8ad5554de52 in libcpython-bb286e0f8eea1bd6.rlib(cpython-bb286e0f8eea1bd6.cpython.1n9xevhm-cgu.4.rcgu.o)
        "_PyGILState_Release", referenced from:
            _$LT$cpython..pythonrun..GILGuard$u20$as$u20$core..ops..drop..Drop$GT$::drop::hb136c7bc4f6eec1b in libcpython-bb286e0f8eea1bd6.rlib(cpython-bb286e0f8eea1bd6.cpython.1n9xevhm-cgu.5.rcgu.o)
        "_PyEval_SaveThread", referenced from:
            cpython::pythonrun::prepare_freethreaded_python::_$u7b$$u7b$closure$u7d$$u7d$::h36005de61bc73817 in libcpython-bb286e0f8eea1bd6.rlib(cpython-bb286e0f8eea1bd6.cpython.1n9xevhm-cgu.5.rcgu.o)
        "_PyDict_Size", referenced from:
            cpython::objects::dict::PyDict::len::hde84f2cf2aff77a3 in libcpython-bb286e0f8eea1bd6.rlib(cpython-bb286e0f8eea1bd6.cpython.1n9xevhm-cgu.2.rcgu.o)
        "_PyEval_InitThreads", referenced from:
            cpython::py_module_initializer_impl::ha26bb6c638c8c914 in libcpython-bb286e0f8eea1bd6.rlib(cpython-bb286e0f8eea1bd6.cpython.1n9xevhm-cgu.6.rcgu.o)
            cpython::pythonrun::prepare_freethreaded_python::_$u7b$$u7b$closure$u7d$$u7d$::h36005de61bc73817 in libcpython-bb286e0f8eea1bd6.rlib(cpython-bb286e0f8eea1bd6.cpython.1n9xevhm-cgu.5.rcgu.o)
      ld: symbol(s) not found for architecture x86_64
      clang: error: linker command failed with exit code 1 (use -v to see invocation)
@siddharthAktivoLabs
Copy link
Author

Created functionality to for rust binding to python using cpython crate. But on creating the build it throws the error for linking with 'cc' failed.

@jonas-schievink
Copy link
Contributor

Any reason you believe this to be a bug in rustc and not in your environment or the cpython crate?

@jonas-schievink jonas-schievink added A-linkage Area: linking into static, shared libraries and binaries T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Apr 21, 2019
@siddharthAktivoLabs
Copy link
Author

siddharthAktivoLabs commented Apr 21, 2019

creating build with the cargo.toml as :

[dependencies]
 cpython = "0.2"

works fine

But updating the same to

[dependencies.cpython]
 version = "0.2"
 features = ["extension-module"]

throws error #error: linking with cc failed: exit code: 1

MacBook-Pro:rust_to_python $ cargo build
Compiling cpython v0.2.1
Compiling python3-sys v0.2.1
Compiling rust_to_python v0.1.0 (/Users/Projects/demoPojects/Rust/rust_to_python)
error: linking with cc failed: exit code: 1
|
= note: "cc" "-m64" "-L" ".....

@jonas-schievink
Copy link
Contributor

Have you read the last part of the cpython readme?

On windows and linux, you can build normally with cargo build --release. On Mac Os, you need to set additional linker arguments. The simplest solution is to create a .cargo/config with the following content:

[target.x86_64-apple-darwin]
rustflags = [
  "-C", "link-arg=-undefined",
  "-C", "link-arg=dynamic_lookup",
]

@siddharthAktivoLabs
Copy link
Author

GREAT, it worked.

@funnyzpc
Copy link

you don't install toolchain ,please exec this commond to install “ xcode-select --install ”

johanneskoester added a commit to rust-bio/rust-htslib that referenced this issue Mar 17, 2020
* Pull 1.10.2 submodule. Initial pass on i32->i64 type conversion, will eventually fix issue #183

* Fixes issue #109 while I'm at it, long hanging fruit fix

* Fix compression levels

* Going through https://github.com/samtools/htslib/blob/develop/README.large_positions.md to spot 64 bit reference position changes and sam_* function renaming. Only 4 errors left, but need to closely check types afterwards very carefully. Specially for the binary formats where this change does not apply and (sub)fields that do not necessarily require big representations

* Repoint submodule to upstream release tag

* Switch from rust-bio hosted htslib to upstream's samtools htslib.

* Try to amend submodule

* Handle submodules manually on TravisCI, since it is failing now: https://travis-ci.org/rust-bio/rust-htslib/builds/645772614

* Odd balls that would need review marked with XXX. New htslib seems to require libcurl

* Add curl-sys crate for hplugin_curl, aws s3 et al

* Add conditional libcurl compilation flags

* Be nice with cargo fmt [ci skip]

* Try installing libcurl meta-package instead of the openssl dependent one?: https://travis-ci.org/rust-bio/rust-htslib/builds/645790138#L1529

* Does not work with libcurl-dev metapackage: https://travis-ci.org/rust-bio/rust-htslib/jobs/645812050#L166, rollback and try with bionic ubuntu distro. It does compile locally on OSX

* Add matrix compile support for TravisCI, I would like to know why it compiles fine in OSX and fails on Linux now...

* PPA source no longer needed for ubuntu bionic? [ci skip]

* Bionic packages htslib with gnutls instead of openssl: https://packages.ubuntu.com/source/disco/htslib ... and it even comes with pre-shipped libcurl4-gnutls-dev, so no need to install it explicitly?: https://travis-ci.org/rust-bio/rust-htslib/jobs/645816116#L160

* sed is not gsed on OSX... not entirely sure this substitution is 100% needed

* Add libssl-dev to the mix for the openssl-sys: https://travis-ci.org/rust-bio/rust-htslib/jobs/645825022#L1000. Testsuite seems to run partially now: https://travis-ci.org/rust-bio/rust-htslib/jobs/645825022#L623

* Add build-essential in hopes to fix libcurl issue, incorporate #185, fix one testsuite warning

* Add curl on default features for hts-sys

* Point to the right htslib upstream repo, thanks @dlaehnemann [skip ci]

* Appease OSX musl-cross toolchain requirements: https://travis-ci.org/rust-bio/rust-htslib/jobs/645907695#L1222

* TravisCI timesout installing brew deps: https://travis-ci.org/rust-bio/rust-htslib/jobs/647667984#L212 ... Not sure if travis_wait will work with homebrew addons?: https://docs.travis-ci.com/user/common-build-problems/#build-times-out-because-no-output-was-received... trying

* Try workaround for https://twitter.com/braincode/status/1226103002550849542

* Do not update homebrew (time intensive), switch from travis_wait to verbose to keep the build output being generated, hopefully

* brew install --verbose is not verbose enough for travis, reverting travis_wait and bumping to 40min for brew deps install and musl-cross

* Explicitly install system libcurl on linux and osx

* This .cargo/config makes it test right locally: rust-lang/rust#60149 (comment), only 5 tests failing now and no linking errors from libcurl (on OSX, at least) :)

* Cargo.toml missing quote misshap

* Same linker flags should apply for Linux builds? build-essential not necessary

* tid is i64 now, CRAM vs BAM test l_data is off by 3 and m_data is off too

* There should be no need for travis_wait with -v

* Debugging htslib structs with @jkbonfield guidance...

* Disable osx and musl-cross homebrew on the TravisCI matrix since it times out anyway, start looking into l_extranul and alignment issues for CRAM/BAM. Add curl_sys crate in hts-sys/src/lib.rs.

* Mystery solved for test_read_cram, testing some of the struct fields, explicitly state that l_data should differ according to #184 (comment)

* Extract selective CRAM/BAM field comparison to test helper function

* Formatting

* Temporarily commenting the hfile format category detection makes .bed filetype tests pass but .BAI idx locator fails

* Format detection seems to be broken upstream on htslib, see #184 (comment)

* Revert to libcurl4-openssl-dev instead of gnutls. All TravisCI script targets compiling and passing tests otherwise

* Bump up curl-sys version

* Experimenting musl cross-compilation with rustembedded cross. Ideally this would get rid of the homebrew musl-cross issue (too long compile times). /cc @nlhepler

* Remove assert_ne since cannot guarantee that l_data is different on all bam/crams

* Add minimum deps needed for rustembedded cross docker container

* Run docker in TravisCI, even if it is only supported on linux jobs :/

* Add CFLAGS suggested by @nlhepler

* Separate musl from GNU toolchains on Rust cross

* Bump up bindgen, vendorize openssl, further experimentation with compile flags

* Deprecate the mixed GNU/MUSL container

* Add minimal explanation on how to use the new docker files [ci skip]

* cross 0.2.0 with openssl vendored. Progress but more htslib compile time issues remain still

* Make sure libzma is present in both containers [ci skip]

* Focusing on LLVMv8 GNU cross build first, musl will come later on (if possible w/ htslib)

* Two more usize that should be u64

* Amend and settle BED header debate

* Rename test name accordingly

* Transition to cross instead of cargo for builds and tests

* All GNU/clang/llvm8 builds and tests seem to succeed, transitioning to musl testing now...

* Remove stray (repeated) musl build

* Remove @FiloSottile musl-cross homebrew formula since it takes too long to compile and timeouts CI, using clux/muslrust gets me a bit farther. Remove local rustup musl target... since htslib 1.10, the introduction of openssl complicated local compilation w/ musl greatly, unfortunately we have to resort to docker these days instead :/

* Experiment with toolchain setup in https://gitlab.com/rust_musl_docker/image. Remove vendored openssl since it's shipped in cross containers.

* Remove build.rs flags noise and different tests, containers should handle them transparently depending on the defined environment within, thanks @nlhepler

* Indicate dependencies and build flags required for OSX [ci skip].

* enable musl builds

* add libclang

* minor

* dbg

* revert

* dbg

* dbg

* Revert cross/docker madness, bottled up musl-cross myself over here: https://github.com/brainstorm/homebrew-musl-cross/commit/9304bf9cd6bc2b784083948771977d502030815a, high sierra bottle coming up soon. Cargo build script draft

* Add in openssl to hts-sys

* Make clippy boolean logic happy

* Remove homebrew OSX check since we'll just use rustembedded cross

Co-authored-by: Julian Gehring <[email protected]>
Co-authored-by: Johannes Köster <[email protected]>
johanneskoester added a commit to rust-bio/rust-htslib that referenced this issue Mar 17, 2020
* Update to htslib 1.10.2 (#184)

* Pull 1.10.2 submodule. Initial pass on i32->i64 type conversion, will eventually fix issue #183

* Fixes issue #109 while I'm at it, long hanging fruit fix

* Fix compression levels

* Going through https://github.com/samtools/htslib/blob/develop/README.large_positions.md to spot 64 bit reference position changes and sam_* function renaming. Only 4 errors left, but need to closely check types afterwards very carefully. Specially for the binary formats where this change does not apply and (sub)fields that do not necessarily require big representations

* Repoint submodule to upstream release tag

* Switch from rust-bio hosted htslib to upstream's samtools htslib.

* Try to amend submodule

* Handle submodules manually on TravisCI, since it is failing now: https://travis-ci.org/rust-bio/rust-htslib/builds/645772614

* Odd balls that would need review marked with XXX. New htslib seems to require libcurl

* Add curl-sys crate for hplugin_curl, aws s3 et al

* Add conditional libcurl compilation flags

* Be nice with cargo fmt [ci skip]

* Try installing libcurl meta-package instead of the openssl dependent one?: https://travis-ci.org/rust-bio/rust-htslib/builds/645790138#L1529

* Does not work with libcurl-dev metapackage: https://travis-ci.org/rust-bio/rust-htslib/jobs/645812050#L166, rollback and try with bionic ubuntu distro. It does compile locally on OSX

* Add matrix compile support for TravisCI, I would like to know why it compiles fine in OSX and fails on Linux now...

* PPA source no longer needed for ubuntu bionic? [ci skip]

* Bionic packages htslib with gnutls instead of openssl: https://packages.ubuntu.com/source/disco/htslib ... and it even comes with pre-shipped libcurl4-gnutls-dev, so no need to install it explicitly?: https://travis-ci.org/rust-bio/rust-htslib/jobs/645816116#L160

* sed is not gsed on OSX... not entirely sure this substitution is 100% needed

* Add libssl-dev to the mix for the openssl-sys: https://travis-ci.org/rust-bio/rust-htslib/jobs/645825022#L1000. Testsuite seems to run partially now: https://travis-ci.org/rust-bio/rust-htslib/jobs/645825022#L623

* Add build-essential in hopes to fix libcurl issue, incorporate #185, fix one testsuite warning

* Add curl on default features for hts-sys

* Point to the right htslib upstream repo, thanks @dlaehnemann [skip ci]

* Appease OSX musl-cross toolchain requirements: https://travis-ci.org/rust-bio/rust-htslib/jobs/645907695#L1222

* TravisCI timesout installing brew deps: https://travis-ci.org/rust-bio/rust-htslib/jobs/647667984#L212 ... Not sure if travis_wait will work with homebrew addons?: https://docs.travis-ci.com/user/common-build-problems/#build-times-out-because-no-output-was-received... trying

* Try workaround for https://twitter.com/braincode/status/1226103002550849542

* Do not update homebrew (time intensive), switch from travis_wait to verbose to keep the build output being generated, hopefully

* brew install --verbose is not verbose enough for travis, reverting travis_wait and bumping to 40min for brew deps install and musl-cross

* Explicitly install system libcurl on linux and osx

* This .cargo/config makes it test right locally: rust-lang/rust#60149 (comment), only 5 tests failing now and no linking errors from libcurl (on OSX, at least) :)

* Cargo.toml missing quote misshap

* Same linker flags should apply for Linux builds? build-essential not necessary

* tid is i64 now, CRAM vs BAM test l_data is off by 3 and m_data is off too

* There should be no need for travis_wait with -v

* Debugging htslib structs with @jkbonfield guidance...

* Disable osx and musl-cross homebrew on the TravisCI matrix since it times out anyway, start looking into l_extranul and alignment issues for CRAM/BAM. Add curl_sys crate in hts-sys/src/lib.rs.

* Mystery solved for test_read_cram, testing some of the struct fields, explicitly state that l_data should differ according to #184 (comment)

* Extract selective CRAM/BAM field comparison to test helper function

* Formatting

* Temporarily commenting the hfile format category detection makes .bed filetype tests pass but .BAI idx locator fails

* Format detection seems to be broken upstream on htslib, see #184 (comment)

* Revert to libcurl4-openssl-dev instead of gnutls. All TravisCI script targets compiling and passing tests otherwise

* Bump up curl-sys version

* Experimenting musl cross-compilation with rustembedded cross. Ideally this would get rid of the homebrew musl-cross issue (too long compile times). /cc @nlhepler

* Remove assert_ne since cannot guarantee that l_data is different on all bam/crams

* Add minimum deps needed for rustembedded cross docker container

* Run docker in TravisCI, even if it is only supported on linux jobs :/

* Add CFLAGS suggested by @nlhepler

* Separate musl from GNU toolchains on Rust cross

* Bump up bindgen, vendorize openssl, further experimentation with compile flags

* Deprecate the mixed GNU/MUSL container

* Add minimal explanation on how to use the new docker files [ci skip]

* cross 0.2.0 with openssl vendored. Progress but more htslib compile time issues remain still

* Make sure libzma is present in both containers [ci skip]

* Focusing on LLVMv8 GNU cross build first, musl will come later on (if possible w/ htslib)

* Two more usize that should be u64

* Amend and settle BED header debate

* Rename test name accordingly

* Transition to cross instead of cargo for builds and tests

* All GNU/clang/llvm8 builds and tests seem to succeed, transitioning to musl testing now...

* Remove stray (repeated) musl build

* Remove @FiloSottile musl-cross homebrew formula since it takes too long to compile and timeouts CI, using clux/muslrust gets me a bit farther. Remove local rustup musl target... since htslib 1.10, the introduction of openssl complicated local compilation w/ musl greatly, unfortunately we have to resort to docker these days instead :/

* Experiment with toolchain setup in https://gitlab.com/rust_musl_docker/image. Remove vendored openssl since it's shipped in cross containers.

* Remove build.rs flags noise and different tests, containers should handle them transparently depending on the defined environment within, thanks @nlhepler

* Indicate dependencies and build flags required for OSX [ci skip].

* enable musl builds

* add libclang

* minor

* dbg

* revert

* dbg

* dbg

* Revert cross/docker madness, bottled up musl-cross myself over here: https://github.com/brainstorm/homebrew-musl-cross/commit/9304bf9cd6bc2b784083948771977d502030815a, high sierra bottle coming up soon. Cargo build script draft

* Add in openssl to hts-sys

* Make clippy boolean logic happy

* Remove homebrew OSX check since we'll just use rustembedded cross

Co-authored-by: Julian Gehring <[email protected]>
Co-authored-by: Johannes Köster <[email protected]>

* disable musl tests

Co-authored-by: Roman Valls Guimera <[email protected]>
Co-authored-by: Julian Gehring <[email protected]>
@DhanAnJay-Ahire
Copy link

If You are Mac user then try below command into terminal,
xcode-select --install

I have tried for Mac and now my rust is started using it.....

@DhanAnJay-Ahire
Copy link

After. updating the OS from 10.12 to 10.14 Catalina then I have started getting this issue, So to solve this incompatible issue I have updated my Xcode developer kit using. below command and its started working out, so please try it once, I have tried and its solved now...I can execute my cargo and its working as expected

xcode-select --install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-linkage Area: linking into static, shared libraries and binaries T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

4 participants