NetBSD Problem Report #46204

From www@NetBSD.org  Fri Mar 16 01:47:57 2012
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	by www.NetBSD.org (Postfix) with ESMTP id BFC0563E0EE
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 16 Mar 2012 01:47:57 +0000 (UTC)
Message-Id: <20120316014756.A604D63B946@www.NetBSD.org>
Date: Fri, 16 Mar 2012 01:47:56 +0000 (UTC)
From: alnsn@yandex.ru
Reply-To: alnsn@yandex.ru
To: gnats-bugs@NetBSD.org
Subject: Cross compiling amd64 tools on arm linux fails
X-Send-Pr-Version: www-1.0

>Number:         46204
>Category:       toolchain
>Synopsis:       Cross compiling amd64 tools on arm linux fails
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    toolchain-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Mar 16 01:50:00 +0000 2012
>Closed-Date:    Mon Sep 02 15:11:34 +0000 2019
>Last-Modified:  Mon Sep 02 15:11:34 +0000 2019
>Originator:     Alexander Nasonov
>Release:        recent -current
>Organization:
home sweet home
>Environment:
Linux magr 2.6.38-1000-ac100 #1-Ubuntu SMP PREEMPT Mon Sep 26 20:05:34 UTC 2011 armv7l armv7l armv7l GNU/Linux
>Description:
Cross compiling of evbarm and i386 tools succeeds but amd64 tools can't be build on Ubuntu/arm.
>How-To-Repeat:
$ ./build.sh -U -m and64 tools
...
checking for inttypes.h... no
checking for stdint.h... no
checking for unistd.h... no
checking for dlfcn.h... no
checking for objdir... .libs
checking if cc  -mfloat-abi=hard supports -fno-rtti -fno-exceptions... no
checking for cc  -mfloat-abi=hard option to produce PIC... -fPIC -DPIC
checking if cc  -mfloat-abi=hard PIC flag -fPIC -DPIC works... yes
checking if cc  -mfloat-abi=hard static flag -static works... no
checking if cc  -mfloat-abi=hard supports -c -o file.o... yes
checking if cc  -mfloat-abi=hard supports -c -o file.o... (cached) yes
checking whether the cc  -mfloat-abi=hard linker (ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES.
nbgmake: *** [configure-zlib] Error 1

*** Failed target:  .build_done  
*** Failed command: (cd build && /usr/bin/env -i gcc_cv_libc_provides_ssp=yes gcc_cv_as_sparc_gotdata_op=no AR=ar
 AWK=/home/alnsn/netbsd-current/src/obj/tooldir.Linux-2.6.38-1000-ac100-armv7l/bin/nbawk CC=cc CFLAGS=-O CPPFLAGS
= CXX=c++ CXXFLAGS=-O INSTALL=/home/alnsn/netbsd-current/src/obj/tooldir.Linux-2.6.38-1000-ac100-armv7l/bin/x86_6
4--netbsd-install\ -c\ \ -r LDFLAGS= LEX=/home/alnsn/netbsd-current/src/obj/tooldir.Linux-2.6.38-1000-ac100-armv7
l/bin/nblex M4=/home/alnsn/netbsd-current/src/obj/tooldir.Linux-2.6.38-1000-ac100-armv7l/bin/nbm4 MAKE=/home/alns
n/netbsd-current/src/obj/tooldir.Linux-2.6.38-1000-ac100-armv7l/bin/nbgmake PATH="/home/alnsn/netbsd-current/src/
obj/tooldir.Linux-2.6.38-1000-ac100-armv7l/bin:$PATH" RANLIB=ranlib YACC=/home/alnsn/netbsd-current/src/obj/toold
ir.Linux-2.6.38-1000-ac100-armv7l/bin/nbyacc MACHINE= MAKEINFO=/home/alnsn/netbsd-current/src/obj/tooldir.Linux-2
.6.38-1000-ac100-armv7l/bin/nbmakeinfo LIBGCC= LIBGCC1= LIBGCC1_TEST= LIBGCC2= INSTALL_LIBGCC= EXTRA_PARTS= CPPFL
AGS=-DNETBSD_TOOLS\ -DTARGET_SYSTEM_ROOT=0\ \ -DTARGET_SYSTEM_ROOT_RELOCATABLE AR=ar RANLIB=ranlib BISON=true DES
TDIR= INSTALL=/home/alnsn/netbsd-current/src/obj/tooldir.Linux-2.6.38-1000-ac100-armv7l/bin/x86_64--netbsd-install\ -c\ \ -r /home/alnsn/netbsd-current/src/obj/tooldir.Linux-2.6.38-1000-ac100-armv7l/bin/nbgmake -e MACHINE= MAKEINFO=/home/alnsn/netbsd-current/src/obj/tooldir.Linux-2.6.38-1000-ac100-armv7l/bin/nbmakeinfo LIBGCC= LIBGCC1= LIBGCC1_TEST= LIBGCC2= INSTALL_LIBGCC= EXTRA_PARTS= CPPFLAGS=-DNETBSD_TOOLS\ -DTARGET_SYSTEM_ROOT=0\ \ -DTARGET_SYSTEM_ROOT_RELOCATABLE AR=ar RANLIB=ranlib BISON=true DESTDIR= INSTALL=/home/alnsn/netbsd-current/src/obj/tooldir.Linux-2.6.38-1000-ac100-armv7l/bin/x86_64--netbsd-install\ -c\ \ -r all-gcc)

>Fix:

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: maya@NetBSD.org
State-Changed-When: Mon, 02 Sep 2019 15:11:34 +0000
State-Changed-Why:
closing 2012 build issue due to staleness.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.