comp.lang.ada
 help / color / mirror / Atom feed
* Solaris 9 and florist
@ 2004-06-23 12:44 Adrian Hoe
  2004-06-23 22:08 ` Frode Tennebø
  0 siblings, 1 reply; 6+ messages in thread
From: Adrian Hoe @ 2004-06-23 12:44 UTC (permalink / raw)


Hi,

I need to use florist for my next development on Sun SB150 running
Solaris 9 and gcc/gnat 3.3.2. I bootstrap gcc 3.3.2 sometime ago.

I downloaded florist from both source forge and ACT websites. My
application compile with them will not run. Segmentation fault (core
dumped) error waas displayed.

http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&threadm=3FAB1C53.5080007%40nowhere.com&rnum=1&prev=/groups%3Fhl%3Den%26lr%3D%26ie%3DUTF-8%26q%3Dadrian%2Bhoe%2Bsegmentation%2Bfault%26btnG%3DSearch%26meta%3Dgroup%253Dcomp.lang.ada

According to my post threads above, it looks like the problem is
because of Solaris 9. Could someone confirm this?

Has anyone have successful use of florist on Sparc Solaris 8? Which
version of gcc and gnat and florist are used?

Thanks and best regards,
--
Adrian Hoe
m a i l b o x _AT_ a d r i a n h o e * c o m



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Solaris 9 and florist
  2004-06-23 12:44 Solaris 9 and florist Adrian Hoe
@ 2004-06-23 22:08 ` Frode Tennebø
  2004-06-24 10:29   ` Adrian Hoe
  0 siblings, 1 reply; 6+ messages in thread
From: Frode Tennebø @ 2004-06-23 22:08 UTC (permalink / raw)


On Wednesday 23 June 2004 14:44 Adrian Hoe wrote:

> Has anyone have successful use of florist on Sparc Solaris 8? Which
> version of gcc and gnat and florist are used?

Yes. 3.13p on both Solaris 8 and 9.

 -Frode

-- 
^ Frode Tenneb� | email: frode@tennebo.com | Frode@IRC ^
|  with Standard.Disclaimer; use Standard.Disclaimer;  |



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Solaris 9 and florist
  2004-06-23 22:08 ` Frode Tennebø
@ 2004-06-24 10:29   ` Adrian Hoe
  2004-06-25 13:29     ` Frode Tennebø
  0 siblings, 1 reply; 6+ messages in thread
From: Adrian Hoe @ 2004-06-24 10:29 UTC (permalink / raw)


Frode Tenneb� <frode@tennebo.com> wrote in message news:<71vcbc.441.ln@leia>...
> On Wednesday 23 June 2004 14:44 Adrian Hoe wrote:
> 
> > Has anyone have successful use of florist on Sparc Solaris 8? Which
> > version of gcc and gnat and florist are used?
> 
> Yes. 3.13p on both Solaris 8 and 9.
> 
>  -Frode


The same "Segementation fault (core dumped)" error was displayed using 3.13p.

My configuration is as below:
Sparc Solaris 9
gcc-2.95.3
gnat-3.13p
florist-3.13p

I tried with gcc-3.3.2, the same error happens.

What could possible be wrong here?

Should I switch back to Solaris 8?

Thanks.
--
Adrian Hoe



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Solaris 9 and florist
  2004-06-24 10:29   ` Adrian Hoe
@ 2004-06-25 13:29     ` Frode Tennebø
  2004-06-27  2:21       ` Adrian Hoe
  0 siblings, 1 reply; 6+ messages in thread
From: Frode Tennebø @ 2004-06-25 13:29 UTC (permalink / raw)


On Thursday 24 June 2004 12:29 Adrian Hoe wrote:

> Frode Tenneb� <frode@tennebo.com> wrote in message
> news:<71vcbc.441.ln@leia>...
>> On Wednesday 23 June 2004 14:44 Adrian Hoe wrote:
>> 
>> > Has anyone have successful use of florist on Sparc Solaris 8? Which
>> > version of gcc and gnat and florist are used?
>> 
>> Yes. 3.13p on both Solaris 8 and 9.
>> 
>>  -Frode
> 
> 
> The same "Segementation fault (core dumped)" error was displayed using
> 3.13p.
> 
> My configuration is as below:
> Sparc Solaris 9
> gcc-2.95.3
> gnat-3.13p

gnat 3.13p uses gcc 2.8.1 - you haven't mixed anything up with libraries
or other dependencies?

> I tried with gcc-3.3.2, the same error happens.
> 
> What could possible be wrong here?
> 
> Should I switch back to Solaris 8?

You are using tasks and the tasking in gnat (at least for 3.13p) uses a
undocumented method for accessing some thread information in Solaris.
This broke for Solaris 9.

I did a Makefile 'hack' when compiling GNAT which replaces one file in
the task implementation and this has worked for me. However, the
details of this fix escapes me, but I have it at work. However, I just
went on vacation for two weeks. I can look it up for you if that's soon
enough.

 -Frode

-- 
^ Frode Tenneb� | email: frode@tennebo.com | Frode@IRC ^
|  with Standard.Disclaimer; use Standard.Disclaimer;  |



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Solaris 9 and florist
  2004-06-25 13:29     ` Frode Tennebø
@ 2004-06-27  2:21       ` Adrian Hoe
  2004-07-14 13:39         ` Frode Tenneboe
  0 siblings, 1 reply; 6+ messages in thread
From: Adrian Hoe @ 2004-06-27  2:21 UTC (permalink / raw)


Frode Tenneb� <frode@tennebo.com> wrote in message news:<lb9hbc.gm6.ln@leia>...

> gnat 3.13p uses gcc 2.8.1 - you haven't mixed anything up with libraries
> or other dependencies?

I used 2.95.3 and I believe I had a clean installation.


> > I tried with gcc-3.3.2, the same error happens.
> > 
> > What could possible be wrong here?
> > 
> > Should I switch back to Solaris 8?
> 
> You are using tasks and the tasking in gnat (at least for 3.13p) uses a
> undocumented method for accessing some thread information in Solaris.
> This broke for Solaris 9.
> 
> I did a Makefile 'hack' when compiling GNAT which replaces one file in
> the task implementation and this has worked for me. However, the
> details of this fix escapes me, but I have it at work. However, I just
> went on vacation for two weeks. I can look it up for you if that's soon
> enough.

Do I have to compile gnat again? I would love to have that when you
come back from vacation.

Does anybody know if Solaris 10 have no such problem as S9?

Thanks.
--
Adrian Hoe
m a i l b o x _AT_ a d r i a n * c o m



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Solaris 9 and florist
  2004-06-27  2:21       ` Adrian Hoe
@ 2004-07-14 13:39         ` Frode Tenneboe
  0 siblings, 0 replies; 6+ messages in thread
From: Frode Tenneboe @ 2004-07-14 13:39 UTC (permalink / raw)


Adrian Hoe <byhoe@greenlime.com> wrote:
> Frode Tenneb� <frode@tennebo.com> wrote in message news:<lb9hbc.gm6.ln@leia>...

>> gnat 3.13p uses gcc 2.8.1 - you haven't mixed anything up with libraries
>> or other dependencies?

> I used 2.95.3 and I believe I had a clean installation.

Hmmm......the gcc patch for 3.13p is explicedly for 2.8.1.

> Do I have to compile gnat again? I would love to have that when you
> come back from vacation.

[ft@garvin 3.13p]$ diff -Naur gcc-2.8.1/ada/Makefile.in gnat-3.13p-src/src/ada/Makefile.in | less
--- gcc-2.8.1/ada/Makefile.in   2003-06-19 11:54:55.145121000 +0200
+++ gnat-3.13p-src/src/ada/Makefile.in  2000-07-19 21:08:56.000000000 +0200
@@ -865,7 +865,7 @@
   s-tasinf.adb<5stasinf.adb \
   s-tasinf.ads<5stasinf.ads \
   s-taspri.ads<5staspri.ads \
-  s-tpopse.adb<5etpopse.adb \
+  s-tpopse.adb<5stpopse.adb \
   system.ads<5ssystem.ads
 
   threadslib=posix4 -lthread

This is the patch which is needed for the makefile. It's better to do
this from a fresh bundle. You need to configure and make the whole lot again.

> Does anybody know if Solaris 10 have no such problem as S9?

Since 10 uses the same tasking as 9 that's my guess.

 -Frode

-- 
^ Frode Tenneb�               | email: Frode.Tennebo@ericsson.com ^
| Ericsson AS., N-1788 Halden | Phone: +47 67 25 09 39            |
| with Standard.Disclaimer; use Standard.Disclaimer;              |



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-07-14 13:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-23 12:44 Solaris 9 and florist Adrian Hoe
2004-06-23 22:08 ` Frode Tennebø
2004-06-24 10:29   ` Adrian Hoe
2004-06-25 13:29     ` Frode Tennebø
2004-06-27  2:21       ` Adrian Hoe
2004-07-14 13:39         ` Frode Tenneboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox