Skip to content

don't require include-fixed subdirectory in GCC installation for building TensorFlow, only use it when it's there#2093

Merged
lexming merged 1 commit intoeasybuilders:developfrom
boegel:fix_tensorflow_include_fixed
Jul 7, 2020
Merged

don't require include-fixed subdirectory in GCC installation for building TensorFlow, only use it when it's there#2093
lexming merged 1 commit intoeasybuilders:developfrom
boegel:fix_tensorflow_include_fixed

Conversation

@boegel
Copy link
Copy Markdown
Member

@boegel boegel commented Jul 7, 2020

(partial fix for #2092)

…ding TensorFlow, only use it when it's there (partial fix for easybuilders#2092)
@boegel boegel added the bug fix label Jul 7, 2020
@boegel boegel added this to the 4.2.2 milestone Jul 7, 2020
@boegel
Copy link
Copy Markdown
Member Author

boegel commented Jul 7, 2020

Confirmed fix for

== FAILED: Installation ended unsuccessfully (build directory: /tmp/TensorFlow/1.15.0/foss-2019b-Python-3.7.4):
build failed (first 300 chars): Derived directory /software/GCCcore/8.3.0/lib/gcc/x86_64-pc-linux-gnu/8.3.0/include-fixed does not exist

Copy link
Copy Markdown
Contributor

@lexming lexming left a comment

Choose a reason for hiding this comment

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

LGTM

if os.path.exists(gcc_cplusplus_inc):
inc_paths.append(gcc_cplusplus_inc)
else:
raise EasyBuildError("Derived directory %s does not exist", gcc_cplusplus_inc)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

because it's just a info message, here it's fatal?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

It was fatal before, I don't see a reason to change it?

We now know that include-fixed may not be there, and that it's acceptable. It's not acceptable for this path though, so if it's not there, we want to know about it (in case the path changes or something in newer GCC versions).

@lexming
Copy link
Copy Markdown
Contributor

lexming commented Jul 7, 2020

Positive test with TensorFlow-1.15.0-foss-2019b-Python-3.7.4.eb
https://gist.github.com/lexming/45166ce3f27972c6129cea6bbf7a3600

Positive test with TensorFlow-2.2.0-foss-2019b-Python-3.7.4.eb
https://gist.github.com/lexming/c45eca94796804936e9badac80158254

@lexming
Copy link
Copy Markdown
Contributor

lexming commented Jul 7, 2020

Going in, thanks @boegel !

@lexming lexming merged commit 6f4d947 into easybuilders:develop Jul 7, 2020
@boegel boegel deleted the fix_tensorflow_include_fixed branch July 7, 2020 12:53
boegel added a commit to boegel/easybuild-easyblocks that referenced this pull request Jul 7, 2020
migueldiascosta added a commit to migueldiascosta/easybuild-easyblocks that referenced this pull request Jul 8, 2020
add PRs easybuilders#2093 and easybuilders#2094 to EasyBuild v4.2.2 release notes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants