This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: 4.7.1 on Solaris 10: ld: fatal: relocations remain against allocatable but non-writable sections


----- Original Message -----
From: Tom Christensen <tgc@jupiterrise.com>
Date: Thursday, June 21, 2012 1:34 am
Subject: Re: 4.7.1 on Solaris 10: ld: fatal: relocations remain against allocatable but non-writable sections
To: Dennis Clarke <dclarke@blastwave.org>
Cc: gcc-help@gcc.gnu.org


> On 06/20/2012 08:12 PM, Dennis Clarke wrote:
> > this is where I stand on Solaris 8 i386 :
> > http://gcc.gnu.org/ml/gcc-testresults/2012-06/msg01790.html
> >
> No mention of any patches?

Well this was my first pass where I edited the necessary files by
hand and tested to see if I get a valid build. I totally ignored 
the parts for win32 platforms and thus this is a very stilted 
hacked patch. 

# diff ./libada/Makefile.in ./libada/Makefile.in_backup
57c57
< GNATLIBCFLAGS_FOR_C = -W -Wall $(GNATLIBCFLAGS) $(PICFLAG) \
---
> GNATLIBCFLAGS_FOR_C = -W -Wall $(GNATLIBCFLAGS) \


and this one : 

 
# diff ./gcc/ada/gcc-interface/Makefile.in ./gcc/ada/gcc-interface/Makefile.in_backup
118c118
< GNATLIBCFLAGS_FOR_C = -W -Wall $(GNATLIBCFLAGS) $(PICFLAG_FOR_TARGET) \
---
> GNATLIBCFLAGS_FOR_C = -W -Wall $(GNATLIBCFLAGS) \
2646c2646
<            GNATLIBCFLAGS="$(GNATLIBCFLAGS)" $(PICFLAG_FOR_TARGET)" \
---
>            GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \


Seemed to be the absolute minimal effort required and minimal changes
to achieve the result. 

> > How are your tests going ?
> >
> http://gcc.gnu.org/ml/gcc-testresults/2012-06/msg01781.html
> 
> Seems about the same as 4.7.0 for this host.

Any issues with install ? 

When I run make install I get this foo : 

.
.
.
gmake ada/doctools/xgnatugn
gmake[3]: Entering directory `/opt/bw/src/gcc-4.7.1-SunOS5.8-i386/gcc'
mkdir -p ada/doctools
cp -p ../../gcc-4.7.1/gcc/ada/xgnatugn.adb ada/doctools
cd ada/doctools && gnatmake -q xgnatugn
gnatmake: "xgnatugn.ali" incompatible ALI file, please recompile
gnatmake: "xgnatugn.adb" compilation error
gmake[3]: *** [ada/doctools/xgnatugn] Error 4
gmake[3]: Leaving directory `/opt/bw/src/gcc-4.7.1-SunOS5.8-i386/gcc'
gmake[2]: *** [doc/projects.texi] Error 2
gmake[2]: Leaving directory `/opt/bw/src/gcc-4.7.1-SunOS5.8-i386/gcc'
gmake[1]: *** [install-gcc] Error 2
gmake[1]: Leaving directory `/opt/bw/src/gcc-4.7.1-SunOS5.8-i386'
gmake: *** [install] Error 2
# 


That annoys the heck out of me as the build looks good but can not
be installed due to a problem with gnat.  I may toss ada over my shoulders
and march forwards regardless. 

Dennis 



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]