allwpilib icon indicating copy to clipboard operation
allwpilib copied to clipboard

wpimath execution failed

Open alphan3231 opened this issue 1 year ago • 5 comments

  • What went wrong: Execution failed for task ':wpimath:generateProto'.

java.io.IOException: Cannot run program "/home/elliot/.gradle/caches/modules-2/files-2.1/com.google.protobuf/protoc/3.21.12/62e794ebd383cad86347240f1c9b419c8d8fce10/protoc-3.21.12-linux-x86_64.exe": error=2, No such file or directory

I'm using nixOS, when I want to use './gradlew build' i took that error, what should i do?

alphan3231 avatar Dec 19 '23 11:12 alphan3231

Does the file exist there? We recently stopped generating files during the build, so idk why it requires protoc by default anymore.

calcmogul avatar Dec 19 '23 18:12 calcmogul

We still generate the C++ protobuf files during the build. If the file exists there, this sounds like a potential libc incompatibility? We’re just using the standard protobuf Gradle plugin.

PeterJohnson avatar Dec 19 '23 19:12 PeterJohnson

yes the file exist in '/home/elliot/.gradle/caches/modules-2/files-2.1/com.google.protobuf/protoc/3.21.12/62e794ebd383cad86347240f1c9b419c8d8fce10/'

alphan3231 avatar Dec 20 '23 16:12 alphan3231

Can you execute that file?

sciencewhiz avatar Dec 20 '23 20:12 sciencewhiz

Since this is NixOS, I'm guessing some library dependency can't be found. You might need to build within a FHS user env.

Could you run lddtree on that binary? That'll show what libraries are missing.

auscompgeek avatar Dec 20 '23 23:12 auscompgeek