#72091 closed defect (duplicate)

ffmpeg: build fails: error: compiler does not work

Reported by: cgimenez (Christophe Gimenez) Owned by: mascguy (Christopher Nielsen)
Priority: Normal Milestone:
Component: ports Version: 2.10.5
Keywords: Cc:
Port: ffmpeg

Description

Hi, since today...

sudo port upgrade outdated
Password:
--->  Computing dependencies for ffmpeg
--->  Fetching archive for ffmpeg
--->  Attempting to fetch ffmpeg-4.4.5_5+gpl2.darwin_22.arm64.tbz2 from https://packages.macports.org/ffmpeg
--->  Attempting to fetch ffmpeg-4.4.5_5+gpl2.darwin_22.arm64.tbz2 from https://fra.de.packages.macports.org/ffmpeg
--->  Attempting to fetch ffmpeg-4.4.5_5+gpl2.darwin_22.arm64.tbz2 from https://mse.uk.packages.macports.org/ffmpeg
--->  Configuring ffmpeg
Error: Failed to configure ffmpeg: configure failure: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_ffmpeg/ffmpeg/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.

Attachments (3)

main.log (22.6 KB) - added by cgimenez (Christophe Gimenez) 19 months ago.
ffmpeg_main.log (65.6 KB) - added by cgimenez (Christophe Gimenez) 19 months ago.
ffmpeg_config.log (256.7 KB) - added by cgimenez (Christophe Gimenez) 19 months ago.

Download all attachments as: .zip

Change History (11)

Changed 19 months ago by cgimenez (Christophe Gimenez)

Attachment: main.log added

comment:1 Changed 19 months ago by mascguy (Christopher Nielsen)

Owner: set to mascguy
Status: newassigned
Summary: ffmpeg build failingffmpeg: build failing
Version: 2.10.5

comment:2 Changed 19 months ago by mascguy (Christopher Nielsen)

Summary: ffmpeg: build failingffmpeg: build fails: error: compiler does not work

comment:3 Changed 19 months ago by ryandesign (Ryan Carsten Schmidt)

The main.log says:

:info:configure Checking for stdlib.h...not found
:info:configure Error: Compiler does not work. See config.log
:error:configure Failed to configure sqlite3: consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_sqlite3/sqlite3/work/sqlite-autoconf-3490000/config.log

Please attach the config.log.

comment:4 Changed 19 months ago by jmroot (Joshua Root)

Also that's a log for sqlite3, not ffmpeg.

Changed 19 months ago by cgimenez (Christophe Gimenez)

Attachment: ffmpeg_main.log added

comment:5 Changed 19 months ago by cgimenez (Christophe Gimenez)

Sorry for the mismatch of log file... Now ffmpeg_main.log is attached to this ticket

comment:6 Changed 19 months ago by jmroot (Joshua Root)

:info:configure /usr/bin/clang is unable to create an executable file.
:info:configure If /usr/bin/clang is a cross-compiler, use the --enable-cross-compile option.
:info:configure Only do this if you know what cross compiling means.
:info:configure C compiler test failed.
:info:configure If you think configure made a mistake, make sure you are using the latest
:info:configure version from Git.  If the latest version fails, report the problem to the
:info:configure ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.libera.chat.
:info:configure Include the log file "ffbuild/config.log" produced by configure as this will help
:info:configure solve the problem.

Can you please also attach the ffbuild/config.log mentioned in the message?

Changed 19 months ago by cgimenez (Christophe Gimenez)

Attachment: ffmpeg_config.log added

comment:7 Changed 19 months ago by cgimenez (Christophe Gimenez)

I added the file to this ticket

comment:8 Changed 19 months ago by ryandesign (Ryan Carsten Schmidt)

Resolution: duplicate
Status: assignedclosed

The ffmpeg config.log says the problem is:

ld: library not found for -ld_classic

According to the ffmpeg main.log, you have Xcode 15.x but command line tools 14.x. This mismatch, plus the fact that the port does not use the correct conditions for determining when to use -ld_classic, is the cause of the problem. You can avoid it by using a matched version of Xcode and command line tools (i.e. update your command line tools to 15.x or downgrade your Xcode to 14.x).

So this ffmpeg problem is a duplicate of #70144.

If you are also having problems with sqlite3, that would have a different cause.

Note: See TracTickets for help on using tickets.