Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 77865

Summary: alsa-driver-1.0.8_rc2 won't compile with gcc 3.4.3 pci/echoaudio/echoaudio.h:424: sorry, unimplemented:
Product: Gentoo Linux Reporter: Ruben Garcia <ruben>
Component: [OLD] GCC PortingAssignee: Please assign to toolchain <gcc-porting>
Status: RESOLVED FIXED    
Severity: normal CC: emilbeinroth
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: replace inlined free_firmware by a macro

Description Ruben Garcia 2005-01-13 10:29:20 UTC
When emerging alsa-driver-1.0.8_rc2
using gcc 3.4.3 as compiler,
I got the following error:
CC [M]  /mnt/backup/vartmp/portage/alsa-driver-1.0.8_rc2/work/alsa-driver-1.0.8rc2/pci/echoaudio/darla20.o
In file included from /mnt/backup/vartmp/portage/alsa-driver-1.0.8_rc2/work/alsa-driver-1.0.8rc2/pci/echoaudio/darla20.c:109:
/mnt/backup/vartmp/portage/alsa-driver-1.0.8_rc2/work/alsa-driver-1.0.8rc2/pci/echoaudio/echoaudio_dsp.c: In function `load_firmware':
/mnt/backup/vartmp/portage/alsa-driver-1.0.8_rc2/work/alsa-driver-1.0.8rc2/pci/echoaudio/echoaudio.h:424: sorry, unimplemented: inlining failed in call to 'free_firmware': function body not available
/mnt/backup/vartmp/portage/alsa-driver-1.0.8_rc2/work/alsa-driver-1.0.8rc2/pci/echoaudio/echoaudio_dsp.c:544: sorry, unimplemented: called from here

Previous versions of alsa driver don't work either.
Tried 1.0.8 rc1 and 1.0.7, neither will compile. The errors are varied.

Reproducible: Always
Steps to Reproduce:
1.ACCEPT_KEYWORDS=~x86 emerge  alsa-driver
2.
3.

Actual Results:  
<snip>
CC [M] 
/mnt/backup/vartmp/portage/alsa-driver-1.0.8_rc2/work/alsa-driver-1.0.8rc2/pci/echoaudio/darla20.o
In file included from
/mnt/backup/vartmp/portage/alsa-driver-1.0.8_rc2/work/alsa-driver-1.0.8rc2/pci/echoaudio/darla20.c:109:
/mnt/backup/vartmp/portage/alsa-driver-1.0.8_rc2/work/alsa-driver-1.0.8rc2/pci/echoaudio/echoaudio_dsp.c:
In function `load_firmware':
/mnt/backup/vartmp/portage/alsa-driver-1.0.8_rc2/work/alsa-driver-1.0.8rc2/pci/echoaudio/echoaudio.h:424:
sorry, unimplemented: inlining failed in call to 'free_firmware': function body
not available
/mnt/backup/vartmp/portage/alsa-driver-1.0.8_rc2/work/alsa-driver-1.0.8rc2/pci/echoaudio/echoaudio_dsp.c:544:
sorry, unimplemented: called from here
<snip>

Expected Results:  
Compile cleanly

kernel 2.6.10
Comment 1 Emil Beinroth 2005-01-13 12:37:17 UTC
Created attachment 48421 [details, diff]
replace inlined free_firmware by a macro

The inlined function free_firmware is using a function from the kernel-source
..
looks like this isn't possible with the new gcc.
Since free_firmware is just 2 lines long it should be easily replaced by a
macro.
Comment 2 Eric Shattow 2005-03-06 11:15:14 UTC
IIRC 'static inline' functions are invalid (and always have been?)
Comment 3 Mark Loeser (RETIRED) gentoo-dev 2005-05-13 21:22:23 UTC
Newest alsa-driver in ~x86, 1.0.9_rc3, works with GCC 3.4.