NetBSD Problem Report #38053
From martin@duskware.de Mon Feb 18 14:48:24 2008
Return-Path: <martin@duskware.de>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by narn.NetBSD.org (Postfix) with ESMTP id 81D5463B293
for <gnats-bugs@gnats.netbsd.org>; Mon, 18 Feb 2008 14:48:24 +0000 (UTC)
Message-Id: <20080218144706.1E0F163B90D@narn.NetBSD.org>
Date: Mon, 18 Feb 2008 14:47:06 +0000 (UTC)
From: msporleder@gmail.com
Reply-To: msporleder@gmail.com
To: netbsd-bugs-owner@NetBSD.org
Subject: can't cross-build using xcode 3.0 on os x 10.5/ppc
X-Send-Pr-Version: www-1.0
>Number: 38053
>Category: toolchain
>Synopsis: can't cross-build using xcode 3.0 on os x 10.5/ppc
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: toolchain-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Feb 18 14:50:00 +0000 2008
>Closed-Date: Mon Aug 05 23:55:02 +0000 2019
>Last-Modified: Mon Aug 05 23:55:02 +0000 2019
>Originator: matthew sporleder
>Release: current
>Organization:
mspo.com
>Environment:
leopard/ppc
>Description:
The tools version of gcc refuses to build on osx/ppc due to:
/usr/include/ppc/_structs.h
/usr/include/mach/ppc/_structs.h
Which causes problems for
src/tools/gcc/../../gnu/dist/gcc4/gcc/config/rs6000/host-darwin.c
It seems that you can build the toolchain if you:
#def __DARWIN_UNIX03 0 in that file, but you end up with a non-working compiler.
I have also built tools with HOST_CFLAGS="-D__DARWIN_UNIX03=0" and gotten the tools to build, but I haven't managed to get a successful -current build with those tools yet. (I've only tried twice, so it may have been not building at the time)
The real problems seems to be that gcc detects __DARWIN_UNIX03, which uses some different definitions from _strcuts.h for rs6000 (whatever that is -- weird ibm arch?).
>How-To-Repeat:
build.sh -m i386 tools on leopard/ppc.
>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: maya@NetBSD.org
State-Changed-When: Mon, 05 Aug 2019 23:55:02 +0000
State-Changed-Why:
Stale bug report. It is possible to build with xcode currently AFAIK.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.