[cfe-dev] clang built from source in Mac OSX 10.14 with apple-clang/Xcode missing stdlib from include search path

Jens Jorgensen via cfe-dev cfe-dev at lists.llvm.org
Mon Jun 1 02:30:02 PDT 2020


I'm happy to get a patch into acceptable shape that would fix it, but it
seemed like the initial response felt more like WONTFIX. Did someone
else create a ticket?

On 6/1/20 12:05 AM, llvm at dyatkovskiy.com wrote:
> + stepan@
>  
> Hi guys! Any progress on that?
> Thanks!
> -Stepan
>  
> 06.05.2020, 22:45, "Sean McBride via cfe-dev" <cfe-dev at lists.llvm.org>:
>
>     I just built clang from git master again and ran into this issue
>     again. Jens, did you ever create a ticket? I'd like to CC myself.
>     Otherwise I can write one up.
>
>     Cheers,
>
>     Sean
>
>
>     On Tue, 4 Feb 2020 12:01:35 +0000, Jens Jorgensen said:
>      
>
>         Regrettably it seems that others do not see this as a
>         legitimate bug
>         :-(. I'm happy to create a ticket, but as a noob to cfe-dev I
>         hit the
>         mailing list first to test the waters and the reaction didn't
>         seem to
>         indicate that anyone else regarded it as something that needed
>         fixing.
>         I'm with you though, I regard this as straight-up broken:
>         ending up with
>         a compiler that doesn't know where it's standard library is
>         may be a
>         valid compiler but not a generally useful one.
>
>         On 2/4/20 7:59 AM, Sean McBride wrote:
>
>              Jens,
>
>              I've finally tried your patch (against current master),
>             and it indeed
>
>         solves the problem for me.
>
>
>              Is there a ticket in bugzilla for this? I feel it should
>             be a 10.0.0
>
>         release blocker.
>
>
>              Cheers,
>
>              Sean
>
>
>
>              On Wed, 11 Dec 2019 11:09:31 +0800, Jens Jorgensen said:
>              
>
>                  Apply my patch and build like :
>
>                  cmake -DLLVM_ENABLE_PROJECTS=clang -G "Unix Makefiles"
>                  -DCMAKE_BUILD_TYPE=Release
>                  -DCLANG_XCODE_TOOLCHAIN_ROOT=/Applications/Xcode.app/Contents/Developer/
>                  Toolchains/XcodeDefault.xctoolchain
>                  ../llvm-project/llvm
>
>                  On 12/10/19 7:45 AM, Sean McBride wrote:
>
>                      On Wed, 25 Sep 2019 14:49:57 +0200, Hans Wennborg
>                     via cfe-dev said:
>                      
>
>                          I'm always confused when trying to get
>                         locally-built Clang to find
>                          stdlib headers on my Mac.
>
>                          Last time, after upgrading to Mojave,
>                         following the TL;DR advice from
>                          this answer made it work for me:
>                         https://stackoverflow.com/a/52530212
>
>                      Seems that advice is obsolete. :( Nothing else I
>                     found online worked
>
>                  either.
>
>                          It would certainly be nice if this could
>                         somehow work out of the box.
>
>                      Until then, anyone know how to make one's own
>                     build of clang find C++
>
>                  headers on macOS?
>
>                      Thanks,
>
>                      Sean
>
>                      
>
>                  --
>                  Jens B. Jorgensen
>                  jbj1 at ultraemail.net <mailto:jbj1 at ultraemail.net>
>
>         --
>         Jens B. Jorgensen
>         jbj1 at ultraemail.net <mailto:jbj1 at ultraemail.net>
>          
>
>
>
>     _______________________________________________
>     cfe-dev mailing list
>     cfe-dev at lists.llvm.org <mailto:cfe-dev at lists.llvm.org>
>     https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
-- 
Jens B. Jorgensen
jbj1 at ultraemail.net

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20200601/e98a6d2b/attachment-0001.html>


More information about the cfe-dev mailing list