Fixes https://bugs.llvm.org/show_bug.cgi?id=50303
I use archlinux32 as an example. Its gcc --print-multiarch is empty.
Paths
| Differential D106119
[Driver] Detect libstdc++ include paths for native gcc on 32-bit non-Debian Linux ClosedPublic Authored by MaskRay on Jul 15 2021, 6:59 PM.
Details Summary Fixes https://bugs.llvm.org/show_bug.cgi?id=50303 I use archlinux32 as an example. Its gcc --print-multiarch is empty.
Diff Detail
Event TimelineComment Actions Thanks for looking into this. On OpenSUSE i686, the failing tests are now fixed, but Driver/linux-cross.cpp fails with: Would you like any more debugging info? gcc --print-multiarch is also empty. Comment Actions
"This page is no longer available. It has either expired, been removed by its creator, or removed by one of the Pastebin staff."
Comment Actions This one should work. Please let me know if there's anything else that could help. Comment Actions
Thanks. I forgot to add two .keep files to retain two otherwise empty directories. Should be good now. Comment Actions Still seeing the same failure on OpenSUSE. I'm still on gcc 10.3. Should I need to upgrade for this to work? Comment Actions Updated OpenSUSE which bumped gcc from 10 to 11. Still failing with the latest patch. Comment Actions LGTM. No more test failures or build errors. And the libreoffice .configure error has been resolved now too. Thanks! This revision is now accepted and ready to land.Jul 20 2021, 9:11 AM This revision was landed with ongoing or failed builds.Jul 20 2021, 9:18 AM Closed by commit rG5b899c22f3d2: [Driver] Detect libstdc++ include paths for native gcc on 32-bit non-Debian… (authored by MaskRay). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 360168 clang/lib/Driver/ToolChains/Gnu.cpp
clang/test/Driver/Inputs/archlinux_i686_tree/usr/include/c++/11.1.0/backward/.keep
clang/test/Driver/Inputs/archlinux_i686_tree/usr/include/c++/11.1.0/i686-pc-linux-gnu/.keep
clang/test/Driver/Inputs/archlinux_i686_tree/usr/lib/crt1.o
clang/test/Driver/Inputs/archlinux_i686_tree/usr/lib/crti.o
clang/test/Driver/Inputs/archlinux_i686_tree/usr/lib/crtn.o
clang/test/Driver/Inputs/archlinux_i686_tree/usr/lib/gcc/i686-pc-linux-gnu/11.1.0/crtbegin.o
clang/test/Driver/Inputs/archlinux_i686_tree/usr/lib/gcc/i686-pc-linux-gnu/11.1.0/crtend.o
clang/test/Driver/linux-cross.cpp
|