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

Run make coveralls encounters error if WITH_GOLANG=ON #7551

Closed
typhoonzero opened this issue Jan 16, 2018 · 0 comments
Closed

Run make coveralls encounters error if WITH_GOLANG=ON #7551

typhoonzero opened this issue Jan 16, 2018 · 0 comments

Comments

@typhoonzero
Copy link
Contributor

Build options: -DWITH_GOLANG=ON -DWITH_COVERAGE=ON -DCOVERALLS_UPLOAD=ON

# github.com/PaddlePaddle/Paddle/go/pserver
pserver/client/c/libpaddle_go_optimizer.a(optimizer.cc.o): In function `_GLOBAL__sub_I_65535_0_optimizer.cc':
/paddle/paddle/optimizer/optimizer.cc:106: undefined reference to `__gcov_init'
pserver/client/c/libpaddle_go_optimizer.a(optimizer.cc.o):(.data.rel+0x20): undefined reference to `__gcov_merge_add'
pserver/client/c/libpaddle_go_optimizer.a(parameter_optimizer.cc.o): In function `_GLOBAL__sub_I_65535_0_parameter_optimizer.cc':
/paddle/paddle/optimizer/parameter_optimizer.cc:92: undefined reference to `__gcov_init'
pserver/client/c/libpaddle_go_optimizer.a(parameter_optimizer.cc.o):(.data.rel+0x20): undefined reference to `__gcov_merge_add'
pserver/client/c/libpaddle_go_optimizer.a(OptimizerConfig.pb.cc.o): In function `_GLOBAL__sub_I_65535_0_OptimizerConfig.pb.cc':
/paddle/build/proto/OptimizerConfig.pb.cc:6152: undefined reference to `__gcov_init'
pserver/client/c/libpaddle_go_optimizer.a(OptimizerConfig.pb.cc.o):(.data.rel+0x20): undefined reference to `__gcov_merge_add'
pserver/client/c/libpaddle_go_optimizer.a(adadelta_optimizer.cc.o): In function `_GLOBAL__sub_I_65535_0_adadelta_optimizer.cc':
/paddle/paddle/optimizer/adadelta_optimizer.cc:69: undefined reference to `__gcov_init'
pserver/client/c/libpaddle_go_optimizer.a(adadelta_optimizer.cc.o):(.data.rel+0x20): undefined reference to `__gcov_merge_add'
pserver/client/c/libpaddle_go_optimizer.a(adagrad_optimizer.cc.o): In function `_GLOBAL__sub_I_65535_0_adagrad_optimizer.cc':
/paddle/paddle/optimizer/adagrad_optimizer.cc:57: undefined reference to `__gcov_init'
pserver/client/c/libpaddle_go_optimizer.a(adagrad_optimizer.cc.o):(.data.rel+0x20): undefined reference to `__gcov_merge_add'
pserver/client/c/libpaddle_go_optimizer.a(sgd_optimizer.cc.o): In function `_GLOBAL__sub_I_65535_0_sgd_optimizer.cc':
/paddle/paddle/optimizer/sgd_optimizer.cc:65: undefined reference to `__gcov_init'
pserver/client/c/libpaddle_go_optimizer.a(sgd_optimizer.cc.o):(.data.rel+0x20): undefined reference to `__gcov_merge_add'
pserver/client/c/libpaddle_go_optimizer.a(adam_optimizer.cc.o): In function `_GLOBAL__sub_I_65535_0_adam_optimizer.cc':
/paddle/paddle/optimizer/adam_optimizer.cc:63: undefined reference to `__gcov_init'
pserver/client/c/libpaddle_go_optimizer.a(adam_optimizer.cc.o):(.data.rel+0x20): undefined reference to `__gcov_merge_add'
collect2: error: ld returned 1 exit status
make[2]: *** [go/cmd/pserver/pserver_timestamp] Error 2
make[1]: *** [go/cmd/pserver/CMakeFiles/pserver.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants