1. problem with Euphoria to C translator on Mac OS 10
- Posted by tiger05 Jul 05, 2009
- 1091 views
- Last edited Jul 06, 2009
Hello. When I try to use the Euphoria to C translator on Mac OS 10, I get a bus error. I don't get any more information than that. I run it like: ecu myprogram.ex I'm running the 4.0 alpha 3 version of Euphoria on Mac OS 10.5.7 on an Imac Intel. Since the message is "bus error," that would seem to suggest that there is a problem with my hardware, but I don't think that's the case because I haven't gotten this message with any other applications on my computer. What's wrong?
2. Re: problem with Euphoria to C translator on Mac OS 10
- Posted by tiger05 Jul 06, 2009
- 1080 views
bump
3. Re: problem with Euphoria to C translator on Mac OS 10
- Posted by mattlewis (admin) Jul 06, 2009
- 1075 views
- Last edited Jul 07, 2009
Hello. When I try to use the Euphoria to C translator on Mac OS 10, I get a bus error. I don't get any more information than that. I run it like: ecu myprogram.ex I'm running the 4.0 alpha 3 version of Euphoria on Mac OS 10.5.7 on an Imac Intel. Since the message is "bus error," that would seem to suggest that there is a problem with my hardware, but I don't think that's the case because I haven't gotten this message with any other applications on my computer. What's wrong?
What's the program you're trying to translate?
Matt
4. Re: problem with Euphoria to C translator on Mac OS 10
- Posted by jacques_desch Jul 06, 2009
- 1113 views
- Last edited Jul 07, 2009
It is not about hardware bus but about software bus, which is an inter-process communication mechanism, like de D-BUS in linux.
ref: http://www.freedesktop.org/wiki/Software/dbus
Hello. When I try to use the Euphoria to C translator on Mac OS 10, I get a bus error. I don't get any more information than that. I run it like: ecu myprogram.ex I'm running the 4.0 alpha 3 version of Euphoria on Mac OS 10.5.7 on an Imac Intel. Since the message is "bus error," that would seem to suggest that there is a problem with my hardware, but I don't think that's the case because I haven't gotten this message with any other applications on my computer. What's wrong?
5. Re: problem with Euphoria to C translator on Mac OS 10
- Posted by tiger05 Jul 07, 2009
- 997 views
I can't get the ecu command to work for any program I try to translate. When I run it on some programs, I get a segmentation fault and on others, I get a bus error. Even a simple program like the code below gives a bus error.
puts(1,"Testing Euphoria\n") print(1,9*2) puts(1,"\n")
6. Re: problem with Euphoria to C translator on Mac OS 10
- Posted by mattlewis (admin) Jul 07, 2009
- 1066 views
- Last edited Jul 08, 2009
I can't get the ecu command to work for any program I try to translate. When I run it on some programs, I get a segmentation fault and on others, I get a bus error. Even a simple program like the code below gives a bus error.
puts(1,"Testing Euphoria\n") print(1,9*2) puts(1,"\n")
Please try building in debug mode. Ideally, build the runtime library first, then translate in debug mode, and link to the debug library. Then, run under gdb, and report where it's failing.
$ cd euphoria/source $ make library EDEBUG=1 $ euc -lib ./eu.a -debug myapp.ex $ gdb myapp (gdb) $ runI don't have a Mac, but this (substitute the proper directories above) should work on all the Unix like systems supported by euphoria
Matt
7. Re: problem with Euphoria to C translator on Mac OS 10
- Posted by tiger05 Jul 08, 2009
- 1004 views
Well, that was weird. I recompiled Euphoria as you istructed and I no longer have problems with the Euphoria to C translator. I just translated a couple of programs and I didn't get any segmentation fault or bus error.