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

'main': symbol multiply defined error building CHaiDNN using SDx IDE #9

Closed
ensafi opened this issue Apr 12, 2018 · 2 comments
Closed

Comments

@ensafi
Copy link

ensafi commented Apr 12, 2018

Following the BUILD_USING_SDX_GUI instructions and working around issue #3 by making clock_start and related variables static, I am getting a final link error with main() being multiply defined:

ERROR: [SdsCompiler 83-5019] Exiting sds++ : Error when calling '/opt/Xilinx/SDx/2017.4/bin/llvm-link -o /workspace/CHaiDNN/Debug/_sds/.llvm/sds_all.o /workspace/CHaiDNN/Debug/_sds/.llvm/./src/software/xtract/caffe.pb.s ...

@hpollittsmith
Copy link

I've found that you cannot build all of the applications in SDx at the same time. If you want to build the SSD example, then you should exclude the other applications from the build. For example, in the Project Explorer-->src-->software-->example right-click on alexnet.cpp and in the menu, select Resource Configurations-->Exclude from Build... Check the "Debug" and "Release" boxes. The alexnet_ex.cpp will be greyed out in the Project Explorer window. Do this for all the example applications (except the one you want to compile).

Note that this will create a elf file with the same name as your project.

@VishalX
Copy link
Collaborator

VishalX commented Apr 18, 2018

Please exclude other example files from the project; Use one example file while building.

@VishalX VishalX closed this as completed Apr 18, 2018
VishalX added a commit that referenced this issue May 16, 2018
arunxlnx pushed a commit that referenced this issue Jul 26, 2018
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

3 participants