Compiler Error Message

A private (members-only) forum for discussing all issues related to the Beta test of Native mode devices.
Locked
Don_Kirby
Posts: 341
Joined: 15 October 2006, 3:48 AM
Location: Long Island, New York

Compiler Error Message

Post 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
Don_Kirby
Posts: 341
Joined: 15 October 2006, 3:48 AM
Location: Long Island, New York

Post 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

Code: Select all

Option TargetDevice ZX24N
-Don
mikep
Posts: 796
Joined: 24 September 2005, 15:54 PM

Post 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

Code: Select all

Option TargetDevice ZX24N
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.
Mike Perks
dkinzer
Site Admin
Posts: 3120
Joined: 03 September 2005, 13:53 PM
Location: Portland, OR

Re: Compiler Error Message

Post 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.
- Don Kinzer
Don_Kirby
Posts: 341
Joined: 15 October 2006, 3:48 AM
Location: Long Island, New York

Post 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
dkinzer
Site Admin
Posts: 3120
Joined: 03 September 2005, 13:53 PM
Location: Portland, OR

Post 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.
- Don Kinzer
Don_Kirby
Posts: 341
Joined: 15 October 2006, 3:48 AM
Location: Long Island, New York

Post by Don_Kirby »

It's on it's way.

-Don
dkinzer
Site Admin
Posts: 3120
Joined: 03 September 2005, 13:53 PM
Location: Portland, OR

Post 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
- Don Kinzer
Locked