[Kde-pim] Akonadi-1.2.1 build error

Sagara Wijetunga sagara at tomahawk.com.sg
Tue Oct 20 12:34:25 BST 2009


Ingo Klöcker wrote:
> On Sunday 18 October 2009, Sagara Wijetunga wrote:
>   
>> Kevin Krammer wrote:
>>     
>>> Hi,
>>>
>>> On Sunday, 2009-10-18, Sagara Wijetunga wrote:
>>>       
>>>> Hi all
>>>>
>>>> I'm trying to compile Akonadi-1.2.1 (akonadi-1.2.1.tar.bz2) on
>>>> FreeBSD, I get following compilation error:
>>>>
>>>> gmake
>>>>
>>>> Scanning dependencies of target akonadiprotocolinternals
>>>> [  0%] Building CXX object
>>>> libs/CMakeFiles/akonadiprotocolinternals.dir/imapparser.cpp.o
>>>> [  1%] Building CXX object
>>>> libs/CMakeFiles/akonadiprotocolinternals.dir/imapset.cpp.o
>>>> [  1%] Building CXX object
>>>> libs/CMakeFiles/akonadiprotocolinternals.dir/notificationmessage.c
>>>> pp.o [  2%] Building CXX object
>>>> libs/CMakeFiles/akonadiprotocolinternals.dir/xdgbasedirs.cpp.o
>>>> Linking CXX shared library ../lib/libakonadiprotocolinternals.so
>>>> [  2%] Built target akonadiprotocolinternals
>>>> Scanning dependencies of target notificationmessagetest_automoc
>>>> gmake[2]: ***
>>>> [libs/tests/CMakeFiles/notificationmessagetest_automoc] Error 1
>>>> gmake[1]: ***
>>>> [libs/tests/CMakeFiles/notificationmessagetest_automoc.dir/all]
>>>> Error 2 gmake: *** [all] Error 2
>>>>
>>>> 1. How to find more detail about this issue?
>>>>         
>>> make VERBOSE=1
>>>
>>>       
>>>> 2. Is libs/tests necessary for Akonadi? If not, how to disable
>>>> building libs/tests?
>>>>         
>>> Usually tests have to be enabled explicitly, i.e. they should be
>>> off unless you specified them to be enabled at the cmake command.
>>>
>>> However, any error building the tests could also mean something
>>> else will fail to build and might be harder to locate there (tests
>>> usually have much less dependencies).
>>> Since most of us are building on Linux we could have accidentally
>>> slipped in something Linux specific which we rather have
>>> removed/fixed than people on BSD work around :)
>>>
>>> Cheers,
>>> Kevin
>>>       
>> Hi Kevin
>>
>> Thanks for the reply.
>>
>> Here is the verbose output:
>>
>> cd /usr/pkg/akonadi/build/libs/tests && /usr/bin/automoc4
>> /usr/pkg/akonadi/build/libs/tests/notificationmessagetest_automoc.cpp
>> /usr/pkg/akonadi/akonadi-1.2.1/libs/tests
>> /usr/pkg/akonadi/build/libs/tests /usr/bin/moc /usr/bin/cmake
>> gmake[2]: *** [libs/tests/CMakeFiles/notificationmessagetest_automoc]
>> Error 1
>> gmake[2]: Leaving directory `/usr/pkg/akonadi/build'
>>
>> The problem is,
>> /usr/pkg/akonadi/build/libs/tests/notificationmessagetest_automoc.cpp
>> is not available.
>>
>> There is no such file even under the source directory
>> (/usr/pkg/akonadi/akonadi-1.2.1/).
>>     
>
> Of course, the file does not exist. It's supposed to be created by 
> automoc4.
>
>
>   
>> Here are the contents of the /usr/pkg/akonadi/build/libs/tests/
>> directory: ls /usr/pkg/akonadi/build/libs/tests/
>> CMakeFiles
>> CTestTestfile.cmake
>> Makefile
>> cmake_install.cmake
>> notificationmessagetest_automoc.cpp.files
>>
>> cat
>> /usr/pkg/akonadi/build/libs/tests/notificationmessagetest_automoc.cpp
>> .files SOURCES:
>> /usr/pkg/akonadi/akonadi-1.2.1/libs/tests/notificationmessagetest.cpp
>> MOC_COMPILE_DEFINITIONS:
>>
>>
>>
>> What could I do now?
>>     
>
> Try running
>
> cd /usr/pkg/akonadi/build/libs/tests && /usr/bin/automoc4 
> /usr/pkg/akonadi/build/libs/tests/notificationmessagetest_automoc.cpp 
> /usr/pkg/akonadi/akonadi-1.2.1/libs/tests 
> /usr/pkg/akonadi/build/libs/tests /usr/bin/moc /usr/bin/cmake
>
> manually.
>
>
> Regards,
> Ingo
>   

I tried following manually:
cd /usr/pkg/akonadi/build/libs/tests

/usr/bin/automoc4 
/usr/pkg/akonadi/build/libs/tests/notificationmessagetest_automoc.cpp 
/usr/pkg/akonadi/akonadi-1.2.1/libs/tests 
/usr/pkg/akonadi/build/libs/tests /usr/bin/moc /usr/bin/cmake

Exit status ($?) is 1. No error message.

Is there a way to run  automoc4 command with a verbose output?


strace /usr/bin/automoc4 produces some suspicious output:

strace /usr/bin/automoc4 
/usr/pkg/akonadi/build/libs/tests/notificationmessagetest_automoc.cpp 
/usr/pkg/akonadi/akonadi-1.2.1/libs/tests 
/usr/pkg/akonadi/build/libs/tests /usr/bin/moc /usr/bin/cmake

stat("/usr/bin/automoc4", {st_mode=S_IFREG|0755, st_size=65530, ...}) = 0
stat("", 0x28730134)                    = -1 ENOENT (No such file or 
directory)
lstat("", 0xbfbfded0)                   = -1 ENOENT (No such file or 
directory)
stat("", 0x28730134)                    = -1 ENOENT (No such file or 
directory)
lstat("", 0xbfbfded0)                   = -1 ENOENT (No such file or 
directory)
stat("", 0x28730134)                    = -1 ENOENT (No such file or 
directory)
lstat("", 0xbfbfded0)                   = -1 ENOENT (No such file or 
directory)
stat("", 0x287300a4)                    = -1 ENOENT (No such file or 
directory)
lstat("", 0xbfbfe520)                   = -1 ENOENT (No such file or 
directory)
stat("", 0x287300a4)                    = -1 ENOENT (No such file or 
directory)
lstat("", 0xbfbfe6f0)                   = -1 ENOENT (No such file or 
directory)
stat("", 0x287300a4)                    = -1 ENOENT (No such file or 
directory)
lstat("", 0xbfbfe270)                   = -1 ENOENT (No such file or 
directory)
stat("", 0x287300a4)                    = -1 ENOENT (No such file or 
directory)
lstat("", 0xbfbfe6b0)                   = -1 ENOENT (No such file or 
directory)
pipe([5, 6])                            = 5
fcntl(5, F_SETFD, FD_CLOEXEC)           = 0
fcntl(6, F_SETFD, FD_CLOEXEC)           = 0
fcntl(5, F_GETFL)                       = 0x2 (flags O_RDWR)
fcntl(5, F_SETFL, O_RDWR|O_NONBLOCK)    = 0
fcntl(6, F_GETFL)                       = 0x2 (flags O_RDWR)
fcntl(6, F_SETFL, O_RDWR|O_NONBLOCK)    = 0
syscall_416(0x14, 0xbfbfe85c, 0xbfbfe874) = 0
syscall_478(0x2, 0, 0, 0x1)             = 0xa0e4
syscall_478(0x2, 0xa0e4, 0, 0)          = 0xa0e4
fstat(2, {st_mode=S_IFCHR|0620, st_rdev=makedev(0, 123), ...}) = 0
syscall_478(0x1, 0, 0, 0x1)             = 0xa155
fstat(1, {st_mode=0, st_size=0, ...})   = 0
ioctl(1, TIOCGETA, {B0 -opost -isig -icanon -echo ...}) = 0
syscall_478(0x1, 0xa155, 0, 0)          = 0xa155
fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(0, 123), ...}) = 0
open("", O_RDONLY)                      = -1 ENOENT (No such file or 
directory)
stat("", 0x287442e4)                    = -1 ENOENT (No such file or 
directory)
write(6, "@"..., 1)                     = 1
close(6)                                = 0
close(5)                                = 0
syscall_416(0x14, 0xbfbfe58c, 0xbfbfe5a4) = 0
sigprocmask(SIG_BLOCK, ~[ILL TRAP ABRT EMT FPE BUS SEGV SYS], []) = 0
sigprocmask(SIG_SETMASK, [], NULL)      = 0
sigprocmask(SIG_BLOCK, ~[ILL TRAP ABRT EMT FPE BUS SEGV SYS], []) = 0
sigprocmask(SIG_SETMASK, [], NULL)      = 0
exit(1)                                 = ?
PIOCWSTOP: Input/output error


Can this give us some kind of hint of what's going on?

Regards
Sagara


_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/



More information about the kde-pim mailing list