ports/108081: powerpc-gcc ports cannot use host gcc same time.

Takanori Watanabe takawata at init-main.com
Thu Jan 18 10:40:22 UTC 2007


>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 at 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:



More information about the freebsd-ports-bugs mailing list