LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-19-2005, 04:32 AM   #1
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
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.
 
Old 11-20-2005, 12:27 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Original Poster
Rep: Reputation: 198Reputation: 198
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
EsounD 0.2.8 fails to compile... mrvikki Linux - Software 3 03-05-2005 04:17 AM
xorg 6.8.0 fails to compile stumbles Linux - Software 0 09-26-2004 07:26 PM
Qt program fails to compile irfanhab Programming 2 05-21-2004 04:33 AM
Loki_setup compile fails Artem Linux - Software 1 02-23-2004 07:07 PM
New Debian kernel fails to compile rickenbacherus Linux - Software 1 07-19-2003 08:56 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration