Opened 19 months ago
Closed 19 months ago
#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)
Change History (11)
Changed 19 months ago by cgimenez (Christophe Gimenez)
comment:1 Changed 19 months ago by mascguy (Christopher Nielsen)
| Owner: | set to mascguy |
|---|---|
| Status: | new → assigned |
| Summary: | ffmpeg build failing → ffmpeg: build failing |
| Version: | → 2.10.5 |
comment:2 Changed 19 months ago by mascguy (Christopher Nielsen)
| Summary: | ffmpeg: build failing → ffmpeg: build fails: error: compiler does not work |
|---|
comment:3 Changed 19 months ago by ryandesign (Ryan Carsten Schmidt)
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:8 Changed 19 months ago by ryandesign (Ryan Carsten Schmidt)
| Resolution: | → duplicate |
|---|---|
| Status: | assigned → closed |
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.

The main.log says:
Please attach the config.log.