Oddly enough, if you rename the preprocessor output file (such as dsdt.i) to something
like dsdt.tmp, it will compile correctly.
This may be a quick workaround for you until the problem is fixed.
Bob
From: devel-bounces(a)acpica.org [mailto:
[email protected]] On Behalf Of Moore,
Robert
Sent: Wednesday, May 22, 2013 7:54 AM
To: Alexei Fedorov
Cc: devel(a)acpica.org
Subject: Re: [Devel] -D <symbol> Preprocessor Option Doesn't Work
There does seem to be a problem. I will investigate further and get back to you.
Bob
From:
[email protected]<mailto:
[email protected] [mailto:
[email protected]] On Behalf Of Moore, Robert
Sent: Wednesday, May 22, 2013 6:51 AM
To: Alexei Fedorov
Cc:
[email protected]<mailto:
[email protected]
Subject:
Re: [Devel] -D <symbol> Preprocessor Option Doesn't Work
It should, but I will check out your code.
From: Alexei Fedorov [mailto:
[email protected]]
Sent: Wednesday, May 22, 2013 5:46 AM
To: Moore, Robert
Cc:
[email protected]<mailto:
[email protected]
Subject:
RE: -D <symbol> Preprocessor Option Doesn't Work
Hi Robert,
Does pre-processor support the nested #if #else #endif statements?
This code
DefinitionBlock("DSDT.AML", "DSDT", 0x01, " ", "
", 3) {
//
// System Bus
//
Scope(_SB) {
// CPUs
Device(CPU0) {
Name(_HID, "ACPI0007")
Name(_UID, Zero)
}
#ifdef CPU_1
Device(CPU1) {
Name(_HID, "ACPI0007")
Name(_UID, One)
}
#else
#ifdef CPU_2
Device(CPU2) {
Name(_HID, "ACPI0007")
Name(_UID, 2)
}
#endif
#endif
} // _SB
}
When complied with
iasl.exe -l -D CPU_1 Dsdt.asl
causes the errors below:
Intel ACPI Component Architecture
ASL Optimizing Compiler version 20130517-32 [May 17 2013]
Copyright (c) 2000 - 2013 Intel Corporation
Dsdt.asl 37: //
Error 6126 -^ syntax error, unexpected $end, expecting PARSEOP_DEFINITIONBLOCK
Dsdt.asl 31: #endif
Error 6142 - ^ Mismatched #endif (Preprocessor)
ASL Input: Dsdt.asl - 38 lines, 0 bytes, 0 keywords
Listing File: Dsdt.lst - 199 bytes
Compilation complete. 2 Errors, 0 Warnings, 0 Remarks, 0 Optimizations
Dsdt.i (Preprocessor Output file) Could not delete: Permission denied
Dsdt.src (Source Output file) Could not delete: Permission denied
-----Original Message-----
From: Moore, Robert [mailto:
[email protected]]
Sent: 17 May 2013 22:08
To: Alexei Fedorov
Subject: RE: -D <symbol> Preprocessor Option Doesn't Work
We did a new release today, so you can just grab the windows binary from the website.
The fix for -D is in the release.
Bob
-----Original Message-----
Of Alexei Fedorov
Sent: Friday, May 17, 2013 3:16 AM
Subject: Re: [Devel] -D <symbol> Preprocessor Option
Doesn't Work
>Yes, it looks like it has been there a while.
>You can checkout the patch, or I can send you an updated windows
binary.
Hi Robert,
Please send me an updated binary.
Thanks.
-----Original Message-----
> Of
[email protected]<mailto:
[email protected]
Sent: 16 May 2013 18:09
Subject: Devel Digest, Vol 38, Issue 5
Send Devel mailing list submissions to
>
[email protected]<mailto:
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
or, via email, send a message with subject or body 'help' to
>
[email protected]<mailto:
[email protected]
You can reach the person managing the list at
>
[email protected]<mailto:
[email protected]
When replying, please edit your Subject line so it is more specific
than
"Re: Contents of Devel digest..."
Today's Topics:
1. Re: -D <symbol> Preprocessor Option Doesn't Work
(Moore, Robert)
2. Re: -D <symbol> Preprocessor Option Doesn't Work
(Moore, Robert)
----------------------------------------------------------------------
Message: 1
Date: Thu, 16 May 2013 15:59:17 +0000
> From: "Moore, Robert"
<
[email protected]<mailto:
[email protected]>
> <
[email protected]cpica.org<mailto:
[email protected]>
Subject: Re: [Devel] -D <symbol> Preprocessor Option
Doesn't Work
Message-ID:
>
<
[email protected]l.com<mailto:
[email protected]l.com>
Content-Type: text/plain; charset="us-ascii"
The fix for this is checked into our git tree.
Bob
Of Moore, Robert
Sent: Wednesday, May 15, 2013 10:33 AM
> To: Alexei Fedorov;
[email protected]<mailto:
[email protected]
Subject: Re: [Devel] -D <symbol> Preprocessor Option
Doesn't Work
Sorry, we did some code restructuring and broke this. You can go back
to
an earlier version of the compiler, or wait until later this week
when
there will be a new version.
Bob
> From:
[email protected]<mailto:
[email protected]<mailto:
[email protected]%3cmailto:
[email protected]>
[mailto:
[email protected]] On Behalf Of Moore, Robert
Sent: Wednesday, May 15, 2013 8:43 AM
> To: Alexei Fedorov;
[email protected]<mailto:
[email protected]<mailto:
[email protected]%3cmailto:
[email protected]>
Subject: Re: [Devel] -D <symbol> Preprocessor Option
Doesn't Work
We will check it out.
Thanks,
Bob
> From:
[email protected]<mailto:
[email protected]<mailto:
[email protected]%3cmailto:
[email protected]>
[mailto:
[email protected]] On Behalf Of Alexei Fedorov
Sent: Tuesday, May 14, 2013 5:27 AM
> To:
[email protected]<mailto:
[email protected]<mailto:
[email protected]%3cmailto:
[email protected]>
Subject: [Devel] -D <symbol> Preprocessor Option Doesn't
Work
Hi,
ASL User Guide states that #ifdef statements are recognized when a
symbol
is defined in the command line:
"3.3.2.2 #ifdef
Usage:
#ifdef symbol
Conditionally compile a block of text. The block is included in the
compilation if the symbol is defined, either from a #define or from
the -
D command line option"
but I cannot make ASL Compiler to recognize the following option
-D <symbol> Define symbol for preprocessor use
In the example below
DefinitionBlock("DSDT.AML", "DSDT", 0x01, "
", " ", 3) {
Scope(_SB) {
Device(CPU0) {
Name(_HID, "ACPI0007")
Name(_UID, Zero)
}
#ifdef CPU_1
Device(CPU1) {
Name(_HID, "ACPI0007")
Name(_UID, One)
}
#endif
}
}
The section between #ifdef CPU_1 ... #endif is not being compiled
when ASL
is invoked as:
iasl.exe -l -D CPU_1 Dsdt.asl
Checked with the latest version 20130418-32 [Apr 18 2013].
Any thoughts on what might be going wrong here?
Thanks.
-- IMPORTANT NOTICE: The contents of this email and any attachments
are
confidential and may also be privileged. If you are not the intended
recipient, please notify the sender immediately and do not disclose
the
contents to any other person, use it for any purpose, or store or
copy the
information in any medium. Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
> achment-0001.html
------------------------------
Message: 2
Date: Thu, 16 May 2013 17:12:44 +0000
> From: "Moore, Robert"
<
[email protected]<mailto:
[email protected]>
> <
[email protected]<mailto:
[email protected]>
Subject: Re: [Devel] -D <symbol> Preprocessor Option
Doesn't Work
Message-ID:
>
<
[email protected]l.com<mailto:
[email protected]l.com>
Content-Type: text/plain; charset="us-ascii"
Yes, it looks like it has been there a while.
You can checkout the patch, or I can send you an updated windows
binary.
From: Alexei Fedorov [mailto:
[email protected]]
Sent: Thursday, May 16, 2013 3:17 AM
> To: Moore, Robert;
[email protected]<mailto:
[email protected]
Subject: RE: -D <symbol> Preprocessor Option Doesn't Work
Hi Robert,
I tried that with 4 previous versions of compiler & still got the
same
issue.
Regards.
Alexei.
From: Moore, Robert [mailto:
[email protected]]
Sent: 15 May 2013 18:33
> To: Alexei Fedorov;
[email protected]<mailto:
[email protected]<mailto:
[email protected]%3cmailto:
[email protected]>
Subject: RE: -D <symbol> Preprocessor Option Doesn't Work
Sorry, we did some code restructuring and broke this. You can go back
to
an earlier version of the compiler, or wait until later this week
when
there will be a new version.
Bob
> From:
[email protected]<mailto:
[email protected]<mailto:
[email protected]%3cmailto:
[email protected]>
[mailto:
[email protected]] On Behalf Of Moore, Robert
Sent: Wednesday, May 15, 2013 8:43 AM
> To: Alexei Fedorov;
[email protected]<mailto:
[email protected]<mailto:
[email protected]%3cmailto:
[email protected]>
Subject: Re: [Devel] -D <symbol> Preprocessor Option
Doesn't Work
We will check it out.
Thanks,
Bob
> From:
[email protected]<mailto:
[email protected]<mailto:
[email protected]%3cmailto:
[email protected]>
[mailto:
[email protected]] On Behalf Of Alexei Fedorov
Sent: Tuesday, May 14, 2013 5:27 AM
> To:
[email protected]<mailto:
[email protected]<mailto:
[email protected]%3cmailto:
[email protected]>
Subject: [Devel] -D <symbol> Preprocessor Option Doesn't
Work
Hi,
ASL User Guide states that #ifdef statements are recognized when a
symbol
is defined in the command line:
"3.3.2.2 #ifdef
Usage:
#ifdef symbol
Conditionally compile a block of text. The block is included in the
compilation if the symbol is defined, either from a #define or from
the -
D command line option"
but I cannot make ASL Compiler to recognize the following option
-D <symbol> Define symbol for preprocessor use
In the example below
DefinitionBlock("DSDT.AML", "DSDT", 0x01, "
", " ", 3) {
Scope(_SB) {
Device(CPU0) {
Name(_HID, "ACPI0007")
Name(_UID, Zero)
}
#ifdef CPU_1
Device(CPU1) {
Name(_HID, "ACPI0007")
Name(_UID, One)
}
#endif
}
}
The section between #ifdef CPU_1 ... #endif is not being compiled
when ASL
is invoked as:
iasl.exe -l -D CPU_1 Dsdt.asl
Checked with the latest version 20130418-32 [Apr 18 2013].
Any thoughts on what might be going wrong here?
Thanks.
-- IMPORTANT NOTICE: The contents of this email and any attachments
are
confidential and may also be privileged. If you are not the intended
recipient, please notify the sender immediately and do not disclose
the
contents to any other person, use it for any purpose, or store or
copy the
information in any medium. Thank you.
-- IMPORTANT NOTICE: The contents of this email and any attachments
are
confidential and may also be privileged. If you are not the intended
recipient, please notify the sender immediately and do not disclose
the
contents to any other person, use it for any purpose, or store or
copy the
information in any medium. Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
> achment.html
------------------------------
_______________________________________________
Devel mailing list
>
[email protected]<mailto:
[email protected]
End of Devel Digest, Vol 38, Issue 5
************************************
-- IMPORTANT NOTICE: The contents of this email and any attachments
are
confidential and may also be privileged. If you are not the intended
recipient, please notify the sender immediately and do not disclose
the
contents to any other person, use it for any purpose, or store or
copy the
information in any medium. Thank you.
_______________________________________________
Devel mailing list
>
[email protected]<mailto:
[email protected]
-- IMPORTANT NOTICE: The contents of this email and any attachments are confidential and
may also be privileged. If you are not the intended recipient, please notify the sender
immediately and do not disclose the contents to any other person, use it for any purpose,
or store or copy the information in any medium. Thank you.