Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Jan 2007 10:30:29 GMT
From:      Takanori Watanabe<takawata@init-main.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/108081: powerpc-gcc ports cannot use host gcc same time.
Message-ID:  <200701181030.l0IAUTIl082558@www.freebsd.org>
Resent-Message-ID: <200701181040.l0IAeM15013237@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         108081
>Category:       ports
>Synopsis:       powerpc-gcc ports cannot use host gcc same time.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 18 10:40:21 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Takanori Watanabe
>Release:        7.0-CURRENT
>Organization:
Private
>Environment:
FreeBSD sana.init-main.com 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Sun Nov 2
6 05:24:49 JST 2006 takawata@sana.init-main.com:/disk1/obj/disk1/src/sys/LIEUTEN
ANT i386

>Description:
 When I include ${LOCALBASE}/powerpc-elf-${OURABI} to the tail of path and 
invoke gcc, it will fail to compile by calling host 'as'.
Putting the cross tool path to head will work, but cannot 
use host toolchain. It is because gcc assumes binutils are installed
in powerpc-elf-${OURABI} under install base directory without prefix.
        

>How-To-Repeat:
Add powerpc-gcc toolchain installation directory to the tail of your path and 
invoke it.      

>Fix:
A possible workaround is
Apply Following patch and update pkg-plist. But I don't understand your
intend about changing OUR_LIBDIR.

Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/devel/powerpc-gcc/Makefile,v
retrieving revision 1.3
diff -u -r1.3 Makefile
--- Makefile    7 Aug 2006 07:29:09 -0000       1.3
+++ Makefile    18 Jan 2007 10:08:53 -0000
@@ -52,7 +52,7 @@
 
 PLIST_SUB+=    TOOLPREFIX=${OUR_TARGET}
 
-OUR_LIBDIR=    ${PREFIX}/lib/gcc/${OUR_TARGET}
+OUR_LIBDIR=    ${PREFIX}/lib/
 
 CONFIGURE_ARGS=        --target=${OUR_TARGET} \
                --enable-languages=c,c++,objc \

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200701181030.l0IAUTIl082558>