Skip to content
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

[fulen] Fix GDB 7.10.1 and add GBD 8.1.1 #807

Merged
merged 2 commits into from
Sep 12, 2018
Merged

[fulen] Fix GDB 7.10.1 and add GBD 8.1.1 #807

merged 2 commits into from
Sep 12, 2018

Conversation

victorusu
Copy link
Collaborator

There is a missing patch for GDB 7.10.1

@victorusu victorusu self-assigned this Sep 3, 2018
@victorusu victorusu requested review from gppezzi and jgphpc September 3, 2018 08:57
@victorusu victorusu changed the title Fix GDB 7.10.1 and add GBD 8.1.1 [fulen] Fix GDB 7.10.1 and add GBD 8.1.1 Sep 3, 2018
@victorusu
Copy link
Collaborator Author

retest this please

source_urls = ['http://mirror.switch.ch/ftp/mirror/gnu/gdb/']
sources = [SOURCELOWER_TAR_XZ]

toolchain = {'name': 'dummy', 'version': 'dummy'}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

version should be empty or dependencies are not loaded

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I made it dummy, because I think GDB should not be a dependency ever.
But I can change it to ''.

Copy link
Collaborator

@gppezzi gppezzi Sep 5, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let me rephrase that: the tc version should be empty (i'm not referring to the name) or the dependencies (inside this eb file) are not loaded (unless eb has recently changed this behaviour, this recipe is using ncurses from the system and not from eb).

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that setting 'version': 'dummy' affects the use of the GBD as a dependency, but not the use of dependencies within GDB. Because I can see the module load ncurses command inside the generated GDB module

module show GDB/8.1.1 
-------------------------------------------------------------------
/apps/.../GDB/8.1.1:

module-whatis	 Description: The GNU Project Debugger 
module-whatis	 Homepage: http://www.gnu.org/software/gdb/gdb.html 
conflict	 GDB 
module		 load ncurses/.6.0 
...

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you check also during the load occurs during the build process?

EB not loading the dependencies when the toolchain version is defined is a known issue and we had to chang many recipes because of this.

If this behaviour changed, we should confirm (ideally asking @boegel and identifying the PR that touched that) and then inform all the team.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using dummy as version means that the dependencies won't be loaded during the build, but the will be included in the generated module file, see also https://easybuild.readthedocs.io/en/latest/Writing_easyconfig_files.html#loading-of-modules-for-dependencies-with-a-dummy-toolchain .

Long story short: always use '' as version when using dummy toolchain. The behavior with the dummy version is a historical, which we intend to rectify with the system toolchain concept which is supposed to replace dummy, see easybuilders/easybuild-framework#1181 (it'll happen some day, will put this back on the agenda for EB v4.0 (see easybuilders/easybuild#447)).

@gppezzi gppezzi merged commit 1b0a9c6 into master Sep 12, 2018
@gppezzi gppezzi deleted the GDB-fix branch September 12, 2018 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants