Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PickoGKRuntime fails to compile with clang 15.0.7 on Linux #20

Open
gnikit opened this issue Jun 15, 2024 · 0 comments · May be fixed by #21
Open

PickoGKRuntime fails to compile with clang 15.0.7 on Linux #20

gnikit opened this issue Jun 15, 2024 · 0 comments · May be fixed by #21

Comments

@gnikit
Copy link
Contributor

gnikit commented Jun 15, 2024

Description

Not sure if this is platform dependant, compiler dependant or both, but clang-15 under Ubuntu 22.04 fails to compile.

Steps to reproduce

cmake -B build/clang -DCMAKE_C_COMPILER=clang-15 -DCMAKE_CXX_COMPILER=clang++-15
cmake --build build/clang -j

Output

PicoGKRuntime/Source/PicoGKVdbField.h:57:11: error: missing 'typename' prior to dependent type name 'TFieldType::Ptr'
    Field(TFieldType::Ptr roGrid)
          ^~~~~~~~~~~~~~~
          typename 
PicoGKRuntime/Source/PicoGKVdbField.h:67:5: error: missing 'typename' prior to dependent type name 'TFieldType::Ptr'
    TFieldType::Ptr roVdbGrid() const {return m_roGrid;}
    ^~~~~~~~~~~~~~~
    typename 
PicoGKRuntime/Source/PicoGKVdbField.h:70:5: error: missing 'typename' prior to dependent type name 'TFieldType::Ptr'
    TFieldType::Ptr             m_roGrid;
    ^~~~~~~~~~~~~~~
    typename 
3 errors generated.

Additional information

Compiler information

❯ clang-15 -v
Ubuntu clang version 15.0.7
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/10
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/11
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/12
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/9
Selected GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/12
Candidate multilib: .;@m64
Selected multilib: .;@m64
❯ uname -a
Linux gn 6.5.0-28-generic #29~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Apr  4 14:39:20 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

FYI and for a sanity check on my M1 Mac with clang 15.0.0 (clang-1500.3.9.4) PicoGKRuntime compiles fine.

gnikit added a commit to gnikit/PicoGKRuntime that referenced this issue Jun 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant