NetBSD Problem Report #45560
From www@NetBSD.org Thu Nov 3 11:12:22 2011
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id 774F163C75A
for <gnats-bugs@gnats.NetBSD.org>; Thu, 3 Nov 2011 11:12:22 +0000 (UTC)
Message-Id: <20111103111221.C4C9663BC6B@www.NetBSD.org>
Date: Thu, 3 Nov 2011 11:12:21 +0000 (UTC)
From: rkujawa@NetBSD.org
Reply-To: rkujawa@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: Unable to cross build HEAD kernel on MacOS X 10.7
X-Send-Pr-Version: www-1.0
>Number: 45560
>Category: toolchain
>Synopsis: Unable to cross build HEAD kernel on MacOS X 10.7
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: toolchain-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Nov 03 11:15:00 +0000 2011
>Closed-Date: Tue Apr 01 00:59:30 +0000 2025
>Last-Modified: Tue Apr 01 00:59:30 +0000 2025
>Originator: Radoslaw Kujawa
>Release:
>Organization:
>Environment:
Darwin saiko.home.c0ff33.net 11.2.0 Darwin Kernel Version 11.2.0: Tue Aug 9 20:54:00 PDT 2011; root:xnu-1699.24.8~1/RELEASE_X86_64 x86_64
>Description:
I'm unable to cross build kernel since m68k ports were switched to GCC 4.5 (31 october).
Compilation fails with:
# create GENERIC/db_access.d
CC=/Users/rkujawa/repos/src/obj/tooldir.Darwin-11.2.0-x86_64/bin/m68k--netbsdelf-gcc /Users/rkujawa/repos/src/obj/tooldir.Darwin-11.2.0-x86_64/bin/nbmkdep -f db_access.d -- -m68020-60 -Wa,-m68030 -Wa,-m68851 -msoft-float -ffreestanding -fno-zero-initialized-in-bss -O2 -fno-strict-aliasing -std=gnu99 -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wno-unreachable-code -Wno-pointer-sign -Wno-attributes -Wno-sign-compare --sysroot=/Users/rkujawa/repos/src/obj/destdir.amiga -Damiga -DFPCOPROC -I. -I/Users/rkujawa/repos/src/sys/../common/include -I/Users/rkujawa/repos/src/sys/arch -I/Users/rkujawa/repos/src/sys -nostdinc -DDRACO -DMAXUSERS=8 -D_KERNEL -D_KERNEL_OPT -std=gnu99 -I/Users/rkujawa/repos/src/sys/lib/libkern/../../../common/lib/libc/quad -I/Users/rkujawa/repos/src/sys/lib/libkern/../../../common/lib/libc/string -I/Users/rkujawa/repos/src/sys/lib/libkern/../.
./../common/lib/libc/arch/m68k/string -I/Users/rkujawa/repos/src/sys/dist/ipf /Users/rkujawa/repos/src/sys/ddb/db_access.c
--- assym.h ---
/tmp/genassym.99980/assym.c:132:1: internal compiler error: in execute_ipa_pass_list, at passes.c:1800
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://www.NetBSD.org/Misc/send-pr.html> for instructions.
*** [assym.h] Error code 1
nbmake: stopped in /Users/rkujawa/repos/src/sys/arch/amiga/compile/obj/GENERIC
1 error
nbmake: stopped in /Users/rkujawa/repos/src/sys/arch/amiga/compile/obj/GENERIC
ERROR: Failed to make depend in "/Users/rkujawa/repos/src/sys/arch/amiga/compile/obj/GENERIC"
*** BUILD ABORTED ***
This problem probably exist also for other architectures (is not m68k-specific).
>How-To-Repeat:
- Install MacOS X 10.7
- Install XCode 4.1
- Check out NetBSD source dated 20111101 or newer
- Build tools: ./build.sh -U -j2 -m amiga tools
- Try to build a kernel for amiga port: ./build.sh -U -j2 -m amiga kernel=GENERIC
- Observe the error message
>Fix:
Workaround: specify HOST_CC and HOST_CXX variables to use old GCC 4.2 (non clang/llvm):
./build.sh -m amiga -U -j2 -V HOST_CC=gcc-4.2 -V HOST_CXX=g++-4.2 tools
GCC bug: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49656 .
Proper fix not known.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: riastradh@NetBSD.org
State-Changed-When: Tue, 01 Apr 2025 00:59:30 +0000
State-Changed-Why:
This has probably been fixed in the slew of toolchain updates all
around since 2011. Please reopen if it's still an issue, though!
>Unformatted:
(Contact us)
$NetBSD: gnats-precook-prs,v 1.6 2023/01/12 22:02:29 jakllsch Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2023
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.