Skip to content
This repository has been archived by the owner on Dec 23, 2023. It is now read-only.

Build failures: "Undefined reference" from animal-sniffer #538

Closed
bogdandrutu opened this issue Aug 22, 2017 · 6 comments
Closed

Build failures: "Undefined reference" from animal-sniffer #538

bogdandrutu opened this issue Aug 22, 2017 · 6 comments
Assignees

Comments

@bogdandrutu
Copy link
Contributor

I am getting this error consistently without modifying the agent code:

/Users/bdrutu/github/instrumentation-java/contrib/agent/build/classes/java/test/io/opencensus/contrib/agent/ExecutorInstrumentationTest$1.class:67: Undefined reference: io.grpc.Context io.grpc.Context.current()
/Users/bdrutu/github/instrumentation-java/contrib/agent/build/classes/java/test/io/opencensus/contrib/agent/ExecutorInstrumentationTest$1.class:68: Undefined reference: Object io.grpc.Context.Key.get()
/Users/bdrutu/github/instrumentation-java/contrib/agent/build/classes/java/test/io/opencensus/contrib/agent/ExecutorInstrumentationTest$2.class:96: Undefined reference: io.grpc.Context io.grpc.Context.current()
/Users/bdrutu/github/instrumentation-java/contrib/agent/build/classes/java/test/io/opencensus/contrib/agent/ExecutorInstrumentationTest$2.class:97: Undefined reference: Object io.grpc.Context.Key.get()
/Users/bdrutu/github/instrumentation-java/contrib/agent/build/classes/java/test/io/opencensus/contrib/agent/ExecutorInstrumentationTest$3.class:119: Undefined reference: io.grpc.Context io.grpc.Context.current()
/Users/bdrutu/github/instrumentation-java/contrib/agent/build/classes/java/test/io/opencensus/contrib/agent/ExecutorInstrumentationTest$3.class:120: Undefined reference: Object io.grpc.Context.Key.get()
/Users/bdrutu/github/instrumentation-java/contrib/agent/build/classes/java/test/io/opencensus/contrib/agent/ExecutorInstrumentationTest$4.class:141: Undefined reference: io.grpc.Context io.grpc.Context.current()
/Users/bdrutu/github/instrumentation-java/contrib/agent/build/classes/java/test/io/opencensus/contrib/agent/ExecutorInstrumentationTest$4.class:141: Undefined reference: io.grpc.Context io.grpc.Context.ROOT
/Users/bdrutu/github/instrumentation-java/contrib/agent/build/classes/java/test/io/opencensus/contrib/agent/ExecutorInstrumentationTest$4.class:142: Undefined reference: io.grpc.Context io.grpc.Context.current()
/Users/bdrutu/github/instrumentation-java/contrib/agent/build/classes/java/test/io/opencensus/contrib/agent/ExecutorInstrumentationTest$4.class:143: Undefined reference: Object io.grpc.Context.Key.get()
/Users/bdrutu/github/instrumentation-java/contrib/agent/build/classes/java/test/io/opencensus/contrib/agent/ExecutorInstrumentationTest.class:51: Undefined reference: io.grpc.Context io.grpc.Context.current()
/Users/bdrutu/github/instrumentation-java/contrib/agent/build/classes/java/test/io/opencensus/contrib/agent/ExecutorInstrumentationTest.class:51: Undefined reference: void io.grpc.Context.detach(io.grpc.Context)
/Users/bdrutu/github/instrumentation-java/contrib/agent/build/classes/java/test/io/opencensus/contrib/agent/ExecutorInstrumentationTest.class:58: Undefined reference: io.grpc.Context io.grpc.Context.current()
/Users/bdrutu/github/instrumentation-java/contrib/agent/build/classes/java/test/io/opencensus/contrib/agent/ExecutorInstrumentationTest.class:58: Undefined reference: io.grpc.Context io.grpc.Context.withValue(io.grpc.Context.Key, Object)
/Users/bdrutu/github/instrumentation-java/contrib/agent/build/classes/java/test/io/opencensus/contrib/agent/ExecutorInstrumentationTest.class:59: Undefined reference: io.grpc.Context io.grpc.Context.attach()
/Users/bdrutu/github/instrumentation-java/contrib/agent/build/classes/java/test/io/opencensus/contrib/agent/ExecutorInstrumentationTest.class:87: Undefined reference: io.grpc.Context io.grpc.Context.current()
/Users/bdrutu/github/instrumentation-java/contrib/agent/build/classes/java/test/io/opencensus/contrib/agent/ExecutorInstrumentationTest.class:87: Undefined reference: io.grpc.Context io.grpc.Context.withValue(io.grpc.Context.Key, Object)
/Users/bdrutu/github/instrumentation-java/contrib/agent/build/classes/java/test/io/opencensus/contrib/agent/ExecutorInstrumentationTest.class:88: Undefined reference: io.grpc.Context io.grpc.Context.attach()
/Users/bdrutu/github/instrumentation-java/contrib/agent/build/classes/java/test/io/opencensus/contrib/agent/ExecutorInstrumentationTest.class:110: Undefined reference: io.grpc.Context io.grpc.Context.current()
/Users/bdrutu/github/instrumentation-java/contrib/agent/build/classes/java/test/io/opencensus/contrib/agent/ExecutorInstrumentationTest.class:110: Undefined reference: io.grpc.Context io.grpc.Context.withValue(io.grpc.Context.Key, Object)
/Users/bdrutu/github/instrumentation-java/contrib/agent/build/classes/java/test/io/opencensus/contrib/agent/ExecutorInstrumentationTest.class:111: Undefined reference: io.grpc.Context io.grpc.Context.attach()
/Users/bdrutu/github/instrumentation-java/contrib/agent/build/classes/java/test/io/opencensus/contrib/agent/ExecutorInstrumentationTest.class:131: Undefined reference: io.grpc.Context io.grpc.Context.current()
/Users/bdrutu/github/instrumentation-java/contrib/agent/build/classes/java/test/io/opencensus/contrib/agent/ExecutorInstrumentationTest.class:131: Undefined reference: io.grpc.Context io.grpc.Context.withValue(io.grpc.Context.Key, Object)
/Users/bdrutu/github/instrumentation-java/contrib/agent/build/classes/java/test/io/opencensus/contrib/agent/ExecutorInstrumentationTest.class:132: Undefined reference: io.grpc.Context io.grpc.Context.attach()
/Users/bdrutu/github/instrumentation-java/contrib/agent/build/classes/java/test/io/opencensus/contrib/agent/ExecutorInstrumentationTest.class:39: Undefined reference: io.grpc.Context.Key io.grpc.Context.key(String)

@ubschmidt2
Copy link
Member

ubschmidt2 commented Aug 23, 2017

Not sure yet what's going on. Could you put the full build output into a Gist?

@ubschmidt2
Copy link
Member

Could not reproduce yet. :-(

@ubschmidt2
Copy link
Member

This is not from javac and not from the actual test execution, but from some tool in between, not sure which.

@ubschmidt2
Copy link
Member

AFAICT, these messages come from animal sniffer, and it looks like an issue with the classpath that animal sniffer is using (grpc-context not on classpath?). What's puzzling is that this is a different permanent failure than described in the other bugs. Have you seen these "undefined reference" errors from animal sniffer lately? If not, I'd suggest to close this issue, and I focus on the other permanent build failure.

@ubschmidt2 ubschmidt2 assigned bogdandrutu and unassigned ubschmidt2 Aug 25, 2017
@ubschmidt2 ubschmidt2 changed the title Build failures Build failures: "Undefined reference" from animal-sniffer Aug 25, 2017
@ubschmidt2
Copy link
Member

I'm closing this in favor of #557. Same underlying issue. Order of task execution in gradle.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants