Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 572006 - media-sound/audacity-2.0.5.r-1 fails to build with gcc 5.3.0 - linking fails to find inline functions defined in lib-src/libnyquist/nyquist/ffts/src/fftlib.c
Summary: media-sound/audacity-2.0.5.r-1 fails to build with gcc 5.3.0 - linking fails ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Professional Audio Applications Maintainers
URL: http://lists.freebsd.org/pipermail/fr...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-15 16:23 UTC by Anton Gubarkov
Modified: 2017-07-15 09:39 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build log (build.log.bz2,112.48 KB, application/x-bzip)
2016-01-15 16:23 UTC, Anton Gubarkov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Gubarkov 2016-01-15 16:23:38 UTC
Created attachment 422986 [details]
build log

The build fails with:
../lib-src/libnyquist.a(fftlib.o): In function `fftrecurs':
fftlib.c:(.text+0x21f): undefined reference to `bfstages'
fftlib.c:(.text+0x2c4): undefined reference to `bfstages'
../lib-src/libnyquist.a(fftlib.o): In function `ffts1':
fftlib.c:(.text+0x322): undefined reference to `fft2pt'
fftlib.c:(.text+0x355): undefined reference to `fft4pt'
fftlib.c:(.text+0x388): undefined reference to `fft8pt'
fftlib.c:(.text+0x3cb): undefined reference to `bitrevR2'
fftlib.c:(.text+0x437): undefined reference to `bfR2'
fftlib.c:(.text+0x476): undefined reference to `bfR4'
fftlib.c:(.text+0x4ac): undefined reference to `bfstages'
../lib-src/libnyquist.a(fftlib.o): In function `ifftrecurs':
fftlib.c:(.text+0x551): undefined reference to `ibfstages'
fftlib.c:(.text+0x5f6): undefined reference to `ibfstages'
../lib-src/libnyquist.a(fftlib.o): In function `iffts1':
fftlib.c:(.text+0x6a7): undefined reference to `ifft2pt'
fftlib.c:(.text+0x6e1): undefined reference to `ifft4pt'
fftlib.c:(.text+0x71b): undefined reference to `ifft8pt'
fftlib.c:(.text+0x765): undefined reference to `scbitrevR2'
fftlib.c:(.text+0x7d1): undefined reference to `ibfR2'
fftlib.c:(.text+0x810): undefined reference to `ibfR4'
fftlib.c:(.text+0x846): undefined reference to `ibfstages'
../lib-src/libnyquist.a(fftlib.o): In function `rffts1':
fftlib.c:(.text+0x8e4): undefined reference to `rfft1pt'
fftlib.c:(.text+0x914): undefined reference to `rfft2pt'
fftlib.c:(.text+0x947): undefined reference to `rfft4pt'
fftlib.c:(.text+0x97a): undefined reference to `rfft8pt'
fftlib.c:(.text+0x9d1): undefined reference to `scbitrevR2'
fftlib.c:(.text+0xa3d): undefined reference to `bfR2'
fftlib.c:(.text+0xa7c): undefined reference to `bfR4'
fftlib.c:(.text+0xab2): undefined reference to `bfstages'
fftlib.c:(.text+0xacd): undefined reference to `frstage'
fftlib.c:(.text+0xb11): undefined reference to `frstage'
../lib-src/libnyquist.a(fftlib.o): In function `riffts1':
fftlib.c:(.text+0xbd9): undefined reference to `rifft1pt'
fftlib.c:(.text+0xc10): undefined reference to `rifft2pt'
fftlib.c:(.text+0xc4a): undefined reference to `rifft4pt'
fftlib.c:(.text+0xc84): undefined reference to `rifft8pt'
fftlib.c:(.text+0xcc6): undefined reference to `ifrstage'
fftlib.c:(.text+0xce4): undefined reference to `scbitrevR2'
fftlib.c:(.text+0xd50): undefined reference to `ibfR2'
fftlib.c:(.text+0xd8f): undefined reference to `ibfR4'
fftlib.c:(.text+0xdc5): undefined reference to `ibfstages'
collect2: error: ld returned 1 exit status
Makefile:301: recipe for target '../audacity' failed
Comment 1 Anton Gubarkov 2016-01-15 16:26:02 UTC
I searched and found a fix for clang compiler in FreeBSD:
http://lists.freebsd.org/pipermail/freebsd-ports-bugs/2012-December/245884.html

I couldn't find where to insert the sed call to replace all void inline with static void inline in the makefile, however, I replaced all instances manually in ib-src/libnyquist/nyquist/ffts/src/fftlib.c and the build completed successfully.
Comment 2 Pacho Ramos gentoo-dev 2017-07-15 09:39:53 UTC
2.1.3-r1 compiles fine for me