[kde-freebsd] x11/kde4-workspace: automoc4 SEGVs on certain files

Matthias Apitz guru at unixarea.de
Wed Jun 12 10:03:08 UTC 2013


El día Tuesday, June 11, 2013 a las 08:50:13PM +0300, Raphael Kubo da Costa escribió:

> Matthias Apitz <guru at unixarea.de> writes:
> 
> >> > # cd /usr/ports/x11/kde4
> >> > # nohup install clean BATCH=yes
> >> 
> >> That should probably be OK, ...
> >
> > The first stop is in www/qt4-webkit with the already known clang
> > error generating bad machine code:
> [...]
> > What is the best option for this to be set on the command line while making
> > x11/kde4 or only www/qt4-webkit and returning after this to the make of x11/kde4?
> 
> If you're not really interested in clang for now, just try passing
> USE_GCC=yes; otherwise, build qt4-webkit with GCC (if you really want to
> build with clang, you just need to make it generate pentium or above
> code instead of i486) and then build the rest as originally intended.

I have now a core of automoc4 in x11/kdelibs4:

...
Generating moc_client_p.cpp
/usr/local/bin/cmake -E cmake_progress_report
/usr/ports/x11/kdelibs4/work/.build/CMakeFiles
make -f kdewebkit/CMakeFiles/kdewebkit_automoc.dir/build.make
kdewebkit/CMakeFiles/kdewebkit_automoc.dir/depend
[  1%] Built target plasma_automoc
cd /usr/ports/x11/kdelibs4/work/.build && /usr/local/bin/cmake -E
cmake_depends "Unix Makefiles"
/usr/ports/x11/kdelibs4/work/kdelibs-4.10.3
/usr/ports/x11/kdelibs4/work/kdelibs-4.10.3
/kdewebkit /usr/ports/x11/kdelibs4/work/.build
/usr/ports/x11/kdelibs4/work/.build/kdewebkit
/usr/ports/x11/kdelibs4/work/.build/kdewebkit/CMakeFiles/kdewebkit_automoc.dir/DependInfo.c
make
make -f
experimental/libkdeclarative/CMakeFiles/kdeclarative_automoc.dir/build.make
experimental/libkdeclarative/CMakeFiles/kdeclarative_automoc.dir/depend
cd /usr/ports/x11/kdelibs4/work/.build && /usr/local/bin/cmake -E
cmake_depends "Unix Makefiles"
/usr/ports/x11/kdelibs4/work/kdelibs-4.10.3
/usr/ports/x11/kdelibs4/work/kdelibs-4.10.3
/experimental/libkdeclarative /usr/ports/x11/kdelibs4/work/.build
/usr/ports/x11/kdelibs4/work/.build/experimental/libkdeclarative
/usr/ports/x11/kdelibs4/work/.build/experimental/libk
declarative/CMakeFiles/kdeclarative_automoc.dir/DependInfo.cmake
Scanning dependencies of target kdewebkit_automoc
make -f kdewebkit/CMakeFiles/kdewebkit_automoc.dir/build.make
kdewebkit/CMakeFiles/kdewebkit_automoc.dir/build
Scanning dependencies of target kdeclarative_automoc
make -f
experimental/libkdeclarative/CMakeFiles/kdeclarative_automoc.dir/build.make
experimental/libkdeclarative/CMakeFiles/kdeclarative_automoc.dir/build
cd /usr/ports/x11/kdelibs4/work/.build/kdewebkit &&
/usr/local/bin/automoc4
/usr/ports/x11/kdelibs4/work/.build/kdewebkit/kdewebkit_automoc.cpp
/usr/ports/x11/kdelibs4/work/kdelibs-4.1
0.3/kdewebkit /usr/ports/x11/kdelibs4/work/.build/kdewebkit
/usr/local/bin/moc-qt4 /usr/local/bin/cmake
cd /usr/ports/x11/kdelibs4/work/.build/experimental/libkdeclarative &&
/usr/local/bin/automoc4
/usr/ports/x11/kdelibs4/work/.build/experimental/libkdeclarative/kdeclarative_automoc.cpp
 /usr/ports/x11/kdelibs4/work/kdelibs-4.10.3/experimental/libkdeclarative
/usr/ports/x11/kdelibs4/work/.build/experimental/libkdeclarative
/usr/local/bin/moc-qt4 /usr/local/bin/cmake
Generating kwebview.moc
Generating engineaccess_p.moc
Segmentation fault (core dumped)
*** [experimental/libkdeclarative/CMakeFiles/kdeclarative_automoc] Error
code 139
1 error
***
[experimental/libkdeclarative/CMakeFiles/kdeclarative_automoc.dir/all]
Error code 2
Generating kgraphicswebview.moc
Generating kwebwallet.moc
Generating kwebpage.moc
Generating kwebpluginfactory.moc
/usr/local/bin/cmake -E cmake_progress_report
/usr/ports/x11/kdelibs4/work/.build/CMakeFiles
[  1%] Built target kdewebkit_automoc
1 error
*** [all] Error code 2


and even with gdb from ports the output is useless:

root at aurora:/usr/ports/devel/gdb # cd /usr/ports/x11/kdelibs4
root at aurora:/usr/ports/x11/kdelibs4 # find . -name '*.core'
./work/.build/experimental/libkdeclarative/automoc4.core
root at aurora:/usr/ports/x11/kdelibs4 # /usr/local/bin/gdb76 /usr/local/bin/automoc4 work/.build/experimental/libkdeclarative/automoc4.core
GNU gdb (GDB) 7.6 [GDB v7.6 for FreeBSD]
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying" and "show warranty" for details.
This GDB was configured as "i386-portbld-freebsd10.0".
For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/local/bin/automoc4...done.
[New process 101005]
[New process 100188]
[New Thread 29003800 (LWP 101005)]
[New Thread 29003080 (LWP 100188)]
Core was generated by `automoc4'.
Program terminated with signal 11, Segmentation fault.
#0  0xbf9fce8a in ?? ()
(gdb) bt
#0  0xbf9fce8a in ?? ()
Cannot access memory at address 0x2855e177
(gdb) br main
Breakpoint 1 at 0x8050b52: file
/usr/ports/devel/automoc4/work/automoc4-0.9.88/kde4automoc.cpp, line
113.
(gdb) 

And now?

	matthias
-- 
Matthias Apitz               |  /"\ ASCII Ribbon Campaign: www.asciiribbon.org
E-mail: guru at unixarea.de     |  \ / - No HTML/RTF in E-mail
WWW: http://www.unixarea.de/ |   X  - No proprietary attachments
phone: +49-170-4527211       |  / \ - Respect for open standards


More information about the kde-freebsd mailing list