build error Centos 5
Barry R Cisna
Hello All,
New to the list here.
Downloaded latest ACPICA.tar.gz.
When trying to do a make on Centos 5 i get the following error. I Googled and can not find the workaround for this error.
ERROR:
[root(a)server1 compiler]# make
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 "-Waddress"
cc1: error: unrecognized command line option "-Wempty-body"
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
Anyone have any ideas? Appreciated.
Thanks,
Barry
Moore
These options are specific to newer versions of gcc. Either update your compiler or comment out the use of these options in the master makefile (Makefile.config):
#
# gcc 4+ flags
#
CWARNINGFLAGS += \
-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-limitsQuoted 44 lines
-----Original Message-----
From: devel-bounces(a)acpica.org [mailto:devel-bounces(a)acpica.org] On Behalf Of Barry R Cisna
Sent: Friday, November 11, 2011 5:26 AM
To: ACPICA
Subject: [Devel] build error Centos 5Hello All,
New to the list here.
Downloaded latest ACPICA.tar.gz.
When trying to do a make on Centos 5 i get the following error. I Googled and can not find the workaround for this error.ERROR:
[root(a)server1 compiler]# make
cc -c -D_LINUX -D_GNU_SOURCE -DACPI_ASL_COMPILER -I../include(quoted diff) +0
-8-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.ccc1: error: unrecognized command line option "-Waddress"
cc1: error: unrecognized command line option "-Wempty-body"
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 1Anyone have any ideas? Appreciated.
Thanks,
Barry_______________________________________________
Devel mailing list
Devel(a)acpica.org
http://lists.acpica.org/listinfo/devel