Is this a meaningful message from/for the compiler, or is it being generated by Wine?Compiler wrote:"C:\Program: Interrupt/Exception caught (code = 0xc0000005, addr = 0xb7cfacba)
-Don
Is this a meaningful message from/for the compiler, or is it being generated by Wine?Compiler wrote:"C:\Program: Interrupt/Exception caught (code = 0xc0000005, addr = 0xb7cfacba)
I'm fairly certain that it is not issued by the compiler. I haven't tried running it under Wine myself so I don't have much to offer in the way of advice.Don_Kirby wrote:Is this a meaningful message from/for the compiler, or is it being generated by Wine?
What kinds of errors or messages are you seeing? By default, when the compiler is built for a Windows environment, it constructs a batch file containing lines similar to those below and then the batch file is executed after modifying the environment so that the PATH entry contains references to the gcc binary directories in the ZBasic installation directory. (This avoids problems that could be caused by other versions of gcc being installed on the system.)Don_Kirby wrote:It appears that Wine does not agree with the backend compile process that ZBasic uses.
Code: Select all
@cd tempdir\proj
@rse make -f proj.mak >build.log
That's good news. Have you also been able to download?Don_Kirby wrote:I have gotten ZBasic to compile non-native mode code
Actually, the IDE doesn't invoke the AVR compiler. Rather, it only knows about the ZBasic compiler (currently available only as a Windows console application) which it invokes to produce the downloadable image. The ZBasic compiler itself invokes the avr-gcc compiler if a native mode target is specified. There is a way to specify a different path the avr-gcc compiler but I highly doubt that doing so would be useful in this particular case.Don_Kirby wrote:f I install the AVR compiler that is available for Linux, how would I go about modifying the IDE to call it rather than the windows version?
If you use the ZBasic compiler option --keep-files, you should find a makefile and the generated source files in the build directory (usually named zxTempDir/<project>).Don_Kirby wrote:What I'm attempting to do now is to interrupt the ZBasic compile process before the gcc is invoked so that I may manually finish the process using a native Linux gcc.
Which brings us to the stackdump:IDE wrote: >"C:\Program Files\ZBasic\zbasic.exe" --target-device=ZX24n --directory="Z:\media\Storage\Projects\Source Code/" --project="ZXOnly.pjt"
make: Entering directory `Z:/media/Storage/Projects/Source Code/zxTempDir/ZXOnly'
avr-gcc -c -Dzx24n -mmcu=atmega644p -std=gnu99 -fgnu89-inline -gdwarf-2 -Os -I"C:/Program Files/ZBasic/zxlib" -I. -Wall -Wstrict-prototypes -funsigned-char -fpack-struct MainTask.c -o MainTask.o
0 [main] sh 18 handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
1689 [main] sh 18 open_stackdumpfile: Dumping stack trace to sh.exe.stackdump
make: *** [MainTask.o] Error 101120
"C:\Program: Interrupt/Exception caught (code = 0xc0000005, addr = 0xb7d83cbc)
Error: one or more errors occurred in the back-end build process for "ZXOnly.zxb"
>Exit code: 1
My search of the available support resources at WineHQ.org has yet to turn up anything useful.WINE wrote:Exception: STATUS_ACCESS_VIOLATION at eip=00006042
eax=7B926930 ebx=7B8B0000 ecx=00110020 edx=00110024 esi=7FFDCC00 edi=C0000033
ebp=00673178 esp=006730CC program=C:\Program Files\ZBasic\WinAvr\utils\bin\sh.exe
cs=0073 ds=007B es=007B fs=0033 gs=003B ss=007B
Stack trace:
Frame Function Args
00673178 00006042 (7FFDCC00, 80000000, 00000007, 00673208)
006731A8 7B847BD2 (006733F8, 80000000, 00000007, 00673208)
00673218 30011C81 (00673738, 00190000, 00000000, 00673738)
00673258 3001360A (00673738, 006733F8, 00190000, 00000000)
00673778 3006775B (30067ABA, 006737E8, 00677828, 00000001)
006737B8 3006B821 (006737E8, 00677828, 00000000, 00000000)
006777E8 3002BACA (00677888, 00677828, 0068FB48, 00000000)
00677868 3002B352 (00677888, 00677888, 0067F8D8, 0068FB48)
0067F898 3002BBF8 (0067F8D8, 0068FB48, 0068FB48, 00000000)
006878E8 3002B292 (00687968, 0068FB48, 00000000, 00000000)
00687928 3002BC71 (00687968, 0068FB48, 00000000, 00000000)
0068F978 3002B9D1 (0068F990, 00000C90, 00000000, 0068FB48)
0068FB78 30003529 (0068FC15, 300C2AD8, 300C2AD4, 0068FBC4)
0068FBC8 300037B9 (0068FCDB, 300C2AD8, 300C2AD4, 00000001)
0068FDB8 30004356 (00000000, 00000000, 7FFDF000, 7BC43651)
0068FE88 300047B1 (004011C8, 7FFDF000, 7BC43BAD, 7BC320DF)
End of stack trace (more stack frames may be present)
That portion of of the dump indicates that the fault occurred in the shell program. This is supplied as part of the WinAVR package and it is used for executing programs as part of the "make" process.WINE wrote:program=C:\Program Files\ZBasic\WinAvr\utils\bin\sh.exe