NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

toolchain/45560: Unable to cross build HEAD kernel on MacOS X 10.7

>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:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Nov 03 11:15:00 +0000 2011
>Originator:     Radoslaw Kujawa
Darwin 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
I'm unable to cross build kernel since m68k ports were switched to GCC 4.5 (31 

Compilation fails with:

#    create  GENERIC/db_access.d
 /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/arch  -I/Users/rkujawa/repos/src/sys -nostdinc 
--- 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 <> 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 

This problem probably exist also for other architectures (is not 
- Install MacOS X 10.7
- Install XCode 4.1
- Check out NetBSD source dated 20111101 or newer
- Build tools: ./ -U -j2 -m amiga tools
- Try to build a kernel for amiga port: ./ -U -j2 -m amiga 
- Observe the error message

Workaround: specify HOST_CC and HOST_CXX variables to use old GCC 4.2 (non 

 ./ -m amiga -U -j2 -V HOST_CC=gcc-4.2 -V HOST_CXX=g++-4.2 tools

GCC bug: .

Proper fix not known. 

Home | Main Index | Thread Index | Old Index