I am not using any built version of boost, just the header and I am using 
boost 1.57.0 (i.e. latest release). I have just noticed that if I use "-s 
ASSERTIONS=1" then it mentions : 

uncaught exception: abort("Assertion failed: you need to wait for the 
runtime to be ready (e.g. wait for main() to be called)")

There is an earlier post on this error message, and I will look there and 
see if the reply you gave there helps. Thanks

On Wednesday, March 25, 2015 at 11:18:56 PM UTC, Alon Zakai wrote:
>
> Ok, not .mem then.
>
> How did you build boost for emscripten? Perhaps the problem lies there. Or 
> are you only using header portions of boost?
>
> Also possible boost has undefined behavior somewhere that LLVM is 
> exploiting. Narrowing it down within boost would help. Is that latest 
> boost? If not, might have bugs that were fixed meanwhile.
>
> - Alon
>
>
> On Wed, Mar 25, 2015 at 4:16 PM, <[email protected] <javascript:>> wrote:
>
>> But if I change the program to the below (i.e. replace boost stuff with 
>> vector), then it works fine even with O3 optimisation, so would it really 
>> have to do with the mem file (since if this is the case, then it should 
>> also afflict the vector case below)? :
>>
>> #include <iostream>
>> #include <boost/shared_ptr.hpp>
>> #include <vector>
>> using namespace std;
>>
>> extern "C" {
>>   double test(void) {
>>     //boost::shared_ptr<int> y = boost::shared_ptr<int>(new int(42));
>>     //return *y;
>>     vector<int> y;
>>     y.push_back(333555);
>>     return y[0];
>>   }
>> }
>>
>>
>>
>> On Wednesday, March 25, 2015 at 11:04:50 PM UTC, Alon Zakai wrote:
>>>
>>> file:// urls might hide failed loads. Use a localwebserver perhaps. The 
>>> problem I am thinking of is the .mem file not being found.
>>>
>>> If that isn't it, perhaps the stuff on http://kripken.github.io/
>>> emscripten-site/docs/porting/Debugging.html can help.
>>>
>>> - Alon
>>>
>>>
>>> On Wed, Mar 25, 2015 at 3:51 PM, <[email protected]> wrote:
>>>
>>>> Hi there are no errors (even for O3). Yes I am using file://, but the 
>>>> browser is firefox (linux) so it should be fine.
>>>>
>>>> On Wednesday, March 25, 2015 at 10:45:31 PM UTC, Alon Zakai wrote:
>>>>>
>>>>> Latest incoming is 3.6, so you are on an earlier version, but it 
>>>>> probably doesn't matter here.
>>>>>
>>>>> Do the web console or network consoles show any errors? Are you using 
>>>>> a file:// url (which fails in some browsers)?
>>>>>
>>>>> - Alon
>>>>>
>>>>>
>>>>> On Wed, Mar 25, 2015 at 3:38 PM, <[email protected]> wrote:
>>>>>
>>>>>> Hi the following code works fine (in the browser) when used with O1 
>>>>>> optimisations or lower, but seems to fail when O2 or higher is used. 
>>>>>> Does 
>>>>>> anyone have any idea why this might be happening ? I have tested this 
>>>>>> with 
>>>>>> the latest incoming (LLVM 3.5).
>>>>>>
>>>>>> #include <iostream>
>>>>>> #include <boost/shared_ptr.hpp>
>>>>>> using namespace std;
>>>>>>
>>>>>> extern "C" {
>>>>>>   double test(void) {
>>>>>>     boost::shared_ptr<int> y = boost::shared_ptr<int>(new int(42));
>>>>>>     return *y;
>>>>>>   }
>>>>>> }
>>>>>>
>>>>>> -- 
>>>>>> You received this message because you are subscribed to the Google 
>>>>>> Groups "emscripten-discuss" group.
>>>>>> To unsubscribe from this group and stop receiving emails from it, 
>>>>>> send an email to [email protected].
>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>
>>>>>
>>>>>  -- 
>>>> You received this message because you are subscribed to the Google 
>>>> Groups "emscripten-discuss" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send 
>>>> an email to [email protected].
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>>  -- 
>> You received this message because you are subscribed to the Google Groups 
>> "emscripten-discuss" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to