ricardoquesada / Spidermonkey

SpiderMonkey

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[iOS] Linking errors in spidermonkey v21

dumganhar opened this issue · comments

Undefined symbols for architecture i386:
  "JSContext::updateMallocCounter(unsigned long)", referenced from:
      js::Vector::convertToHeapStorage(unsigned long) in libjs_static.a(SPSProfiler.o)
      js::MallocProvider::realloc_(void*, unsigned long, unsigned long) in libjs_static.a(SPSProfiler.o)
ld: symbol(s) not found for architecture i386

thanks for the bug report.
Could you give more context info ? Were you trying to compile the Android version ? or iOS ? or OS X ? Or Windows ?
What are the steps to reproduce it ? Thanks.

[UPDATE] Ok, I see that you were trying to compile it fro iOS...I will try again from a clean repo... perhaps I forgot to add a file.
Did it compile OK for Mac or Android ? thanks

I did a clean "clone" and it compiled OK on my machine on iOS.
Could you do a clean "clone" also ? and also make sure to compile it using the js/src/build-ios/build.sh script.

Yes, I used the script in js/src/build-ios/build.sh
Then, I found that it only appears on iphone-simulator while it works ok on device.
You could reproduce this issue by using IphoneSimulator target.

BTW, I also use cocos2d-iphone/JS-Test to test this issue. It also exists.

you are correct. thanks. I can reproduce it on the simulator.

@dumganhar Thanks. Fixed. Could you try again ? Thanks.