Page 1 of 1
Compiler Error Message
Posted: 08 February 2008, 14:36 PM
by Don_Kirby
I get the folloring error when compiling. Nothing specific, no warnings, no other indications of what the problem might be.
Native Mode Compiler wrote:
Internal Error: an error occurred while building ZXOnly.zxc
>Exit code: 1
Could be the install, although it went smoothly.
-Don
Posted: 08 February 2008, 14:39 PM
by Don_Kirby
This might have something to do with it...
Native Mode Compiler wrote:
>"C:\Program Files\ZBasic\zbasic.exe" --target-device=ZX24a
For some reason, the compiler is trying to compile for a '24A, but the preprocessor is including all of the native specific code due to
-Don
Posted: 08 February 2008, 14:54 PM
by mikep
Don_Kirby wrote:This might have something to do with it...
Native Mode Compiler wrote:
>"C:\Program Files\ZBasic\zbasic.exe" --target-device=ZX24a
For some reason, the compiler is trying to compile for a '24A, but the preprocessor is including all of the native specific code due to
I don't think that is it. The
--target-device option comes from what is defined in the Device Options dialog in the IDE. The TargetDevice option in the BAS files takes precedence over the compiler command line option. You can verify that this makes no difference by change the device in the Device Options menu.
Try reinstalling or checking if your disk is full or read-only.
Re: Compiler Error Message
Posted: 08 February 2008, 15:02 PM
by dkinzer
Code: Select all
Internal Error: an error occurred while building ZXOnly.zxc
That error message means that an error occurred during the backend build process. If you add the --verbose option in your project file, you may be able to get more information about what's failing. This option will cause output from the backend process to be sent to the Output window so you may be able to see an error message that will be helpful.
The ZXOnly code that you sent me a while back compiles fine here so it is either an error due to changes you've made since then or an installation issue of some kind.
Posted: 09 February 2008, 10:22 AM
by Don_Kirby
The compile is failing on the the following 4 lines
Compiler wrote:
AlarmTask.c:57: error: expected expression before ')' token
AlarmTask.c:58: error: expected expression before ')' token
AlarmTask.c:172: error: expected expression before ')' token
AlarmTask.c:173: error: expected expression before ')' token
...which equates to the following C code
Code: Select all
zv_SensorAlarmRequest = ZX_BOOL((32 & zv_Alarm1Request) & ());
zv_MaxROCRequest = ZX_BOOL((16 & zv_Alarm1Request) & ());
zv_SensorAlarmRequest = ZX_BOOL((1 & zv_Alarm1Request) & ());
zv_MaxROCRequest = ZX_BOOL((2 & zv_Alarm1Request) & ());
The code still compiles fine for VM devices, but there have been changes made recently.
-Don
Posted: 09 February 2008, 11:11 AM
by dkinzer
Don_Kirby wrote:The code still compiles fine for VM devices, but there have been changes made recently.
It's a native mode code generation issue. If you post the corresponding ZBasic Code along with the variable definitions I should be able to resolve it fairly quickly. It may be better to send me an update for the code you sent earlier. That way I'll have everything that I need.
Posted: 09 February 2008, 11:32 AM
by Don_Kirby
It's on it's way.
-Don
Posted: 09 February 2008, 13:17 PM
by dkinzer
The problem has been resolved and an updated compiler (and ZX Library files) has been posted. See
http://www.zbasic.net/forum/about883.html