Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 548444 - sys-devel/llvm-3.6.0: build fails with using gcc-4.9.2 on Gentoo/FreeBSD
Summary: sys-devel/llvm-3.6.0: build fails with using gcc-4.9.2 on Gentoo/FreeBSD
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All FreeBSD
: Normal normal (vote)
Assignee: Bernard Cafarelli
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2015-05-03 04:44 UTC by Yuta SATOH
Modified: 2015-06-14 17:56 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
sample patch for llvm-3.6.0.ebuild (548444.patch,522 bytes, patch)
2015-05-03 05:17 UTC, Yuta SATOH
Details | Diff
files/clang-3.6-fbsd-gcc49.patch (clang-3.6-fbsd-gcc49.patch,1016 bytes, patch)
2015-05-03 05:18 UTC, Yuta SATOH
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yuta SATOH 2015-05-03 04:44:42 UTC
This issue is resolved in the upstream.
https://llvm.org/bugs/show_bug.cgi?id=22302

See also,
http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/MSVCToolChain.cpp?r1=223391&r2=226925


The following message is displayed and fails to compile.

<snip>
llvm[4]: Compiling MSVCToolChain.cpp for Release build
if  x86_64-gentoo-freebsd10.0-g++ -I/var/tmp/portage/sys-devel/llvm-3.6.0/work/llvm-3.6.0.src-abi_x86_64.amd64_fbsd/include -I/var/tmp/portage/sys-devel/llvm-3.6.0/work/llvm-3.6.0.src-abi_x86_64.amd64_fbsd/tools/clang/lib/Driver -I/var/tmp/portage/sys-devel/llvm-3.6.0/work/llvm-3.6.0.src/include -I/var/tmp/portage/sys-devel/llvm-3.6.0/work/llvm-3.6.0.src/tools/clang/lib/Driver  -DNDEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/var/tmp/portage/sys-devel/llvm-3.6.0/work/llvm-3.6.0.src/tools/clang/lib/Driver/../../include -I/var/tmp/portage/sys-devel/llvm-3.6.0/work/llvm-3.6.0.src-abi_x86_64.amd64_fbsd/tools/clang/lib/Driver/../../include   -std=c++11 -fvisibility-inlines-hidden -fno-exceptions -fPIC -ffunction-sections -fdata-sections -Wcast-qual -fno-strict-aliasing -O2 -pipe -O2 -pipe -O2 -pipe -O2 -pipe -O2 -pipe -O2 -pipe -O2 -pipe -O2 -pipe -I/usr/lib/libffi-3.2.1/include   -pedantic -Wno-long-long -Wall -W -Wno-unused-parameter -Wwrite-strings    -Wno-maybe-uninitialized -Wno-missing-field-initializers -Wno-comment -c -MMD -MP -MF "/var/tmp/portage/sys-devel/llvm-3.6.0/work/llvm-3.6.0.src-abi_x86_64.amd64_fbsd/tools/clang/lib/Driver/Release/MSVCToolChain.d.tmp" -MT "/var/tmp/portage/sys-devel/llvm-3.6.0/work/llvm-3.6.0.src-abi_x86_64.amd64_fbsd/tools/clang/lib/Driver/Release/MSVCToolChain.o" -MT "/var/tmp/portage/sys-devel/llvm-3.6.0/work/llvm-3.6.0.src-abi_x86_64.amd64_fbsd/tools/clang/lib/Driver/Release/MSVCToolChain.d" /var/tmp/portage/sys-devel/llvm-3.6.0/work/llvm-3.6.0.src/tools/clang/lib/Driver/MSVCToolChain.cpp -o /var/tmp/portage/sys-devel/llvm-3.6.0/work/llvm-3.6.0.src-abi_x86_64.amd64_fbsd/tools/clang/lib/Driver/Release/MSVCToolChain.o ; \
        then /bin/mv -f "/var/tmp/portage/sys-devel/llvm-3.6.0/work/llvm-3.6.0.src-abi_x86_64.amd64_fbsd/tools/clang/lib/Driver/Release/MSVCToolChain.d.tmp" "/var/tmp/portage/sys-devel/llvm-3.6.0/work/llvm-3.6.0.src-abi_x86_64.amd64_fbsd/tools/clang/lib/Driver/Release/MSVCToolChain.d"; else /bin/rm "/var/tmp/portage/sys-devel/llvm-3.6.0/work/llvm-3.6.0.src-abi_x86_64.amd64_fbsd/tools/clang/lib/Driver/Release/MSVCToolChain.d.tmp"; exit 1; fi
/var/tmp/portage/sys-devel/llvm-3.6.0/work/llvm-3.6.0.src/tools/clang/lib/Driver/MSVCToolChain.cpp: In member function 'bool clang::driver::toolchains::MSVCToolChain::getWindowsSDKDir(std::string&, int&, int&) const':
/var/tmp/portage/sys-devel/llvm-3.6.0/work/llvm-3.6.0.src/tools/clang/lib/Driver/MSVCToolChain.cpp:215:5: error: '::sscanf' has not been declared
     ::sscanf(sdkVersion.c_str(), "v%d.%d", &major, &minor);
     ^
rm: /var/tmp/portage/sys-devel/llvm-3.6.0/work/llvm-3.6.0.src-abi_x86_64.amd64_fbsd/tools/clang/lib/Driver/Release/MSVCToolChain.d.tmp: No such file or directory
/var/tmp/portage/sys-devel/llvm-3.6.0/work/llvm-3.6.0.src/Makefile.rules:1514: recipe for target '/var/tmp/portage/sys-devel/llvm-3.6.0/work/llvm-3.6.0.src-abi_x86_64.amd64_fbsd/tools/clang/lib/Driver/Release/MSVCToolChain.o' failed
gmake[4]: *** [/var/tmp/portage/sys-devel/llvm-3.6.0/work/llvm-3.6.0.src-abi_x86_64.amd64_fbsd/tools/clang/lib/Driver/Release/MSVCToolChain.o] Error 1
gmake[4]: Leaving directory '/var/tmp/portage/sys-devel/llvm-3.6.0/work/llvm-3.6.0.src-abi_x86_64.amd64_fbsd/tools/clang/lib/Driver'
/var/tmp/portage/sys-devel/llvm-3.6.0/work/llvm-3.6.0.src/Makefile.rules:932: recipe for target 'Driver/.makeall' failed
gmake[3]: *** [Driver/.makeall] Error 2
gmake[3]: Leaving directory '/var/tmp/portage/sys-devel/llvm-3.6.0/work/llvm-3.6.0.src-abi_x86_64.amd64_fbsd/tools/clang/lib'
/var/tmp/portage/sys-devel/llvm-3.6.0/work/llvm-3.6.0.src/Makefile.rules:873: recipe for target 'all' failed
gmake[2]: *** [all] Error 1
gmake[2]: Leaving directory '/var/tmp/portage/sys-devel/llvm-3.6.0/work/llvm-3.6.0.src-abi_x86_64.amd64_fbsd/tools/clang'
/var/tmp/portage/sys-devel/llvm-3.6.0/work/llvm-3.6.0.src/Makefile.rules:932: recipe for target 'clang/.makeall' failed
gmake[1]: *** [clang/.makeall] Error 2
gmake[1]: Leaving directory '/var/tmp/portage/sys-devel/llvm-3.6.0/work/llvm-3.6.0.src-abi_x86_64.amd64_fbsd/tools'
/var/tmp/portage/sys-devel/llvm-3.6.0/work/llvm-3.6.0.src/Makefile.rules:873: recipe for target 'all' failed
gmake: *** [all] Error 1
 * ERROR: sys-devel/llvm-3.6.0::gentoo failed (compile phase):
 *   emake failed
Comment 1 Yuta SATOH 2015-05-03 05:17:51 UTC
Created attachment 402470 [details, diff]
sample patch for llvm-3.6.0.ebuild
Comment 2 Yuta SATOH 2015-05-03 05:18:36 UTC
Created attachment 402472 [details, diff]
files/clang-3.6-fbsd-gcc49.patch
Comment 3 Michele Alzetta 2015-05-29 21:59:21 UTC
No, I have the same problem compiling llvm-3.6.1 with gcc-4.9.2
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2015-06-14 17:56:21 UTC
+  14 Jun 2015; Michał Górny <mgorny@gentoo.org>
+  +files/clang-3.6-fbsd-gcc49.patch, llvm-3.6.1.ebuild:
+  Apply upstream patch for FreeBSD gcc-4.9 build, bug #548444.
+  https://github.com/gentoo/gentoo-portage-rsync-mirror/pull/140 by nigoro.