incubator-ooo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ariel Constenla-Haile <arie...@apache.org>
Subject Re: sw module error building on linux ppc64
Date Thu, 17 May 2012 17:43:57 GMT
Hi Nico,

On Thu, May 17, 2012 at 05:07:31PM +0200, acrux wrote:
> > > hi,
> > > i'm unable to build aoo-3.4.0 from sources on linux ppc64 (crux ppc 64bit).
> > > I always get this error on sw module... here the log:
> > > http://cruxppc.org/~acrux/sw.log
> > > 
> > > I also tried  using external cppunit-1.12.1 (with-system-cppunit) and 
> > > adding -mminimal-toc -fno-optimize-sibling-calls flags
> > 
> > searching for "sibling call optimization to does not allow automatic
> > multiple TOCs" shows this is a common error in your arch., and is solved
> > by adding -mminimal-toc to the compiler flags, just like the output
> > suggests. How did you add that flag? Your log misses the important part:
> > 
> > 
> 
> hallo Ariel,
> 
> i did something like this:
> 
> --- a/main/solenv/gbuild/platform/linux.mk
> +++ b/main/solenv/gbuild/platform/linux.mk
> @@ -253,7 +253,7 @@
>  # Library class
> 
>  gb_Library_DEFS :=
> -gb_Library_TARGETTYPEFLAGS := -shared -Wl,-z,noexecstack
> +gb_Library_TARGETTYPEFLAGS := -shared -mno-fp-in-toc -mno-sum-in-toc -fno-optimize-sibling-calls
-mminimal-toc -Wl,-z,noexecstack
>  gb_Library_SYSPRE := lib
>  gb_Library_UNOVERPRE := $(gb_Library_SYSPRE)uno_
>  gb_Library_PLAINEXT := .so
> 

If I understood clearly, all fixes to this issue add these flags to the
CFLAGS/CXXFLAGS, that is, to the compiler flags, not the linker.
So you should add them to gb_CXXFLAGS and then re-compile the object files
(not only re-link the library).


cd sw/
make -r clean
make -r


> 
> 
> > [ build CXX ] sw/source/core/access/acchypertextdata

That was why I was telling to recompile the file. The way you added the
flags, they are added to the linker command.


> > Please re compile that file:
> > 
> > 
> > cd trunk/main/sw
> > touch source/core/access/acchypertextdata.cxx
> > make -r
> > 
> > 
> > and check that -mminimal-toc is the flags whem compiling
> > sw/source/core/access/acchypertextdata.cxx
> > 
> 
> from trunk? It seems to be always the same file from tag/sAOO340

just use the same sources you are using right now.


> And still no succes also adding -mno-fp-in-toc -mno-sum-in-toc CXXFLAGS

AFAIK our gbuild environment will not recognize it, you should add them
to the gb_CXXFLAGS


Regards
-- 
Ariel Constenla-Haile
La Plata, Argentina

Mime
View raw message