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

gollvm: missing structures pt_regs (ptrace.h), nlattr nlmsgerr (non-existing netlink.h) and sigstack (signal.h) in syscall.c (Alpine Linux v. 3.12.1) #43032

Open
advancedwebdeveloper opened this issue Dec 6, 2020 · 21 comments

Comments

@advancedwebdeveloper
Copy link

@advancedwebdeveloper advancedwebdeveloper commented Dec 6, 2020

Hello.
I am using

$ uname -a
Linux somehost 5.4.72-0-lts #1-Alpine SMP Mon, 19 Oct 2020 06:22:29 UTC x86_64 Linux
of version

$ cat /etc/alpine-release
3.12.1
.

I decided to run test suites, for reporting the bugs:

~/build_release$ ninja GoBackendCoreTests && ninja GoBackendUnitTests && ninja cmake_object_order_depends_target_DriverUtilsTests && ninja tools/gollv
m/unittests/GoDumpSpec/GoDumpSpecTests && ninja X86Tests
[1/24] Building CXX object tools/gollvm/unittests/TestUtils/CMakeFiles/GoUnitTestUtils.dir/DiffUtils.cpp.o
[2/24] Building CXX object utils/unittest/CMakeFiles/gtest.dir/googlemock/src/gmock-all.cc.o
[3/24] Building CXX object utils/unittest/CMakeFiles/gtest.dir/googletest/src/gtest-all.cc.o
[4/24] Building CXX object utils/unittest/UnitTestMain/CMakeFiles/gtest_main.dir/TestMain.cpp.o
[5/24] Building CXX object tools/gollvm/unittests/BackendCore/CMakeFiles/GoBackendCoreTests.dir/TestUtils.cpp.o
[6/24] Building CXX object tools/gollvm/unittests/BackendCore/CMakeFiles/GoBackendCoreTests.dir/TestUtilsTest.cpp.o
/home/oceanfish81/llvm-project/llvm/tools/gollvm/unittests/TestUtils/DiffUtils.cpp:40:1: warning: non-void function does not return a value in all control paths [-Wreturn-type]
}
^
1 warning generated.
[7/24] Linking CXX static library lib/libGoUnitTestUtils.a
[8/24] Building CXX object tools/gollvm/unittests/BackendCore/CMakeFiles/GoBackendCoreTests.dir/Sha1Tests.cpp.o
[9/24] Building CXX object tools/gollvm/unittests/BackendCore/CMakeFiles/GoBackendCoreTests.dir/LinemapTests.cpp.o
[10/24] Building CXX object tools/gollvm/unittests/BackendCore/CMakeFiles/GoBackendCoreTests.dir/BackendNodeTests.cpp.o
[11/24] Building CXX object tools/gollvm/unittests/BackendCore/CMakeFiles/GoBackendCoreTests.dir/BackendTreeIntegrity.cpp.o
[12/24] Building CXX object tools/gollvm/unittests/BackendCore/CMakeFiles/GoBackendCoreTests.dir/BackendVarTests.cpp.o
In file included from /home/oceanfish81/llvm-project/llvm/tools/gollvm/unittests/BackendCore/TestUtils.cpp:9:
/home/oceanfish81/llvm-project/llvm/tools/gollvm/unittests/BackendCore/TestUtils.h:279:8: warning: private field 'emitDumpFilesOnDiff_' is not used [-Wunused-private-field]
bool emitDumpFilesOnDiff_;
^
/home/oceanfish81/llvm-project/llvm/tools/gollvm/unittests/BackendCore/TestUtils.h:280:8: warning: private field 'emitRemasterScript_' is not used [-Wunused-private-field]
bool emitRemasterScript_;
^
2 warnings generated.
[13/24] Building CXX object tools/gollvm/unittests/BackendCore/CMakeFiles/GoBackendCoreTests.dir/BackendStmtTests.cpp.o
[14/24] Building CXX object tools/gollvm/unittests/BackendCore/CMakeFiles/GoBackendCoreTests.dir/BackendDebugEmit.cpp.o
[15/24] Linking CXX static library lib/libgtest.a
[16/24] Linking CXX static library lib/libgtest_main.a
[17/24] Building CXX object tools/gollvm/unittests/BackendCore/CMakeFiles/GoBackendCoreTests.dir/BackendCallTests.cpp.o
[18/24] Building CXX object tools/gollvm/unittests/BackendCore/CMakeFiles/GoBackendCoreTests.dir/BackendFcnTests.cpp.o
[19/24] Building CXX object tools/gollvm/unittests/BackendCore/CMakeFiles/GoBackendCoreTests.dir/BackendPointerExprTests.cpp.o
[20/24] Building CXX object tools/gollvm/unittests/BackendCore/CMakeFiles/GoBackendCoreTests.dir/BackendExprTests.cpp.o
[21/24] Building CXX object tools/gollvm/unittests/BackendCore/CMakeFiles/GoBackendCoreTests.dir/BackendCABIOracleTests.cpp.o
[22/24] Building CXX object tools/gollvm/unittests/BackendCore/CMakeFiles/GoBackendCoreTests.dir/BackendArrayStruct.cpp.o
[23/24] Building CXX object tools/gollvm/unittests/BackendCore/CMakeFiles/GoBackendCoreTests.dir/BackendCoreTests.cpp.o
[24/24] Linking CXX executable tools/gollvm/unittests/BackendCore/GoBackendCoreTests
[1/7] Building CXX object tools/gollvm/unittests/GoDumpSpec/CMakeFiles/GoDumpSpecTests.dir/TokenizerTests.cpp.o
[2/7] Building CXX object tools/gollvm/unittests/GoDumpSpec/CMakeFiles/GoDumpSpecTests.dir/ParserTests.cpp.o
[3/7] Building CXX object tools/gollvm/unittests/DriverUtils/CMakeFiles/DriverUtilsTests.dir/DriverUtilsTests.cpp.o
[4/7] Building CXX object tools/gollvm/unittests/Driver/CMakeFiles/DriverTests.dir/DriverTests.cpp.o
[5/7] Linking CXX executable tools/gollvm/unittests/GoDumpSpec/GoDumpSpecTests
[6/7] Linking CXX executable tools/gollvm/unittests/Driver/DriverTests
/home/oceanfish81/llvm-project/llvm/tools/gollvm/unittests/DriverUtils/DriverUtilsTests.cpp:33:39: warning: missing field 'gv' initializer [-Wmissing-field-initializers]
{ "foo", "maj=-1 min=-1 rem=" },
^
/home/oceanfish81/llvm-project/llvm/tools/gollvm/unittests/DriverUtils/DriverUtilsTests.cpp:34:39: warning: missing field 'gv' initializer [-Wmissing-field-initializers]
{ "-1", "maj=-1 min=-1 rem=" },
^
/home/oceanfish81/llvm-project/llvm/tools/gollvm/unittests/DriverUtils/DriverUtilsTests.cpp:35:39: warning: missing field 'gv' initializer [-Wmissing-field-initializers]
{ "0.2", "maj=-1 min=-1 rem=" },
^
/home/oceanfish81/llvm-project/llvm/tools/gollvm/unittests/DriverUtils/DriverUtilsTests.cpp:36:38: warning: missing field 'gv' initializer [-Wmissing-field-initializers]
{ "4", "maj=4 min=-1 rem=" },
^
/home/oceanfish81/llvm-project/llvm/tools/gollvm/unittests/DriverUtils/DriverUtilsTests.cpp:37:38: warning: missing field 'gv' initializer [-Wmissing-field-initializers]
{ "4.9.3", "maj=4 min=9 rem=3" },
^
/home/oceanfish81/llvm-project/llvm/tools/gollvm/unittests/DriverUtils/DriverUtilsTests.cpp:38:38: warning: missing field 'gv' initializer [-Wmissing-field-initializers]
{ "4.9.x", "maj=4 min=9 rem=x" },
^
/home/oceanfish81/llvm-project/llvm/tools/gollvm/unittests/DriverUtils/DriverUtilsTests.cpp:39:40: warning: missing field 'gv' initializer [-Wmissing-field-initializers]
{ "7.3.9.q", "maj=7 min=3 rem=9.q" }
^
7 warnings generated.
[7/7] Linking CXX executable tools/gollvm/unittests/DriverUtils/DriverUtilsTests
ninja: nothing to do
ninja: nothing to do
[1/2] Building CXX object unittests/Target/X86/CMakeFiles/X86Tests.dir/MachineSizeOptsTest.cpp.o
[2/2] Linking CXX executable unittests/Target/X86/X86Tests

@advancedwebdeveloper
Copy link
Author

@advancedwebdeveloper advancedwebdeveloper commented Dec 6, 2020

[==========] Running 264 tests from 19 test cases.
[----------] Global test environment set-up.
[----------] 8 tests from BackendCABIOracleTests
[ RUN ] BackendCABIOracleTests.ExtendedAmd64
[ OK ] BackendCABIOracleTests.ExtendedAmd64 (5 ms)
[ RUN ] BackendCABIOracleTests.ExtendedArm64
[ OK ] BackendCABIOracleTests.ExtendedArm64 (1 ms)
[ RUN ] BackendCABIOracleTests.RecursiveCall1Amd64
[ OK ] BackendCABIOracleTests.RecursiveCall1Amd64 (3 ms)
[ RUN ] BackendCABIOracleTests.RecursiveCall1Arm64
[ OK ] BackendCABIOracleTests.RecursiveCall1Arm64 (2 ms)
[ RUN ] BackendCABIOracleTests.PassAndReturnArraysAmd64
[ OK ] BackendCABIOracleTests.PassAndReturnArraysAmd64 (1 ms)
[ RUN ] BackendCABIOracleTests.PassAndReturnArraysArm64
[ OK ] BackendCABIOracleTests.PassAndReturnArraysArm64 (0 ms)
[ RUN ] BackendCABIOracleTests.PassAndReturnComplexAmd64
[ OK ] BackendCABIOracleTests.PassAndReturnComplexAmd64 (1 ms)
[ RUN ] BackendCABIOracleTests.PassAndReturnComplexArm64
[ OK ] BackendCABIOracleTests.PassAndReturnComplexArm64 (1 ms)
[----------] 8 tests from BackendCABIOracleTests (14 ms total)

[----------] 2 tests from BackendExprTests
[ RUN ] BackendExprTests.TestConditionalExpression3Amd64
[ OK ] BackendExprTests.TestConditionalExpression3Amd64 (1 ms)
[ RUN ] BackendExprTests.TestConditionalExpression3Arm64
[ OK ] BackendExprTests.TestConditionalExpression3Arm64 (1 ms)
[----------] 2 tests from BackendExprTests (2 ms total)

[----------] 1 test from BackendCallTests
[ RUN ] BackendCallTests.TestMakeGetgDynamicArm64
[ OK ] BackendCallTests.TestMakeGetgDynamicArm64 (1 ms)
[----------] 1 test from BackendCallTests (2 ms total)

[----------] 2 tests from BackendDebugEmit
[ RUN ] BackendDebugEmit.TestSimpleDecl2Amd64
[ OK ] BackendDebugEmit.TestSimpleDecl2Amd64 (0 ms)
[ RUN ] BackendDebugEmit.TestSimpleDecl2Arm64
[ OK ] BackendDebugEmit.TestSimpleDecl2Arm64 (1 ms)
[----------] 2 tests from BackendDebugEmit (1 ms total)

[----------] 2 tests from LinemapTests
[ RUN ] LinemapTests.CreateLinemap
[ OK ] LinemapTests.CreateLinemap (0 ms)
[ RUN ] LinemapTests.BasicLinemap
[ OK ] LinemapTests.BasicLinemap (0 ms)
[----------] 2 tests from LinemapTests (0 ms total)

[----------] 3 tests from Sha1Tests
[ RUN ] Sha1Tests.CreateSha1Helper
[ OK ] Sha1Tests.CreateSha1Helper (0 ms)
[ RUN ] Sha1Tests.BasicSha1Test1
[ OK ] Sha1Tests.BasicSha1Test1 (0 ms)
[ RUN ] Sha1Tests.BasicSha1Test2
[ OK ] Sha1Tests.BasicSha1Test2 (0 ms)
[----------] 3 tests from Sha1Tests (1 ms total)

[----------] 2 tests from TestUtilsTests
[ RUN ] TestUtilsTests.ContainsTokens
[ OK ] TestUtilsTests.ContainsTokens (0 ms)
[ RUN ] TestUtilsTests.DiffTokens
[ OK ] TestUtilsTests.DiffTokens (0 ms)
[----------] 2 tests from TestUtilsTests (0 ms total)

[----------] 26 tests from UnitTest/BackendCoreTests
[ RUN ] UnitTest/BackendCoreTests.MakeBackend/X8664SysV
[ OK ] UnitTest/BackendCoreTests.MakeBackend/X8664SysV (0 ms)
[ RUN ] UnitTest/BackendCoreTests.MakeBackend/ARMAAPCS
[ OK ] UnitTest/BackendCoreTests.MakeBackend/ARMAAPCS (1 ms)
[ RUN ] UnitTest/BackendCoreTests.ScalarTypes/X8664SysV
[ OK ] UnitTest/BackendCoreTests.ScalarTypes/X8664SysV (0 ms)
[ RUN ] UnitTest/BackendCoreTests.ScalarTypes/ARMAAPCS
[ OK ] UnitTest/BackendCoreTests.ScalarTypes/ARMAAPCS (0 ms)
[ RUN ] UnitTest/BackendCoreTests.StructTypes/X8664SysV
[ OK ] UnitTest/BackendCoreTests.StructTypes/X8664SysV (0 ms)
[ RUN ] UnitTest/BackendCoreTests.StructTypes/ARMAAPCS
[ OK ] UnitTest/BackendCoreTests.StructTypes/ARMAAPCS (1 ms)
[ RUN ] UnitTest/BackendCoreTests.TypeHashAndCompare/X8664SysV
[ OK ] UnitTest/BackendCoreTests.TypeHashAndCompare/X8664SysV (0 ms)
[ RUN ] UnitTest/BackendCoreTests.TypeHashAndCompare/ARMAAPCS
[ OK ] UnitTest/BackendCoreTests.TypeHashAndCompare/ARMAAPCS (0 ms)
[ RUN ] UnitTest/BackendCoreTests.ComplexTypes/X8664SysV
[ OK ] UnitTest/BackendCoreTests.ComplexTypes/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendCoreTests.ComplexTypes/ARMAAPCS
[ OK ] UnitTest/BackendCoreTests.ComplexTypes/ARMAAPCS (0 ms)
[ RUN ] UnitTest/BackendCoreTests.FunctionTypes/X8664SysV
[ OK ] UnitTest/BackendCoreTests.FunctionTypes/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendCoreTests.FunctionTypes/ARMAAPCS
[ OK ] UnitTest/BackendCoreTests.FunctionTypes/ARMAAPCS (0 ms)
[ RUN ] UnitTest/BackendCoreTests.PlaceholderTypes/X8664SysV
[ OK ] UnitTest/BackendCoreTests.PlaceholderTypes/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendCoreTests.PlaceholderTypes/ARMAAPCS
[ OK ] UnitTest/BackendCoreTests.PlaceholderTypes/ARMAAPCS (0 ms)
[ RUN ] UnitTest/BackendCoreTests.ArrayTypes/X8664SysV
[ OK ] UnitTest/BackendCoreTests.ArrayTypes/X8664SysV (0 ms)
[ RUN ] UnitTest/BackendCoreTests.ArrayTypes/ARMAAPCS
[ OK ] UnitTest/BackendCoreTests.ArrayTypes/ARMAAPCS (1 ms)
[ RUN ] UnitTest/BackendCoreTests.NamedTypes/X8664SysV
[ OK ] UnitTest/BackendCoreTests.NamedTypes/X8664SysV (0 ms)
[ RUN ] UnitTest/BackendCoreTests.NamedTypes/ARMAAPCS
[ OK ] UnitTest/BackendCoreTests.NamedTypes/ARMAAPCS (0 ms)
[ RUN ] UnitTest/BackendCoreTests.TypeUtils/X8664SysV
[ OK ] UnitTest/BackendCoreTests.TypeUtils/X8664SysV (0 ms)
[ RUN ] UnitTest/BackendCoreTests.TypeUtils/ARMAAPCS
[ OK ] UnitTest/BackendCoreTests.TypeUtils/ARMAAPCS (1 ms)
[ RUN ] UnitTest/BackendCoreTests.TestTypeEquivalence/X8664SysV
[ OK ] UnitTest/BackendCoreTests.TestTypeEquivalence/X8664SysV (0 ms)
[ RUN ] UnitTest/BackendCoreTests.TestTypeEquivalence/ARMAAPCS
[ OK ] UnitTest/BackendCoreTests.TestTypeEquivalence/ARMAAPCS (0 ms)
[ RUN ] UnitTest/BackendCoreTests.TestFcnPointerCompatible/X8664SysV
[ OK ] UnitTest/BackendCoreTests.TestFcnPointerCompatible/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendCoreTests.TestFcnPointerCompatible/ARMAAPCS
[ OK ] UnitTest/BackendCoreTests.TestFcnPointerCompatible/ARMAAPCS (1 ms)
[ RUN ] UnitTest/BackendCoreTests.TestCompositeInitGvarConvert/X8664SysV
[ OK ] UnitTest/BackendCoreTests.TestCompositeInitGvarConvert/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendCoreTests.TestCompositeInitGvarConvert/ARMAAPCS
[ OK ] UnitTest/BackendCoreTests.TestCompositeInitGvarConvert/ARMAAPCS (0 ms)
[----------] 26 tests from UnitTest/BackendCoreTests (13 ms total)

[----------] 24 tests from UnitTest/BackendArrayStructTests
[ RUN ] UnitTest/BackendArrayStructTests.TestStructFieldExprs/X8664SysV
[ OK ] UnitTest/BackendArrayStructTests.TestStructFieldExprs/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendArrayStructTests.TestStructFieldExprs/ARMAAPCS
[ OK ] UnitTest/BackendArrayStructTests.TestStructFieldExprs/ARMAAPCS (1 ms)
[ RUN ] UnitTest/BackendArrayStructTests.TestStructFieldExprs2/X8664SysV
[ OK ] UnitTest/BackendArrayStructTests.TestStructFieldExprs2/X8664SysV (0 ms)
[ RUN ] UnitTest/BackendArrayStructTests.TestStructFieldExprs2/ARMAAPCS
[ OK ] UnitTest/BackendArrayStructTests.TestStructFieldExprs2/ARMAAPCS (1 ms)
[ RUN ] UnitTest/BackendArrayStructTests.TestArrayIndexingExprs/X8664SysV
[ OK ] UnitTest/BackendArrayStructTests.TestArrayIndexingExprs/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendArrayStructTests.TestArrayIndexingExprs/ARMAAPCS
[ OK ] UnitTest/BackendArrayStructTests.TestArrayIndexingExprs/ARMAAPCS (1 ms)
[ RUN ] UnitTest/BackendArrayStructTests.CreateArrayConstructionExprs/X8664SysV
[ OK ] UnitTest/BackendArrayStructTests.CreateArrayConstructionExprs/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendArrayStructTests.CreateArrayConstructionExprs/ARMAAPCS
[ OK ] UnitTest/BackendArrayStructTests.CreateArrayConstructionExprs/ARMAAPCS (1 ms)
[ RUN ] UnitTest/BackendArrayStructTests.CreateStructConstructionExprs/X8664SysV
[ OK ] UnitTest/BackendArrayStructTests.CreateStructConstructionExprs/X8664SysV (2 ms)
[ RUN ] UnitTest/BackendArrayStructTests.CreateStructConstructionExprs/ARMAAPCS
[ OK ] UnitTest/BackendArrayStructTests.CreateStructConstructionExprs/ARMAAPCS (1 ms)
[ RUN ] UnitTest/BackendArrayStructTests.CreateNestedStructConstructionExprs/X8664SysV
[ OK ] UnitTest/BackendArrayStructTests.CreateNestedStructConstructionExprs/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendArrayStructTests.CreateNestedStructConstructionExprs/ARMAAPCS
[ OK ] UnitTest/BackendArrayStructTests.CreateNestedStructConstructionExprs/ARMAAPCS (1 ms)
[ RUN ] UnitTest/BackendArrayStructTests.CreateStructConstructionExprs2/X8664SysV
[ OK ] UnitTest/BackendArrayStructTests.CreateStructConstructionExprs2/X8664SysV (0 ms)
[ RUN ] UnitTest/BackendArrayStructTests.CreateStructConstructionExprs2/ARMAAPCS
[ OK ] UnitTest/BackendArrayStructTests.CreateStructConstructionExprs2/ARMAAPCS (1 ms)
[ RUN ] UnitTest/BackendArrayStructTests.CreateStructConstructionExprs3/X8664SysV
[ OK ] UnitTest/BackendArrayStructTests.CreateStructConstructionExprs3/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendArrayStructTests.CreateStructConstructionExprs3/ARMAAPCS
[ OK ] UnitTest/BackendArrayStructTests.CreateStructConstructionExprs3/ARMAAPCS (1 ms)
[ RUN ] UnitTest/BackendArrayStructTests.CreateArrayIndexingExprs/X8664SysV
[ OK ] UnitTest/BackendArrayStructTests.CreateArrayIndexingExprs/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendArrayStructTests.CreateArrayIndexingExprs/ARMAAPCS
[ OK ] UnitTest/BackendArrayStructTests.CreateArrayIndexingExprs/ARMAAPCS (1 ms)
[ RUN ] UnitTest/BackendArrayStructTests.CreateComplexIndexingAndFieldExprs/X8664SysV
[ OK ] UnitTest/BackendArrayStructTests.CreateComplexIndexingAndFieldExprs/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendArrayStructTests.CreateComplexIndexingAndFieldExprs/ARMAAPCS
[ OK ] UnitTest/BackendArrayStructTests.CreateComplexIndexingAndFieldExprs/ARMAAPCS (1 ms)
[ RUN ] UnitTest/BackendArrayStructTests.TestStructAssignment/X8664SysV
[ OK ] UnitTest/BackendArrayStructTests.TestStructAssignment/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendArrayStructTests.TestStructAssignment/ARMAAPCS
[ OK ] UnitTest/BackendArrayStructTests.TestStructAssignment/ARMAAPCS (1 ms)
[ RUN ] UnitTest/BackendArrayStructTests.TestStructFieldAddressExpr/X8664SysV
[ OK ] UnitTest/BackendArrayStructTests.TestStructFieldAddressExpr/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendArrayStructTests.TestStructFieldAddressExpr/ARMAAPCS
[ OK ] UnitTest/BackendArrayStructTests.TestStructFieldAddressExpr/ARMAAPCS (0 ms)
[----------] 24 tests from UnitTest/BackendArrayStructTests (23 ms total)

[----------] 6 tests from UnitTest/BackendCABIOracleTests
[ RUN ] UnitTest/BackendCABIOracleTests.Basic/X8664SysV
[ OK ] UnitTest/BackendCABIOracleTests.Basic/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendCABIOracleTests.Basic/ARMAAPCS
[ OK ] UnitTest/BackendCABIOracleTests.Basic/ARMAAPCS (0 ms)
[ RUN ] UnitTest/BackendCABIOracleTests.EmptyStructParamsAndReturns/X8664SysV
[ OK ] UnitTest/BackendCABIOracleTests.EmptyStructParamsAndReturns/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendCABIOracleTests.EmptyStructParamsAndReturns/ARMAAPCS
[ OK ] UnitTest/BackendCABIOracleTests.EmptyStructParamsAndReturns/ARMAAPCS (0 ms)
[ RUN ] UnitTest/BackendCABIOracleTests.CallBuiltinFunction/X8664SysV
[ OK ] UnitTest/BackendCABIOracleTests.CallBuiltinFunction/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendCABIOracleTests.CallBuiltinFunction/ARMAAPCS
[ OK ] UnitTest/BackendCABIOracleTests.CallBuiltinFunction/ARMAAPCS (0 ms)
[----------] 6 tests from UnitTest/BackendCABIOracleTests (4 ms total)

[----------] 56 tests from UnitTest/BackendExprTests
[ RUN ] UnitTest/BackendExprTests.MakeBoolConstExpr/X8664SysV
[ OK ] UnitTest/BackendExprTests.MakeBoolConstExpr/X8664SysV (0 ms)
[ RUN ] UnitTest/BackendExprTests.MakeBoolConstExpr/ARMAAPCS
[ OK ] UnitTest/BackendExprTests.MakeBoolConstExpr/ARMAAPCS (0 ms)
[ RUN ] UnitTest/BackendExprTests.MakeIntConstExpr/X8664SysV
[ OK ] UnitTest/BackendExprTests.MakeIntConstExpr/X8664SysV (0 ms)
[ RUN ] UnitTest/BackendExprTests.MakeIntConstExpr/ARMAAPCS
[ OK ] UnitTest/BackendExprTests.MakeIntConstExpr/ARMAAPCS (0 ms)
[ RUN ] UnitTest/BackendExprTests.MakeFloatConstExpr/X8664SysV
[ OK ] UnitTest/BackendExprTests.MakeFloatConstExpr/X8664SysV (0 ms)
[ RUN ] UnitTest/BackendExprTests.MakeFloatConstExpr/ARMAAPCS
[ OK ] UnitTest/BackendExprTests.MakeFloatConstExpr/ARMAAPCS (0 ms)
[ RUN ] UnitTest/BackendExprTests.MakeComplexConstExpr/X8664SysV
[ OK ] UnitTest/BackendExprTests.MakeComplexConstExpr/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendExprTests.MakeComplexConstExpr/ARMAAPCS
[ OK ] UnitTest/BackendExprTests.MakeComplexConstExpr/ARMAAPCS (5 ms)
[ RUN ] UnitTest/BackendExprTests.MakeZeroValueExpr/X8664SysV
[ OK ] UnitTest/BackendExprTests.MakeZeroValueExpr/X8664SysV (0 ms)
[ RUN ] UnitTest/BackendExprTests.MakeZeroValueExpr/ARMAAPCS
[ OK ] UnitTest/BackendExprTests.MakeZeroValueExpr/ARMAAPCS (1 ms)
[ RUN ] UnitTest/BackendExprTests.TestConversionExpressions/X8664SysV
[ OK ] UnitTest/BackendExprTests.TestConversionExpressions/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendExprTests.TestConversionExpressions/ARMAAPCS
[ OK ] UnitTest/BackendExprTests.TestConversionExpressions/ARMAAPCS (0 ms)
[ RUN ] UnitTest/BackendExprTests.TestMoreConversionExpressions/X8664SysV
[ OK ] UnitTest/BackendExprTests.TestMoreConversionExpressions/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendExprTests.TestMoreConversionExpressions/ARMAAPCS
[ OK ] UnitTest/BackendExprTests.TestMoreConversionExpressions/ARMAAPCS (1 ms)
[ RUN ] UnitTest/BackendExprTests.TestFloatConversionExpressions/X8664SysV
[ OK ] UnitTest/BackendExprTests.TestFloatConversionExpressions/X8664SysV (3 ms)
[ RUN ] UnitTest/BackendExprTests.TestFloatConversionExpressions/ARMAAPCS
[ OK ] UnitTest/BackendExprTests.TestFloatConversionExpressions/ARMAAPCS (2 ms)
[ RUN ] UnitTest/BackendExprTests.TestComplexConversionExpression/X8664SysV
[ OK ] UnitTest/BackendExprTests.TestComplexConversionExpression/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendExprTests.TestComplexConversionExpression/ARMAAPCS
[ OK ] UnitTest/BackendExprTests.TestComplexConversionExpression/ARMAAPCS (1 ms)
[ RUN ] UnitTest/BackendExprTests.MakeVarExpressions/X8664SysV
[ OK ] UnitTest/BackendExprTests.MakeVarExpressions/X8664SysV (0 ms)
[ RUN ] UnitTest/BackendExprTests.MakeVarExpressions/ARMAAPCS
[ OK ] UnitTest/BackendExprTests.MakeVarExpressions/ARMAAPCS (0 ms)
[ RUN ] UnitTest/BackendExprTests.TestCompareOps/X8664SysV
[ OK ] UnitTest/BackendExprTests.TestCompareOps/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendExprTests.TestCompareOps/ARMAAPCS
[ OK ] UnitTest/BackendExprTests.TestCompareOps/ARMAAPCS (1 ms)
[ RUN ] UnitTest/BackendExprTests.TestArithOps/X8664SysV
[ OK ] UnitTest/BackendExprTests.TestArithOps/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendExprTests.TestArithOps/ARMAAPCS
[ OK ] UnitTest/BackendExprTests.TestArithOps/ARMAAPCS (1 ms)
[ RUN ] UnitTest/BackendExprTests.TestMoreArith/X8664SysV
[ OK ] UnitTest/BackendExprTests.TestMoreArith/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendExprTests.TestMoreArith/ARMAAPCS
[ OK ] UnitTest/BackendExprTests.TestMoreArith/ARMAAPCS (1 ms)
[ RUN ] UnitTest/BackendExprTests.TestLogicalOps/X8664SysV
[ OK ] UnitTest/BackendExprTests.TestLogicalOps/X8664SysV (2 ms)
[ RUN ] UnitTest/BackendExprTests.TestLogicalOps/ARMAAPCS
[ OK ] UnitTest/BackendExprTests.TestLogicalOps/ARMAAPCS (1 ms)
[ RUN ] UnitTest/BackendExprTests.TestMulDiv/X8664SysV
[ OK ] UnitTest/BackendExprTests.TestMulDiv/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendExprTests.TestMulDiv/ARMAAPCS
[ OK ] UnitTest/BackendExprTests.TestMulDiv/ARMAAPCS (0 ms)
[ RUN ] UnitTest/BackendExprTests.TestShift/X8664SysV
[ OK ] UnitTest/BackendExprTests.TestShift/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendExprTests.TestShift/ARMAAPCS
[ OK ] UnitTest/BackendExprTests.TestShift/ARMAAPCS (1 ms)
[ RUN ] UnitTest/BackendExprTests.TestComplexOps/X8664SysV
[ OK ] UnitTest/BackendExprTests.TestComplexOps/X8664SysV (5 ms)
[ RUN ] UnitTest/BackendExprTests.TestComplexOps/ARMAAPCS
[ OK ] UnitTest/BackendExprTests.TestComplexOps/ARMAAPCS (3 ms)
[ RUN ] UnitTest/BackendExprTests.TestComplexExpressions/X8664SysV
[ OK ] UnitTest/BackendExprTests.TestComplexExpressions/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendExprTests.TestComplexExpressions/ARMAAPCS
[ OK ] UnitTest/BackendExprTests.TestComplexExpressions/ARMAAPCS (1 ms)
[ RUN ] UnitTest/BackendExprTests.CreateStringConstantExpressions/X8664SysV
[ OK ] UnitTest/BackendExprTests.CreateStringConstantExpressions/X8664SysV (0 ms)
[ RUN ] UnitTest/BackendExprTests.CreateStringConstantExpressions/ARMAAPCS
[ OK ] UnitTest/BackendExprTests.CreateStringConstantExpressions/ARMAAPCS (0 ms)
[ RUN ] UnitTest/BackendExprTests.TestConditionalExpression1/X8664SysV
[ OK ] UnitTest/BackendExprTests.TestConditionalExpression1/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendExprTests.TestConditionalExpression1/ARMAAPCS
[ OK ] UnitTest/BackendExprTests.TestConditionalExpression1/ARMAAPCS (0 ms)
[ RUN ] UnitTest/BackendExprTests.TestConditionalExpression2/X8664SysV
[ OK ] UnitTest/BackendExprTests.TestConditionalExpression2/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendExprTests.TestConditionalExpression2/ARMAAPCS
[ OK ] UnitTest/BackendExprTests.TestConditionalExpression2/ARMAAPCS (1 ms)
[ RUN ] UnitTest/BackendExprTests.TestCompoundExpression/X8664SysV
[ OK ] UnitTest/BackendExprTests.TestCompoundExpression/X8664SysV (0 ms)
[ RUN ] UnitTest/BackendExprTests.TestCompoundExpression/ARMAAPCS
[ OK ] UnitTest/BackendExprTests.TestCompoundExpression/ARMAAPCS (1 ms)
[ RUN ] UnitTest/BackendExprTests.TestCompoundExpression2/X8664SysV
[ OK ] UnitTest/BackendExprTests.TestCompoundExpression2/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendExprTests.TestCompoundExpression2/ARMAAPCS
[ OK ] UnitTest/BackendExprTests.TestCompoundExpression2/ARMAAPCS (1 ms)
[ RUN ] UnitTest/BackendExprTests.TestLhsConditionalExpression/X8664SysV
[ OK ] UnitTest/BackendExprTests.TestLhsConditionalExpression/X8664SysV (0 ms)
[ RUN ] UnitTest/BackendExprTests.TestLhsConditionalExpression/ARMAAPCS
[ OK ] UnitTest/BackendExprTests.TestLhsConditionalExpression/ARMAAPCS (0 ms)
[ RUN ] UnitTest/BackendExprTests.TestUnaryExpression/X8664SysV
[ OK ] UnitTest/BackendExprTests.TestUnaryExpression/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendExprTests.TestUnaryExpression/ARMAAPCS
[ OK ] UnitTest/BackendExprTests.TestUnaryExpression/ARMAAPCS (1 ms)
[ RUN ] UnitTest/BackendExprTests.TestCallArgConversions/X8664SysV
[ OK ] UnitTest/BackendExprTests.TestCallArgConversions/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendExprTests.TestCallArgConversions/ARMAAPCS
[ OK ] UnitTest/BackendExprTests.TestCallArgConversions/ARMAAPCS (0 ms)
[ RUN ] UnitTest/BackendExprTests.TestStringDuplication/X8664SysV
[ OK ] UnitTest/BackendExprTests.TestStringDuplication/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendExprTests.TestStringDuplication/ARMAAPCS
[ OK ] UnitTest/BackendExprTests.TestStringDuplication/ARMAAPCS (1 ms)
[ RUN ] UnitTest/BackendExprTests.TestImmutableStructReferenceDuplication/X8664SysV
[ OK ] UnitTest/BackendExprTests.TestImmutableStructReferenceDuplication/X8664SysV (0 ms)
[ RUN ] UnitTest/BackendExprTests.TestImmutableStructReferenceDuplication/ARMAAPCS
[ OK ] UnitTest/BackendExprTests.TestImmutableStructReferenceDuplication/ARMAAPCS (1 ms)
[----------] 56 tests from UnitTest/BackendExprTests (62 ms total)

[----------] 20 tests from UnitTest/BackendPointerExprTests
[ RUN ] UnitTest/BackendPointerExprTests.TestAddrAndIndirection/X8664SysV
[ OK ] UnitTest/BackendPointerExprTests.TestAddrAndIndirection/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendPointerExprTests.TestAddrAndIndirection/ARMAAPCS
[ OK ] UnitTest/BackendPointerExprTests.TestAddrAndIndirection/ARMAAPCS (1 ms)
[ RUN ] UnitTest/BackendPointerExprTests.CreateFunctionCodeExpression/X8664SysV
[ OK ] UnitTest/BackendPointerExprTests.CreateFunctionCodeExpression/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendPointerExprTests.CreateFunctionCodeExpression/ARMAAPCS
[ OK ] UnitTest/BackendPointerExprTests.CreateFunctionCodeExpression/ARMAAPCS (1 ms)
[ RUN ] UnitTest/BackendPointerExprTests.CreateNilPointerExpression/X8664SysV
[ OK ] UnitTest/BackendPointerExprTests.CreateNilPointerExpression/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendPointerExprTests.CreateNilPointerExpression/ARMAAPCS
[ OK ] UnitTest/BackendPointerExprTests.CreateNilPointerExpression/ARMAAPCS (0 ms)
[ RUN ] UnitTest/BackendPointerExprTests.TestDerefNilPointer/X8664SysV
[ OK ] UnitTest/BackendPointerExprTests.TestDerefNilPointer/X8664SysV (0 ms)
[ RUN ] UnitTest/BackendPointerExprTests.TestDerefNilPointer/ARMAAPCS
[ OK ] UnitTest/BackendPointerExprTests.TestDerefNilPointer/ARMAAPCS (1 ms)
[ RUN ] UnitTest/BackendPointerExprTests.CircularPointerExpressions1/X8664SysV
[ OK ] UnitTest/BackendPointerExprTests.CircularPointerExpressions1/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendPointerExprTests.CircularPointerExpressions1/ARMAAPCS
[ OK ] UnitTest/BackendPointerExprTests.CircularPointerExpressions1/ARMAAPCS (1 ms)
[ RUN ] UnitTest/BackendPointerExprTests.CircularPointerExpressions2/X8664SysV
[ OK ] UnitTest/BackendPointerExprTests.CircularPointerExpressions2/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendPointerExprTests.CircularPointerExpressions2/ARMAAPCS
[ OK ] UnitTest/BackendPointerExprTests.CircularPointerExpressions2/ARMAAPCS (1 ms)
[ RUN ] UnitTest/BackendPointerExprTests.CreatePointerOffsetExprs/X8664SysV
[ OK ] UnitTest/BackendPointerExprTests.CreatePointerOffsetExprs/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendPointerExprTests.CreatePointerOffsetExprs/ARMAAPCS
[ OK ] UnitTest/BackendPointerExprTests.CreatePointerOffsetExprs/ARMAAPCS (1 ms)
[ RUN ] UnitTest/BackendPointerExprTests.TestAddrDerefFold/X8664SysV
[ OK ] UnitTest/BackendPointerExprTests.TestAddrDerefFold/X8664SysV (2 ms)
[ RUN ] UnitTest/BackendPointerExprTests.TestAddrDerefFold/ARMAAPCS
[ OK ] UnitTest/BackendPointerExprTests.TestAddrDerefFold/ARMAAPCS (0 ms)
[ RUN ] UnitTest/BackendPointerExprTests.TestDerefPointerConstantLHS/X8664SysV
[ OK ] UnitTest/BackendPointerExprTests.TestDerefPointerConstantLHS/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendPointerExprTests.TestDerefPointerConstantLHS/ARMAAPCS
[ OK ] UnitTest/BackendPointerExprTests.TestDerefPointerConstantLHS/ARMAAPCS (1 ms)
[ RUN ] UnitTest/BackendPointerExprTests.TestCircularFunctionTypes/X8664SysV
[ OK ] UnitTest/BackendPointerExprTests.TestCircularFunctionTypes/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendPointerExprTests.TestCircularFunctionTypes/ARMAAPCS
[ OK ] UnitTest/BackendPointerExprTests.TestCircularFunctionTypes/ARMAAPCS (0 ms)
[----------] 20 tests from UnitTest/BackendPointerExprTests (19 ms total)

[----------] 24 tests from UnitTest/BackendFcnTests
[ RUN ] UnitTest/BackendFcnTests.MakeEmptyFunction/X8664SysV
[ OK ] UnitTest/BackendFcnTests.MakeEmptyFunction/X8664SysV (0 ms)
[ RUN ] UnitTest/BackendFcnTests.MakeEmptyFunction/ARMAAPCS
[ OK ] UnitTest/BackendFcnTests.MakeEmptyFunction/ARMAAPCS (0 ms)
[ RUN ] UnitTest/BackendFcnTests.MakeFuncWithLotsOfArgs/X8664SysV
[ OK ] UnitTest/BackendFcnTests.MakeFuncWithLotsOfArgs/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendFcnTests.MakeFuncWithLotsOfArgs/ARMAAPCS
[ OK ] UnitTest/BackendFcnTests.MakeFuncWithLotsOfArgs/ARMAAPCS (1 ms)
[ RUN ] UnitTest/BackendFcnTests.MakeFunction/X8664SysV
[ OK ] UnitTest/BackendFcnTests.MakeFunction/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendFcnTests.MakeFunction/ARMAAPCS
[ OK ] UnitTest/BackendFcnTests.MakeFunction/ARMAAPCS (1 ms)
[ RUN ] UnitTest/BackendFcnTests.BuiltinFunctionsMisc/X8664SysV
[ OK ] UnitTest/BackendFcnTests.BuiltinFunctionsMisc/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendFcnTests.BuiltinFunctionsMisc/ARMAAPCS
[ OK ] UnitTest/BackendFcnTests.BuiltinFunctionsMisc/ARMAAPCS (0 ms)
[ RUN ] UnitTest/BackendFcnTests.BuiltinFunctionsTrig/X8664SysV
[ OK ] UnitTest/BackendFcnTests.BuiltinFunctionsTrig/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendFcnTests.BuiltinFunctionsTrig/ARMAAPCS
[ OK ] UnitTest/BackendFcnTests.BuiltinFunctionsTrig/ARMAAPCS (1 ms)
[ RUN ] UnitTest/BackendFcnTests.MakeBlocks/X8664SysV
[ OK ] UnitTest/BackendFcnTests.MakeBlocks/X8664SysV (0 ms)
[ RUN ] UnitTest/BackendFcnTests.MakeBlocks/ARMAAPCS
[ OK ] UnitTest/BackendFcnTests.MakeBlocks/ARMAAPCS (0 ms)
[ RUN ] UnitTest/BackendFcnTests.MakeFuncWithRecursiveTypeParam/X8664SysV
[ OK ] UnitTest/BackendFcnTests.MakeFuncWithRecursiveTypeParam/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendFcnTests.MakeFuncWithRecursiveTypeParam/ARMAAPCS
[ OK ] UnitTest/BackendFcnTests.MakeFuncWithRecursiveTypeParam/ARMAAPCS (0 ms)
[ RUN ] UnitTest/BackendFcnTests.MakeMultipleDeclarations/X8664SysV
[ OK ] UnitTest/BackendFcnTests.MakeMultipleDeclarations/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendFcnTests.MakeMultipleDeclarations/ARMAAPCS
[ OK ] UnitTest/BackendFcnTests.MakeMultipleDeclarations/ARMAAPCS (0 ms)
[ RUN ] UnitTest/BackendFcnTests.TestIntrinsicCall/X8664SysV
[ OK ] UnitTest/BackendFcnTests.TestIntrinsicCall/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendFcnTests.TestIntrinsicCall/ARMAAPCS
[ OK ] UnitTest/BackendFcnTests.TestIntrinsicCall/ARMAAPCS (1 ms)
[ RUN ] UnitTest/BackendFcnTests.TestCallMemBuiltins/X8664SysV
[ OK ] UnitTest/BackendFcnTests.TestCallMemBuiltins/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendFcnTests.TestCallMemBuiltins/ARMAAPCS
[ OK ] UnitTest/BackendFcnTests.TestCallMemBuiltins/ARMAAPCS (1 ms)
[ RUN ] UnitTest/BackendFcnTests.TestMultipleExternalFcnsWithSameName/X8664SysV
[ OK ] UnitTest/BackendFcnTests.TestMultipleExternalFcnsWithSameName/X8664SysV (13 ms)
[ RUN ] UnitTest/BackendFcnTests.TestMultipleExternalFcnsWithSameName/ARMAAPCS
[ OK ] UnitTest/BackendFcnTests.TestMultipleExternalFcnsWithSameName/ARMAAPCS (1 ms)
[ RUN ] UnitTest/BackendFcnTests.TestDeclAndDefWithSameName/X8664SysV
[ OK ] UnitTest/BackendFcnTests.TestDeclAndDefWithSameName/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendFcnTests.TestDeclAndDefWithSameName/ARMAAPCS
[ OK ] UnitTest/BackendFcnTests.TestDeclAndDefWithSameName/ARMAAPCS (1 ms)
[----------] 24 tests from UnitTest/BackendFcnTests (57 ms total)

[----------] 8 tests from UnitTest/BackendCallTests
[ RUN ] UnitTest/BackendCallTests.TestSimpleCall/X8664SysV
[ OK ] UnitTest/BackendCallTests.TestSimpleCall/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendCallTests.TestSimpleCall/ARMAAPCS
[ OK ] UnitTest/BackendCallTests.TestSimpleCall/ARMAAPCS (0 ms)
[ RUN ] UnitTest/BackendCallTests.CallToVoid/X8664SysV
[ OK ] UnitTest/BackendCallTests.CallToVoid/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendCallTests.CallToVoid/ARMAAPCS
[ OK ] UnitTest/BackendCallTests.CallToVoid/ARMAAPCS (0 ms)
[ RUN ] UnitTest/BackendCallTests.MultiReturnCall/X8664SysV
[ OK ] UnitTest/BackendCallTests.MultiReturnCall/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendCallTests.MultiReturnCall/ARMAAPCS
[ OK ] UnitTest/BackendCallTests.MultiReturnCall/ARMAAPCS (1 ms)
[ RUN ] UnitTest/BackendCallTests.CallToNoReturnFunction/X8664SysV
[ OK ] UnitTest/BackendCallTests.CallToNoReturnFunction/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendCallTests.CallToNoReturnFunction/ARMAAPCS
[ OK ] UnitTest/BackendCallTests.CallToNoReturnFunction/ARMAAPCS (0 ms)
[----------] 8 tests from UnitTest/BackendCallTests (5 ms total)

[----------] 12 tests from UnitTest/BackendDebugEmit
[ RUN ] UnitTest/BackendDebugEmit.TestSimpleDecl/X8664SysV
[ OK ] UnitTest/BackendDebugEmit.TestSimpleDecl/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendDebugEmit.TestSimpleDecl/ARMAAPCS
[ OK ] UnitTest/BackendDebugEmit.TestSimpleDecl/ARMAAPCS (0 ms)
[ RUN ] UnitTest/BackendDebugEmit.MoreComplexVarDecls/X8664SysV
[ OK ] UnitTest/BackendDebugEmit.MoreComplexVarDecls/X8664SysV (2 ms)
[ RUN ] UnitTest/BackendDebugEmit.MoreComplexVarDecls/ARMAAPCS
[ OK ] UnitTest/BackendDebugEmit.MoreComplexVarDecls/ARMAAPCS (2 ms)
[ RUN ] UnitTest/BackendDebugEmit.TestDeadLocalVar/X8664SysV
[ OK ] UnitTest/BackendDebugEmit.TestDeadLocalVar/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendDebugEmit.TestDeadLocalVar/ARMAAPCS
[ OK ] UnitTest/BackendDebugEmit.TestDeadLocalVar/ARMAAPCS (1 ms)
[ RUN ] UnitTest/BackendDebugEmit.TestGlobalVarDebugEmit/X8664SysV
[ OK ] UnitTest/BackendDebugEmit.TestGlobalVarDebugEmit/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendDebugEmit.TestGlobalVarDebugEmit/ARMAAPCS
[ OK ] UnitTest/BackendDebugEmit.TestGlobalVarDebugEmit/ARMAAPCS (1 ms)
[ RUN ] UnitTest/BackendDebugEmit.TestDebugPrefixMap/X8664SysV
[ OK ] UnitTest/BackendDebugEmit.TestDebugPrefixMap/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendDebugEmit.TestDebugPrefixMap/ARMAAPCS
[ OK ] UnitTest/BackendDebugEmit.TestDebugPrefixMap/ARMAAPCS (1 ms)
[ RUN ] UnitTest/BackendDebugEmit.TestFileLineDirectives/X8664SysV
[ OK ] UnitTest/BackendDebugEmit.TestFileLineDirectives/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendDebugEmit.TestFileLineDirectives/ARMAAPCS
[ OK ] UnitTest/BackendDebugEmit.TestFileLineDirectives/ARMAAPCS (1 ms)
[----------] 12 tests from UnitTest/BackendDebugEmit (13 ms total)

[----------] 24 tests from UnitTest/BackendStmtTests
[ RUN ] UnitTest/BackendStmtTests.TestInitStmt/X8664SysV
[ OK ] UnitTest/BackendStmtTests.TestInitStmt/X8664SysV (0 ms)
[ RUN ] UnitTest/BackendStmtTests.TestInitStmt/ARMAAPCS
[ OK ] UnitTest/BackendStmtTests.TestInitStmt/ARMAAPCS (0 ms)
[ RUN ] UnitTest/BackendStmtTests.TestAssignmentStmt/X8664SysV
[ OK ] UnitTest/BackendStmtTests.TestAssignmentStmt/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendStmtTests.TestAssignmentStmt/ARMAAPCS
[ OK ] UnitTest/BackendStmtTests.TestAssignmentStmt/ARMAAPCS (0 ms)
[ RUN ] UnitTest/BackendStmtTests.TestReturnStmt/X8664SysV
[ OK ] UnitTest/BackendStmtTests.TestReturnStmt/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendStmtTests.TestReturnStmt/ARMAAPCS
[ OK ] UnitTest/BackendStmtTests.TestReturnStmt/ARMAAPCS (0 ms)
[ RUN ] UnitTest/BackendStmtTests.TestReturnStmt2/X8664SysV
[ OK ] UnitTest/BackendStmtTests.TestReturnStmt2/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendStmtTests.TestReturnStmt2/ARMAAPCS
[ OK ] UnitTest/BackendStmtTests.TestReturnStmt2/ARMAAPCS (0 ms)
[ RUN ] UnitTest/BackendStmtTests.TestLabelGotoStmts/X8664SysV
[ OK ] UnitTest/BackendStmtTests.TestLabelGotoStmts/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendStmtTests.TestLabelGotoStmts/ARMAAPCS
[ OK ] UnitTest/BackendStmtTests.TestLabelGotoStmts/ARMAAPCS (0 ms)
[ RUN ] UnitTest/BackendStmtTests.TestLabelAddressExpression/X8664SysV
[ OK ] UnitTest/BackendStmtTests.TestLabelAddressExpression/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendStmtTests.TestLabelAddressExpression/ARMAAPCS
[ OK ] UnitTest/BackendStmtTests.TestLabelAddressExpression/ARMAAPCS (0 ms)
[ RUN ] UnitTest/BackendStmtTests.TestIfStmt/X8664SysV
[ OK ] UnitTest/BackendStmtTests.TestIfStmt/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendStmtTests.TestIfStmt/ARMAAPCS
[ OK ] UnitTest/BackendStmtTests.TestIfStmt/ARMAAPCS (1 ms)
[ RUN ] UnitTest/BackendStmtTests.TestSwitchStmt/X8664SysV
[ OK ] UnitTest/BackendStmtTests.TestSwitchStmt/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendStmtTests.TestSwitchStmt/ARMAAPCS
[ OK ] UnitTest/BackendStmtTests.TestSwitchStmt/ARMAAPCS (2 ms)
[ RUN ] UnitTest/BackendStmtTests.TestStaticallyUnreachableStmts/X8664SysV
[ OK ] UnitTest/BackendStmtTests.TestStaticallyUnreachableStmts/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendStmtTests.TestStaticallyUnreachableStmts/ARMAAPCS
[ OK ] UnitTest/BackendStmtTests.TestStaticallyUnreachableStmts/ARMAAPCS (1 ms)
[ RUN ] UnitTest/BackendStmtTests.TestDeferStmt/X8664SysV
[ OK ] UnitTest/BackendStmtTests.TestDeferStmt/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendStmtTests.TestDeferStmt/ARMAAPCS
[ OK ] UnitTest/BackendStmtTests.TestDeferStmt/ARMAAPCS (0 ms)
[ RUN ] UnitTest/BackendStmtTests.TestExceptionHandlingStmt/X8664SysV
[ OK ] UnitTest/BackendStmtTests.TestExceptionHandlingStmt/X8664SysV (2 ms)
[ RUN ] UnitTest/BackendStmtTests.TestExceptionHandlingStmt/ARMAAPCS
[ OK ] UnitTest/BackendStmtTests.TestExceptionHandlingStmt/ARMAAPCS (2 ms)
[ RUN ] UnitTest/BackendStmtTests.TestExceptionHandlingStmtWithReturns/X8664SysV
[ OK ] UnitTest/BackendStmtTests.TestExceptionHandlingStmtWithReturns/X8664SysV (2 ms)
[ RUN ] UnitTest/BackendStmtTests.TestExceptionHandlingStmtWithReturns/ARMAAPCS
[ OK ] UnitTest/BackendStmtTests.TestExceptionHandlingStmtWithReturns/ARMAAPCS (2 ms)
[----------] 24 tests from UnitTest/BackendStmtTests (23 ms total)

[----------] 30 tests from UnitTest/BackendVarTests
[ RUN ] UnitTest/BackendVarTests.MakeLocalVar/X8664SysV
[ OK ] UnitTest/BackendVarTests.MakeLocalVar/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendVarTests.MakeLocalVar/ARMAAPCS
[ OK ] UnitTest/BackendVarTests.MakeLocalVar/ARMAAPCS (1 ms)
[ RUN ] UnitTest/BackendVarTests.MakeParamVar/X8664SysV
[ OK ] UnitTest/BackendVarTests.MakeParamVar/X8664SysV (0 ms)
[ RUN ] UnitTest/BackendVarTests.MakeParamVar/ARMAAPCS
[ OK ] UnitTest/BackendVarTests.MakeParamVar/ARMAAPCS (0 ms)
[ RUN ] UnitTest/BackendVarTests.MakeGlobalVar/X8664SysV
[ OK ] UnitTest/BackendVarTests.MakeGlobalVar/X8664SysV (0 ms)
[ RUN ] UnitTest/BackendVarTests.MakeGlobalVar/ARMAAPCS
[ OK ] UnitTest/BackendVarTests.MakeGlobalVar/ARMAAPCS (0 ms)
[ RUN ] UnitTest/BackendVarTests.MakeTemporaryVar/X8664SysV
[ OK ] UnitTest/BackendVarTests.MakeTemporaryVar/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendVarTests.MakeTemporaryVar/ARMAAPCS
[ OK ] UnitTest/BackendVarTests.MakeTemporaryVar/ARMAAPCS (0 ms)
[ RUN ] UnitTest/BackendVarTests.MakeImmutableStruct/X8664SysV
[ OK ] UnitTest/BackendVarTests.MakeImmutableStruct/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendVarTests.MakeImmutableStruct/ARMAAPCS
[ OK ] UnitTest/BackendVarTests.MakeImmutableStruct/ARMAAPCS (0 ms)
[ RUN ] UnitTest/BackendVarTests.MakeImplicitVariable/X8664SysV
[ OK ] UnitTest/BackendVarTests.MakeImplicitVariable/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendVarTests.MakeImplicitVariable/ARMAAPCS
[ OK ] UnitTest/BackendVarTests.MakeImplicitVariable/ARMAAPCS (0 ms)
[ RUN ] UnitTest/BackendVarTests.MakeImmutableStructReference/X8664SysV
[ OK ] UnitTest/BackendVarTests.MakeImmutableStructReference/X8664SysV (0 ms)
[ RUN ] UnitTest/BackendVarTests.MakeImmutableStructReference/ARMAAPCS
[ OK ] UnitTest/BackendVarTests.MakeImmutableStructReference/ARMAAPCS (1 ms)
[ RUN ] UnitTest/BackendVarTests.ImmutableStructSetInit/X8664SysV
[ OK ] UnitTest/BackendVarTests.ImmutableStructSetInit/X8664SysV (0 ms)
[ RUN ] UnitTest/BackendVarTests.ImmutableStructSetInit/ARMAAPCS
[ OK ] UnitTest/BackendVarTests.ImmutableStructSetInit/ARMAAPCS (0 ms)
[ RUN ] UnitTest/BackendVarTests.MakeImmutableStructReferenceWithSameName/X8664SysV
[ OK ] UnitTest/BackendVarTests.MakeImmutableStructReferenceWithSameName/X8664SysV (0 ms)
[ RUN ] UnitTest/BackendVarTests.MakeImmutableStructReferenceWithSameName/ARMAAPCS
[ OK ] UnitTest/BackendVarTests.MakeImmutableStructReferenceWithSameName/ARMAAPCS (1 ms)
[ RUN ] UnitTest/BackendVarTests.ImplicitVariableSetInit/X8664SysV
[ OK ] UnitTest/BackendVarTests.ImplicitVariableSetInit/X8664SysV (0 ms)
[ RUN ] UnitTest/BackendVarTests.ImplicitVariableSetInit/ARMAAPCS
[ OK ] UnitTest/BackendVarTests.ImplicitVariableSetInit/ARMAAPCS (0 ms)
[ RUN ] UnitTest/BackendVarTests.GlobalVarSetInitToComposite/X8664SysV
[ OK ] UnitTest/BackendVarTests.GlobalVarSetInitToComposite/X8664SysV (0 ms)
[ RUN ] UnitTest/BackendVarTests.GlobalVarSetInitToComposite/ARMAAPCS
[ OK ] UnitTest/BackendVarTests.GlobalVarSetInitToComposite/ARMAAPCS (0 ms)
[ RUN ] UnitTest/BackendVarTests.GlobalVarsWithSameName/X8664SysV
[ OK ] UnitTest/BackendVarTests.GlobalVarsWithSameName/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendVarTests.GlobalVarsWithSameName/ARMAAPCS
[ OK ] UnitTest/BackendVarTests.GlobalVarsWithSameName/ARMAAPCS (0 ms)
[ RUN ] UnitTest/BackendVarTests.TestVarLifetimeInsertion/X8664SysV
[ OK ] UnitTest/BackendVarTests.TestVarLifetimeInsertion/X8664SysV (0 ms)
[ RUN ] UnitTest/BackendVarTests.TestVarLifetimeInsertion/ARMAAPCS
[ OK ] UnitTest/BackendVarTests.TestVarLifetimeInsertion/ARMAAPCS (1 ms)
[ RUN ] UnitTest/BackendVarTests.ZeroSizedGlobals/X8664SysV
[ OK ] UnitTest/BackendVarTests.ZeroSizedGlobals/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendVarTests.ZeroSizedGlobals/ARMAAPCS
[ OK ] UnitTest/BackendVarTests.ZeroSizedGlobals/ARMAAPCS (1 ms)
[ RUN ] UnitTest/BackendVarTests.MakeLocalWithDeclVar/X8664SysV
[ OK ] UnitTest/BackendVarTests.MakeLocalWithDeclVar/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendVarTests.MakeLocalWithDeclVar/ARMAAPCS
[ OK ] UnitTest/BackendVarTests.MakeLocalWithDeclVar/ARMAAPCS (1 ms)
[----------] 30 tests from UnitTest/BackendVarTests (19 ms total)

[----------] 8 tests from UnitTest/BackendTreeIntegrity
[ RUN ] UnitTest/BackendTreeIntegrity.CheckTreeIntegrity1/X8664SysV
[ OK ] UnitTest/BackendTreeIntegrity.CheckTreeIntegrity1/X8664SysV (0 ms)
[ RUN ] UnitTest/BackendTreeIntegrity.CheckTreeIntegrity1/ARMAAPCS
[ OK ] UnitTest/BackendTreeIntegrity.CheckTreeIntegrity1/ARMAAPCS (1 ms)
[ RUN ] UnitTest/BackendTreeIntegrity.CheckTreeIntegrity2/X8664SysV
[ OK ] UnitTest/BackendTreeIntegrity.CheckTreeIntegrity2/X8664SysV (0 ms)
[ RUN ] UnitTest/BackendTreeIntegrity.CheckTreeIntegrity2/ARMAAPCS
[ OK ] UnitTest/BackendTreeIntegrity.CheckTreeIntegrity2/ARMAAPCS (1 ms)
[ RUN ] UnitTest/BackendTreeIntegrity.CheckTreeIntegrity3/X8664SysV
[ OK ] UnitTest/BackendTreeIntegrity.CheckTreeIntegrity3/X8664SysV (0 ms)
[ RUN ] UnitTest/BackendTreeIntegrity.CheckTreeIntegrity3/ARMAAPCS
[ OK ] UnitTest/BackendTreeIntegrity.CheckTreeIntegrity3/ARMAAPCS (0 ms)
[ RUN ] UnitTest/BackendTreeIntegrity.CheckTreeIntegrityRepairableSubtree/X8664SysV
[ OK ] UnitTest/BackendTreeIntegrity.CheckTreeIntegrityRepairableSubtree/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendTreeIntegrity.CheckTreeIntegrityRepairableSubtree/ARMAAPCS
[ OK ] UnitTest/BackendTreeIntegrity.CheckTreeIntegrityRepairableSubtree/ARMAAPCS (1 ms)
[----------] 8 tests from UnitTest/BackendTreeIntegrity (4 ms total)

[----------] 6 tests from UnitTest/BackendNodeTests
[ RUN ] UnitTest/BackendNodeTests.VerifyVisitorBehavior/X8664SysV
[ OK ] UnitTest/BackendNodeTests.VerifyVisitorBehavior/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendNodeTests.VerifyVisitorBehavior/ARMAAPCS
[ OK ] UnitTest/BackendNodeTests.VerifyVisitorBehavior/ARMAAPCS (1 ms)
[ RUN ] UnitTest/BackendNodeTests.CloneSubtree/X8664SysV
[ OK ] UnitTest/BackendNodeTests.CloneSubtree/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendNodeTests.CloneSubtree/ARMAAPCS
[ OK ] UnitTest/BackendNodeTests.CloneSubtree/ARMAAPCS (1 ms)
[ RUN ] UnitTest/BackendNodeTests.FixSharing/X8664SysV
[ OK ] UnitTest/BackendNodeTests.FixSharing/X8664SysV (1 ms)
[ RUN ] UnitTest/BackendNodeTests.FixSharing/ARMAAPCS
[ OK ] UnitTest/BackendNodeTests.FixSharing/ARMAAPCS (0 ms)
[----------] 6 tests from UnitTest/BackendNodeTests (6 ms total)

[----------] Global test environment tear-down
[==========] 264 tests from 19 test cases ran. (269 ms total)
[ PASSED ] 264 tests.

@advancedwebdeveloper
Copy link
Author

@advancedwebdeveloper advancedwebdeveloper commented Dec 6, 2020

$ ./DriverTests
[==========] Running 7 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 7 tests from DriverTests
[ RUN ] DriverTests.SimpleCompile
[ OK ] DriverTests.SimpleCompile (17 ms)
[ RUN ] DriverTests.NoIntegAsmCompile
[ OK ] DriverTests.NoIntegAsmCompile (2 ms)
[ RUN ] DriverTests.CompileToAsm
[ OK ] DriverTests.CompileToAsm (2 ms)
[ RUN ] DriverTests.CompileToLllvmBitcode
[ OK ] DriverTests.CompileToLllvmBitcode (1 ms)
[ RUN ] DriverTests.CompileToLllvmIRAsm
[ OK ] DriverTests.CompileToLllvmIRAsm (1 ms)
[ RUN ] DriverTests.AssembleAction
[ OK ] DriverTests.AssembleAction (1 ms)
[ RUN ] DriverTests.CompileAndLinkAction
[ OK ] DriverTests.CompileAndLinkAction (1 ms)
[----------] 7 tests from DriverTests (26 ms total)

[----------] Global test environment tear-down
[==========] 7 tests from 1 test case ran. (27 ms total)
[ PASSED ] 7 tests.

@advancedwebdeveloper
Copy link
Author

@advancedwebdeveloper advancedwebdeveloper commented Dec 6, 2020

~/build_release/tools/gollvm/unittests/DriverUtils$ ./DriverUtilsTests
[==========] Running 10 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 10 tests from DriverUtilsTests
[ RUN ] DriverUtilsTests.ParseGccVersion
0 maj=-1 min=-1 rem=
1 maj=-1 min=-1 rem=
2 maj=-1 min=-1 rem=
3 maj=4 min=-1 rem=
4 maj=4 min=9 rem=3
5 maj=4 min=9 rem=x
6 maj=7 min=3 rem=9.q
[ OK ] DriverUtilsTests.ParseGccVersion (1 ms)
[ RUN ] DriverUtilsTests.TestFakeFS
[ OK ] DriverUtilsTests.TestFakeFS (0 ms)
[ RUN ] DriverUtilsTests.GCCInstallationDetectorBasicAmd64
[ OK ] DriverUtilsTests.GCCInstallationDetectorBasicAmd64 (1 ms)
[ RUN ] DriverUtilsTests.GCCInstallationDetectorBasicARM64
[ OK ] DriverUtilsTests.GCCInstallationDetectorBasicARM64 (0 ms)
[ RUN ] DriverUtilsTests.GCCInstallationDetectorSysRootAmd64
[ OK ] DriverUtilsTests.GCCInstallationDetectorSysRootAmd64 (0 ms)
[ RUN ] DriverUtilsTests.GCCInstallationDetectorSysRootARM64
[ OK ] DriverUtilsTests.GCCInstallationDetectorSysRootARM64 (0 ms)
[ RUN ] DriverUtilsTests.GCCInstallationDetectorTripleAliasesAmd64
[ OK ] DriverUtilsTests.GCCInstallationDetectorTripleAliasesAmd64 (0 ms)
[ RUN ] DriverUtilsTests.GCCInstallationDetectorTripleAliasesARM64
[ OK ] DriverUtilsTests.GCCInstallationDetectorTripleAliasesARM64 (0 ms)
[ RUN ] DriverUtilsTests.GCCInstallationDetectorBiarchAliasesAmd64
[ OK ] DriverUtilsTests.GCCInstallationDetectorBiarchAliasesAmd64 (0 ms)
[ RUN ] DriverUtilsTests.DistroDetector
[ OK ] DriverUtilsTests.DistroDetector (0 ms)
[----------] 10 tests from DriverUtilsTests (3 ms total)

[----------] Global test environment tear-down
[==========] 10 tests from 1 test case ran. (3 ms total)
[ PASSED ] 10 tests.

@advancedwebdeveloper
Copy link
Author

@advancedwebdeveloper advancedwebdeveloper commented Dec 6, 2020

~/build_release/tools/gollvm/unittests/GoDumpSpec$ ./GoDumpSpecTests
[==========] Running 14 tests from 2 test cases.
[----------] Global test environment set-up.
[----------] 6 tests from GoDumpSpecParserTests
[ RUN ] GoDumpSpecParserTests.BasicParser
malformed macro input at line 2: #define BLIX
[ OK ] GoDumpSpecParserTests.BasicParser (0 ms)
[ RUN ] GoDumpSpecParserTests.MacroDefCycle
[ OK ] GoDumpSpecParserTests.MacroDefCycle (0 ms)
[ RUN ] GoDumpSpecParserTests.FunctionMacros
[ OK ] GoDumpSpecParserTests.FunctionMacros (0 ms)
[ RUN ] GoDumpSpecParserTests.BadStringLiterals
[ OK ] GoDumpSpecParserTests.BadStringLiterals (0 ms)
[ RUN ] GoDumpSpecParserTests.EmptyMacros
malformed macro input at line 1: #define EMPTY1
[ OK ] GoDumpSpecParserTests.EmptyMacros (0 ms)
[ RUN ] GoDumpSpecParserTests.MacrosAndEnums
[ OK ] GoDumpSpecParserTests.MacrosAndEnums (0 ms)
[----------] 6 tests from GoDumpSpecParserTests (2 ms total)

[----------] 8 tests from GoDumpSpecTokenizerTests
[ RUN ] GoDumpSpecTokenizerTests.BasicTokenizer
[ OK ] GoDumpSpecTokenizerTests.BasicTokenizer (0 ms)
[ RUN ] GoDumpSpecTokenizerTests.StringConstantTokens
[ OK ] GoDumpSpecTokenizerTests.StringConstantTokens (0 ms)
[ RUN ] GoDumpSpecTokenizerTests.NumericConstantTokens
[ OK ] GoDumpSpecTokenizerTests.NumericConstantTokens (0 ms)
[ RUN ] GoDumpSpecTokenizerTests.MiscOps
[ OK ] GoDumpSpecTokenizerTests.MiscOps (0 ms)
[ RUN ] GoDumpSpecTokenizerTests.MoreOps
[ OK ] GoDumpSpecTokenizerTests.MoreOps (0 ms)
[ RUN ] GoDumpSpecTokenizerTests.ErrorTokenizer
[ OK ] GoDumpSpecTokenizerTests.ErrorTokenizer (0 ms)
[ RUN ] GoDumpSpecTokenizerTests.BadLiteral1
[ OK ] GoDumpSpecTokenizerTests.BadLiteral1 (0 ms)
[ RUN ] GoDumpSpecTokenizerTests.BadLiteral2
[ OK ] GoDumpSpecTokenizerTests.BadLiteral2 (0 ms)
[----------] 8 tests from GoDumpSpecTokenizerTests (2 ms total)

[----------] Global test environment tear-down
[==========] 14 tests from 2 test cases ran. (4 ms total)
[ PASSED ] 14 tests.

@advancedwebdeveloper
Copy link
Author

@advancedwebdeveloper advancedwebdeveloper commented Dec 6, 2020

~/build_release/unittests/Target/X86$ ./X86Tests
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from MachineSizeOptsTest
[ RUN ] MachineSizeOptsTest.Test
[ OK ] MachineSizeOptsTest.Test (48 ms)
[----------] 1 test from MachineSizeOptsTest (48 ms total)

[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (51 ms total)
[ PASSED ] 1 test.

@advancedwebdeveloper
Copy link
Author

@advancedwebdeveloper advancedwebdeveloper commented Dec 6, 2020

~/build_release$ ninja -j 4 gollvm
[1/1093] Building sysinfo.o
ninja: job failed: cd /home/oceanfish81/build_release/tools/gollvm/libgo && /usr/bin/clang -g2 -c -fno-eliminate-unused-debug-types /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/sysinfo.c -o /home/oceanfish81/build_release/tools/gollvm/libgo/sysinfo.o -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/home/oceanfish81/build_release/tools/gollvm/libgo -I/home/oceanfish81/build_release/tools/gollvm/libgo/runtime
/home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/sysinfo.c:448:1: error: tentative definition has type 'struct nlattr' that is never completed
SREF(nlattr);
^
/home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/sysinfo.c:377:32: note: expanded from macro 'SREF'
#define SREF(stag) struct stag stag ## ref
^
:29:1: note: expanded from here
nlattrref
^
/home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/sysinfo.c:448:6: note: forward declaration of 'struct nlattr'
SREF(nlattr);
^
/home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/sysinfo.c:449:1: error: tentative definition has type 'struct nlmsgerr' that is never completed
SREF(nlmsgerr);
^
/home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/sysinfo.c:377:32: note: expanded from macro 'SREF'
#define SREF(stag) struct stag stag ## ref
^
:30:1: note: expanded from here
nlmsgerrref
^
/home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/sysinfo.c:449:6: note: forward declaration of 'struct nlmsgerr'
SREF(nlmsgerr);
^
/home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/sysinfo.c:465:1: error: tentative definition has type 'struct sigstack' that is never completed
SREF(sigstack);
^
/home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/sysinfo.c:377:32: note: expanded from macro 'SREF'
#define SREF(stag) struct stag stag ## ref
^
:40:1: note: expanded from here
sigstackref
^
/home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/sysinfo.c:465:6: note: forward declaration of 'struct sigstack'
SREF(sigstack);
^
/home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/sysinfo.c:500:1: error: tentative definition has type 'struct pt_regs' that is never completed
SREF(pt_regs);
^
/home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/sysinfo.c:377:32: note: expanded from macro 'SREF'
#define SREF(stag) struct stag stag ## ref
^
:55:1: note: expanded from here
pt_regsref
^
/home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/sysinfo.c:500:6: note: forward declaration of 'struct pt_regs'
SREF(pt_regs);
^
4 errors generated.
ninja: subcommand failed

@advancedwebdeveloper
Copy link
Author

@advancedwebdeveloper advancedwebdeveloper commented Dec 6, 2020

I have commented out those, as you advised:

diff --git a/libgo/sysinfo.c b/libgo/sysinfo.c
index a060ea86..d121876e 100644
--- a/libgo/sysinfo.c
+++ b/libgo/sysinfo.c
@@ -445,8 +445,8 @@ EREF(RTN_UNSPEC);
SREF(addrinfo);

// From netlink.h
-SREF(nlattr);
-SREF(nlmsgerr);
+//SREF(nlattr);
+//SREF(nlmsgerr);

// From pthread.h and related
TREF(pthread_attr_t);
@@ -462,7 +462,7 @@ TREF(sigset_t);
TREF(siginfo_t);
TREF(stack_t);
SREF(sigaction);
-SREF(sigstack);
+//SREF(sigstack);
EREF(SI_USER);
EREF(FPE_INTOVF);
EREF(BUS_ADRALN);
@@ -497,7 +497,7 @@ EREF(MNT_FORCE);
#if defined (aarch64)
SREF(user_pt_regs);
#else
-SREF(pt_regs);
+//SREF(pt_regs);
#endif
EREF(PTRACE_PEEKTEXT);
#endif

@advancedwebdeveloper
Copy link
Author

@advancedwebdeveloper advancedwebdeveloper commented Dec 6, 2020

So I am trying to re-compile:

~/build_release$ ninja -j 1 gollvm
ninja -j 1 gollvm
[1/1094] Building sysinfo.c macro temp file
[2/1094] Building sysinfo.o
[3/1094] Generating /home/oceanfish81/build_release/tools/gollvm/libgo/gen-sysinfo.go
[4/1094] cd /home/oceanfish81/build_release/tools/gollvm/libgo && /usr/bin/cmake -E copy_if_different /home/oceanfish81/build_release/tools/gollvm/libgo/gen-sysinfo.go.tmp /home/oceanfish81/build_release/tools/gollvm/libgo/gen-sysinfo.go
[5/1094] Creating /home/oceanfish81/build_release/tools/gollvm/libgo/tmp-syscall_linknames.go
[6/1094] cd /home/oceanfish81/build_release/tools/gollvm/libgo && /usr/bin/cmake -E copy_if_different /home/oceanfish81/build_release/tools/gollvm/libgo/tmp-syscall_linknames.go /home/oceanfish81/build_release/tools/gollvm/libgo/syscall_linknames.go
[7/1094] Creating /home/oceanfish81/build_release/tools/gollvm/libgo/tmp-sysinfo.go
[8/1094] cd /home/oceanfish81/build_release/tools/gollvm/libgo && /usr/bin/cmake -E copy_if_different /home/oceanfish81/build_release/tools/gollvm/libgo/tmp-sysinfo.go /home/oceanfish81/build_release/tools/gollvm/libgo/sysinfo.go
[9/1094] Creating /home/oceanfish81/build_release/tools/gollvm/libgo/tmp-sigtab.go
[10/1094] cd /home/oceanfish81/build_release/tools/gollvm/libgo && /usr/bin/cmake -E copy_if_different /home/oceanfish81/build_release/tools/gollvm/libgo/tmp-sigtab.go /home/oceanfish81/build_release/tools/gollvm/libgo/sigtab.go
[11/1094] Creating /home/oceanfish81/build_release/tools/gollvm/libgo/tmp-runtime_sysinfo.go
[12/1094] cd /home/oceanfish81/build_release/tools/gollvm/libgo && /usr/bin/cmake -E copy_if_different /home/oceanfish81/build_release/tools/gollvm/libgo/tmp-runtime_sysinfo.go /home/oceanfish81/build_release/tools/gollvm/libgo/runtime_sysinfo.go
[13/1094] Creating /home/oceanfish81/build_release/tools/gollvm/libgo/tmp-runtime_linknames.go
[14/1094] cd /home/oceanfish81/build_release/tools/gollvm/libgo && /usr/bin/cmake -E copy_if_different /home/oceanfish81/build_release/tools/gollvm/libgo/tmp-runtime_linknames.go /home/oceanfish81/build_release/tools/gollvm/libgo/runtime_linknames.go
[15/1094] Building Go package 'runtime' (PIC)
ninja: job failed: cd /home/oceanfish81/build_release/tools/gollvm/libgo && /usr/bin/cmake -E make_directory ././.pic && /home/oceanfish81/build_release/./bin/llvm-goc -c -o /home/oceanfish81/build_release/tools/gollvm/libgo/./.pic/runtime.o -fPIC -fgo-pkgpath=runtime -fgo-c-header=runtime.inc.raw -fgo-compiling-runtime -I . /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/alg.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/atomic_pointer.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/cgo_gccgo.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/cgocall.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/cgocheck.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/chan.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/compiler.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/cpuprof.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/cputicks.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/debug.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/debuglog.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/debuglog_off.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/env_posix.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/eqtype.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/error.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/extern.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/fastlog2.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/fastlog2table.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/ffi.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/float.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/hash64.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/heapdump.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/iface.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/lfstack.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/lfstack_64bit.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/lock_futex.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/lockrank.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/lockrank_off.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/malloc.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/map.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/map_fast32.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/map_fast64.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/map_faststr.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/mbarrier.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/mbitmap.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/mcache.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/mcentral.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/mem_gccgo.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/mfinal.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/mfixalloc.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/mgc.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/mgc_gccgo.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/mgcmark.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/mgcscavenge.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/mgcsweep.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/mgcsweepbuf.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/mgcwork.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/mheap.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/mpagealloc.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/mpagealloc_64bit.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/mpagecache.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/mpallocbits.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/mprof.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/mranges.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/msan0.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/msize.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/mspanset.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/mstats.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/mwbbuf.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/nbpipe_pipe2.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/netpoll.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/netpoll_epoll.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/os_gccgo.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/os_linux.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/os_linux_noauxv.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/panic.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/panic32.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/preempt.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/preempt_nonwindows.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/print.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/proc.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/profbuf.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/proflabel.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/race0.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/rdebug.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/relax_stub.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/runtime.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/runtime1.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/runtime2.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/rwmutex.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/select.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/sema.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/signal_gccgo.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/signal_unix.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/sigqueue.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/sigqueue_note.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/sizeclasses.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/slice.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/string.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/stubs.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/stubs2.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/stubs3.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/stubs_linux.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/symtab.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/time.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/time_nofake.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/timestub.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/timestub2.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/trace.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/traceback_gccgo.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/type.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/typekind.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/utf8.go /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/write_err.go /home/oceanfish81/build_release/tools/gollvm/libgo/runtime_linknames.go /home/oceanfish81/build_release/tools/gollvm/libgo/runtime_sysinfo.go /home/oceanfish81/build_release/tools/gollvm/libgo/sigtab.go
/home/oceanfish81/build_release/tools/gollvm/libgo/sigtab.go:38:2: error: duplicate value for index 29
/home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/signal_unix.go:817:3: error: range clause must have array, slice, string, map, or channel type
/home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/signal_unix.go:1047:2: error: range clause must have array, slice, string, map, or channel type
/home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/signal_unix.go:817:7: error: invalid type for range clause
/home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/signal_unix.go:1047:6: error: invalid type for range clause
ninja: subcommand failed

@advancedwebdeveloper advancedwebdeveloper changed the title gollvm: issues on Alpine Linux gollvm: missing structures pt_regs (ptrace.h), nlattr nlmsgerr (non-existing netlink.h) and sigstack (signal.h) in syscall.c (Alpine Linux v. 3.12.1) Dec 6, 2020
@advancedwebdeveloper
Copy link
Author

@advancedwebdeveloper advancedwebdeveloper commented Dec 6, 2020

I just rolled back my changes into sysinfo.c (only these two lines - sigstack is still commented):

SREF(nlattr);
SREF(nlmsgerr);
.
And guess what:

~/build_release$ ninja tools/gollvm/libgo/sysinfo.o
[1/1] Building sysinfo.o
ninja: job failed: cd /home/oceanfish81/build_release/tools/gollvm/libgo && /usr/bin/clang -g2 -c -fno-eliminate-unused-debug-types /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/sysinfo.c -o /home/oceanfish81/build_release/tools/gollvm/libgo/sysinfo.o -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/home/oceanfish81/build_release/tools/gollvm/libgo -I/home/oceanfish81/build_release/tools/gollvm/libgo/runtime
/home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/sysinfo.c:448:1: error: tentative definition has type 'struct nlattr' that is never completed
SREF(nlattr);
^
/home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/sysinfo.c:377:32: note: expanded from macro 'SREF'
#define SREF(stag) struct stag stag ## ref
^
:29:1: note: expanded from here
nlattrref
^
/home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/sysinfo.c:448:6: note: forward declaration of 'struct nlattr'
SREF(nlattr);
^
/home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/sysinfo.c:449:1: error: tentative definition has type 'struct nlmsgerr' that is never completed
SREF(nlmsgerr);
^
/home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/sysinfo.c:377:32: note: expanded from macro 'SREF'
#define SREF(stag) struct stag stag ## ref
^
:30:1: note: expanded from here
nlmsgerrref
^
/home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/sysinfo.c:449:6: note: forward declaration of 'struct nlmsgerr'
SREF(nlmsgerr);
^
2 errors generated.
ninja: subcommand failed

.
Hm, that seems like a C level issue - before llvm-goc would be invoke, for other targets.

@advancedwebdeveloper
Copy link
Author

@advancedwebdeveloper advancedwebdeveloper commented Dec 6, 2020

I traced how Clang resolves the headers:

$ cd /home/oceanfish81/build_release/tools/gollvm/libgo && /usr/bin/clang -H -g2 -c -fno-eliminate-unus
ed-debug-types /home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/sysinfo.c -o /home/oceanfish81/build_release/tools/gollvm/libgo/sysinfo.o -D
_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/home/oceanfish81/build_release/tools/gollvm/libgo -I/home/oceanfish81/build_release/tools/gollvm/li
bgo/runtime
. /home/oceanfish81/build_release/tools/gollvm/libgo/runtime/config.h
.. /home/oceanfish81/build_release/tools/gollvm/libgo/llvm/Config/config.h
. /usr/include/stddef.h
.. /usr/include/bits/alltypes.h
. /usr/include/stdlib.h
.. /usr/include/features.h
.. /usr/include/bits/alltypes.h
.. /usr/include/alloca.h
... /usr/include/bits/alltypes.h
. /usr/include/sys/types.h
.. /usr/include/bits/alltypes.h
.. /usr/include/endian.h
... /usr/include/stdint.h
.... /usr/include/bits/alltypes.h
.... /usr/include/bits/stdint.h
.. /usr/include/sys/select.h
... /usr/include/bits/alltypes.h
. /usr/include/dirent.h
.. /usr/include/bits/alltypes.h
. /usr/include/errno.h
.. /usr/include/bits/errno.h
. /usr/include/fcntl.h
.. /usr/include/bits/alltypes.h
.. /usr/include/bits/fcntl.h
. /usr/include/ucontext.h
.. /usr/include/signal.h
... /usr/include/bits/alltypes.h
... /usr/include/bits/signal.h
. /usr/include/netinet/in.h
.. /usr/include/inttypes.h
... /usr/include/bits/alltypes.h
.. /usr/include/sys/socket.h
... /usr/include/bits/alltypes.h
... /usr/include/bits/socket.h
. /usr/include/netinet/tcp.h
. /usr/include/netinet/in_systm.h
. /usr/include/netinet/ip.h
. /usr/include/netinet/if_ether.h
.. /usr/include/net/ethernet.h
... /usr/include/netinet/if_ether.h
.. /usr/include/net/if_arp.h
. /usr/include/sys/ioctl.h
.. /usr/include/bits/ioctl.h
... /usr/include/bits/ioctl_fix.h
. /usr/include/termios.h
.. /usr/include/bits/alltypes.h
.. /usr/include/bits/termios.h
. /usr/include/syscall.h
.. /usr/include/sys/syscall.h
... /usr/include/bits/syscall.h
. /usr/include/sys/epoll.h
.. /usr/include/bits/alltypes.h
. /usr/include/sys/file.h
. /usr/include/sys/mman.h
.. /usr/include/bits/alltypes.h
.. /usr/include/bits/mman.h
. /usr/include/sys/prctl.h
. /usr/include/sys/ptrace.h
.. /usr/include/bits/ptrace.h
. /usr/include/sys/resource.h
.. /usr/include/sys/time.h
.. /usr/include/bits/alltypes.h
.. /usr/include/bits/resource.h
. /usr/include/sys/uio.h
.. /usr/include/bits/alltypes.h
. /usr/include/sys/stat.h
.. /usr/include/bits/alltypes.h
.. /usr/include/bits/stat.h
. /usr/include/sys/times.h
.. /usr/include/bits/alltypes.h
. /usr/include/sys/wait.h
.. /usr/include/bits/alltypes.h
. /usr/include/sys/un.h
.. /usr/include/bits/alltypes.h
. /usr/include/sys/user.h
.. /usr/include/limits.h
... /usr/include/bits/limits.h
.. /usr/include/unistd.h
... /usr/include/bits/alltypes.h
... /usr/include/bits/posix.h
.. /usr/include/bits/user.h
. /usr/include/sys/utsname.h
. /usr/include/time.h
.. /usr/include/bits/alltypes.h
. /usr/include/netdb.h
.. /usr/include/bits/alltypes.h
. /usr/include/pwd.h
.. /usr/include/bits/alltypes.h
. /usr/include/grp.h
.. /usr/include/bits/alltypes.h
. /usr/include/net/if.h
. /usr/include/net/route.h
. /usr/include/netpacket/packet.h
. /usr/include/sys/mount.h
. /usr/include/sys/vfs.h
.. /usr/include/sys/statfs.h
... /usr/include/sys/statvfs.h
.... /usr/include/bits/alltypes.h
... /usr/include/bits/statfs.h
. /usr/include/sys/timex.h
.. /usr/include/bits/alltypes.h
. /usr/include/sys/sysinfo.h
. /usr/include/utime.h
.. /usr/include/bits/alltypes.h
. /usr/include/sys/inotify.h
. /usr/include/netinet/icmp6.h
.. /usr/include/string.h
... /usr/include/bits/alltypes.h
... /usr/include/strings.h
.... /usr/include/bits/alltypes.h
. /usr/include/sched.h
.. /usr/include/bits/alltypes.h
. /usr/include/semaphore.h
.. /usr/include/bits/alltypes.h
. /home/oceanfish81/build_release/tools/gollvm/libgo/ffi.h
.. /home/oceanfish81/build_release/tools/gollvm/libgo/ffitarget.h
/home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/sysinfo.c:448:1: error: tentative definition has type 'struct nlattr' that is never
completed
SREF(nlattr);
^
/home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/sysinfo.c:377:32: note: expanded from macro 'SREF'
#define SREF(stag) struct stag stag ## ref
^
:29:1: note: expanded from here
nlattrref
^
/home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/sysinfo.c:448:6: note: forward declaration of 'struct nlattr'
SREF(nlattr);
^
/home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/sysinfo.c:449:1: error: tentative definition has type 'struct nlmsgerr' that is never
completed
SREF(nlmsgerr);
^
/home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/sysinfo.c:377:32: note: expanded from macro 'SREF'
#define SREF(stag) struct stag stag ## ref
^
:30:1: note: expanded from here
nlmsgerrref
^
/home/oceanfish81/llvm-project/llvm/tools/gollvm/gofrontend/libgo/sysinfo.c:449:6: note: forward declaration of 'struct nlmsgerr'
SREF(nlmsgerr);
^
2 errors generated.

@advancedwebdeveloper
Copy link
Author

@advancedwebdeveloper advancedwebdeveloper commented Dec 6, 2020

One of the errors duplicate #42308

@ianlancetaylor
Copy link
Contributor

@ianlancetaylor ianlancetaylor commented Dec 6, 2020

The file sysinfo.c is used to generate the file gen-sysinfo.go which is used to generate the files sysinfo.go and runtime_sysinfo.go. sysinfo.go is part of the syscall package and runtime_sysinfo.go is part of the runtime package. So the syscall and runtime package tests are the most relevant ones.

In this case it looks like the build isn't completing anyhow.

@advancedwebdeveloper
Copy link
Author

@advancedwebdeveloper advancedwebdeveloper commented Dec 7, 2020

Some voting is required - because it would escalate more such bugs, with such an approach, between and Linux and Alpine.
@fcolista , could you elaborate about your patches?

I see some patches being involved.
I see that there is some build log available

@fcolista
Copy link

@fcolista fcolista commented Dec 7, 2020

Hi!
Dunno why I was involved here, i'm not the author of that patches.
See: http://dpaste.com/4SG5MUZV7.txt and https://dpaste.com/E4VEVSWPD

.: Francesco

@advancedwebdeveloper
Copy link
Author

@advancedwebdeveloper advancedwebdeveloper commented Dec 7, 2020

@fcolista , thanks.
CC @fabled , @Ikke

@cagedmantis cagedmantis added this to the Backlog milestone Dec 7, 2020
@cagedmantis
Copy link
Contributor

@cagedmantis cagedmantis commented Dec 7, 2020

/cc @thanm

@advancedwebdeveloper
Copy link
Author

@advancedwebdeveloper advancedwebdeveloper commented Dec 10, 2020

@awilfox , we are stuck here.
Could you review this, please?

@thanm
Copy link
Member

@thanm thanm commented Dec 10, 2020

Just to recap what's going on at a high level:

The libgo build process takes a C source file (sysinfo.c) that includes a series of system header files, builds it with "-g", and then examines the DWARF information in the file to pick out definitions of key structures.

The end result of this tooling is a Go source file containing Go equivalents of the C structures. These Go structures are then used in the portions of the libgo runtime written in Go.

When the build on alpine gets an error of the form:

...gofrontend/libgo/sysinfo.c:448:1: error: tentative definition has type 'struct nlmsgerr' that is never
completed
SREF(nlmsgerr);
^

it means that the C compiler has not seen a definition of the form

  struct nlmsgerr {
   ...
  }

This could be happening for a variety of reasons: perhaps on Alpine we need to include a different header file in order to pull in the definition of this structure, or perhaps on Alpine the structure is actually called something else, or perhaps on this particular Alpine linux system the headers are not installed by default, or the struct definition is in some other header file.

CC'ing folks from the Alpine community is not going to be helpful here; what would make more sense is go through each struct tag mentioned in an SREF clause and determine where it lives in the system header files (this is something that a Gollvm developer can do, no need for special Alpine expertise), then make sure that sysinfo.c is including the proper header.

@fabled
Copy link

@fabled fabled commented Dec 11, 2020

At least struct nlmsgerr and the netlink.h header file comes from linux kernel headers. Try installing linux-headers package.

@advancedwebdeveloper
Copy link
Author

@advancedwebdeveloper advancedwebdeveloper commented Jan 10, 2021

@fabled , I am stuck on #42308 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
6 participants