LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   iASL fails to compile (https://www.linuxquestions.org/questions/programming-9/iasl-fails-to-compile-384570/)

Simon Bridge 11-19-2005 04:32 AM

iASL fails to compile
 
Downloaded the intel ASL compiler/decompiler from
http://developer.intel.com/technolog.../downloads.htm

... selected the unix tarball (acpica-unix-20050930.tar.gz) and followed the instructions in the readme and the intel site. I had to install bison, flex, kernel headers and sources - which I did via apt-get for bison and flex, and synaptic for the headers and sources.

Make output follows:
Code:

simon@infrared:~/custom/acpica-unix-20050930/compiler$ make
conflicts: 61 shift/reduce, 18 reduce/reduce
aslcompiler.y:915.7-81: warning: rule never reduced because of conflicts: TermArg: Type2IntegerOpcode
aslcompiler.y:916.7-81: warning: rule never reduced because of conflicts: TermArg: Type2StringOpcode
aslcompiler.y:917.7-81: warning: rule never reduced because of conflicts: TermArg: Type2BufferOpcode
aslcompiler.y:918.7-81: warning: rule never reduced because of conflicts: TermArg: Type2BufferOrStringOpcode
aslcompiler.y:964.7-82: warning: rule never reduced because of conflicts: OptionalParameterTypePackage: ','
aslcompiler.y:983.37-48: warning: rule never reduced because of conflicts: ParameterTypesPackageList: /* empty */
aslcompiler.y:984.7-46: warning: rule never reduced because of conflicts: ParameterTypesPackageList: ObjectTypeKeyword
aslcompiler.y:988.7-989.69: warning: rule never reduced because of conflicts: ParameterTypesPackageList: ParameterTypesPackage ',' ParameterTypesPackage
aslcompiler.y:994.7-82: warning: rule never reduced because of conflicts: OptionalParameterTypesPackage: ','
aslcompiler.y:1585.7-38: warning: rule never reduced because of conflicts: CaseTermList: CaseTerm
aslcompiler.y:1594.7-38: warning: rule never reduced because of conflicts: DefaultTermList: CaseTerm
aslcompiler.y:3077.37-48: warning: rule never reduced because of conflicts: OptionalResourceType: /* empty */
aslcompilerlex.c: In function ‘AslCompiler_init_buffer’:
aslcompilerlex.c:3641: warning: implicit declaration of function ‘fileno’
aslcompiler.l: In function ‘comment’:
aslcompiler.l:847: error: ‘yytext_ptr’ undeclared (first use in this function)
aslcompiler.l:847: error: (Each undeclared identifier is reported only once
aslcompiler.l:847: error: for each function it appears in.)
make: *** [aslcompilerlex.o] Error 1
simon@infrared:~/custom/acpica-unix-20050930/compiler$ less iaslmake.txt
simon@infrared:~/custom/acpica-unix-20050930/compiler$ rm iaslmake.txt
simon@infrared:~/custom/acpica-unix-20050930/compiler$

Normally I would suspect I was missing kernel source or kernel headers. However, source and header packages for the kernel are installed. The other thing that occurs to me is that I am missing a library. But what??

You can see I've enabled the -ansi flag, but I get the same output without it. This won't be an error in the code or google would be all over it(!) so debug tools don't seem to apply. OTOH: it's been ages since I did anything with gcc...

The system is:
Ubuntu 5.10, fully updated - std repos enabled, inlcl. multiverse.
kernel 2.6.12-9-686
gcc (GCC) 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu9)
g++ (GCC) 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu9)
bison (GNU Bison) 2.0
flex 2.5.31

I can't be the only person with this problem ... I need the package to debug my dsdt and so get acpi working. Anyone with ubuntu on a laptop will want to do this or suffer acpi performance loss.

Of course, if there is an ubuntu .deb package available, that would solve my problem also :)

Equally "of course", if anyone knows where to find the fixed dsdt for the acer aspire 3003LC - that would be neet too. (Note: not on the sourceforge acpi list. Close but no bananas.)

Should I be able to fix this, I'll be able to stick the fixed tale in the official list for others and post a howto on LQ into the bargain. (Yes, I've read the gentoo one...)

Thanks in advance.

Simon Bridge 11-20-2005 12:27 AM

Solution found:

The problem is a buggy intel code after all - actually, only buggy with regard to the flex version. The workaround is:

sudo apt-get install flex-old

this removes the previous flex package (the new one) and replaces with a depreciated package. It only takes 30-40secs on a 56k dialup so it was no biggie after all.


All times are GMT -5. The time now is 05:31 AM.