ACK: [PATCH] libfwtsiasl: fix build error on groovy

Colin Ian King colin.king at canonical.com
Tue Jul 28 08:47:15 UTC 2020


On 28/07/2020 09:43, Ivan Hu wrote:
> got the build error below,
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -Wall -Wstrict-prototypes -fno-strict-aliasing -D_LINUX -DACPI_ASL_COMPILER -g -O2 -I../acpica/source/include -I../acpica/source/compiler -g -O2 -c aslcompiler.c  -fPIC -DPIC -o .libs/libfwtsiasl_la-aslcompiler.o
> aslcompiler.tab.c:297:10: fatal error: aslcompiler.tab.h: No such file or directory
> compilation terminated.
> 
> Signed-off-by: Ivan Hu <ivan.hu at canonical.com>
> ---
>  src/libfwtsiasl/Makefile.am | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/src/libfwtsiasl/Makefile.am b/src/libfwtsiasl/Makefile.am
> index f232c0d..f975f34 100644
> --- a/src/libfwtsiasl/Makefile.am
> +++ b/src/libfwtsiasl/Makefile.am
> @@ -62,28 +62,28 @@ $(srcdir)/aslcompilerlex.c: $(ASL_LEXER)
>  $(srcdir)/aslcompiler.c $(srcdir)/aslcompiler.y.h: $(srcdir)/aslcompiler.y
>  	${YACC} ${AM_YFLAGS} -d -baslcompiler -pAslCompiler $^
>  	mv aslcompiler.tab.c aslcompiler.c
> -	mv aslcompiler.tab.h aslcompiler.y.h
> +	cp aslcompiler.tab.h aslcompiler.y.h
>  
>  .NOTPARALLEL: $(srcdir)/dtcompilerparserlex.c
>  $(srcdir)/dtcompilerparserlex.c $(srcdir)/dtcompilerparser.c $(srcdir)/dtcompilerparser.y.h: ../acpica/source/compiler/dtcompilerparser.l ../acpica/source/compiler/dtcompilerparser.y
>  	${LEX} ${AM_LFLAGS} -PDtCompilerParser -o$(srcdir)/dtcompilerparserlex.c $<
>  	${YACC} ${AM_YFLAGS} -bdtcompilerparser -pDtCompilerParser ../acpica/source/compiler/dtcompilerparser.y
>  	mv dtcompilerparser.tab.c dtcompilerparser.c
> -	mv dtcompilerparser.tab.h dtcompilerparser.y.h
> +	cp dtcompilerparser.tab.h dtcompilerparser.y.h
>  
>  .NOTPARALLEL: $(srcdir)/dtparserlex.c
>  $(srcdir)/dtparserlex.c $(srcdir)/dtparser.c $(srcdir)/dtparser.y.h: ../acpica/source/compiler/dtparser.l ../acpica/source/compiler/dtparser.y
>  	${LEX} ${AM_LFLAGS} -PDtParser -o$(srcdir)/dtparserlex.c $<
>  	${YACC} ${AM_YFLAGS} -bdtparser -pDtParser ../acpica/source/compiler/dtparser.y
>  	mv dtparser.tab.c dtparser.c
> -	mv dtparser.tab.h dtparser.y.h
> +	cp dtparser.tab.h dtparser.y.h
>  
>  .NOTPARALLEL: $(srcdir)/prparserlex.c
>  $(srcdir)/prparserlex.c $(srcdir)/prparser.c $(srcdir)/prparser.y.h: ../acpica/source/compiler/prparser.l ../acpica/source/compiler/prparser.y
>  	${LEX} ${AM_LFLAGS} -PPrParser -o$(srcdir)/prparserlex.c $<
>  	${YACC} ${AM_YFLAGS} -bprparser -pPrParser ../acpica/source/compiler/prparser.y
>  	mv prparser.tab.c prparser.c
> -	mv prparser.tab.h prparser.y.h
> +	cp prparser.tab.h prparser.y.h
>  
>  pkglib_LTLIBRARIES = libfwtsiasl.la
>  
> 


Not sure why this is happening all of a sudden, but yes, this is a
suitable fix.

Acked-by: Colin Ian King <colin.king at canonical.com>



More information about the fwts-devel mailing list