Skip to contentSkip to conversation

flawed Makefile dependencies in libacpi

DISCUSSION Olaf Hering 2 participants 6 messages Oct 27, 2020

lore
Share & tools
lore
#0 lore raw

Every once in a while build.c fails to compile because ssdt_s3.h does not exist. The 'sed' command which creates the file appears a few lines down in the build log.

I'm not familiar with make. I wonder if "build.o" should depend on "$(H_SRC)" instead of the expanded list of generated headers. Some sort of dependency to the individual files seem to exist, otherwise make would probably complain.

Olaf

#1 lore raw
Quoted 3 lines · Olaf Hering

Every once in a while build.c fails to compile because ssdt_s3.h does not exist. The 'sed' command which creates the file appears a few lines down in the build log.

I'm not familiar with make. I wonder if "build.o" should depend on "$(H_SRC)" instead of the expanded list of generated headers.

Oh, yes, it definitely should. Will you make a patch?

Jan

#2 lore raw
Quoted 6 lines · Jan Beulich
Quoted 3 lines · Olaf Hering

Every once in a while build.c fails to compile because ssdt_s3.h does not exist. The 'sed' command which creates the file appears a few lines down in the build log.

I'm not familiar with make. I wonder if "build.o" should depend on "$(H_SRC)" instead of the expanded list of generated headers.

Oh, yes, it definitely should. Will you make a patch?

Actually it only should be if this line was useful for anything. But it's dead. Instead the consumers of libacpi/ may need respective dependencies to be added. In this context it then is relevant in which context you see the failure - firmware/hvmloader/ or libs/light/ ?

Jan

#3 lore raw

Am Tue, 27 Oct 2020 11:25:17 +0100
schrieb Jan Beulich <[email protected]>:

Quoted 1 line

In this context it then is relevant in which context you see the failure - firmware/hvmloader/ or libs/light/ ?

I do not have the log anymore to check this detail.

Olaf

#4 lore raw
Quoted 6 lines · Olaf Hering

Am Tue, 27 Oct 2020 11:25:17 +0100
schrieb Jan Beulich <[email protected]>:

Quoted 1 line

In this context it then is relevant in which context you see the failure - firmware/hvmloader/ or libs/light/ ?

I do not have the log anymore to check this detail.

From looking at both makefiles, it's only libxl which is affected. I guess I'll make a patch then.

Jan

#5 lore raw

Am Tue, 27 Oct 2020 11:38:04 +0100
schrieb Jan Beulich <[email protected]>:

Quoted 1 line

I guess I'll make a patch then.

Thanks. I briefly looked at the code and it is not obvious how it would need to look like.

Olaf