Quantcast

udk module fails to compile

classic Classic list List threaded Threaded
9 messages Options
julien2412 julien2412
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

udk module fails to compile

Hello,

I made from scratch my LO repo to be sure and I got a segfault during udk compilation.
[ build CHK ] loaded modules: udkapi
[ build UNO ] udkapi
[ build HPP ] udkapi
[ build UNO ] ure/types
Segmentation fault
make[2]: *** [/home/julien/compile-libreoffice/libo/workdir/unxlngx6/UnoApiHeadersTarget/udkapi/normal.done] Erreur 139
make[2]: *** Attente des tâches non terminées....
Segmentation fault
make[2]: *** [/home/julien/compile-libreoffice/libo/workdir/unxlngx6/UnoApiTarget/ure/types.rdb] Erreur 139
make[2]: *** Destruction du fichier « /home/julien/compile-libreoffice/libo/workdir/unxlngx6/UnoApiTarget/ure/types.rdb »
make[2]: quittant le répertoire « /home/julien/compile-libreoffice/libo/udkapi »
make[1]: *** [udkapi] Erreur 2
make[1]: quittant le répertoire « /home/julien/compile-libreoffice/libo »
make: *** [udkapi] Erreur 2

pc Debian x86-64
gcc (Debian 4.6.3-1) 4.6.3
GNU Make 3.81

autogen.lastrun :
--with-system-odbc
--enable-ext-mysql-connector
--with-system-mysql
--enable-symbols
--enable-ext-barcode
--enable-ext-diagram
--enable-ext-google-docs
--enable-ext-hunart
--enable-ext-nlpsolver
--enable-ext-ct2n
--enable-ext-numbertext
--enable-ext-oooblogger
--enable-ext-pdfimport
--enable-postgresql-sdbc
--enable-ext-presenter-console
--enable-ext-presenter-minimizer
--enable-ext-report-builder
--enable-ext-scripting-beanshell
--enable-ext-scripting-javascript
--enable-ext-typo
--enable-ext-validator
--enable-ext-watch-window
--enable-ext-wiki-publisher
--enable-dbus
--enable-graphite
--enable-evolution2
--enable-werror
--enable-debug
--enable-dbgutil
--enable-crashdump
--enable-kde4
--enable-dependency-tracking
--enable-online-update

Any idea ?

Julien.
David Tardon David Tardon
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: udk module fails to compile

Hi,

On Sun, Jun 03, 2012 at 01:38:29AM -0700, julien2412 wrote:

> Hello,
>
> I made from scratch my LO repo to be sure and I got a segfault during udk
> compilation.
> [ build CHK ] loaded modules: udkapi
> [ build UNO ] udkapi
> [ build HPP ] udkapi
> [ build UNO ] ure/types
> Segmentation fault
> make[2]: ***
> [/home/julien/compile-libreoffice/libo/workdir/unxlngx6/UnoApiHeadersTarget/udkapi/normal.done]
> Erreur 139
> make[2]: *** Attente des tâches non terminées....
> Segmentation fault
> make[2]: ***
> [/home/julien/compile-libreoffice/libo/workdir/unxlngx6/UnoApiTarget/ure/types.rdb]
> Erreur 139
> make[2]: *** Destruction du fichier «
> /home/julien/compile-libreoffice/libo/workdir/unxlngx6/UnoApiTarget/ure/types.rdb
> »
> make[2]: quittant le répertoire «
> /home/julien/compile-libreoffice/libo/udkapi »
> make[1]: *** [udkapi] Erreur 2
> make[1]: quittant le répertoire « /home/julien/compile-libreoffice/libo »
> make: *** [udkapi] Erreur 2

that means cppumaker (or possibly rdbmerge) is segfaulting. You can run
the commands manually:

cppumaker -Gc -L -BUCR -O$WORKDIR/UnoApiHeadersTarget/udkapi/normal $WORKDIR/UnoApiTarget/unoapi.rdb

or

rdbmerge $WORKDIR/UnoApiTarget/ure/types.rdb UCR $WORKDIR/UnoApiTarget/unoapi.rdb

to see which one it is and debug it. Both commands need $(OUTDIR)/lib in
LD_LIBRARY_PATH.

D.
_______________________________________________
LibreOffice mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/libreoffice
julien2412 julien2412
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: udk module fails to compile

Hi David,

Could you give me more details ?
From where do you launch these commands ? I've got "no command found" if I try from Libo root directory.
 What to do precisely about "$(OUTDIR)/lib in LD_LIBRARY_PATH." (I've got no "LD_LIBRARY_PATH" when grep "env" or grep "set"

Julien
David Tardon David Tardon
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: udk module fails to compile

Hi,

On Sun, Jun 03, 2012 at 03:27:08AM -0700, julien2412 wrote:
> Hi David,
>
> Could you give me more details ?
> From where do you launch these commands ? I've got "no command found" if I
> try from Libo root directory.

Sorry, I forgot to use full paths. They are both in $(OUTDIR)/bin .

>  What to do precisely about "$(OUTDIR)/lib in LD_LIBRARY_PATH." (I've got no
> "LD_LIBRARY_PATH" when grep "env" or grep "set"

Just use LD_LIBRARY_PATH=$(OUTDIR)/lib , then.

Of course, you have to replace $(OUTDIR) and $(WORKDIR) by real paths,
as they are not set outside of gbuild.

D.
_______________________________________________
LibreOffice mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/libreoffice
julien2412 julien2412
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: udk module fails to compile

Thank you David for your answer.

I runned "make clean && make" (I put again with system boost) yesterday, this time udkapi compilation is ok, weird.

Julien.
julien2412 julien2412
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: udk module fails to compile

Thought it was ok, I was wrong :-(

So I compiled udkapi in verbose mode and got :
julien@julienPC:~/compile-libreoffice/libo$ make verbose=t udkapi
make -r -f /home/julien/compile-libreoffice/libo/Makefile.top udkapi
make[1]: Entering directory `/home/julien/compile-libreoffice/libo'
cd udkapi && make -j 4 -r gb_PARTIALBUILD=T
[ build HPP ] udkapi
make[2]: Entering directory `/home/julien/compile-libreoffice/libo/udkapi'
RESPONSEFILE=/tmp/gbuild.hymXHy && LD_LIBRARY_PATH="/home/julien/compile-libreoffice/libo/solver/unxlngx6/lib" SOLARBINDIR=/home/julien/compile-libreoffice/libo/solver/unxlngx6/bin /home/julien/compile-libreoffice/libo/solver/unxlngx6/bin/cppumaker @${RESPONSEFILE} && rm -f ${RESPONSEFILE} && touch /home/julien/compile-libreoffice/libo/workdir/unxlngx6/UnoApiHeadersTarget/udkapi/normal.done
Segmentation fault
make[2]: *** [/home/julien/compile-libreoffice/libo/workdir/unxlngx6/UnoApiHeadersTarget/udkapi/normal.done] Error 139
make[2]: Leaving directory `/home/julien/compile-libreoffice/libo/udkapi'
make[1]: *** [udkapi] Error 2
make[1]: Leaving directory `/home/julien/compile-libreoffice/libo'
make: *** [udkapi] Error 2

After having exported LD_LIBRARY_PATH + SOLARBINDIR, I launched gdb :
gdb /home/julien/compile-libreoffice/libo/solver/unxlngx6/bin/cppumaker
then :
(gdb) run -Gc -L -BUCR -O/home/julien/compile-libreoffice/libo/workdir/unxlngx6/UnoApiHeadersTarget/udkapi/normal /home/julien/compile-libreoffice/libo/workdir/unxlngx6/UnoApiTarget/udkapi.rdb


Hopefully I get the bt :
Program received signal SIGSEGV, Segmentation fault.
0x00000000004347ce in boost::unordered_detail::hash_table<boost::unordered_detail::set<rtl::OStringHash, std::equal_to<rtl::OString>, std::allocator<rtl::OString> > >::find_iterator (this=0x7fffffffdf20, bucket_=0x40, k="com") at /home/julien/compile-libreoffice/libo/solver/unxlngx6/inc/boost/unordered/detail/table.hpp:55
55        node_ptr it = bucket_->next_;
(gdb) bt
#0  0x00000000004347ce in boost::unordered_detail::hash_table<boost::unordered_detail::set<rtl::OStringHash, std::equal_to<rtl::OString>, std::allocator<rtl::OString> > >::find_iterator (this=0x7fffffffdf20, bucket_=0x40, k="com") at /home/julien/compile-libreoffice/libo/solver/unxlngx6/inc/boost/unordered/detail/table.hpp:55
#1  0x000000000043222e in boost::unordered_detail::hash_table<boost::unordered_detail::set<rtl::OStringHash, std::equal_to<rtl::OString>, std::allocator<rtl::OString> > >::find (this=0x7fffffffdf20, k="com") at /home/julien/compile-libreoffice/libo/solver/unxlngx6/inc/boost/unordered/detail/table.hpp:583
#2  0x00000000004303ef in boost::unordered_set<rtl::OString, rtl::OStringHash, std::equal_to<rtl::OString>, std::allocator<rtl::OString> >::find (this=0x7fffffffdf20, k="com")
    at /home/julien/compile-libreoffice/libo/solver/unxlngx6/inc/boost/unordered/unordered_set.hpp:411
#3  0x000000000042fd95 in codemaker::GeneratedTypeSet::contains (this=0x7fffffffdf20, type="com")
    at /home/julien/compile-libreoffice/libo/codemaker/inc/codemaker/generatedtypeset.hxx:69
#4  0x000000000042e0b7 in produceType (rTypeKey=..., bIsExtraType=false, typeMgr=..., generated=..., pOptions=0x7fffffffde70)
    at /home/julien/compile-libreoffice/libo/codemaker/source/cppumaker/cpputype.cxx:4446
#5  0x00000000004054ab in (anonymous namespace)::produce (rTypeKey=..., bIsExtraType=false, typeMgr=..., generated=..., options=0x7fffffffde70)
    at /home/julien/compile-libreoffice/libo/codemaker/source/cppumaker/cppumaker.cxx:55
#6  0x00000000004055fe in (anonymous namespace)::produceAllTypes (rTypeKey=..., bIsExtraType=false, typeMgr=..., generated=..., pOptions=0x7fffffffde70, bFullScope=1 '\001')
    at /home/julien/compile-libreoffice/libo/codemaker/source/cppumaker/cppumaker.cxx:79
#7  0x0000000000405c20 in (anonymous namespace)::produceAllTypes (typeName="/", typeMgr=..., generated=..., pOptions=0x7fffffffde70, bFullScope=1 '\001')
    at /home/julien/compile-libreoffice/libo/codemaker/source/cppumaker/cppumaker.cxx:136
#8  0x000000000040642d in sal_main_with_args (argc=6, argv=0x7fffffffe208) at /home/julien/compile-libreoffice/libo/codemaker/source/cppumaker/cppumaker.cxx:224
#9  0x0000000000405e51 in main (argc=6, argv=0x7fffffffe208) at /home/julien/compile-libreoffice/libo/codemaker/source/cppumaker/cppumaker.cxx:151

Any idea ?

Julien.
julien2412 julien2412
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: udk module fails to compile

I did this :
make codemaker.clean && make codemaker && make codemaker.deliver

then :
make rdbmaker.clean && make rdbmaker

finally :
make udkapi.clean && make udkapi

it worked... Great but what to think about it ?

Now I hope to be able to compile the rest of master sources again.

Julien.
Michael Stahl-2 Michael Stahl-2
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: udk module fails to compile

In reply to this post by julien2412
On 05/06/12 22:04, julien2412 wrote:

> After having exported LD_LIBRARY_PATH + SOLARBINDIR, I launched gdb :
> gdb /home/julien/compile-libreoffice/libo/solver/unxlngx6/bin/cppumaker
> then :
> (gdb) run -Gc -L -BUCR
> -O/home/julien/compile-libreoffice/libo/workdir/unxlngx6/UnoApiHeadersTarget/udkapi/normal
> /home/julien/compile-libreoffice/libo/workdir/unxlngx6/UnoApiTarget/udkapi.rdb

ah, so it is cppumaker that crashes, and not make itself.
we were on completely wrong track on IRC then :)

> Program received signal SIGSEGV, Segmentation fault.
> 0x00000000004347ce in
> boost::unordered_detail::hash_table<boost::unordered_detail::set&lt;rtl::OStringHash,
> std::equal_to&lt;rtl::OString>, std::allocator<rtl::OString> >
>> ::find_iterator (this=0x7fffffffdf20, bucket_=0x40, k="com") at
> /home/julien/compile-libreoffice/libo/solver/unxlngx6/inc/boost/unordered/detail/table.hpp:55
> 55        node_ptr it = bucket_->next_;

> Any idea ?

perhaps it's caused by some broken dependencies and thus broken
incremental build; there are still some dmake based modules left and
perhaps some dependencies in gbuild custom targets are not exactly
right, though that kind of thing is difficult to debug once you already
have a partially rebuilt tree; try if you can reproduce it in a build
from scratch.

_______________________________________________
LibreOffice mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/libreoffice
julien2412 julien2412
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: udk module fails to compile

Hi Michael,

Yep it was the wrong track on IRC about make but no problem. (anyway I do too much errors to complain about this :-))

In fact, first I didn't know how to apply what said David on this thread to retrieve the bt, then with the details he gave, I wanted to reproduce the problem but was stuck by Boost date problem (finally solved by Bjoern).

Now I passed this step (see http://nabble.documentfoundation.org/udk-module-fails-to-compile-tp3987690p3988392.html) but now it fails to compile sfx2 (a solver dependancy or something, I'm not at home so can't give details, i can just tell "make sfx2.clean && make sfx2" doesn't work).

Before that, I had this problem "ZipEnumeration::ZipEnumeration(... undefined/unsolved ref" or something.
I passed this with just make package.clean && make package.

In brief, I or my laptop must have been cursed 2 or 3 days ago :-) I'll try another "make clean && make" after day job.

Julien.
PS : Thank you guys for your support and your patience.
Loading...