NetBSD Problem Report #49158

From  Thu Aug 28 15:41:24 2014
Return-Path: <>
Received: from ( [])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "", Issuer "Postmaster" (verified OK))
	by (Postfix) with ESMTPS id 3B63CB6F2E
	for <>; Thu, 28 Aug 2014 15:41:24 +0000 (UTC)
Message-Id: <>
Date: Thu, 28 Aug 2014 17:41:17 +0200 (CEST)
Subject: cross/avr-gcc build problem
X-Send-Pr-Version: 3.95

>Number:         49158
>Category:       pkg
>Synopsis:       cross/avr-gcc build problem
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Aug 28 15:45:00 +0000 2014
>Originator:     Edgar Fuß
>Release:        pkgsrc-2014Q2
Mathematisches Institut der Uni Bonn
	Building cross/avr-gcc on Mac OS X 10.6.8 fails on libgcc.
	Apperantly, /usr/include/stddef.h is pulled in where I guess some
	target-relevant file should be instead:

# If this is the top-level multilib, build all the other
# multilibs.
[...]/cross/avr-gcc/work/obj/./gcc/xgcc -B[...]/cross/avr-gcc/work/obj/./gcc/ -B/usr/pkg/avr/bin/ -B/usr/pkg/avr/lib/ -isystem /usr/pkg/avr/include -isystem /usr/pkg/avr/sys-include    -g -I/usr/pkg/include -I/usr/include -mmcu=avr25 -O2  -g -I/usr/pkg/include -I/usr/include -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include  -DDF=SF -Dinhibit_libc -mcall-prologues -Os -g  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc  -I. -I. -I../../.././gcc -I[...]/cross/avr-gcc/work/gcc-4.5.3/libgcc -I[...]/cross/avr-gcc/work/gcc-4.5.3/libgcc/. -I[...]/cross/avr-gcc/work/gcc-4.5.3/libgcc/../gcc -I[...]/cross/avr-gcc/work/gcc-4.5.3/libgcc/../include  -DHAVE_CC_TLS -DUSE_EMUTLS -o _absvhi2.o -MT _absvhi2.o -MD -MP -MF _absvhi2.dep -DL_absvsi2 -c [...]/cross/avr-gcc/work/gcc-4.5.3/libgcc/../gcc/libgcc2.c  \
In file included from /usr/include/sys/_types.h:32:0,
                 from /usr/include/_types.h:27,
                 from /usr/include/stddef.h:69,
                 from [...]/cross/avr-gcc/work/gcc-4.5.3/libgcc/../gcc/tsystem.h:44,
                 from [...]/cross/avr-gcc/work/gcc-4.5.3/libgcc/../gcc/libgcc2.c:29:
/usr/include/sys/cdefs.h:507:4: error: #error Unknown architecture

	The relevant part of /usr/include/sys/cdefs.h reads
#if defined(__arm__)
#elif defined(__ppc__)
#elif defined(__i386__) || defined(__ppc64__) || defined(__x86_64__)
#  error Unknown architecture

	cd cross/avr && make build

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD:,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.