Skip to contentSkip to conversation

: Errors in testing gcc and ld in the sparc and sparc64 sections of the configure file

ALSA - driver 0000688 [email protected] 1 participant 1 message Nov 29, 2004

lore
Share & tools
lore
#0 lore raw

The following issue has been RESOLVED.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=688>
======================================================================

Reported By:                jdthood
Assigned To:                perex
======================================================================
Project:                    ALSA - driver
Issue ID:                   688
Category:                   0_compilation problem_!!!
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     resolved

Distribution:
Kernel Version:
Resolution: fixed
Fixed in Version:
======================================================================

Date Submitted:             11-28-2004 19:36 CET
Last Modified:              11-29-2004 15:49 CET

======================================================================
Summary: Errors in testing gcc and ld in the sparc and
sparc64 sections of the configure file
Description:
Here is a patch to fix the configure script so that it less incorrectly tests gcc and ld functionality on sparc and sparc64. You will want to fix configure.in, of course.
======================================================================

----------------------------------------------------------------------
jdthood - 11-29-04 15:40
----------------------------------------------------------------------
The cvs version still contains these lines:

    test $KCC -m32 -S -o /dev/null -xc /dev/null >/dev/null 2>&1 &&
IS_EGCS=y
    test $CROSS_COMPILE$KLD --version 2>&1 | grep 'elf64_sparc' >

/dev/null && NEW_GAS=y

1. The 'test' does not belong at the beginning of these lines; it's a straightforward syntax error.
2. Setting IS_EGCS=y causes "-m32" not to be used, so it's peculiar to set
IS_EGCS=y when the command _succeeds_ with "-m32".
(The first bug hides the second.)
3. ld --version does not output a list of supported emulations, but ld -V does output such a list. The sparc64 section uses "-V".

My guess is that these lines should be:

    $KCC -m32 -S -o /dev/null -xc /dev/null >/dev/null 2>&1 || IS_EGCS=y
    $CROSS_COMPILE$KLD -V 2>&1 | grep 'elf64_sparc' > /dev/null &&

NEW_GAS=y

Signature · 36 lines
Thomas Hood

edited on: 11-29-04 15:39

edited on: 11-29-04 15:40

----------------------------------------------------------------------
 tiwai - 11-29-04 15:49 
----------------------------------------------------------------------
Ah, you're right.  I checked only sparc64.

Now fixed on CVS.

Issue History
Date Modified  Username       Field                    Change              
======================================================================
11-28-04 19:36 jdthood        New Issue                                    
11-28-04 19:36 jdthood        File Added:
alsa-driver-configure.jdth20041128.patch                    
11-29-04 15:25 tiwai          Note Added: 0002637                          
11-29-04 15:38 jdthood        Note Added: 0002641                          
11-29-04 15:39 jdthood        Note Edited: 0002641                         
11-29-04 15:40 jdthood        Note Edited: 0002641                         
11-29-04 15:49 tiwai          Status                   assigned => resolved
11-29-04 15:49 tiwai          Resolution               open => fixed       
11-29-04 15:49 tiwai          Note Added: 0002645                          
======================================================================




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/