Opened 4 months ago

Last modified 4 months ago

#73339 new defect

audiofile @0.3.6: error: in-class initializer for static data member is not a constant expression

Reported by: kostix (Konstantin Khomoutov) Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: tahoe Cc: kostix (Konstantin Khomoutov)
Port: audiofile

Description

I had mpd installed on Sequioia (15.x), and audiofile - as its dependency. Now I've upgraded the system to Tahoe 26.2, issued port migrate and audiofile failed to build.

The relevant excerpt:

--->  Deactivating audiofile @0.3.6_3
--->  Cleaning audiofile
<...>
--->  Deactivating audiofile @0.3.6_3
--->  Cleaning audiofile
<...>
===>  Restoring port 90 of 118: audiofile
--->  Cleaning audiofile
--->  Computing dependencies for audiofile
--->  Fetching archive for audiofile
--->  Attempting to fetch audiofile-0.3.6_3.darwin_25.arm64.tbz2 from https://packages.macports.org/audiofile
--->  Attempting to fetch audiofile-0.3.6_3.darwin_25.arm64.tbz2 from https://nue.de.packages.macports.org/audiofile
--->  Attempting to fetch audiofile-0.3.6_3.darwin_25.arm64.tbz2 from https://fra.de.packages.macports.org/audiofile
--->  Fetching distfiles for audiofile
--->  Attempting to fetch audiofile-0.3.6.tar.gz from https://distfiles.macports.org/audiofile
--->  Verifying checksums for audiofile
--->  Extracting audiofile
--->  Applying patches to audiofile
--->  Configuring audiofile
--->  Building audiofile                                 
Error: Failed to build audiofile: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_audio_audiofile/audiofile/main.log for details.

The build log is attached.

Attachments (1)

main.log (295.0 KB) - added by kostix (Konstantin Khomoutov) 4 months ago.
Build log

Download all attachments as: .zip

Change History (5)

Changed 4 months ago by kostix (Konstantin Khomoutov)

Attachment: main.log added

Build log

comment:1 Changed 4 months ago by kostix (Konstantin Khomoutov)

Cc: kostix added

comment:2 Changed 4 months ago by ryandesign (Ryan Carsten Schmidt)

Keywords: tahoe added
Summary: Fails to install (build) on macOS Tahoe 26.2audiofile @0.3.6: error: in-class initializer for static data member is not a constant expression

The log shows lots of errors I'm not familiar with, starting with:

In file included from SimpleModule.cpp:22:
./SimpleModule.h:126:40: error: in-class initializer for static data member is not a constant expression
  126 |         static const int kMinSignedValue = -1 << kScaleBits;
      |                                            ~~~^~~~~~~~~~~~~
./SimpleModule.h:176:22: note: in instantiation of template class 'signConverter<kInt8>' requested here
  176 |                 transform<typename signConverter<Format>::signedToUnsigned>(src, dst, count);
      |                                    ^
./SimpleModule.h:183:5: note: in instantiation of function template specialization 'ConvertSign::convertSignedToUnsigned<kInt8>' requested here
  183 |                                 convertSignedToUnsigned<kInt8>(src, dst, count);
      |                                 ^

Our buildbot also couldn't build this port on Tahoe.

Probably ought to report the problem to the developers but there's been no activity there in nine years.

Maybe another distribution has a patch for this already.

comment:3 Changed 4 months ago by kostix (Konstantin Khomoutov)

Hi, Ryan!

I've found this changeset in the FreeBSD FreshPorts; can you try to partially pick it? (Or maybe even completely - I'm at a loss whether that do-test target the patch adds to the Makefile is specific to FreshPorts or it really gets called by some code in the audiofile build system.)

comment:4 Changed 4 months ago by kostix (Konstantin Khomoutov)

Actually, the whole FreshPorts' page on `audiofile` looks interesting and it appears as something to keep an eye on ;-)

Note: See TracTickets for help on using tickets.