Trying to build compiler collection 4.1.1 on solaris 2.8. Have up to date
binutils, texinfo and make.  Perform the following:

./configure --prefix=/oh/appl/lib/gcc --exec-prefix=/oh/appl/lib/gcc

Then 

/oh/appl/lib/make/bin/make

The build eventually fails with the following:

/oh/appl/lib/gcc/gcc-4.1.1/host-sparc-sun-solaris2.8/gcc/xgcc
-B/oh/appl/lib/gcc/gcc-4.1.1/host-sparc-sun-solaris2.8/gcc/
-B/oh/appl/lib/gcc/sparc-sun-solaris2.8/bin/
-B/oh/appl/lib/gcc/sparc-sun-solaris2.8/lib/ -isystem
/oh/appl/lib/gcc/sparc-sun-solaris2.8/include -isystem
/oh/appl/lib/gcc/sparc-sun-solaris2.8/sys-include -O2  -O2 -g -O2   -DIN_GCC   
-W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition  -isystem ./include  -fPIC -g -DHAVE_GTHR_DEFAULT
-DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -shared -nodefaultlibs
-Wl,-h,libgcc_s.so.1 -Wl,-z,text -Wl,-z,defs -Wl,-M,libgcc/./libgcc.map -o
./libgcc_s.so.1.tmp  libgcc/./_muldi3_s.o libgcc/./_negdi2_s.o
libgcc/./_lshrdi3_s.o libgcc/./_ashldi3_s.o libgcc/./_ashrdi3_s.o
libgcc/./_cmpdi2_s.o libgcc/./_ucmpdi2_s.o libgcc/./_floatdidf_s.o
libgcc/./_floatdisf_s.o libgcc/./_fixunsdfsi_s.o libgcc/./_fixunssfsi_s.o
libgcc/./_fixunsdfdi_s.o libgcc/./_fixdfdi_s.o libgcc/./_fixunssfdi_s.o
libgcc/./_fixsfdi_s.o libgcc/./_fixxfdi_s.o libgcc/./_fixunsxfdi_s.o
libgcc/./_floatdixf_s.o libgcc/./_fixunsxfsi_s.o libgcc/./_fixtfdi_s.o
libgcc/./_fixunstfdi_s.o libgcc/./_floatditf_s.o libgcc/./_clear_cache_s.o
libgcc/./_enable_execute_stack_s.o libgcc/./_trampoline_s.o libgcc/./__main_s.o
libgcc/./_absvsi2_s.o libgcc/./_absvdi2_s.o libgcc/./_addvsi3_s.o
libgcc/./_addvdi3_s.o libgcc/./_subvsi3_s.o libgcc/./_subvdi3_s.o
libgcc/./_mulvsi3_s.o libgcc/./_mulvdi3_s.o libgcc/./_negvsi2_s.o
libgcc/./_negvdi2_s.o libgcc/./_ctors_s.o libgcc/./_ffssi2_s.o
libgcc/./_ffsdi2_s.o libgcc/./_clz_s.o libgcc/./_clzsi2_s.o
libgcc/./_clzdi2_s.o libgcc/./_ctzsi2_s.o libgcc/./_ctzdi2_s.o
libgcc/./_popcount_tab_s.o libgcc/./_popcountsi2_s.o libgcc/./_popcountdi2_s.o
libgcc/./_paritysi2_s.o libgcc/./_paritydi2_s.o libgcc/./_powisf2_s.o
libgcc/./_powidf2_s.o libgcc/./_powixf2_s.o libgcc/./_powitf2_s.o
libgcc/./_mulsc3_s.o libgcc/./_muldc3_s.o libgcc/./_mulxc3_s.o
libgcc/./_multc3_s.o libgcc/./_divsc3_s.o libgcc/./_divdc3_s.o
libgcc/./_divxc3_s.o libgcc/./_divtc3_s.o libgcc/./_divdi3_s.o
libgcc/./_moddi3_s.o libgcc/./_udivdi3_s.o libgcc/./_umoddi3_s.o
libgcc/./_udiv_w_sdiv_s.o libgcc/./_udivmoddi4_s.o libgcc/./unwind-dw2_s.o
libgcc/./unwind-dw2-fde_s.o libgcc/./unwind-sjlj_s.o libgcc/./gthr-gnat_s.o
libgcc/./unwind-c_s.o -lc && rm -f ./libgcc_s.so && if [ -f ./libgcc_s.so.1 ];
then mv -f ./libgcc_s.so.1 ./libgcc_s.so.1.backup; else true; fi && mv
./libgcc_s.so.1.tmp ./libgcc_s.so.1 && ln -s libgcc_s.so.1 ./libgcc_s.so
/oh/appl/lib/binutils/bin/ld:libgcc/./libgcc.map: file format not recognized;
treating as linker script
/oh/appl/lib/binutils/bin/ld:libgcc/./libgcc.map:1: syntax error
collect2: ld returned 1 exit status


content of libgcc.map is:

smpd333>cat ./host-sparc-sun-solaris2.8/gcc/libgcc/libgcc.map
GCC_3.0 {
  global:
        _Unwind_ForcedUnwind;
        __muldi3;
        __ashrdi3;
        __negvsi2;
        __subvdi3;
        __addvdi3;
        __clear_cache;
        __subvsi3;
        __addvsi3;
        __register_frame_info_table_bases;
        __ucmpdi2;
        _Unwind_GetGR;
        __fixunsdfdi;
        __ashldi3;
        __udivdi3;
        __deregister_frame_info;
        __negdi2;
        __deregister_frame_info_bases;
        __ffsdi2;
        __floatdidf;
        __register_frame_info;
        __fixdfdi;
        __cmpdi2;
        __register_frame_table;
        _Unwind_RaiseException;
        __divdi3;
        __lshrdi3;
        _Unwind_SetGR;
        __umoddi3;
        _Unwind_Resume;
        __fixunstfdi;
        _Unwind_GetIP;
        __fixunsdfsi;
        __fixunssfdi;
        __absvdi2;
        __mulvdi3;
        __fixtfdi;
        __floatdisf;
        __absvsi2;
        __mulvsi3;
        __moddi3;
        __fixsfdi;
        __register_frame_info_bases;
        _Unwind_GetDataRelBase;
        _Unwind_GetRegionStart;
        __deregister_frame;
        _Unwind_SetIP;
        _Unwind_GetLanguageSpecificData;
        __floatditf;
        _Unwind_DeleteException;
        __register_frame;
        __udivmoddi4;
        __fixunssfsi;
        _Unwind_Find_FDE;
        __negvdi2;
        __register_frame_info_table;
        _Unwind_GetTextRelBase;

  local:
        *;
};
GCC_3.3 {
  global:
        _Unwind_GetCFA;
        _Unwind_Resume_or_Rethrow;
        _Unwind_Backtrace;
        _Unwind_FindEnclosingFunction;
} GCC_3.0;
GCC_3.3.1 {
  global:
        __gcc_personality_v0;
} GCC_3.3;
GCC_3.4 {
  global:
        __ctzdi2;
        __ctzsi2;
        __clzdi2;
        __paritydi2;
        __clzsi2;
        __paritysi2;
        __popcountdi2;
        __popcountsi2;
} GCC_3.3.1;
GCC_3.4.2 {
  global:
        __enable_execute_stack;
} GCC_3.4;
GCC_4.0.0 {
  global:
        __muldc3;
        __mulsc3;
        __divtc3;
        __powitf2;
        __divdc3;
        __powidf2;
        __divsc3;
        __powisf2;
        __multc3;
} GCC_3.4.2;


-- 
           Summary: Problem building 4.1.1 on Solaris 2.8
           Product: gcc
           Version: 4.1.1
            Status: UNCONFIRMED
          Severity: blocker
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: cmd at conyboro dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29769

Reply via email to