by EN8lvVPyrXVsNved3pcP » Thu Feb 27, 2014 6:47 am
I am attempting to compile the SDK on Mac os X 10.9 and running into the following issue with duplicate symbols. It starts here :
-I/Users/Jon/epiphany-sdk/srcw/sim/epiphany/../../opcodes -I../../intl -g -O2 -o run \
nrun.o libsim.a ../../bfd/libbfd.a ../../opcodes/libopcodes.a ../../intl/libintl.a -liconv ../../libiberty/libiberty.a -lz -lm
duplicate symbol _sim_addr_range_hit_p in:
nrun.o
libsim.a(sim-arange.o)
duplicate symbol _sim_addr_range_hit_p in:
nrun.o
libsim.a(sim-command.o)
duplicate symbol _sim_addr_range_hit_p in:
nrun.o
libsim.a(sim-config.o)
......
Continues for a long wihle and ends here
duplicate symbol _sim_addr_range_hit_p in:
nrun.o
libsim.a(epiphany-fp.o)
duplicate symbol _sim_addr_range_hit_p in:
nrun.o
libsim.a(devices.o)
duplicate symbol _sim_addr_range_hit_p in:
nrun.o
libsim.a(traps.o)
ld: 255 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [run] Error 1
make[1]: *** [all] Error 1
make: *** [all-sim] Error 2
It seems that others have gotten this to work on Mac so I obviously must be doing something incorrectly. I used MacPorts to install the dependencies as indicated in the install documentation. I have the latest xcode and command line tools installed version 5.0.2.
Any suggestions on what to look for ?
Thanks in advance for any assistance.