View Issue Details

IDProjectCategoryView StatusLast Update
0000432fileGeneralpublic2023-03-11 17:54
Reportermaarten Assigned Tochristos  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
PlatformLinuxOSFedoraOS Version6.1.14-100.fc36.
Product Version5.41 
Fixed in Version5.45 
Summary0000432: file does not recognize precompiled files, generated by llvm
DescriptionPrecompiled headers, generated by llvm (clang), are not recognized by file.

$ file pch.h.pch
pch.h.pch: data
Steps To Reproduce# Copy/paste these commands to your terminal.
# They require clang to be available.

# 1. Create a small header
cat >pch.h <<EOF
__attribute__((visibility("default"))) int myfunction(void);
EOF

# 2. Create a dummy source file
cat >pch.c <<EOF
EOF

# 3. Build the precompiled header
clang -Xclang -emit-pch -Xclang -include -Xclang pch.h -x c-header -o pch.h.pch -c pch.c

# 4. Run file on the precompiled header
file pch.h.pch
TagsNo tags attached.

Activities

christos

2023-03-11 17:54

manager   ~0003912

Added, thanks

Issue History

Date Modified Username Field Change
2023-03-08 22:55 maarten New Issue
2023-03-11 17:54 christos Assigned To => christos
2023-03-11 17:54 christos Status new => assigned
2023-03-11 17:54 christos Status assigned => resolved
2023-03-11 17:54 christos Resolution open => fixed
2023-03-11 17:54 christos Fixed in Version => 5.45
2023-03-11 17:54 christos Note Added: 0003912