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

[v624] gcc12's regex header file relies on a std::vector<int> instance, expo… #11574

Conversation

vgvassilev
Copy link
Member

…rt it.

The C++ modules marks the std::vector instantiation as not visible because it came from the regex header file which we did not explicitly include.

a785402 introduces checks if certain declaration is visible in dictionary generation time which was intending to semantically improve the coherence by what the user "allowed" (or requested) rootcling to see vs what it can see globally. While this model works well it seems to not work for template instantiations as they won't be re-instantiated with visible modifier.

This patch works around the current issue seen with libstdc++ 12 but a better solution would be to implement a finer grained control over the implicit template instatiations when generating a dictionary.

Fixes #11329

…rt it.

The C++ modules marks the std::vector<int> instantiation as not visible because
it came from the `regex` header file which we did not explicitly include.

root-project/root@a785402 introduces checks if certain declaration is visible
in dictionary generation time which was intending to semantically improve the
coherence by what the user "allowed" (or requested) rootcling to see vs what
it can see globally. While this model works well it seems to not work for
template instantiations as they won't be re-instantiated with visible modifier.

This patch works around the current issue seen with libstdc++ 12 but a better
solution would be to implement a finer grained control over the implicit template
instatiations when generating a dictionary.

Fixes root-project#11329
@phsft-bot
Copy link
Collaborator

Starting build on ROOT-debian10-i386/soversion, ROOT-performance-centos8-multicore/cxx17, ROOT-ubuntu18.04/nortcxxmod, ROOT-ubuntu2004/python3, mac1015/cxx17, mac11/cxx14, windows10/cxx14
How to customize builds

@phsft-bot
Copy link
Collaborator

Build failed on windows10/cxx14.
Running on null:C:\build\workspace\root-pullrequests-build
See console output.

Errors:

  • [2022-10-15T09:35:33.256Z] C:\build\workspace\root-pullrequests-build\root\core\cont\src\THashList.cxx(414,1): fatal error C1088: Cannot flush compiler intermediate file: 'C:\Users\sftnight\AppData\Local\Temp_CL_a867a79dgl': No space left on device [C:\build\workspace\root-pullrequests-build\build\core\cont\Cont.vcxproj]
  • [2022-10-15T09:35:33.530Z] C:\build\workspace\root-pullrequests-build\root\interpreter\llvm\src\tools\clang\include\clang/AST/Type.h(4383,32): fatal error C1088: Cannot flush compiler intermediate file: 'C:\Users\sftnight\AppData\Local\Temp_CL_78a37f33ex': No space left on device [C:\build\workspace\root-pullrequests-build\build\interpreter\cling\lib\Interpreter\obj.clingInterpreter.vcxproj]
  • [2022-10-15T09:35:33.530Z] C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.32.31326\include\xlocmon(94,1): fatal error C1088: Cannot flush compiler intermediate file: 'C:\Users\sftnight\AppData\Local\Temp_CL_d3ffd58asy': No space left on device [C:\build\workspace\root-pullrequests-build\build\core\base\Base.vcxproj]
  • [2022-10-15T09:35:33.854Z] C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.32.31326\include\xlocale(2116,1): fatal error C1088: Cannot flush compiler intermediate file: 'C:\Users\sftnight\AppData\Local\Temp_CL_6f568986db': No space left on device [C:\build\workspace\root-pullrequests-build\build\core\base\Base.vcxproj]
  • [2022-10-15T09:35:33.854Z] C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.32.31326\include\iterator(412,1): fatal error C1088: Cannot flush compiler intermediate file: 'C:\Users\sftnight\AppData\Local\Temp_CL_62180c90ex': No space left on device [C:\build\workspace\root-pullrequests-build\build\core\cont\Cont.vcxproj]
  • [2022-10-15T09:35:34.188Z] C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\ctype.h(172,9): fatal error C1088: Cannot flush compiler intermediate file: 'C:\Users\sftnight\AppData\Local\Temp_CL_76a491e3ex': No space left on device [C:\build\workspace\root-pullrequests-build\build\core\meta\Meta.vcxproj]
  • [2022-10-15T09:35:34.494Z] C:\build\workspace\root-pullrequests-build\root\interpreter\llvm\src\include\llvm/ADT/APSInt.h(26,18): fatal error C1088: Cannot flush compiler intermediate file: 'C:\Users\sftnight\AppData\Local\Temp_CL_526f48d6db': No space left on device [C:\build\workspace\root-pullrequests-build\build\interpreter\cling\lib\Interpreter\obj.clingInterpreter.vcxproj]
  • [2022-10-15T09:35:34.494Z] C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.32.31326\include\xiosbase(431,1): fatal error C1088: Cannot flush compiler intermediate file: 'C:\Users\sftnight\AppData\Local\Temp_CL_7f38d4beex': No space left on device [C:\build\workspace\root-pullrequests-build\build\core\base\Base.vcxproj]
  • [2022-10-15T09:35:34.830Z] C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.32.31326\include\xstring(5020,9): fatal error C1088: Cannot flush compiler intermediate file: 'C:\Users\sftnight\AppData\Local\Temp_CL_3d3876e9db': No space left on device [C:\build\workspace\root-pullrequests-build\build\interpreter\cling\lib\Interpreter\obj.clingInterpreter.vcxproj]
  • [2022-10-15T09:35:34.830Z] C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\ctype.h(172,9): fatal error C1088: Cannot flush compiler intermediate file: 'C:\Users\sftnight\AppData\Local\Temp_CL_eed16cb5ex': No space left on device [C:\build\workspace\root-pullrequests-build\build\core\cont\Cont.vcxproj]

And 9 more

@phsft-bot
Copy link
Collaborator

Build failed on ROOT-ubuntu2004/python3.
Running on root-ubuntu-2004-1.cern.ch:/home/sftnight/build/workspace/root-pullrequests-build
See console output.

Failing tests:

@vgvassilev
Copy link
Member Author

@phsft-bot build!

@phsft-bot
Copy link
Collaborator

Starting build on ROOT-debian10-i386/soversion, ROOT-performance-centos8-multicore/cxx17, ROOT-ubuntu18.04/nortcxxmod, ROOT-ubuntu2004/python3, mac12/noimt, mac11/cxx14, windows10/cxx14
How to customize builds

@phsft-bot
Copy link
Collaborator

Build failed on mac12/noimt.
Running on macphsft18.dyndns.cern.ch:/Users/sftnight/build/jenkins/workspace/root-pullrequests-build
See console output.

Errors:

  • [2022-11-24T23:34:25.468Z] FAILED: builtins/davix/DAVIX-prefix/src/DAVIX-stamp/DAVIX-configure /Users/sftnight/build/jenkins/workspace/root-pullrequests-build/build/builtins/davix/DAVIX-prefix/src/DAVIX-stamp/DAVIX-configure
  • [2022-11-24T23:34:25.468Z] CMake Error at /Users/sftnight/build/jenkins/workspace/root-pullrequests-build/build/builtins/davix/DAVIX-prefix/src/DAVIX-stamp/DAVIX-configure-Release.cmake:49 (message):

@phsft-bot
Copy link
Collaborator

Build failed on ROOT-performance-centos8-multicore/cxx17.
Running on olbdw-01.cern.ch:/data/sftnight/workspace/root-pullrequests-build
See console output.

Failing tests:

@phsft-bot
Copy link
Collaborator

Build failed on ROOT-ubuntu2004/python3.
Running on root-ubuntu-2004-3.cern.ch:/home/sftnight/build/workspace/root-pullrequests-build
See console output.

Failing tests:

@vgvassilev
Copy link
Member Author

@phsft-bot build!

@phsft-bot
Copy link
Collaborator

Starting build on ROOT-debian10-i386/soversion, ROOT-performance-centos8-multicore/cxx17, ROOT-ubuntu18.04/nortcxxmod, ROOT-ubuntu2004/python3, mac12/noimt, mac11/cxx14, windows10/cxx14
How to customize builds

@phsft-bot
Copy link
Collaborator

Build failed on mac12/noimt.
Running on macphsft18.dyndns.cern.ch:/Users/sftnight/build/jenkins/workspace/root-pullrequests-build
See console output.

Errors:

  • [2023-02-02T10:53:10.045Z] FAILED: VDT-prefix/src/VDT-stamp/VDT-configure /Users/sftnight/build/jenkins/workspace/root-pullrequests-build/build/VDT-prefix/src/VDT-stamp/VDT-configure
  • [2023-02-02T10:53:10.045Z] CMake Error at /Users/sftnight/build/jenkins/workspace/root-pullrequests-build/build/VDT-prefix/src/VDT-stamp/VDT-configure-Release.cmake:49 (message):

@phsft-bot
Copy link
Collaborator

Build failed on windows10/cxx14.
Running on null:C:\build\workspace\root-pullrequests-build
See console output.

Errors:

  • [2023-02-02T11:06:34.292Z] CMake Error at C:/build/workspace/root-pullrequests-build/build/AFTERIMAGE-prefix/src/AFTERIMAGE-stamp/AFTERIMAGE-build-Release.cmake:49 (message):
  • [2023-02-02T11:06:45.339Z] C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wconio.h(235,5): fatal error C1088: Cannot flush compiler intermediate file: 'C:\Users\sftnight\AppData\Local\Temp_CL_dcd26570ex': No space left on device [C:\build\workspace\root-pullrequests-build\build\core\textinput\TextInput.vcxproj]
  • [2023-02-02T11:06:45.339Z] C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\stdio.h(1759,5): fatal error C1088: Cannot flush compiler intermediate file: 'C:\Users\sftnight\AppData\Local\Temp_CL_5f84a9f1ex': No space left on device [C:\build\workspace\root-pullrequests-build\build\core\zstd\Zstd.vcxproj]
  • [2023-02-02T11:06:45.339Z] C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_io.h(416,9): fatal error C1088: Cannot flush compiler intermediate file: 'C:\Users\sftnight\AppData\Local\Temp_CL_2d289af8ex': No space left on device [C:\build\workspace\root-pullrequests-build\build\core\BaseTROOT.vcxproj]
  • [2023-02-02T11:06:45.339Z] C:\build\workspace\root-pullrequests-build\root\core\zip\src\ZDeflate.c(752,1): fatal error C1088: Cannot flush compiler intermediate file: 'C:\Users\sftnight\AppData\Local\Temp_CL_e4dc973dgl': No space left on device [C:\build\workspace\root-pullrequests-build\build\core\zip\Zip.vcxproj]
  • [2023-02-02T11:06:45.339Z] C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\shared\basetsd.h(370,1): fatal error C1088: Cannot flush compiler intermediate file: 'C:\Users\sftnight\AppData\Local\Temp_CL_af4d3f71ex': No space left on device [C:\build\workspace\root-pullrequests-build\build\core\foundation\Foundation.vcxproj]
  • [2023-02-02T11:06:45.339Z] C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.32.31326\include\vcruntime_exception.h(62,1): fatal error C1088: Cannot flush compiler intermediate file: 'C:\Users\sftnight\AppData\Local\Temp_CL_47b47242ex': No space left on device [C:\build\workspace\root-pullrequests-build\build\core\base\Base.vcxproj]
  • [2023-02-02T11:06:45.339Z] C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.32.31326\include\xstring(5020,9): fatal error C1088: Cannot flush compiler intermediate file: 'C:\Users\sftnight\AppData\Local\Temp_CL_39663610db': No space left on device [C:\build\workspace\root-pullrequests-build\build\core\gui\GuiCore.vcxproj]
  • [2023-02-02T11:06:45.339Z] C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\stdio.h(1252,9): fatal error C1088: Cannot flush compiler intermediate file: 'C:\Users\sftnight\AppData\Local\Temp_CL_06aaca2cex': No space left on device [C:\build\workspace\root-pullrequests-build\build\core\base\Base.vcxproj]
  • [2023-02-02T11:06:45.339Z] C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstring.h(245,5): fatal error C1088: Cannot flush compiler intermediate file: 'C:\Users\sftnight\AppData\Local\Temp_CL_850f425dex': No space left on device [C:\build\workspace\root-pullrequests-build\build\core\textinput\TextInput.vcxproj]

And 126 more

@phsft-bot
Copy link
Collaborator

Build failed on ROOT-performance-centos8-multicore/cxx17.
Running on olbdw-01.cern.ch:/data/sftnight/workspace/root-pullrequests-build
See console output.

Failing tests:

@vgvassilev
Copy link
Member Author

@Axel-Naumann, what should we do - these failures seem unrelated...

@guitargeek guitargeek changed the title [backport] gcc12's regex header file relies on a std::vector<int> instance, expo… [v624] gcc12's regex header file relies on a std::vector<int> instance, expo… Nov 5, 2023
@dpiparo
Copy link
Member

dpiparo commented Jan 30, 2024

will we merge this PR now that v632 is approaching?

@vgvassilev
Copy link
Member Author

I have not seen complaints and we are far ahead in releases. Let’s not bother.

@dpiparo
Copy link
Member

dpiparo commented Jan 30, 2024

I close it following @vgvassilev 's observation, feel free to re-open if this becomes a problem

@dpiparo dpiparo closed this Jan 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants