<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - clang [built from source] on Mageia v6/Cauldron x86-64 fails with an error on the Hello World program"
   href="https://llvm.org/bugs/show_bug.cgi?id=27290">27290</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>clang [built from source] on Mageia v6/Cauldron x86-64 fails with an error on the Hello World program
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.8
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>-New Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>shlomif@shlomifish.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Hi all,

I previously reported a similar bug (with the Mageia Linux packages) here -
<a href="https://bugs.mageia.org/show_bug.cgi?id=18138">https://bugs.mageia.org/show_bug.cgi?id=18138</a> . Anyway, building llvm and then
clang from source using this bash script:

#!/bin/bash
b='/opt/llvm'
export PATH="$b/bin:$PATH"
export PKG_CONFIG_PATH="$b/lib64/pkgconfig:$b/lib/pkgconfig:$PKG_CONFIG_PATH"
cmake -DCMAKE_BUILD_TYPE="release" -DCMAKE_INSTALL_PREFIX="$b" "$@"

And doing "make -j4 ; make -j4 check ; make -j4 install" and then running clang
from /opt/llvm on the hello world program results in an error (at least here on
Mageia Linux x86-64 v6):

< SHELL >
shlomif@telaviv1 C/snippets/shlomif-c-snippets $ cat hello_world.c 
/*
 * The canonical Hello World program kept here to avoid code duplication
 *
 * License is the MIT/X11 license - <a href="http://opensource.org/licenses/MIT">http://opensource.org/licenses/MIT</a> .
 * ( <a href="https://en.wikipedia.org/wiki/MIT_License">https://en.wikipedia.org/wiki/MIT_License</a> ).
 */
#include <stdio.h>

int main(void)
{
    printf ("%s\n", "Hello World!");

    return 0;
}
shlomif@telaviv1 C/snippets/shlomif-c-snippets $ /opt/llvm/bin/clang
hello_world.c
/..//bin/ld: cannot find crtbegin.o: No such file or directory
/..//bin/ld: cannot find -lgcc
clang-3.8: error: linker command failed with exit code 1 (use -v to see
invocation)
shlomif@telaviv1 C/snippets/shlomif-c-snippets $ 
< / SHELL >

I'll attach the strace output of clang soon.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>