[LLVMbugs] [Bug 9731] New: Clang Does Not Supply Correct Linker Flags Under Slackware
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Apr 15 06:55:54 PDT 2011
http://llvm.org/bugs/show_bug.cgi?id=9731
Summary: Clang Does Not Supply Correct Linker Flags Under
Slackware
Product: clang
Version: trunk
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Driver
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: mark.d.mccurry at gmail.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=6477)
--> (http://llvm.org/bugs/attachment.cgi?id=6477)
Minimal solution diff
To Reproduce:
Attempt to link together files with most recent clang version on Slackware.
Results:
/usr/bin/ld: cannot find crt1.o: No such file or directory
/usr/bin/ld: cannot find crti.o: No such file or directory
/usr/bin/ld: cannot find crtbegin.o: No such file or directory
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Fix:
ToolChains.cpp must have the path added for the Slackware gcc directory.
See attached diff for minimal fix for C linking under Slackware.
Note:
Based upon how the function for identifying the GccTripple, it seems as though
it would be more logical and portable to find the /??/gcc/ folder and assume
that the folder nested inside of it is the GccTripple.
This may be invalid in some special cases, but it appears to be much more
general than the current approach.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list