[cfe-dev] cross compiling with 6.0.0 not finding gcc paths

Ken Cunningham via cfe-dev cfe-dev at lists.llvm.org
Wed Apr 18 12:48:03 PDT 2018


On 2018-04-18, at 12:35 PM, Miller Henry via cfe-dev wrote:

> I’ve tried every path in my sysroot up to crtbegin.o and it doesn’t make a difference
> /home/repo/jdx/wr8-baytrail_64/buildbox/
> /home/repo/jdx/wr8-baytrail_64/buildbox/usr
> /home/repo/jdx/wr8-baytrail_64/buildbox/usr/lib64/
> /home/repo/jdx/wr8-baytrail_64/buildbox/usr/lib64/x86_64-wrs-linux
> /home/repo/jdx/wr8-baytrail_64/buildbox/usr/lib64/x86_64-wrs-linux/5.2.0/

On MacPorts we have patched clang-6.0 to find and use gcc7's libgcc's libstdc++ installed  into non-standard locations by adding search paths and link paths to clang, controlled by a flag in the build.

You might find a useful clue in there as to how you could force a custom build of clang yourself to find what you want it to find, if a preexisting flag doesn't exist.

For these modifications, see:

<https://github.com/macports/macports-ports/blob/master/lang/llvm-6.0/files/9001-macports-libstdcxx.diff> 

and 

<https://github.com/macports/macports-ports/blob/master/lang/llvm-6.0/Portfile>

Ken
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20180418/dc8ffcf8/attachment.html>


More information about the cfe-dev mailing list