[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Parallella Community • View topic - Duplicate Symbols compiling SDK on Mac

Duplicate Symbols compiling SDK on Mac

Discussion about Parallella (and Epiphany) Software Development

Moderators: amylaar, jeremybennett, simoncook

Duplicate Symbols compiling SDK on Mac

Postby 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.
EN8lvVPyrXVsNved3pcP
 
Posts: 6
Joined: Thu Feb 27, 2014 6:32 am

Re: Duplicate Symbols compiling SDK on Mac

Postby jeremybennett » Thu Feb 27, 2014 8:03 am

User avatar
jeremybennett
 
Posts: 61
Joined: Mon Dec 17, 2012 9:06 am

Re: Duplicate Symbols compiling SDK on Mac

Postby EN8lvVPyrXVsNved3pcP » Mon Mar 03, 2014 7:59 pm

Hi Jeremey,

Yes it would appear so. As far as I know that is the default compiler when you have Xcode 5 installed. Is that a problem for compiling the SDK ?

Here is the output from the command line for the gcc version number

gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/c++/4.2.1
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin13.1.0
Thread model: posix

Any suggestions on how to fix this ? It made it quite a way through the process before failing.
EN8lvVPyrXVsNved3pcP
 
Posts: 6
Joined: Thu Feb 27, 2014 6:32 am

Re: Duplicate Symbols compiling SDK on Mac

Postby jeremybennett » Tue Mar 04, 2014 9:22 am

Hi Jon,

Yes - I agree others have this working in Mac environments. I'll consult with Simon Cook, who is our local Mac expert. I'm not sure how long LLVM has been the default compiler, or how effective LLVM is in cross-compiling GCC. I note that the actual error is a binutils error, and as far as I am aware Mac still uses GNU binutils.

More news later...


Jeremy
User avatar
jeremybennett
 
Posts: 61
Joined: Mon Dec 17, 2012 9:06 am

Re: Duplicate Symbols compiling SDK on Mac

Postby rsneekes » Sun Mar 16, 2014 6:02 pm

rsneekes
 
Posts: 4
Joined: Mon Dec 17, 2012 3:23 am

Re: Duplicate Symbols compiling SDK on Mac

Postby EN8lvVPyrXVsNved3pcP » Sun Mar 16, 2014 6:37 pm

Hi Raymond,

Thanks for the update. I will have to give it a try. One question though... did this break your ability to compile xcode projects in any way ?
EN8lvVPyrXVsNved3pcP
 
Posts: 6
Joined: Thu Feb 27, 2014 6:32 am

Re: Duplicate Symbols compiling SDK on Mac

Postby rsneekes » Sun Mar 16, 2014 6:43 pm

Haven't tested that yet after this yet, but it shouldn't. When you don't need the macports gcc, you can do "sudo port select --set gcc none" to disable it again.
rsneekes
 
Posts: 4
Joined: Mon Dec 17, 2012 3:23 am

Re: Duplicate Symbols compiling SDK on Mac

Postby rsneekes » Sun Mar 16, 2014 10:09 pm

Just tested Xcode with a small OSX project and a bigger iOS project and both compiled/debugged without any problems.
rsneekes
 
Posts: 4
Joined: Mon Dec 17, 2012 3:23 am

Re: Duplicate Symbols compiling SDK on Mac

Postby seandoyle » Mon Apr 28, 2014 2:52 pm

seandoyle
 
Posts: 6
Joined: Mon Dec 17, 2012 3:29 am

Re: Duplicate Symbols compiling SDK on Mac

Postby simoncook » Thu May 01, 2014 8:42 am

Useful SDK Links: - - -
User avatar
simoncook
 
Posts: 50
Joined: Mon Dec 17, 2012 3:25 am
Location: United Kingdom

Next

Return to Programming Q & A

Who is online

Users browsing this forum: No registered users and 3 guests

cron