public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* gcc option behaving funny
@ 2001-06-29  5:04 Jan Mannekens
  2001-06-29 18:10 ` Benjamin P Myers
  2001-06-29 20:26 ` Alexandre Oliva
  0 siblings, 2 replies; 4+ messages in thread
From: Jan Mannekens @ 2001-06-29  5:04 UTC (permalink / raw)
  To: gcc-help

Hi all,

I'm using gcc version 2.95.3 and when linking I use the -pthread option.

On my Linux-PC I have no problem with that. When I build the same code
on our DEC Alpha XP900, I get:

gcc: unrecognized option '-pthread'

and the build is there. Now when I remove the -pthread option, I of
course get rid of the 'unrecognized option' message, but the linking
fails, not finding/resolving all pthread_...() calls.

I think I missed a configuration option when building the gcc suite.
Anyone who can help me out on this one?

Thanks in advance,

Jan Mannekens

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

* Re: gcc option behaving funny
  2001-06-29  5:04 gcc option behaving funny Jan Mannekens
@ 2001-06-29 18:10 ` Benjamin P Myers
  2001-06-29 20:26 ` Alexandre Oliva
  1 sibling, 0 replies; 4+ messages in thread
From: Benjamin P Myers @ 2001-06-29 18:10 UTC (permalink / raw)
  To: Jan Mannekens; +Cc: gcc-help

On Fri, 29 Jun 2001, Jan Mannekens wrote:
> I'm using gcc version 2.95.3 and when linking I use the -pthread option.
> 
> On my Linux-PC I have no problem with that. When I build the same code
> on our DEC Alpha XP900, I get:
> 
> gcc: unrecognized option '-pthread'
> 
> and the build is there. Now when I remove the -pthread option, I of
> course get rid of the 'unrecognized option' message, but the linking
> fails, not finding/resolving all pthread_...() calls.

I couldn't find anything about -pthread in the 2.95 info docs.  Is this
something new, or do you really mean '-lpthread'?


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

* Re: gcc option behaving funny
  2001-06-29  5:04 gcc option behaving funny Jan Mannekens
  2001-06-29 18:10 ` Benjamin P Myers
@ 2001-06-29 20:26 ` Alexandre Oliva
  1 sibling, 0 replies; 4+ messages in thread
From: Alexandre Oliva @ 2001-06-29 20:26 UTC (permalink / raw)
  To: Jan Mannekens; +Cc: gcc-help

On Jun 29, 2001, Jan Mannekens <Jan.Mannekens@alcatel.be> wrote:

> I'm using gcc version 2.95.3 and when linking I use the -pthread option.

> On my Linux-PC I have no problem with that. When I build the same code
> on our DEC Alpha XP900

Which operating system is this DEC Alpha running?  If it's GNU/Linux,
it should work just the same.  If it's some other OS, the spelling of
the option may be different.  On some systems, it's -pthreads; on
others, it's -mthread or -mthreads.  On others, you have to
-D_REENTRANT and -lpthread explicitly.  It all depends on the way the
native compiler works; GCC attempts to accept the same options, for
compatibility.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

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

* Re: gcc option behaving funny
@ 2001-07-02  4:40 Jan Mannekens
  0 siblings, 0 replies; 4+ messages in thread
From: Jan Mannekens @ 2001-07-02  4:40 UTC (permalink / raw)
  To: gcc-help

Problem solved,

In stead of using the -pthread option for linking I use now -threads and
everything seems to be OK.

Now we can start with the run-time problems on DEC. It seems as if
select() is acting rather different on DEC Alpha True64 than on Linux.
But those issues are more likely for another mailing-list.

Kind regards and thanks all for the help,

Jan Mannekens

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

end of thread, other threads:[~2001-07-02  4:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-29  5:04 gcc option behaving funny Jan Mannekens
2001-06-29 18:10 ` Benjamin P Myers
2001-06-29 20:26 ` Alexandre Oliva
2001-07-02  4:40 Jan Mannekens

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).