Reputation: 987
https://travis-ci.org/mmmries/sqlitex/builds/51889563#L96
I'm trying to setup Travis CI integration for my sqlite Elixir project. Currently the build is failing when trying to compile the C extension which is part of the esqlite dependency. The error message is coming back with
c_src/esqlite3_nif.o: file not recognized: File format not recognized
So the compilation error is happening down in the rebar layer which I don't know much about. I haven't been able to replicate this build error outside of Travis so I'm not sure where to look next.
Upvotes: 1
Views: 237
Reputation: 987
The build is now working correctly: https://travis-ci.org/mmmries/sqlitex/builds/52085658
The problem was that I messed up the esqlite dependency upstream. I published a copy of the rebar project to hex.pm so I could specify it as a dependnecy, but I accidentally included the compiled "c_src/*.o" files in the hex package, but these files should be compiled locally on the client machine.
The ubuntu image on travis was trying to use the existing .o files that were compiled on an OSX machine which is why the file format was wrong.
Upvotes: 1