From owner-freebsd-bugs@FreeBSD.ORG Tue Apr 15 08:30:14 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F07C137B401 for ; Tue, 15 Apr 2003 08:30:13 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 863E143FDD for ; Tue, 15 Apr 2003 08:30:12 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h3FFUCUp037686 for ; Tue, 15 Apr 2003 08:30:12 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h3FFUCau037685; Tue, 15 Apr 2003 08:30:12 -0700 (PDT) Resent-Date: Tue, 15 Apr 2003 08:30:12 -0700 (PDT) Resent-Message-Id: <200304151530.h3FFUCau037685@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Eugene Grosbein Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5520B37B404; Tue, 15 Apr 2003 08:21:38 -0700 (PDT) Received: from grosbein.pp.ru (www2.svzserv.kemerovo.su [213.184.65.86]) by mx1.FreeBSD.org (Postfix) with ESMTP id BB96643FB1; Tue, 15 Apr 2003 08:21:17 -0700 (PDT) (envelope-from eugen@grosbein.pp.ru) Received: from grosbein.pp.ru (smmsp@localhost [127.0.0.1]) by grosbein.pp.ru (8.12.9/8.12.7) with ESMTP id h3FFKHEc034867; Tue, 15 Apr 2003 23:20:17 +0800 (KRAST) (envelope-from eugen@grosbein.pp.ru) Received: (from eugen@localhost) by grosbein.pp.ru (8.12.9/8.12.9/Submit) id h3FFGDL4034790; Tue, 15 Apr 2003 23:16:13 +0800 (KRAST) Message-Id: <200304151516.h3FFGDL4034790@grosbein.pp.ru> Date: Tue, 15 Apr 2003 23:16:13 +0800 (KRAST) From: Eugene Grosbein To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 cc: ru@FreeBSD.org Subject: misc/50994: miniperl is linked with system libraries that breaks cross-build X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Eugene Grosbein List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Apr 2003 15:30:14 -0000 >Number: 50994 >Category: misc >Synopsis: miniperl is linked with system libraries that breaks cross-build >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Apr 15 08:30:11 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Eugene Grosbein >Release: FreeBSD 4.8-STABLE i386 >Organization: Svyaz Service JSC >Environment: System: FreeBSD grosbein.pp.ru 4.8-STABLE FreeBSD 4.8-STABLE #3: Sun Apr 6 23:20:11 KRAST 2003 eu@grosbein.pp.ru:/usr/local/obj/usr/local/src/sys/DADV i386 >Description: I've build a world for i586 using a power build machine (its world itself is optimised for i686). miniperl is statically linked with system binaries. Here is link command in my case (long line is broken here): cc -O -pipe -march=pentiumpro -I/usr/local/src/gnu/usr.bin/perl/miniperl -I/usr/local/src/gnu/usr.bin/perl/miniperl/../../../../contrib/perl5 -L/usr/local/src/gnu/usr.bin/perl/miniperl/../libperl -static -o miniperl miniperlmain.o perl.o gv.o toke.o perly.o op.o regcomp.o dump.o util.o mg.o hv.o av.o run.o pp_hot.o sv.o pp.o scope.o pp_ctl.o pp_sys.o doop.o doio.o regexec.o taint.o universal.o globals.o perlio.o -lm -lcrypt miniperl crashes with SIGILL later when i586 tries to run installworld from NFS-mounted src and obj. >How-To-Repeat: Make build machine with world optimized for i686. Make world for i586. Try to install it using i586 from NFS. Here are last lines from installworld (cut-n-paste): ===> gnu/usr.bin/perl/library/B Illegal instruction *** Error code 132 Stop in /usr/local/obj/usr/local/src/gnu/usr.bin/perl/library/B/ext/B. *** Error code 1 Stop in /usr/local/src/gnu/usr.bin/perl/library/B. *** Error code 1 Stop in /usr/local/src/gnu/usr.bin/perl/library. *** Error code 1 Stop in /usr/local/src/gnu/usr.bin/perl. *** Error code 1 Stop in /usr/local/src/gnu/usr.bin. *** Error code 1 Stop in /usr/local/src/gnu. *** Error code 1 Stop in /usr/local/src. *** Error code 1 Stop in /usr/local/src. *** Error code 1 Stop in /usr/local/src. *** Error code 1 Stop in /usr/local/src. >Fix: I guess, needed statis libraries (*.a) must be included in a link command in src/gnu/usr.bin/perl/miniperl/Makefile to allow cross-installation. Eugene Grosbein >Release-Note: >Audit-Trail: >Unformatted: