[llvm-bugs] [Bug 27290] New: clang [built from source] on Mageia v6/Cauldron x86-64 fails with an error on the Hello World program
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Apr 8 09:04:34 PDT 2016
https://llvm.org/bugs/show_bug.cgi?id=27290
Bug ID: 27290
Summary: clang [built from source] on Mageia v6/Cauldron x86-64
fails with an error on the Hello World program
Product: clang
Version: 3.8
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: shlomif at shlomifish.org
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
Hi all,
I previously reported a similar bug (with the Mageia Linux packages) here -
https://bugs.mageia.org/show_bug.cgi?id=18138 . 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 at 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 - http://opensource.org/licenses/MIT .
* ( https://en.wikipedia.org/wiki/MIT_License ).
*/
#include <stdio.h>
int main(void)
{
printf ("%s\n", "Hello World!");
return 0;
}
shlomif at 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 at telaviv1 C/snippets/shlomif-c-snippets $
< / SHELL >
I'll attach the strace output of clang soon.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160408/46751210/attachment.html>
More information about the llvm-bugs
mailing list