Closed
Description
First seen on https://travis-ci.org/rust-lang/rust/jobs/209693739 appears to look like:
ar: creating archive ../../libcrypto.aar:
../libcrypto.a: Inappropriate file type or format
make[2]: *** [../libcrypto.a] Error 1
Metadata
Metadata
Assignees
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
alexcrichton commentedon Mar 22, 2017
@sfackler you wouldn't happen to have run into this before, would you have?
sfackler commentedon Mar 22, 2017
I have never seen this, no.
CleanCut commentedon Mar 22, 2017
Looks a lot like this.
The solutions there are manually patching OpenSSL makefiles, I believe.
I don't have any more spare time at the moment. If I get a chance, I'll see if I can figure out what method you are using to compile OpenSSL and see if it can be adjusted. No promises. ;-)
alexcrichton commentedon Mar 23, 2017
Awesome find @CleanCut! Would you be up for sending a PR? We compile OpenSSL here and vendoring a patch somewhere in tree is totally fine to do.
CleanCut commentedon Mar 23, 2017
Sure, I'll give it a shot. Would you mind giving me a hint on how to execute said code on my own machine (up-to-date macOS Sierra)? I haven't ever worked on Rust's own implementation, yet, and the
.travis.yml
file is confounding my mental parser.I'd rather run it on my own machine until I get it right before committing & making a PR and waiting for the builders to get to it! ;-)
alexcrichton commentedon Mar 23, 2017
Sure yeah, first you'll want to change this line from
path/to/nowhere
to something more descriptive likeopenssl
, and then it's just:CleanCut commentedon Mar 23, 2017
Hmmm. It builds just fine for me. I'll need to get it to fail...
CleanCut commentedon Mar 23, 2017
Actually, it doesn't look like it's building openssl at all. I just get this:
That's with only this modification:
alexcrichton commentedon Mar 23, 2017
Oh right sorry! That patch looks correct but you'll also need to run the
./configure
script with the--enable-cargo-openssl-static
argument I believeCleanCut commentedon Mar 23, 2017
Okay. That appears to compile openssl, albeit with much, much less output than the builders.
But the build succeeds! :-( Any ideas on how I get it to fail?
44 remaining items