Opened 4 years ago

Closed 3 years ago

#62196 closed defect (fixed)

aften @0.0.8: error: implicit declaration of function 'apply_simd_restrictions' is invalid in C99

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: genevera (she/her) <genevera@…>
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: arm64 Cc: brianleake
Port: aften

Description

https://build.macports.org/builders/ports-11_arm64-builder/builds/10719/steps/install-port/logs/stdio

/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_audio_aften/aften/work/aften-0.0.8/libaften/a52enc.c:373:5: error: implicit declaration of function 'apply_simd_restrictions' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
    apply_simd_restrictions(&s->system.wanted_simd_instructions);
    ^
1 error generated.

Change History (5)

comment:1 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Fixing this is important because aften is a dependency of jack.

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

Unsurprisingly, this ten-year-old code only contains Intel and PowerPC implementations of apply_simd_restrictions.

comment:3 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Reported to the developers but I'm not optimistic that they still exist or care about this code.

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

Cc: brianleake added

Has duplicate #62812.

The developers have not responded to my bug report. If anyone knows how to provide the missing arm64 code or work around it, please submit a pull request to us.

comment:5 Changed 3 years ago by genevera (she/her) <genevera@…>

Owner: set to genevera (she/her) <genevera@…>
Resolution: fixed
Status: newclosed

In e0ec04861f78def469a93da2f3cd6a3a80c315bc/macports-ports (master):

aften: Fix build failure on Apple Silicon

Declare empty apply_simd_restrictions function on non-MMX non-AltiVec
systems like Apple Silicon to fix implicit declaration of function build
failure.

Closes: #62196

Note: See TracTickets for help on using tickets.