Link issues (?) with xTIMEcomposer 12.2 on OSX

New to XMOS and XCore? Get started here.
User avatar
dfglv
Junior Member
Posts: 7
Joined: Thu Mar 28, 2013 11:04 am

Link issues (?) with xTIMEcomposer 12.2 on OSX

Postby dfglv » Fri Apr 26, 2013 3:38 pm

I've recently started to use 12.2 after working with 11.11 for some time and I'm hitting a problem.

When I build a project from github - and it seems to apply to any project that builds using the XMOS makefile system - I get error messages from dyld. Here's example output from building the app_random_example project in the sc_util repo:

Code: Select all

**** Build of configuration Default for project app_random_example ****

xmake all 
Checking xmos.com for board support package: XK-1
Installed BSP for target XK-1
Creating dependencies for random.xc
dyld: lazy symbol binding failed: Symbol not found: __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
  Referenced from: /Applications/XMOS_xTIMEcomposer_12.2.0/bin/xcc
  Expected in: /usr/lib/libstdc++.6.dylib

bash: line 1: 16326 Trace/BPT trap          xcc -MMD -E -g -O3 -save-temps -Wall -target="XK-1" -DCONFIG=Default -D__random_conf_h_exists__=1 -I'../.' -I'.././src' -I'/Users/skeptic/workspace/module_random' -I'/Users/skeptic/workspace/module_random/doc' -I'/Users/skeptic/workspace/module_random/src' '/Users/skeptic/workspace/module_random/src/random.xc' > /dev/null

[ ... there are a few of these, then: ]

xmake[1]: *** [.build/src/main.c.o] Error 133
xmake: *** [bin//app_random_example.xe] Error 2

My environment variables should be in good order:

Code: Select all

XCC_ASSEMBLER_INCLUDE_PATH=/Applications/XMOS_xTIMEcomposer_12.2.0/target/include:/Applications/XMOS_xTIMEcomposer_12.2.0/target/include/gcc
XCC_CPLUS_INCLUDE_PATH=/Applications/XMOS_xTIMEcomposer_12.2.0/target/include:/Applications/XMOS_xTIMEcomposer_12.2.0/target/include/gcc:/Applications/XMOS_xTIMEcomposer_12.2.0/target/include/c++/4.2.1:/Applications/XMOS_xTIMEcomposer_12.2.0/target/include/c++/4.2.1/xcore-xmos-elf
XCC_C_INCLUDE_PATH=/Applications/XMOS_xTIMEcomposer_12.2.0/target/include:/Applications/XMOS_xTIMEcomposer_12.2.0/target/include/gcc
XCC_DEVICE_PATH=/Applications/XMOS_xTIMEcomposer_12.2.0/configs:/Applications/XMOS_xTIMEcomposer_12.2.0/configs/.deprecated
XCC_EXEC_PREFIX=/Applications/XMOS_xTIMEcomposer_12.2.0/libexec/
XCC_LIBRARY_PATH=/Applications/XMOS_xTIMEcomposer_12.2.0/target/lib
XCC_TARGET_PATH=/Users/skeptic/.xmos/targets:/Applications/XMOS_xTIMEcomposer_12.2.0/targets:/Applications/XMOS_xTIMEcomposer_12.2.0/targets/.deprecated
XCC_XC_INCLUDE_PATH=/Applications/XMOS_xTIMEcomposer_12.2.0/target/include:/Applications/XMOS_xTIMEcomposer_12.2.0/target/include/gcc
XMOS_CACHE_PATH=/Users/skeptic/.xmos/cache
XMOS_DOC_PATH=/Applications/XMOS_xTIMEcomposer_12.2.0/doc
XMOS_HOME=/Users/skeptic/.xmos
XMOS_MAKE_PATH=/Applications/XMOS_xTIMEcomposer_12.2.0/build
XMOS_REPO_PATH=/Users/skeptic/.xmos/repos
XMOS_TOOL_PATH=/Applications/XMOS_xTIMEcomposer_12.2.0
I can't think what to check next. Can anyone help?
User avatar
dfglv
Junior Member
Posts: 7
Joined: Thu Mar 28, 2013 11:04 am

Postby dfglv » Fri Apr 26, 2013 9:16 pm

The properties for any project seem to have a problem with builders. Multiple rounds of reinstalling / rebooting hasn't resolved it. This is using OS X 10.5.8. XDE 11.11 runs without any trouble on this machine (although I've temporarily uninstalled it while testing).
You do not have the required permissions to view the files attached to this post.
User avatar
segher
XCore Expert
Posts: 843
Joined: Sun Jul 11, 2010 1:31 am

Postby segher » Fri Apr 26, 2013 10:20 pm

Googling for your error message suggests you are on OSX 10.5,
and the xTIMEcomposer was built on a 10.6 (or higher) with
deployment target of 10.5; this does not work because of a bug
in Xcode. Or something. (It should have built with GCC 4.0 but
instead it used GCC 4.2, if I understand things correctly).
User avatar
dfglv
Junior Member
Posts: 7
Joined: Thu Mar 28, 2013 11:04 am

Postby dfglv » Sat Apr 27, 2013 9:54 am

Ouch! Thank you, that's very helpful.
User avatar
segher
XCore Expert
Posts: 843
Joined: Sun Jul 11, 2010 1:31 am

Postby segher » Sat Apr 27, 2013 1:36 pm

Can you try on 10.6? That would confirm things.
User avatar
dfglv
Junior Member
Posts: 7
Joined: Thu Mar 28, 2013 11:04 am

Postby dfglv » Sat Apr 27, 2013 8:15 pm

I think so. I should be able to borrow a 10.6 machine on Monday, and I'll report back.
User avatar
dfglv
Junior Member
Posts: 7
Joined: Thu Mar 28, 2013 11:04 am

Postby dfglv » Thu May 02, 2013 2:05 pm

Took a little longer than expected, sorry.

I can confirm there are no problems on 10.6.

Who is online

Users browsing this forum: No registered users and 0 guests