NetBSD Problem Report #49158

From ef@math.uni-bonn.de  Thu Aug 28 15:41:24 2014
Return-Path: <ef@math.uni-bonn.de>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 3B63CB6F2E
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 28 Aug 2014 15:41:24 +0000 (UTC)
Message-Id: <20140828154117.A11628430@gumme.math.uni-bonn.de>
Date: Thu, 28 Aug 2014 17:41:17 +0200 (CEST)
From: ef@math.uni-bonn.de
Reply-To: ef@math.uni-bonn.de
To: gnats-bugs@gnats.NetBSD.org
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:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Aug 28 15:45:00 +0000 2014
>Closed-Date:    Wed Sep 04 22:34:14 +0000 2019
>Last-Modified:  Wed Sep 04 22:34:14 +0000 2019
>Originator:     Edgar Fuß
>Release:        pkgsrc-2014Q2
>Organization:
Mathematisches Institut der Uni Bonn
>Environment:

>Description:
	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  \
		-DLIBGCC2_UNITS_PER_WORD=2
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__)
[...]
#else
#  error Unknown architecture
#endif


>How-To-Repeat:
	cd cross/avr && make build
>Fix:


>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: maya@NetBSD.org
State-Changed-When: Wed, 04 Sep 2019 22:34:14 +0000
State-Changed-Why:
You made two bug reports on the same package, closing the older one of the two.
Thanks for the reports.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(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.