pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/31011: wrapper(sunpro-cc) need to handle options for 64bit env



>Number:         31011
>Category:       pkg
>Synopsis:       wrapper(sunpro-cc) need to handle options for 64bit env
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Aug 19 03:58:00 +0000 2005
>Originator:     Zin Uda
>Release:        Solaris 10
>Organization:
JAIST
>Environment:
SunOS wisteria 5.10 Generic_118822-11 sun4u sparc SUNW,Sun-Blade-1500
>Description:
pkgsrc/mk/wrapper/transform-sunpro-cc (GCC wrapper for SunPRO compiler) need to 
handle options for 64bit environment.

We cannot build some applications in pkgsrc with SunPRO compiler (Sun C 5.7 
2005/01/07) with 64bit options. We define following options on mk.conf.

----
PKGSRC_COMPILER=sunpro
CFLAGS=-xtarget=ultra -xarch=v9
CXXFLAGS=-xtarget=ultra -xarch=v9
LDFLAGS=-xtarget=ultra -xarch=v9
----

>How-To-Repeat:
build lang/perl with following option.

----
PKGSRC_COMPILER=sunpro
CFLAGS=-xtarget=ultra -xarch=v9
CXXFLAGS=-xtarget=ultra -xarch=v9
LDFLAGS=-xtarget=ultra -xarch=v9
----
>Fix:
At least, transform-sunpro-cc need to handle -m64 option. We can avoid this 
problem with appending following function to transform-sunpro-cc.
----
######################################################################
# SunPro needs -xarch=generic64 for selecting 64bits archtecture.
######################################################################
-m64)
        arg="-xarch=generic64"
        msg_log $wrapperlog "   (transform-sunpro-cc) to: $arg"
        addtocache=yes
        ;;
----

Of cource, we should also handle "-mcpu=*" option. But I don't know how to 
handle this to make a best solution.




Home | Main Index | Thread Index | Old Index