Skip to content

gcc: fix sys_ustat.h patch for gcc 4.8 and 4.9#10081

Merged
adamjstewart merged 1 commit intospack:developfrom
mwkrentel:gcc-patch
Dec 12, 2018
Merged

gcc: fix sys_ustat.h patch for gcc 4.8 and 4.9#10081
adamjstewart merged 1 commit intospack:developfrom
mwkrentel:gcc-patch

Conversation

@mwkrentel
Copy link
Copy Markdown
Member

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.


It's quite the matrix for what versions of gcc will compile other
versions of gcc. For example, I was able to use 4.4.7 to compile
4.8.5, but using 7.3.1 to compile the same 4.8.5 falls over. Blech.
But that's a problem for another day.

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 adamjstewart merged commit ab8870f into spack:develop Dec 12, 2018
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.

2 participants