Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 712630 - media-sound/sox-14.4.2-r1: "formats.c: error: #error FIX NEEDED HERE" on musl
Summary: media-sound/sox-14.4.2-r1: "formats.c: error: #error FIX NEEDED HERE" on musl
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords: InOverlay
Depends on:
Blocks:
 
Reported: 2020-03-15 09:27 UTC by Toralf Förster
Modified: 2020-08-03 06:34 UTC (History)
3 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,15.42 KB, text/plain)
2020-03-15 09:27 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,100.96 KB, text/plain)
2020-03-15 09:27 UTC, Toralf Förster
Details
environment (environment,60.55 KB, text/plain)
2020-03-15 09:27 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,11.98 KB, application/x-bzip)
2020-03-15 09:27 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,12.72 KB, application/x-bzip)
2020-03-15 09:27 UTC, Toralf Förster
Details
media-sound:sox-14.4.2-r1:20200315-012900.log (media-sound:sox-14.4.2-r1:20200315-012900.log,32.95 KB, text/plain)
2020-03-15 09:27 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,21.92 KB, application/x-bzip)
2020-03-15 09:28 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2020-03-15 09:27:40 UTC
      |            ^~~~~~~~~~
formats.c: In function rewind_pipe:
formats.c:425:4: error: #error FIX NEEDED HERE
  425 |   #error FIX NEEDED HERE
      |    ^~~~~
In file included from util.h:32,

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0_musl-20200311-204810

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-gentoo-linux-musl-9.2.0 *
 [2] x86_64-gentoo-linux-musl-9.3.0
clang version 10.0.0 
Target: x86_64-gentoo-linux-musl
Thread model: posix
InstalledDir: /usr/lib/llvm/10/bin
/usr/lib/llvm/10
10.0.0
Available Python interpreters, in order of preference:
  [1]   python3.8
  [2]   python3.7
  [3]   python3.6
  [4]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.41.1
  [2]   rust-1.41.1 *
The following VMs are available for generation-2:

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Sun, 15 Mar 2020 00:40:11 +0000
emerge -qpvO media-sound/sox
[ebuild  N    ] media-sound/sox-14.4.2-r1  USE="openmp -alsa -amr -ao -debug -encode -flac -id3tag -ladspa -mad -ogg -opus -oss -png -pulseaudio -sndfile -static-libs -twolame -wavpack"
Comment 1 Toralf Förster gentoo-dev 2020-03-15 09:27:43 UTC
Created attachment 619396 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-03-15 09:27:46 UTC
Created attachment 619398 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-03-15 09:27:49 UTC
Created attachment 619400 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-03-15 09:27:53 UTC
Created attachment 619402 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-03-15 09:27:55 UTC
Created attachment 619404 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-03-15 09:27:58 UTC
Created attachment 619406 [details]
media-sound:sox-14.4.2-r1:20200315-012900.log
Comment 7 Toralf Förster gentoo-dev 2020-03-15 09:28:01 UTC
Created attachment 619408 [details]
temp.tbz2
Comment 8 Toralf Förster gentoo-dev 2020-03-16 16:12:47 UTC
The first attempt to tinderbox a musl image failed at all.

I'll mass close therefore all filed bug reports of the last days related to this tinderbox image.

Please feel free to re-open if you think that the bug is real in musl and not fixed by the musl overlay.
Comment 9 Michael 'veremitz' Everitt 2020-04-19 22:26:36 UTC
Fixed in ::musl overlay with a sed to remove said error per upstream's recommendation -
"  /* To fix this #error, either simply remove the #error line and live without
   * file-type detection with pipes, or add support for your compiler in the
   * lines above.  Test with cat monkey.wav | ./sox --info - */"

I suggest patching the ebuild with a 'use elibc_musl && ' sed command, per overlay.
Comment 10 Larry the Git Cow gentoo-dev 2020-08-03 06:27:36 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f0525803e44e76b54ba366144606577d783af33e

commit f0525803e44e76b54ba366144606577d783af33e
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2020-08-03 06:27:12 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2020-08-03 06:27:12 +0000

    media-sound/sox: security bump to 20200803 snapshot
    
    Bug: https://bugs.gentoo.org/711320
    Closes: https://bugs.gentoo.org/712630
    Package-Manager: Portage-3.0.1, Repoman-2.3.23
    Signed-off-by: Sam James <sam@gentoo.org>

 media-sound/sox/Manifest                    |   1 +
 media-sound/sox/sox-14.4.2_p20200803.ebuild | 106 ++++++++++++++++++++++++++++
 2 files changed, 107 insertions(+)