From owner-freebsd-sparc64@FreeBSD.ORG Sun Nov 14 13:50:27 2004 Return-Path: Delivered-To: freebsd-sparc64@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1A5F016A4D1 for ; Sun, 14 Nov 2004 13:50:27 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id DCD0B43D53 for ; Sun, 14 Nov 2004 13:50:26 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) iAEDoQXl064176 for ; Sun, 14 Nov 2004 13:50:26 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id iAEDoQjA064173; Sun, 14 Nov 2004 13:50:26 GMT (envelope-from gnats) Resent-Date: Sun, 14 Nov 2004 13:50:26 GMT Resent-Message-Id: <200411141350.iAEDoQjA064173@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-sparc64@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Tim Bishop Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 57CF516A4CE for ; Sun, 14 Nov 2004 13:43:40 +0000 (GMT) Received: from overlord.sixth.bishnet.net (pathfinder.sixth.bishnet.net [82.68.45.198]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5511F43D4C for ; Sun, 14 Nov 2004 13:43:39 +0000 (GMT) (envelope-from tdb@overlord.sixth.bishnet.net) Received: from overlord.sixth.bishnet.net (localhost [127.0.0.1]) iAEEJdWZ088842; Sun, 14 Nov 2004 14:19:39 GMT (envelope-from tdb@overlord.sixth.bishnet.net) Received: (from tdb@localhost)iAEEJcXC088836; Sun, 14 Nov 2004 14:19:38 GMT (envelope-from tdb) Message-Id: <200411141419.iAEEJcXC088836@overlord.sixth.bishnet.net> Date: Sun, 14 Nov 2004 14:19:38 GMT From: Tim Bishop To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 cc: tim@bishnet.net Subject: sparc64/73933: Compiling with -mcpu fails on code including sys/user.h X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Tim Bishop List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Nov 2004 13:50:27 -0000 >Number: 73933 >Category: sparc64 >Synopsis: Compiling with -mcpu fails on code including sys/user.h >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-sparc64 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Nov 14 13:50:26 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Tim Bishop >Release: FreeBSD 5.3-RELEASE sparc64 >Organization: >Environment: System: FreeBSD overlord.sixth.bishnet.net 5.3-RELEASE FreeBSD 5.3-RELEASE #2: Sun Nov 14 08:21:30 GMT 2004 tdb@overlord.sixth.bishnet.net:/usr/obj/usr/src/sys/OVERLORD sparc64 Not yet compiled with a 64bit time_t. >Description: If I optimise for my ultrasparc 2 processor by using the compile option: -mcpu=ultrasparc I get the following build failure: /usr/include/sys/user.h:105:2: #error "Unknown architecture" >How-To-Repeat: Simple code to demonstrate this: #include #include #include int main() { printf("Hello World\n"); return 0; } Testing compiling normally and with -mcpu: gcc -Wall -o hello hello.c gcc -Wall -mcpu=ultrasparc -o hello2 hello.c In file included from hello.c:3: /usr/include/sys/user.h:105:2: #error "Unknown architecture" The first compile worked fine, and the second failed. >Fix: Unsure. There's some tests in user.h which are all failing. Maybe another case needs to be added? >Release-Note: >Audit-Trail: >Unformatted: