Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

GCC from buildcache retains system-specific "include-fixed" headers from original build #49640

Open
spack/spack-packages
#82
Labels
bugSomething isn't workingtriageThe issue needs to be prioritized
@lrbison

Description

@lrbison

Steps to reproduce

From a fresh ubuntu 2404 ami:

git clone https://github.com/spack/spack.git --branch v0.23.1source spack/share/spack/setup-env.shspack external findspack mirror add v0.23.1-aws-isc-aarch64 https://binaries.spack.io/v0.23.1/aws-isc-aarch64spack buildcache keys --install --trustspack install --use-buildcache only gcc

The include-fixed directory of the new install contains the following files:

echo $(cd $(spack location -i gcc)/lib/gcc/aarch64-unknown-linux-gnu/11.2.0/include-fixed; find). ./syslimits.h ./limits.h ./README ./openssl ./openssl/bn.h

However these files were generated on the build platform (AL2) by runningmkheaders as described inhttps://gcc.gnu.org/onlinedocs/gcc-7.5.0/gcc/Fixed-Headers.html. The README in that directory says:

This README file is copied into the directory for GCC-only header fileswhen fixincludes is run by the makefile for GCC.Many of the files in this directory were automatically edited from thestandard system header files by the fixincludes process.  They aresystem-specific, and will not work on any other kind of system.  Theyare also not part of GCC.  The reason we have to do this is becauseGCC requires ANSI C headers and many vendors supply ANSI-incompatibleheaders.

This can cause surprising effects later. For instance if I install libssl-dev fromapt and thenspack external find the fixed-header version of bn.h takes precedence, but it is from the wrong version of openssl, and causes symbol conflicts (like the one seen inspack/spack-configs#83 (comment))

Error message

No response

Information on your system

ubuntu2404, Graviton3 (c7g.xlarge)

* **Spack:** 0.23.1 (2bfcc69fa870d3c6919be87593f22647981b648a)* **Python:** 3.12.3* **Platform:** linux-ubuntu24.04-neoverse_v1

General information

  • I have runspack debug report and reported the version of Spack/Python/Platform
  • I have searched the issues of this repo and believe this is not a duplicate
  • I have run the failing commands in debug mode and reported the output

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageThe issue needs to be prioritized

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp