-
Notifications
You must be signed in to change notification settings - Fork 312
adopt module_load_environment: GCC
#3556
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -203,6 +203,13 @@ def __init__(self, *args, **kwargs): | |
| self.log.warning('Setting withnvptx to False, since we are building on a RISC-V system') | ||
| self.cfg['withnvptx'] = False | ||
|
|
||
| # define list of subdirectories in search paths of module load environment | ||
| self.module_load_environment.PATH = ['bin'] | ||
| self.module_load_environment.LD_LIBRARY_PATH = ['lib', 'lib64'] | ||
| # GCC can find its own headers and libraries but the .so's need to be in LD_LIBRARY_PATH | ||
| self.module_load_environment.CPATH = [] | ||
lexming marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| self.module_load_environment.LIBRARY_PATH = ['lib', 'lib64'] if get_cpu_family() == RISCV else [] | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not 100% sure, but I think the final installation wouldn't work without this either.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. IMO leaving those paths in |
||
|
|
||
| def create_dir(self, dirname): | ||
| """ | ||
| Create a dir to build in. | ||
|
|
@@ -1194,17 +1201,3 @@ def sanity_check_step(self): | |
|
|
||
| super(EB_GCC, self).sanity_check_step(custom_paths=custom_paths, custom_commands=custom_commands, | ||
| extra_modules=extra_modules) | ||
|
|
||
| def make_module_req_guess(self): | ||
| """ | ||
| GCC can find its own headers and libraries but the .so's need to be in LD_LIBRARY_PATH | ||
| """ | ||
| guesses = super(EB_GCC, self).make_module_req_guess() | ||
| guesses.update({ | ||
| 'PATH': ['bin'], | ||
| 'CPATH': [], | ||
| 'LIBRARY_PATH': ['lib', 'lib64'] if get_cpu_family() == RISCV else [], | ||
| 'LD_LIBRARY_PATH': ['lib', 'lib64'], | ||
| 'MANPATH': ['man', 'share/man'] | ||
| }) | ||
| return guesses | ||
Uh oh!
There was an error while loading. Please reload this page.