From nobody@FreeBSD.org  Sun Feb  4 01:50:18 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id CA3A937B401
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  4 Feb 2001 01:50:14 -0800 (PST)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.1/8.11.1) id f149oEq95700;
	Sun, 4 Feb 2001 01:50:14 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200102040950.f149oEq95700@freefall.freebsd.org>
Date: Sun, 4 Feb 2001 01:50:14 -0800 (PST)
From: jml@cubical.fi
To: freebsd-gnats-submit@FreeBSD.org
Subject: gcc does not recognize -kthread
X-Send-Pr-Version: www-1.0

>Number:         24843
>Category:       gnu
>Synopsis:       gcc does not recognize -kthread
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Feb 04 02:00:05 PST 2001
>Closed-Date:    Mon May 28 12:45:59 PDT 2001
>Last-Modified:  Mon May 28 12:47:49 PDT 2001
>Originator:     Juha-Matti Liukkonen
>Release:        4.2-RELEASE
>Organization:
Cubical Solutions Ltd
>Environment:
FreeBSD snafu.intra.net 4.2-RELEASE FreeBSD 4.2-RELEASE #0: Sat Feb  3 20:12:33 EET 2001
     root@:/usr/src/sys/compile/SERVER  i386

>Description:
cc, gcc or ld do not recognize the -kthread option. This leads to use
of wrong libgcc.a when linking software against linuxthreads (and of
course invalidates existing makefiles, making 4.2 a non-workable
development platform for someone using linuxthreads).

>How-To-Repeat:
snafu:~$ cc --version
2.95.2
snafu:~$ cc -kthread
cc: unrecognized option `-kthread'
cc: No input files specified
snafu:~$ gcc -kthread
gcc: unrecognized option `-kthread'
gcc: No input files specified
snafu:~$ ld -kthread
/usr/libexec/elf/ld: unrecognized option `-kthread'
/usr/libexec/elf/ld: use the --help option for usage information

>Fix:
Recompile the tools with correct options, or use binaries from
4.1-RELEASE.


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: jasone 
State-Changed-When: Mon May 28 12:45:59 PDT 2001 
State-Changed-Why:  
The -kthread link flag was purposely removed, since linuxthreads is not 
part of the base system.  There are explicit instructions that come with 
the linuxthreads port that explain how to link with linuxthreads. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=24843 
>Unformatted:
