Subject: pkg/37179: audio/libao-sun fails to build on SPARC Solaris with GCC-4.2.2
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <raymond.meyer@rambler.ru>
List: pkgsrc-bugs
Date: 10/23/2007 07:25:01
>Number:         37179
>Category:       pkg
>Synopsis:       audio/libao-sun fails to build on SPARC Solaris with GCC-4.2.2
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Oct 23 07:25:00 +0000 2007
>Originator:     raymond
>Release:        
>Organization:
>Environment:
SunOS ultra10 5.10 Generic_118833-33 sun4u sparc SUNW,Ultra-5_10
>Description:
During configure stage the following error is produced

configure: error: No 16 bit type found on this platform!
*** Error code 1

Looking at config.log it becomes clear where this error is coming from

configure:19399: checking for int16_t
configure:19424: gcc -o conftest -O20 -ffast-math -fsigned-char -mv8 -O  -Wl,-R/
opt/pkg/lib conftest.c  >&5
cc1: error: unrecognized command line option "-mv8"
configure:19427: $? = 1
configure: program exited with status 1

>How-To-Repeat:

>Fix:
GCC does not support -mv8 option on SPARC Solaris anymore. The configure script needs to be patched to remove any such options