Title: Re: Compiling AbiWord with gcc-3.0.* on Solaris or AIX or HP/UX

 

Virtual *hunk* problems with gcc 3.x.x for

now I am be able to compile gcc-3.0.3 successfully on hp-ux 10.20 by adding this patch:

The thunks were actually generated and found in the object files but they
      were not public so linking failed. Adding the three lower lines to the
      function make_thunk() in /gcc/cp/method.c seems solve problem 3536.
      
      Line 361:
      
            /* And neither is it a clone.  */
            DECL_CLONED_FUNCTION (thunk) = NULL_TREE;
            DECL_EXTERNAL (thunk) = 1;
      
      +     /* Make the thunk public unless it is for a destructor */
      +     if (!DECL_DESTRUCTOR_P (func_decl))
      +      TREE_PUBLIC (thunk) = 1;




here the hard way, in order to compile GCC on hp-ux 10.20.
Unfortunately I do not know, which options must be set, to minimize the size of the 
gcc binaries.

be sure that the following GNU programs will be used: 
# which as sed ld
/opt/binutils/bin/as        # GNU as Version 2.11.2
/opt/sed/bin/sed            # GNU Stream Editor Version 3.02
/usr/bin/ld                 # HP Link Loader


setenv CPPFLAGS "-D_HPUX_SOURCE"

gmake distclean
./configure --prefix=/opt/gcc-3.0.3 --disable-threads --enable-shared --with-gnu-as \
            --with-as=/opt/binutils/bin/as

gmake CFLAGS='-O2 -fomit-frame-pointer -march=2.0 -mschedule=8000 -mgas -s -pipe' \
LIBCFLAGS='-g -O2 -fomit-frame-pointer -march=2.0 -mschedule=8000 -mgas' \
LIBCXXFLAGS='-g -O2 -fomit-frame-pointer -fno-implicit-templates -march=2.0 
-mschedule=8000 -mgas' \
bootstrap-lean


size of the gcc binary: du -sk gcc-3.0.3 84,817 MB


abiword-0.99.1 compiles fine now

MG: Martin

>If anyone is able to compile AbiWord with gcc-3.0.* on Solaris or AIX or 
> HP/UX, please let me know. 


> Regards, Frank 


Francis James Franklin 
[EMAIL PROTECTED]

Reply via email to