Re: Openoffice doesn't work with kernel+world built with Clang
On Wed, Nov 3, 2010 at 1:05 PM, Renato Botelho rbga...@gmail.com wrote: On Wed, Nov 3, 2010 at 12:44 PM, Ed Schouten e...@80386.nl wrote: * Renato Botelho rbga...@gmail.com, 20101103 15:36: On Wed, Nov 3, 2010 at 11:44 AM, Ed Schouten e...@80386.nl wrote: Garga! * Renato Botelho rbga...@gmail.com, 20101103 13:36: For now i solve my problem adding this to /etc/src.conf .if ${.CURDIR} == /usr/src/gnu/lib/libgcc CC=cc CXX=c++ .endif This way libgcc_s.so is built using gcc instead of clang and the problem is gone. I just wonder other problems we can find since simething on libgcc_s.so is broken when built with clang. Would it be hard to figure out which exact object file causes this? Hi Ed, I've submitted a ktrace result of openoffice execution [1], i just saw it got a SIGBUS at some point, but debug openoffice doesn't seem to be a trivial task. I don't know if we can build OO with debug symbols to make it easier to debug. If you know what i can do to help debugging, just let me know and i can provide any information. Well, I mean, can you build some of libgcc's object files with Clang and others with GCC? Hint: Just build everything with GCC. Afterwards, go into the object directory, rm some of the .o files and make CC=clang. Since OOo is a C++ application, I suspect the unwind-related object files to be the culprit. Bingo! When I build everything but unwind-dw2.o with clang it works. This is the object that is causing the problem. FYI, after upgrade it today to r218915, and remove the hack to build libgcc with gcc instead of clang, the problem is gone. Now my world + kernel are both 100% built with clang and i can start openoffice as well. -- Renato Botelho ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: Openoffice doesn't work with kernel+world built with Clang
On Fri, Oct 22, 2010 at 8:54 AM, Renato Botelho rbga...@gmail.com wrote: I have a 9.0-current (r214167) amd64, kernel and world built with clang and all ports built with gcc, and i cannot start openoffice anymore, it shows splash, start to go up and die. If I reinstall world+kernel built with gcc openoffice works fine. The is a ktrace result available [1], let me know if you need more information or tests. For now i solve my problem adding this to /etc/src.conf .if ${.CURDIR} == /usr/src/gnu/lib/libgcc CC=cc CXX=c++ .endif This way libgcc_s.so is built using gcc instead of clang and the problem is gone. I just wonder other problems we can find since simething on libgcc_s.so is broken when built with clang. -- Renato Botelho ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: Openoffice doesn't work with kernel+world built with Clang
On Wed, Nov 3, 2010 at 11:44 AM, Ed Schouten e...@80386.nl wrote: Garga! * Renato Botelho rbga...@gmail.com, 20101103 13:36: For now i solve my problem adding this to /etc/src.conf .if ${.CURDIR} == /usr/src/gnu/lib/libgcc CC=cc CXX=c++ .endif This way libgcc_s.so is built using gcc instead of clang and the problem is gone. I just wonder other problems we can find since simething on libgcc_s.so is broken when built with clang. Would it be hard to figure out which exact object file causes this? Hi Ed, I've submitted a ktrace result of openoffice execution [1], i just saw it got a SIGBUS at some point, but debug openoffice doesn't seem to be a trivial task. I don't know if we can build OO with debug symbols to make it easier to debug. If you know what i can do to help debugging, just let me know and i can provide any information. [1] - http://people.freebsd.org/~garga/ktrace-error2.txt.gz -- Renato Botelho ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: Openoffice doesn't work with kernel+world built with Clang
* Renato Botelho rbga...@gmail.com, 20101103 15:36: On Wed, Nov 3, 2010 at 11:44 AM, Ed Schouten e...@80386.nl wrote: Garga! * Renato Botelho rbga...@gmail.com, 20101103 13:36: For now i solve my problem adding this to /etc/src.conf .if ${.CURDIR} == /usr/src/gnu/lib/libgcc CC=cc CXX=c++ .endif This way libgcc_s.so is built using gcc instead of clang and the problem is gone. I just wonder other problems we can find since simething on libgcc_s.so is broken when built with clang. Would it be hard to figure out which exact object file causes this? Hi Ed, I've submitted a ktrace result of openoffice execution [1], i just saw it got a SIGBUS at some point, but debug openoffice doesn't seem to be a trivial task. I don't know if we can build OO with debug symbols to make it easier to debug. If you know what i can do to help debugging, just let me know and i can provide any information. Well, I mean, can you build some of libgcc's object files with Clang and others with GCC? Hint: Just build everything with GCC. Afterwards, go into the object directory, rm some of the .o files and make CC=clang. Since OOo is a C++ application, I suspect the unwind-related object files to be the culprit. -- Ed Schouten e...@80386.nl WWW: http://80386.nl/ pgp6Mq6wCrRKK.pgp Description: PGP signature
Re: Openoffice doesn't work with kernel+world built with Clang
On Wed, Nov 3, 2010 at 12:44 PM, Ed Schouten e...@80386.nl wrote: * Renato Botelho rbga...@gmail.com, 20101103 15:36: On Wed, Nov 3, 2010 at 11:44 AM, Ed Schouten e...@80386.nl wrote: Garga! * Renato Botelho rbga...@gmail.com, 20101103 13:36: For now i solve my problem adding this to /etc/src.conf .if ${.CURDIR} == /usr/src/gnu/lib/libgcc CC=cc CXX=c++ .endif This way libgcc_s.so is built using gcc instead of clang and the problem is gone. I just wonder other problems we can find since simething on libgcc_s.so is broken when built with clang. Would it be hard to figure out which exact object file causes this? Hi Ed, I've submitted a ktrace result of openoffice execution [1], i just saw it got a SIGBUS at some point, but debug openoffice doesn't seem to be a trivial task. I don't know if we can build OO with debug symbols to make it easier to debug. If you know what i can do to help debugging, just let me know and i can provide any information. Well, I mean, can you build some of libgcc's object files with Clang and others with GCC? Hint: Just build everything with GCC. Afterwards, go into the object directory, rm some of the .o files and make CC=clang. Since OOo is a C++ application, I suspect the unwind-related object files to be the culprit. Bingo! When I build everything but unwind-dw2.o with clang it works. This is the object that is causing the problem. -- Renato Botelho ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Openoffice doesn't work with kernel+world built with Clang
I have a 9.0-current (r214167) amd64, kernel and world built with clang and all ports built with gcc, and i cannot start openoffice anymore, it shows splash, start to go up and die. If I reinstall world+kernel built with gcc openoffice works fine. The is a ktrace result available [1], let me know if you need more information or tests. Thanks [1] - http://people.freebsd.org/~garga/ktrace.out -- Renato Botelho ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: Openoffice doesn't work with kernel+world built with Clang
On 2010-10-22 12:54, Renato Botelho wrote: I have a 9.0-current (r214167) amd64, kernel and world built with clang and all ports built with gcc, and i cannot start openoffice anymore, it shows splash, start to go up and die. If I reinstall world+kernel built with gcc openoffice works fine. The is a ktrace result available [1], let me know if you need more information or tests. Thanks [1] - http://people.freebsd.org/~garga/ktrace.out I guess the permissions of that file are still 700? I get 403 - Forbidden. :) ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: Openoffice doesn't work with kernel+world built with Clang
On Fri, Oct 22, 2010 at 10:53 AM, Dimitry Andric d...@freebsd.org wrote: On 2010-10-22 12:54, Renato Botelho wrote: I have a 9.0-current (r214167) amd64, kernel and world built with clang and all ports built with gcc, and i cannot start openoffice anymore, it shows splash, start to go up and die. If I reinstall world+kernel built with gcc openoffice works fine. The is a ktrace result available [1], let me know if you need more information or tests. Thanks [1] - http://people.freebsd.org/~garga/ktrace.out I guess the permissions of that file are still 700? I get 403 - Forbidden. :) Fixed, sorry. -- Renato Botelho ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: Openoffice doesn't work with kernel+world built with Clang
On Fri, Oct 22, 2010 at 10:53 AM, Dimitry Andric d...@freebsd.org wrote: On 2010-10-22 12:54, Renato Botelho wrote: I have a 9.0-current (r214167) amd64, kernel and world built with clang and all ports built with gcc, and i cannot start openoffice anymore, it shows splash, start to go up and die. If I reinstall world+kernel built with gcc openoffice works fine. The is a ktrace result available [1], let me know if you need more information or tests. Thanks [1] - http://people.freebsd.org/~garga/ktrace.out I guess the permissions of that file are still 700? I get 403 - Forbidden. :) I've added a dumped version to make it easy: http://people.freebsd.org/~garga/ktrace-error.txt.gz -- Renato Botelho ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: Openoffice doesn't work with kernel+world built with Clang
On Fri, Oct 22, 2010 at 10:53 AM, Dimitry Andric d...@freebsd.org wrote: On 2010-10-22 12:54, Renato Botelho wrote: I have a 9.0-current (r214167) amd64, kernel and world built with clang and all ports built with gcc, and i cannot start openoffice anymore, it shows splash, start to go up and die. If I reinstall world+kernel built with gcc openoffice works fine. The is a ktrace result available [1], let me know if you need more information or tests. Thanks [1] - http://people.freebsd.org/~garga/ktrace.out I guess the permissions of that file are still 700? I get 403 - Forbidden. :) I ran ktrace -di to collect information of child processes, here is the result: http://people.freebsd.org/~garga/ktrace-error2.txt.gz -- Renato Botelho ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: Openoffice doesn't work with kernel+world built with Clang
On Fri, Oct 22, 2010 at 10:53 AM, Dimitry Andric d...@freebsd.org wrote: On 2010-10-22 12:54, Renato Botelho wrote: I have a 9.0-current (r214167) amd64, kernel and world built with clang and all ports built with gcc, and i cannot start openoffice anymore, it shows splash, start to go up and die. If I reinstall world+kernel built with gcc openoffice works fine. The is a ktrace result available [1], let me know if you need more information or tests. Thanks [1] - http://people.freebsd.org/~garga/ktrace.out I guess the permissions of that file are still 700? I get 403 - Forbidden. :) One more information, i found the problem is on libgcc_s.so, after build /usr/src/gnu/lib/libgcc with gcc and install openoffice back to work fine. -- Renato Botelho ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org