On Wed, 16 May 2012 21:13:42 -0300
Ariel Constenla-Haile <arie...@apache.org> wrote:

> Hi Nico,
> 
> On Thu, May 17, 2012 at 12:20:57AM +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



> [ build CXX ] sw/source/core/access/acchypertextdata
> 
> 
> 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

And still no succes also adding -mno-fp-in-toc -mno-sum-in-toc CXXFLAGS
Btw, I never experienced that kind of problem building old releases:
http://cruxppc.org/viewvc/opt/branches/2.7/openoffice/


--nico
-- 
acrux <acrux...@libero.it>

Reply via email to