Repository: go
Issue: 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)
Labels: NeedsInvestigation

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