$ ./build-dotnet-tarball --bootstrap 9e8b04bbff820c93c142f99a507a46b976f5c14c
$ fedpkg --release f35 local
.build-6.0.100-1.fc35.log
Worth noting that L409 of dotnet6.0.spec mentions disabling warnings, but the sed line would be ineffective, as the string skiptests is no longer present in repos/runtime.common.props.
skiptests
repos/runtime.common.props
The affected parts are, as best as I can tell, confined to within CMake sections of the build.
clang-13.0.0~rc1-1.fc35.x86_64 cmake-3.21.3-1.fc35.x86_64 coreutils-8.32-31.fc35.x86_64 findutils-4.8.0-4.fc35.x86_64 git-2.33.1-1.fc35.x86_64 glibc-langpack-en-2.34-7.fc35.x86_64 hostname-3.23-5.fc35.x86_64 krb5-devel-1.19.2-2.fc35.x86_64 libicu-devel-69.1-2.fc35.x86_64 libunwind-devel-1.5.0-1.fc35.x86_64 lld-13.0.0~rc1-1.fc35.x86_64 llvm-13.0.0~rc1-1.fc35.x86_64 lttng-ust-devel-2.12.2-5.fc35.x86_64 make-4.3-6.fc35.x86_64 openssl-devel-1.1.1l-2.fc35.i686 openssl-devel-1.1.1l-2.fc35.x86_64 python3-3.10.0-1.fc35.x86_64 tar-1.34-2.fc35.x86_64 util-linux-2.37.2-1.fc35.x86_64 zlib-devel-1.2.11-30.fc35.x86_64
<snip>/dotnet6.0/dotnet-9e8b04bbff820c93c142f99a507a46b976f5c14c-x64-bootstrap/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/src/libraries/Native/Unix/System.Globalization.Native/pal_casing.c:47:13: error: identifier '__c2' is reserved because it starts with '__' [-Werror,-Wreserved-identifier] <snip>/dotnet6.0/dotnet-9e8b04bbff820c93c142f99a507a46b976f5c14c-x64-bootstrap/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/src/libraries/Native/Unix/System.Globalization.Native/pal_casing.c:57:13: error: identifier '__c2' is reserved because it starts with '__' [-Werror,-Wreserved-identifier] <snip>/dotnet6.0/dotnet-9e8b04bbff820c93c142f99a507a46b976f5c14c-x64-bootstrap/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/src/libraries/Native/Unix/System.Globalization.Native/pal_casing.c:90:13: error: identifier '__c2' is reserved because it starts with '__' [-Werror,-Wreserved-identifier] <snip>/dotnet6.0/dotnet-9e8b04bbff820c93c142f99a507a46b976f5c14c-x64-bootstrap/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/src/libraries/Native/Unix/System.Globalization.Native/pal_casing.c:103:13: error: identifier '__c2' is reserved because it starts with '__' [-Werror,-Wreserved-identifier] <snip>/dotnet6.0/dotnet-9e8b04bbff820c93c142f99a507a46b976f5c14c-x64-bootstrap/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/src/libraries/Native/Unix/System.Globalization.Native/pal_casing.c:134:13: error: identifier '__c2' is reserved because it starts with '__' [-Werror,-Wreserved-identifier] <snip>/dotnet6.0/dotnet-9e8b04bbff820c93c142f99a507a46b976f5c14c-x64-bootstrap/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/src/libraries/Native/Unix/System.Globalization.Native/pal_casing.c:146:13: error: identifier '__c2' is reserved because it starts with '__' [-Werror,-Wreserved-identifier] <snip>/dotnet6.0/dotnet-9e8b04bbff820c93c142f99a507a46b976f5c14c-x64-bootstrap/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/src/libraries/Native/Unix/System.Globalization.Native/pal_collation.c:796:17: error: variable 'r' set but not used [-Werror,-Wunused-but-set-variable] <snip>/dotnet6.0/dotnet-9e8b04bbff820c93c142f99a507a46b976f5c14c-x64-bootstrap/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/src/libraries/Native/Unix/System.Globalization.Native/pal_collation.c:805:17: error: variable 'r' set but not used [-Werror,-Wunused-but-set-variable] <snip>/dotnet6.0/dotnet-9e8b04bbff820c93c142f99a507a46b976f5c14c-x64-bootstrap/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/src/libraries/Native/Unix/System.Security.Cryptography.Native/osslcompat_102.h:9:25: error: identifier '_STACK' is reserved because it starts with '_' followed by a capital letter [-Werror,-Wreserved-identifier] <snip>/dotnet6.0/dotnet-9e8b04bbff820c93c142f99a507a46b976f5c14c-x64-bootstrap/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/src/libraries/Native/Unix/System.Security.Cryptography.Native/osslcompat_102.h:9:25: error: identifier '_STACK' is reserved because it starts with '_' followed by a capital letter [-Werror,-Wreserved-identifier] <snip>/dotnet6.0/dotnet-9e8b04bbff820c93c142f99a507a46b976f5c14c-x64-bootstrap/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/src/coreclr/inc/holder.h:521:23: error: variable 'unknown' set but not used [-Werror,-Wunused-but-set-variable] <snip>/dotnet6.0/dotnet-9e8b04bbff820c93c142f99a507a46b976f5c14c-x64-bootstrap/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/src/coreclr/inc/holder.h:521:23: error: variable 'unknown' set but not used [-Werror,-Wunused-but-set-variable] <snip>/dotnet6.0/dotnet-9e8b04bbff820c93c142f99a507a46b976f5c14c-x64-bootstrap/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/src/libraries/Native/Unix/System.Security.Cryptography.Native/openssl.c:1291:9: error: variable 'result' set but not used [-Werror,-Wunused-but-set-variable] <snip>/dotnet6.0/dotnet-9e8b04bbff820c93c142f99a507a46b976f5c14c-x64-bootstrap/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/src/libraries/Native/Unix/System.Security.Cryptography.Native/osslcompat_102.h:9:25: error: identifier '_STACK' is reserved because it starts with '_' followed by a capital letter [-Werror,-Wreserved-identifier] <snip>/dotnet6.0/dotnet-9e8b04bbff820c93c142f99a507a46b976f5c14c-x64-bootstrap/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/src/coreclr/inc/holder.h:521:23: error: variable 'unknown' set but not used [-Werror,-Wunused-but-set-variable] <snip>/dotnet6.0/dotnet-9e8b04bbff820c93c142f99a507a46b976f5c14c-x64-bootstrap/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/src/coreclr/inc/holder.h:521:23: error: variable 'unknown' set but not used [-Werror,-Wunused-but-set-variable] <snip>/dotnet6.0/dotnet-9e8b04bbff820c93c142f99a507a46b976f5c14c-x64-bootstrap/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/src/libraries/Native/Unix/System.Native/pal_process.c:374:92: error: cast from 'void (*)(int, siginfo_t *, void *)' to 'void (*)(int)' converts to incompatible function type [-Werror,-Wcast-function-type] <snip>/dotnet6.0/dotnet-9e8b04bbff820c93c142f99a507a46b976f5c14c-x64-bootstrap/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/src/libraries/Native/Unix/System.Native/pal_process.c:813:13: error: identifier '__cpu' is reserved because it starts with '__' [-Werror,-Wreserved-identifier] <snip>/dotnet6.0/dotnet-9e8b04bbff820c93c142f99a507a46b976f5c14c-x64-bootstrap/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/src/libraries/Native/Unix/System.Native/pal_process.c:844:17: error: identifier '__cpu' is reserved because it starts with '__' [-Werror,-Wreserved-identifier] <snip>/dotnet6.0/dotnet-9e8b04bbff820c93c142f99a507a46b976f5c14c-x64-bootstrap/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/src/coreclr/inc/sbuffer.inl:634:13: error: variable 'smaller' set but not used [-Werror,-Wunused-but-set-variable] <snip>/dotnet6.0/dotnet-9e8b04bbff820c93c142f99a507a46b976f5c14c-x64-bootstrap/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/src/coreclr/inc/sbuffer.inl:634:13: error: variable 'smaller' set but not used [-Werror,-Wunused-but-set-variable] <snip>/dotnet6.0/dotnet-9e8b04bbff820c93c142f99a507a46b976f5c14c-x64-bootstrap/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/src/coreclr/pal/src/cruntime/wchar.cpp:255:11: error: variable 'dwLastError' set but not used [-Werror,-Wunused-but-set-variable] <snip>/dotnet6.0/dotnet-9e8b04bbff820c93c142f99a507a46b976f5c14c-x64-bootstrap/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/src/coreclr/pal/src/cruntime/wchar.cpp:345:11: error: variable 'dwLastError' set but not used [-Werror,-Wunused-but-set-variable] <snip>/dotnet6.0/dotnet-9e8b04bbff820c93c142f99a507a46b976f5c14c-x64-bootstrap/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/src/coreclr/inc/sbuffer.inl:634:13: error: variable 'smaller' set but not used [-Werror,-Wunused-but-set-variable] <snip>/dotnet6.0/dotnet-9e8b04bbff820c93c142f99a507a46b976f5c14c-x64-bootstrap/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/src/coreclr/md/ceefilegen/blobfetcher.cpp:324:14: error: variable 'offset' set but not used [-Werror,-Wunused-but-set-variable] <snip>/dotnet6.0/dotnet-9e8b04bbff820c93c142f99a507a46b976f5c14c-x64-bootstrap/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/src/coreclr/inc/sbuffer.inl:634:13: error: variable 'smaller' set but not used [-Werror,-Wunused-but-set-variable] <snip>/dotnet6.0/dotnet-9e8b04bbff820c93c142f99a507a46b976f5c14c-x64-bootstrap/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/src/coreclr/md/ceefilegen/cceegen.cpp:593:21: error: variable 'hr' set but not used [-Werror,-Wunused-but-set-variable] <snip>/dotnet6.0/dotnet-9e8b04bbff820c93c142f99a507a46b976f5c14c-x64-bootstrap/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/src/coreclr/inc/sbuffer.inl:634:13: error: variable 'smaller' set but not used [-Werror,-Wunused-but-set-variable] <snip>/dotnet6.0/dotnet-9e8b04bbff820c93c142f99a507a46b976f5c14c-x64-bootstrap/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/src/coreclr/md/enc/metamodelrw.cpp:1468:22: error: variable 'pCols' set but not used [-Werror,-Wunused-but-set-variable] <snip>/dotnet6.0/dotnet-9e8b04bbff820c93c142f99a507a46b976f5c14c-x64-bootstrap/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/src/coreclr/md/enc/liteweightstgdbrw.cpp:599:20: error: variable 'cbStream' set but not used [-Werror,-Wunused-but-set-variable] <snip>/dotnet6.0/dotnet-9e8b04bbff820c93c142f99a507a46b976f5c14c-x64-bootstrap/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/src/coreclr/md/enc/liteweightstgdbrw.cpp:688:13: error: variable 'cbStream' set but not used [-Werror,-Wunused-but-set-variable] <snip>/dotnet6.0/dotnet-9e8b04bbff820c93c142f99a507a46b976f5c14c-x64-bootstrap/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/src/coreclr/md/enc/liteweightstgdbrw.cpp:752:13: error: variable 'cbStream' set but not used [-Werror,-Wunused-but-set-variable] <snip>/dotnet6.0/dotnet-9e8b04bbff820c93c142f99a507a46b976f5c14c-x64-bootstrap/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/src/coreclr/md/enc/liteweightstgdbrw.cpp:599:20: error: variable 'cbStream' set but not used [-Werror,-Wunused-but-set-variable] <snip>/dotnet6.0/dotnet-9e8b04bbff820c93c142f99a507a46b976f5c14c-x64-bootstrap/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/src/coreclr/md/enc/liteweightstgdbrw.cpp:688:13: error: variable 'cbStream' set but not used [-Werror,-Wunused-but-set-variable] <snip>/dotnet6.0/dotnet-9e8b04bbff820c93c142f99a507a46b976f5c14c-x64-bootstrap/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/src/coreclr/md/enc/liteweightstgdbrw.cpp:752:13: error: variable 'cbStream' set but not used [-Werror,-Wunused-but-set-variable] <snip>/dotnet6.0/dotnet-9e8b04bbff820c93c142f99a507a46b976f5c14c-x64-bootstrap/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/src/coreclr/md/enc/metamodelrw.cpp:1468:22: error: variable 'pCols' set but not used [-Werror,-Wunused-but-set-variable] <snip>/dotnet6.0/dotnet-9e8b04bbff820c93c142f99a507a46b976f5c14c-x64-bootstrap/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/src/coreclr/md/compiler/importhelper.cpp:1617:17: error: variable 'cb2' set but not used [-Werror,-Wunused-but-set-variable] <snip>/dotnet6.0/dotnet-9e8b04bbff820c93c142f99a507a46b976f5c14c-x64-bootstrap/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/src/coreclr/md/compiler/importhelper.cpp:2010:17: error: variable 'cb1' set but not used [-Werror,-Wunused-but-set-variable] <snip>/dotnet6.0/dotnet-9e8b04bbff820c93c142f99a507a46b976f5c14c-x64-bootstrap/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/src/coreclr/md/compiler/import.cpp:3549:17: error: variable 'cbTotal' set but not used [-Werror,-Wunused-but-set-variable] <snip>/dotnet6.0/dotnet-9e8b04bbff820c93c142f99a507a46b976f5c14c-x64-bootstrap/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/src/coreclr/md/compiler/regmeta_emit.cpp:982:17: error: variable 'bSuccess' set but not used [-Werror,-Wunused-but-set-variable] <snip>/dotnet6.0/dotnet-9e8b04bbff820c93c142f99a507a46b976f5c14c-x64-bootstrap/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/src/coreclr/md/compiler/regmeta_emit.cpp:1369:17: error: variable 'mdEv' set but not used [-Werror,-Wunused-but-set-variable] <snip>/dotnet6.0/dotnet-9e8b04bbff820c93c142f99a507a46b976f5c14c-x64-bootstrap/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/src/coreclr/md/compiler/regmeta_emit.cpp:1918:17: error: variable 'bSuccess' set but not used [-Werror,-Wunused-but-set-variable] <snip>/dotnet6.0/dotnet-9e8b04bbff820c93c142f99a507a46b976f5c14c-x64-bootstrap/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/src/coreclr/md/compiler/importhelper.cpp:1617:17: error: variable 'cb2' set but not used [-Werror,-Wunused-but-set-variable] <snip>/dotnet6.0/dotnet-9e8b04bbff820c93c142f99a507a46b976f5c14c-x64-bootstrap/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/src/coreclr/md/compiler/importhelper.cpp:2010:17: error: variable 'cb1' set but not used [-Werror,-Wunused-but-set-variable] <snip>/dotnet6.0/dotnet-9e8b04bbff820c93c142f99a507a46b976f5c14c-x64-bootstrap/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/src/coreclr/md/compiler/mdutil.cpp:274:27: error: variable 'cRefs' set but not used [-Werror,-Wunused-but-set-variable] <snip>/dotnet6.0/dotnet-9e8b04bbff820c93c142f99a507a46b976f5c14c-x64-bootstrap/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/src/coreclr/md/compiler/mdutil.cpp:308:27: error: variable 'cRefs' set but not used [-Werror,-Wunused-but-set-variable] <snip>/dotnet6.0/dotnet-9e8b04bbff820c93c142f99a507a46b976f5c14c-x64-bootstrap/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/src/coreclr/md/compiler/regmeta_emit.cpp:982:17: error: variable 'bSuccess' set but not used [-Werror,-Wunused-but-set-variable] <snip>/dotnet6.0/dotnet-9e8b04bbff820c93c142f99a507a46b976f5c14c-x64-bootstrap/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/src/coreclr/md/compiler/regmeta_emit.cpp:1369:17: error: variable 'mdEv' set but not used [-Werror,-Wunused-but-set-variable] <snip>/dotnet6.0/dotnet-9e8b04bbff820c93c142f99a507a46b976f5c14c-x64-bootstrap/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/src/coreclr/md/compiler/import.cpp:3549:17: error: variable 'cbTotal' set but not used [-Werror,-Wunused-but-set-variable] <snip>/dotnet6.0/dotnet-9e8b04bbff820c93c142f99a507a46b976f5c14c-x64-bootstrap/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/src/coreclr/md/compiler/regmeta_emit.cpp:1918:17: error: variable 'bSuccess' set but not used [-Werror,-Wunused-but-set-variable]
Good catch! https://github.com/dotnet/runtime/pull/61442 should fix it. It's working for me locally to get me past these set of errors. (I am stuck on aspnetcore build hanging).
I was hoping there was a more elegant fix than my (not completely successful) attempt to comment out all the -Werror instances.
-Werror
I kicked off a fresh local build with that patch applied; we'll see what happens.
Well, it did fix the -Werror problem, but now I'm in the same boat with aspnetcore. It looks like crossgen2 is wedged deep in some concurrency stuff.
crossgen2
I saved a sos stack trace of crossgen2 while it was idling, but it's so deep in concurrency and runtime and JIT stuff that I can't make anything out of it. (The paths were shortened to make the trace a little more readable.)
sos
(For the record, there is related ongoing discussion on dotnet/source-build#2602 and dotnet/runtime#61671)
After much trial and error, I've managed a full build from bootstrap on Fedora 35, and a follow-up non-bootstrap build using the bootstrapped RPMs.
Some very hacky tweaks were made to get clang12 working on Fedora 35. After that, the .spec file needed minor changes: - Source1 and Source2 were commented out - ^mono\([&\)]\) was added to __provides_exclude and __requires_exclude, because otherwise builds with mono-devel will try tagging the various assemblies as Provides and Requires.
clang12
Source1
Source2
^mono\([&\)]\)
__provides_exclude
__requires_exclude
mono-devel
Provides
Requires
I've reached out to @tstellar to see if there's a cleaner way to get clang12 working on F35, but no conclusions have been reached yet.
Fixed by upstream in https://github.com/dotnet/runtime/pull/62170, which was imported as 84b428a155cda8d96ddf3aa2a844d22b1ac27c50
Metadata Update from @wemmettj: - Issue status updated to: Closed (was: Open)