error log:
=== RUN TestLLVM_AMDGPUAddrSpace/llvm-22.1.8-support/AMDGPUAddrSpace
2026/09/28 21:21:42 ============== testSingleFile: package AMDGPUAddrSpace ==============
xgo: downloading github.com/llarhub/libcxx v0.1.1
2026/09/28 21:21:43 ==> modfetch.Get: github.com/llarhub/libcxx v0.1.1
2026/09/28 21:21:43 ==> includeDirs: [/home/runner/work/llcppg/llcppg/tool/_testcpp/llvm-22.1.8-support/include /home/runner/go/pkg/mod/github.com/llarhub/libcxx@v0.1.1/include /usr/lib/llvm-22/lib/clang/22/include /usr/local/include /usr/include/x86_64-linux-gnu /usr/include]
2026/09/28 21:21:43 macro LLVM_SUPPORT_AMDGPUADDRSPACE_H - 1 tokens
2026/09/28 21:21:43 include /../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/cstdint
2026/09/28 21:21:43 [WARN] loadInclude: package not found for /../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/cstdint
2026/09/28 21:21:43 enum LlvmAMDGPUAS_(unnamed enum at /home/runner/work/llcppg/llcppg/tool/_testcpp/llvm-22.1.8-support/include/llvm/Support/AMDGPUAddrSpace.h:28:1) unsigned int anonymous: true scoped: false
2026/09/28 21:21:43 enum LlvmAMDGPU_DWARFAS_(unnamed enum at /home/runner/work/llcppg/llcppg/tool/_testcpp/llvm-22.1.8-support/include/llvm/Support/AMDGPUAddrSpace.h:127:1) unsigned int anonymous: true scoped: false
2026/09/28 21:21:43 namespace LlvmAMDGPU_Impl - ignored
2026/09/28 21:21:43 func LlvmAMDGPU_IsFlatGlobalAddrSpace - bool (unsigned int) - isOp: false deleted: 0
2026/09/28 21:21:43 => param AS - unsigned int
2026/09/28 21:21:43 inline func LlvmAMDGPU_IsFlatGlobalAddrSpace - skipped
2026/09/28 21:21:43 func LlvmAMDGPU_IsExtendedGlobalAddrSpace - bool (unsigned int) - isOp: false deleted: 0
2026/09/28 21:21:43 => param AS - unsigned int
2026/09/28 21:21:43 inline func LlvmAMDGPU_IsExtendedGlobalAddrSpace - skipped
2026/09/28 21:21:43 func LlvmAMDGPU_IsConstantAddressSpace - bool (unsigned int) - isOp: false deleted: 0
2026/09/28 21:21:43 => param AS - unsigned int
2026/09/28 21:21:43 inline func LlvmAMDGPU_IsConstantAddressSpace - skipped
2026/09/28 21:21:43 func LlvmAMDGPU_MapToDWARFAddrSpace - int (unsigned int) - isOp: false deleted: 0
2026/09/28 21:21:43 => param LLVMAddrSpace - unsigned int
2026/09/28 21:21:43 inline func LlvmAMDGPU_MapToDWARFAddrSpace - skipped
2026/09/28 21:21:43 func LlvmAMDGPU_GetNullPointerValue - int64_t (unsigned int) - isOp: false deleted: 0
2026/09/28 21:21:43 => param AS - unsigned int
--- FAIL: TestLLVM_AMDGPUAddrSpace (1.04s)
--- FAIL: TestLLVM_AMDGPUAddrSpace/llvm-22.1.8-support (1.04s)
--- FAIL: TestLLVM_AMDGPUAddrSpace/llvm-22.1.8-support/AMDGPUAddrSpace (1.04s)
panic: todo: toType int64_t
goroutine 189 [running]:
github.com/goplus/llcppg/cl.toTypeEx(...)
type.go:161 +0x9a2
github.com/goplus/llcppg/cl.toFuncResults(...)
type.go:197 +0x80
github.com/goplus/llcppg/cl.compileFuncOrMethod(...)
func.go:85 +0x449
github.com/goplus/llcppg/cl.(*pkgCtx).compile(...)
ctx.go:192 +0x90
github.com/goplus/llcppg/cl.NewPackage(...)
compile.go:178 +0x76f
github.com/goplus/llcppg/tool_test.testSingleFile(...)
/home/runner/work/llcppg/llcppg/tool/gen_test.go:121 +0xdc6
github.com/goplus/llcppg/tool_test.testFromDir$1.func1(...)
/home/runner/work/llcppg/llcppg/tool/gen_test.go:214 +0x3e
testing.tRunner(...)
/opt/hostedtoolcache/go/1.27.1/x64/src/testing/testing.go:2193 +0x179
testing.(*testState).waitParallel(...)
/opt/hostedtoolcache/go/1.27.1/x64/src/testing/testing.go:2377 +0x12c
created by testing.(*T).Run in goroutine 188
/opt/hostedtoolcache/go/1.27.1/x64/src/testing/testing.go:2258 +0x498
FAIL github.com/goplus/llcppg/tool 2.631s
github.com/goplus/llcppg/tool/pputil coverage: 0.0% of statements
github.com/goplus/llcppg/chore/listth coverage: 0.0% of statements
github.com/goplus/llcppg/clang coverage: 0.0% of statements
github.com/goplus/llcppg/xtool/env/clang coverage: 0.0% of statements
github.com/goplus/llcppg/xtool/env/cstdlib coverage: 0.0% of statements
github.com/goplus/llcppg/chore/llcppdump coverage: 0.0% of statements
github.com/goplus/llcppg/chore/llgogen coverage: 0.0% of statements
github.com/goplus/llcppg/chore/llimport coverage: 0.0% of statements
github.com/goplus/llcppg/chore/ppresolve coverage: 0.0% of statements
github.com/goplus/llcppg/cl/cltest coverage: 0.0% of statements
github.com/goplus/llcppg/cmd/llcppg coverage: 0.0% of statements
github.com/goplus/llcppg/xtool/clang/preprocessor coverage: 0.0% of statements
FAIL
The exception is that the log of modfetch.Get is github.com/llarhub/libcxx v0.1.1, and the correct one is github.com/llarhub/libcxx/c v0.1.1
error log:
The exception is that the log of modfetch.Get is github.com/llarhub/libcxx v0.1.1, and the correct one is github.com/llarhub/libcxx/c v0.1.1