QUOTE (zhell @ Jun 16 2009, 06:22 AM)

Compiling Intel's ASL Compiler iasl1. You need xCode installed (from the App Store, free download for Lion)
2. Get the current source from
http://www.acpica.org/downloads/unix_source_code.php3. Open Terminal, change dir to where you want to have your source code.
4. Extract the source tarball by running
CODE
tar xf ~/Downloads/acpica-unix-20110623.tar
5. Change directory to "compiler"
CODE
cd compiler
6. Run the following command:
CODE
make
8. You get a file called "iasl" the current directory... this is your ASL compiler

. To install you can just issue:
CODE
sudo cp iasl /usr/bin/
(there is no need to set the permissions, the linker does that for you)
I had d/l acpi-unxi-2011-0922.tar.gz, and my computer is running OS X 10.7.2, with XCode 4.2.
At Step 6 (make command) the following error messages result, and I do not know what to do next in order to follow this guide. I would appreciate some further guidance.
sh-3.2# make
flex -i -s -PAslCompiler -oaslcompilerlex.c ../compiler/aslcompiler.l
bison -v -d -y -pAslCompiler -oaslcompilerparse.c ../compiler/aslcompiler.y
flex -i -s -PDtParser -odtparserlex.c ../compiler/dtparser.l
bison -v -d -y -pDtParser -odtparserparse.c ../compiler/dtparser.y
Copy intermediate file:
aslcompilerparse.h -> aslcompiler.y.h
Copy intermediate file:
dtparserparse.h -> dtparser.y.h
cc -c -D_LINUX -D_GNU_SOURCE -DACPI_ASL_COMPILER -I../include -I../compiler -Wall -Werror -Wstrict-aliasing=0 -oaslcompilerlex.o aslcompilerlex.c
cc -c -D_LINUX -D_GNU_SOURCE -DACPI_ASL_COMPILER -I../include -I../compiler -Wall -Werror -Wstrict-aliasing=0 -oaslcompilerparse.o aslcompilerparse.c
cc -c -D_LINUX -D_GNU_SOURCE -DACPI_ASL_COMPILER -I../include -I../compiler -Wall -Werror -Wstrict-aliasing=0 -odtparserlex.o dtparserlex.c
cc -c -D_LINUX -D_GNU_SOURCE -DACPI_ASL_COMPILER -I../include -I../compiler -Wall -Werror -Wstrict-aliasing=0 -odtparserparse.o dtparserparse.c
cc -c -D_LINUX -D_GNU_SOURCE -DACPI_ASL_COMPILER -I../include -I../compiler -ansi -Wall -Wbad-function-cast -Wdeclaration-after-statement -Werror -Wformat=2 -Wmissing-declarations -Wmissing-prototypes -Wstrict-aliasing=0 -Wstrict-prototypes -Wswitch-default -Wpointer-arith -Wundef -Waddress -Waggregate-return -Wchar-subscripts -Wempty-body -Wlogical-op -Wmissing-declarations -Wmissing-field-initializers -Wmissing-parameter-type -Wnested-externs -Wold-style-declaration -Wold-style-definition -Wredundant-decls -Wtype-limits -oadfile.o ../common/adfile.c
cc1: error: unrecognized command line option "-Wlogical-op"
cc1: error: unrecognized command line option "-Wmissing-parameter-type"
cc1: error: unrecognized command line option "-Wold-style-declaration"
cc1: error: unrecognized command line option "-Wtype-limits"
make: *** [adfile.o] Error 1
nesnfsn in sunny South Florida