<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p><font size="-1">Very good.</font></p>
<p><font size="-1">In the <span
style="font-variant-ligatures:no-common-ligatures">CMakeLists.txt
file showing the error is the line<br>
</span></font></p>
<p><font size="-1">set(LIBC_TARGET_OS ${CMAKE_SYSTEM_NAME})<br>
</font></p>
<p><font size="-1">where below that line LIBC_TARGET_OS is put into
the directory string giving the error such that
CMAKE_SYSTEM_NAME is set to 'darwin' (note the lower case change
in the code) by most likely a calling makefile.<br>
</font></p>
<p><font size="-1">in the llvm-project directory the following line</font></p>
<p><font size="-1">grep -r CMAKE_SYSTEM_NAME *<br>
</font></p>
<p><font size="-1">gives close to 200 lines mostly in makefiles.
Looking down that list it is interesting to see that the
sub-projects to llvm-project have a variety of ways to use the
CMAKE_SYSTEM_NAME string. It is not regular in the sub-projects.
Some distinctions are by OS and others by hardware, x86_64 and
aarch64, with aarch64 identifying ARM processors. But apparently
you have an x86_64 processor.</font></p>
<p><font size="-1">We do not have the darwin directory for the files
but we have files with the same name in what would be a closely
related directory and that those two related directories are
based on processor type. We might try an experiment, work an
hypothesis. Let's create the needed darwin directory and copy
the two files in from the </font><font size="-1"><span
style="font-variant-ligatures:no-common-ligatures">x86_64
directory </span>and then run the build sequence and see what
happens.</font></p>
<p><font size="-1">If the build fails or the resulting build does
not run as expected, we know that the two files on hand from the
linux directory will not work and someone will need to construct
those files and make them available, which may take a while.</font></p>
<p><font size="-1">But if the build is successful, then we have
identified an easily correctable bug in the makefiles and you
are making headway.</font></p>
<p><font size="-1">Neil Nelson</font></p>
<div class="moz-cite-prefix"><font size="-1">On 7/26/20 5:05 PM,
Aditya Atluri wrote:<br>
</font></div>
<blockquote type="cite"
cite="mid:CAMBSytSN9MoyF3wjoHg2BBh8h-eo3n-g9wJaKXnkC2jtSfhZNQ@mail.gmail.com"><font
size="-1">
</font>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div class="gmail_default" style="font-family:tahoma,sans-serif"><font
size="-1">There are only files for linux (x86_64 and
aarch64) there. Don't know why there are no files for
darwin. May be a libc developer care to answer?</font></div>
</div>
<font size="-1"><br>
</font>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr"><font size="-1">On Sun, Jul
26, 2020 at 12:47 AM Neil Nelson via cfe-dev <<a
href="mailto:cfe-dev@lists.llvm.org"
moz-do-not-send="true">cfe-dev@lists.llvm.org</a>>
wrote:</font><br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<p><font size="-1">On Ubuntu 20.04 I have both those files
in the directory<br>
</font></p>
<p><font size="-1">~/llvm-project/libc/config/linux/x86_64</font></p>
<p><font size="-1">Will the following command work in the
directory ~/llvm-project/libc?</font></p>
<p><font size="-1">find . -name headers.txt</font></p>
<p><font size="-1">Neil Nelson<br>
</font></p>
<div><font size="-1">On 7/25/20 10:52 PM, Aditya Atluri via
cfe-dev wrote:</font><br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div class="gmail_default"
style="font-family:tahoma,sans-serif">Not so much
actually, I am seeing build error for libc on MacOS
Mojave</div>
<div class="gmail_default"
style="font-family:tahoma,sans-serif"><br>
</div>
<div class="gmail_default"
style="font-family:tahoma,sans-serif">
<p
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(30,31,41)"><span
style="font-variant-ligatures:no-common-ligatures">CMake
Error at
/Users/aditya/Code/github/llvm_src/llvm-project/libc/CMakeLists.txt:72
(include):</span></p>
<p
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(30,31,41)"><span
style="font-variant-ligatures:no-common-ligatures"><span>
</span>include could not find load file:</span></p>
<p
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(30,31,41);min-height:15px"><span
style="font-variant-ligatures:no-common-ligatures"></span><br>
</p>
<p
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(30,31,41)"><span
style="font-variant-ligatures:no-common-ligatures"><span>
</span>/Users/aditya/Code/github/llvm_src/llvm-project/libc/config/darwin/x86_64/entrypoints.txt</span></p>
<p
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(30,31,41);min-height:15px"><span
style="font-variant-ligatures:no-common-ligatures"></span><br>
</p>
<p
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(30,31,41);min-height:15px"><span
style="font-variant-ligatures:no-common-ligatures"></span><br>
</p>
<p
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(30,31,41)"><span
style="font-variant-ligatures:no-common-ligatures">CMake
Error at
/Users/aditya/Code/github/llvm_src/llvm-project/libc/CMakeLists.txt:73
(include):</span></p>
<p
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(30,31,41)"><span
style="font-variant-ligatures:no-common-ligatures"><span>
</span>include could not find load file:</span></p>
<p
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(30,31,41);min-height:15px"><span
style="font-variant-ligatures:no-common-ligatures"></span><br>
</p>
<p
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(30,31,41)"><span
style="font-variant-ligatures:no-common-ligatures"><span>
</span>/Users/aditya/Code/github/llvm_src/llvm-project/libc/config/darwin/x86_64/headers.txt</span></p>
<p
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(30,31,41);min-height:15px"><span
style="font-variant-ligatures:no-common-ligatures"></span><br>
</p>
<p
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(30,31,41);min-height:15px"><span
style="font-variant-ligatures:no-common-ligatures"></span><br>
</p>
<p
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(30,31,41)"><span
style="font-variant-ligatures:no-common-ligatures">--
Skipping libc entrypoint
libc.src.assert.__assert_fail.</span></p>
<p
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(30,31,41)"><span
style="font-variant-ligatures:no-common-ligatures">--
Skipping libc entrypoint
libc.src.errno.__errno_location.</span></p>
<p
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(30,31,41)"><span
style="font-variant-ligatures:no-common-ligatures">--
Skipping libc entrypoint libc.src.math.cosf.</span></p>
<p
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(30,31,41)"><span
style="font-variant-ligatures:no-common-ligatures">--
Skipping libc entrypoint libc.src.math.sinf.</span></p>
<p
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(30,31,41)"><span
style="font-variant-ligatures:no-common-ligatures">--
Skipping libc entrypoint libc.src.math.sincosf.</span></p>
</div>
<div class="gmail_default"
style="font-family:tahoma,sans-serif"><br>
</div>
<div class="gmail_default"
style="font-family:tahoma,sans-serif"><br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Tue, Jul 7, 2020 at
5:16 PM Dobby HouseElf <<a
href="mailto:dobby.thefreeelf@yahoo.com"
target="_blank" moz-do-not-send="true">dobby.thefreeelf@yahoo.com</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px
0px 0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">
<div>
<div>
<div dir="ltr">
<div>
<div dir="ltr">Hello,</div>
<div dir="ltr"><br>
</div>
<div dir="ltr">Are you trying to build LLVM
from GitHub source (<span><a
href="https://github.com/llvm/llvm-project"
rel="nofollow" target="_blank"
moz-do-not-send="true">https://github.com/llvm/llvm-project</a>)?</span></div>
<div dir="ltr"><span>The README.md describes
the build steps pretty clearly.</span></div>
<div dir="ltr"><span><br>
</span></div>
<div dir="ltr"><span>On Linux, I use:</span></div>
<div dir="ltr"> <span>$ cd llvm-project</span></div>
<div dir="ltr"><span> $ mkdir build</span></div>
<div dir="ltr"><span> $ cd build</span></div>
<div dir="ltr"><span> $ <span>cmake "Unix
Makefiles" -DLLVM_ENABLE_PROJECTS=clang
../llvm</span></span></div>
<div dir="ltr"><span><span> $ make </span></span></div>
<div dir="ltr"><span><span><br>
</span></span></div>
<div dir="ltr"><span><span>Hope that helps!</span></span><br>
</div>
<div dir="ltr"><br>
</div>
<div>-----------------------------------------------------------------------------------------------------------------------------</div>
<div>From:<span><span> llvm-dev <<a
href="mailto:llvm-dev-bounces@lists.llvm.org"
target="_blank" moz-do-not-send="true">llvm-dev-bounces@lists.llvm.org</a>>
<b>On Behalf Of </b>Aditya Atluri via
llvm-dev<br>
<b>Sent:</b> Friday, July 3, 2020 9:04
AM<br>
<b>To:</b> LLVM Dev <<a
href="mailto:llvm-dev@lists.llvm.org"
target="_blank" moz-do-not-send="true">llvm-dev@lists.llvm.org</a>>;
<a href="mailto:cfe-dev@lists.llvm.org"
target="_blank" moz-do-not-send="true">cfe-dev@lists.llvm.org</a><br>
<b>Subject:</b> [llvm-dev] Proper way to
build LLVM+Clang</span></span></div>
<span><span> <b>Sent:</b> Friday, July 3,
2020 9:04 AM<br>
<b>To:</b> LLVM Dev <<a
href="mailto:llvm-dev@lists.llvm.org"
target="_blank" moz-do-not-send="true">llvm-dev@lists.llvm.org</a>>;
<a href="mailto:cfe-dev@lists.llvm.org"
target="_blank" moz-do-not-send="true">cfe-dev@lists.llvm.org</a><br>
<b>Subject:</b> [llvm-dev] Proper way to
build LLVM+Clang</span></span>
<p><span> </span></p>
<p><span><span
style="font-family:Tahoma,sans-serif">Hi,</span></span></p>
<p><span><span
style="font-family:Tahoma,sans-serif">I
couldn't find a decent guide to build
llvm+clang and all the other projects
after moving to llvm-project. I am
checking with you to know how you are
building llvm+clang+projects</span></span></p>
<p><span><span
style="font-family:Tahoma,sans-serif"> </span></span></p>
<p><span><span
style="font-family:Tahoma,sans-serif">Thank
you!</span></span><span
style="font-family:Tahoma,sans-serif"></span></p>
</div>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
<fieldset></fieldset>
<pre>_______________________________________________
cfe-dev mailing list
<a href="mailto:cfe-dev@lists.llvm.org" target="_blank" moz-do-not-send="true">cfe-dev@lists.llvm.org</a>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" target="_blank" moz-do-not-send="true">https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a>
</pre>
</blockquote>
</div>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org" target="_blank"
moz-do-not-send="true">cfe-dev@lists.llvm.org</a><br>
<a
href="https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev"
rel="noreferrer" target="_blank" moz-do-not-send="true">https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
</blockquote>
</div>
</blockquote>
</body>
</html>