Mageia Bugzilla – Attachment 7693 Details for
Bug 18138
clang on Mageia v6/Cauldron x86-64 fails with an error on the Hello World program
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
Tentative patch to fix the problem.
clang-on-mageia-tentative-patch-v0.2.0.patch (text/plain), 939 bytes, created by
Shlomi Fish
on 2016-04-24 08:03:35 CEST
(
hide
)
Description:
Tentative patch to fix the problem.
Filename:
MIME Type:
Creator:
Shlomi Fish
Created:
2016-04-24 08:03:35 CEST
Size:
939 bytes
patch
obsolete
>--- cfe-3.8.0.src/lib/Driver/Driver.cpp.orig 2016-04-24 07:43:29.805596012 +0300 >+++ cfe-3.8.0.src/lib/Driver/Driver.cpp 2016-04-24 08:36:05.867736793 +0300 >@@ -400,6 +400,7 @@ > // FIXME: Handle environment options which affect driver behavior, somewhere > // (client?). GCC_EXEC_PREFIX, LPATH, CC_PRINT_OPTIONS. > >+ PrefixDirs.push_back("/usr/lib/gcc/x86_64-mageia-linux-gnu/5.3.1"); > if (char *env = ::getenv("COMPILER_PATH")) { > StringRef CompilerPath = env; > while (!CompilerPath.empty()) { >--- cfe-3.8.0.src/lib/Driver/ToolChains.cpp.orig 2016-04-24 08:59:12.136962110 +0300 >+++ cfe-3.8.0.src/lib/Driver/ToolChains.cpp 2016-04-24 08:59:34.998765280 +0300 >@@ -3817,6 +3817,7 @@ > > addPathIfExists(D, SysRoot + "/lib", Paths); > addPathIfExists(D, SysRoot + "/usr/lib", Paths); >+ addPathIfExists(D, "/usr/lib/gcc/x86_64-mageia-linux-gnu/5.3.1/", Paths); > } > > bool Linux::HasNativeLLVMSupport() const { return true; }
--- cfe-3.8.0.src/lib/Driver/Driver.cpp.orig 2016-04-24 07:43:29.805596012 +0300 +++ cfe-3.8.0.src/lib/Driver/Driver.cpp 2016-04-24 08:36:05.867736793 +0300 @@ -400,6 +400,7 @@ // FIXME: Handle environment options which affect driver behavior, somewhere // (client?). GCC_EXEC_PREFIX, LPATH, CC_PRINT_OPTIONS. + PrefixDirs.push_back("/usr/lib/gcc/x86_64-mageia-linux-gnu/5.3.1"); if (char *env = ::getenv("COMPILER_PATH")) { StringRef CompilerPath = env; while (!CompilerPath.empty()) { --- cfe-3.8.0.src/lib/Driver/ToolChains.cpp.orig 2016-04-24 08:59:12.136962110 +0300 +++ cfe-3.8.0.src/lib/Driver/ToolChains.cpp 2016-04-24 08:59:34.998765280 +0300 @@ -3817,6 +3817,7 @@ addPathIfExists(D, SysRoot + "/lib", Paths); addPathIfExists(D, SysRoot + "/usr/lib", Paths); + addPathIfExists(D, "/usr/lib/gcc/x86_64-mageia-linux-gnu/5.3.1/", Paths); } bool Linux::HasNativeLLVMSupport() const { return true; }
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 18138
: 7693