Bug 218825 - Incorrect thinlto cache directory path in Makefile
Summary: Incorrect thinlto cache directory path in Makefile
Status: NEW
Alias: None
Product: Other
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: P3 normal
Assignee: other_other
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-09 15:22 UTC by Xu Zhen
Modified: 2024-05-09 15:33 UTC (History)
2 users (show)

See Also:
Kernel Version:
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description Xu Zhen 2024-05-09 15:22:59 UTC
In Makefile, the ld flag `--thinlto-cache-dir' is set to
`$(extmod_prefix).thinlto-cache'. But at that time, the variable extmod_prefix
had not been assigned yet. Therefore, the thinlto cache dir is always created
in the current directory.

Even worse, the cache dir cannot be deleted when executing `make clean'. This
is because its path was written as `$(KBUILD_EXTMOD)/.thinlto-cache' in the
clean: target.

Some users have been troubled by it: https://github.com/dell/dkms/issues/292

This bug was introduced by commit dc5723b02e523b2c4a68667f7e28c65018f7202f

Note You need to log in before you can comment on or make changes to this bug.