Skip to content

gcc: Add patch to build GCC with glibc 2.28 and later#10046

Merged
scheibelp merged 1 commit intospack:developfrom
jameshclrk:develop
Dec 8, 2018
Merged

gcc: Add patch to build GCC with glibc 2.28 and later#10046
scheibelp merged 1 commit intospack:developfrom
jameshclrk:develop

Conversation

@jameshclrk
Copy link
Copy Markdown
Contributor

Fixes #10035

@scheibelp scheibelp merged commit 1650e9c into spack:develop Dec 8, 2018
@scheibelp
Copy link
Copy Markdown
Member

Thanks!

@mwkrentel
Copy link
Copy Markdown
Member

Uh, the sys_ustat.h patch doesn't even apply cleanly to gcc 4.8 or 4.9
(or earlier). I guess you didn't try old gcc revs?

Anyway, I still care about building 4.8 and 4.9, so I'll submit a PR
to fix the range for applying the patches (4.9.x needs a slightly
different patch).

mwkrentel added a commit to mwkrentel/spack that referenced this pull request Dec 11, 2018
The sys_ustat.h.patch to file sanitizer_platform_limits_posix.cc from
PR spack#10046 does not apply cleanly to gcc 4.8 or 4.9 (or earlier).

GCC up to 4.8.x either don't have libsanitizer or else don't include
ustat.h in sanitizer_platform_limits_posix.cc.

GCC 4.9.x includes ustat.h, but needs a slightly different patch.

The patch applies to GCC 5.x up to 6.4, and 7.x up to 7.3 and also
8.1.0.

The patch is already included in the tar files for gcc 6.5.0, 7.4.0
and 8.2.0.
adamjstewart pushed a commit that referenced this pull request Dec 12, 2018
The sys_ustat.h.patch to file sanitizer_platform_limits_posix.cc from
PR #10046 does not apply cleanly to gcc 4.8 or 4.9 (or earlier).

GCC up to 4.8.x either don't have libsanitizer or else don't include
ustat.h in sanitizer_platform_limits_posix.cc.

GCC 4.9.x includes ustat.h, but needs a slightly different patch.

The patch applies to GCC 5.x up to 6.4, and 7.x up to 7.3 and also
8.1.0.

The patch is already included in the tar files for gcc 6.5.0, 7.4.0
and 8.2.0.
@jameshclrk
Copy link
Copy Markdown
Contributor Author

Thanks for catching that!

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.

4 participants