Re: lang/gcc46: error when compiling with CLANG
On Sunday, April 29, 2012 5:18:05 AM UTC-7, Dimitry Andric wrote:
> What happens if you simply repeat the build? If the segfault occurs at
> different stages every time, you might simply have bad RAM. Another
> possibility is that the build is out of memory, in that case you could
> try running it without multiple make jobs (e.g. set DISABLE_MAKE_JOBS).
I'm seeing the same error, even with DISABLE_MAKE_JOBS=true:
(echo "@set version-GCC 4.6.4"; \
if [ "prerelease" = "experimental" ]; \
then echo "@set DEVELOPMENT"; \
else echo "@clear DEVELOPMENT"; \
fi) > gcc-vers.texiT
echo @set srcdir /usr/ports/lang/gcc46/work/build/gcc/.././../gcc-4.6-20120420/gcc >> gcc-vers.texiT
if [ -n "(FreeBSD Ports Collection) " ]; then \
echo "@set VERSION_PACKAGE (FreeBSD Ports Collection) " >> gcc-vers.texiT; \
fi
echo "@set BUGURL @uref{http://gcc.gnu.org/bugs.html}" >> gcc-vers.texiT; \
mv -f gcc-vers.texiT gcc-vers.texi
if [ xinfo = xinfo ]; then \
makeinfo --no-split --split-size=5000000 --split-size=5000000 --no-split -I . -I .././../gcc-4.6-20120420/gcc/doc \
-I .././../gcc-4.6-20120420/gcc/doc/include -o doc/cpp.info .././../gcc-4.6-20120420/gcc/doc/cpp.texi; \
fi
if [ xinfo = xinfo ]; then \
makeinfo --no-split --split-size=5000000 --split-size=5000000 --no-split -I . -I .././../gcc-4.6-20120420/gcc/doc \
-I .././../gcc-4.6-20120420/gcc/doc/include -o doc/gcc.info .././../gcc-4.6-20120420/gcc/doc/gcc.texi; \
fi
build/genhooks \
.././../gcc-4.6-20120420/gcc/doc/tm.texi.in > tmp-tm.texi
gmake[3]: *** [s-tm-texi] Segmentation fault: 11 (core dumped)
gmake[3]: Leaving directory `/usr/ports/lang/gcc46/work/build/gcc'
gmake[2]: *** [all-stage1-gcc] Error 2
gmake[2]: Leaving directory `/usr/ports/lang/gcc46/work/build'
gmake[1]: *** [stage1-bubble] Error 2
gmake[1]: Leaving directory `/usr/ports/lang/gcc46/work/build'
gmake: *** [bootstrap-lean] Error 2
*** [do-build] Error code 1
Stop in /usr/ports/lang/gcc46.
# gdb build/genhooks ./genhooks.core
#0 0x2814bc2e in vfscanf () from /lib/libc.so.7
Breakpoint 1 at 0x8049946: file .././../gcc-4.6-20120420/gcc/errors.c, line 133.
Breakpoint 2 at 0x8049866: file .././../gcc-4.6-20120420/gcc/errors.c, line 95.
Breakpoint 3 at 0x280fbc66
Breakpoint 4 at 0x28182506
(gdb) bt
#0 0x2814bc2e in vfscanf () from /lib/libc.so.7
#1 0x281491ae in fscanf () from /lib/libc.so.7
#2 0x08048dd2 in emit_documentation (
in_fname=0xbfbfe7e7 ".././../gcc-4.6-20120420/gcc/doc/tm.texi.in")
at .././../gcc-4.6-20120420/gcc/genhooks.c:130
#3 0x080496ff in main (argc=2, argv=0xbfbfe648) at .././../gcc-4.6-20120420/gcc/genhooks.c:338
(gdb)
Maybe this problem is related to the recent changes to vfscanf?
Jos
討論串 (同標題文章)
完整討論串 (本文為第 5 之 6 篇):