webkit2-gtk failing to compile on Mac
Hi there! Thanks for your work on this project.
I've been trying to compile webkit2-gtk on macOS 14.5 and keep getting this error:
---> Patching CMakeLists.txt: s|@API@|4.0|g
---> Patching CMakeLists.txt: s|@SHEXT@|dylib|g
---> Configuring webkit2-gtk
Error: Failed to configure webkit2-gtk: extra characters after close-quote
I've sort of tried commenting out everything and fiddling with the file a bit but nothing seems to work. I was just wondering if an error like this could point to something else. I don't see a way to get anything more detailed out of the builder. Maybe wrong version of a compiler or such?
Also, do you think this is the latest version of webkit-gtk on Mac? If so, awesome and thanks!
Best, Sawyer
On Wednesday November 13 2024 01:46:00 Sawyer Pollard wrote:
Hi there! Thanks for your work on this project.
You're welcome...!
Error: Failed to configure webkit2-gtk: extra characters after close-quote
That looks like there is a syntax error in my Portfile, or in one of the PortGroup files it includes. Needless to say I didn't test this on recent OS versions ...
You'll probably get more information if you turn on maximum verbosity, e.g. port configure -nvd webkit2-gtk [whatever other variants/options] . Restore the Portfile first please.
Either way I'll need to know what variants you selected and/or options you passed in, if any.
Also, do you think this is the latest version of webkit-gtk on Mac? If so, awesome and thanks!
No, this is just the latest version that I tried to build and got to work on 10.9 . On Linux I have built a stable release version from earlier this year (2.44.3). I have given up on trying to get it to build on my Mac because it expects to have at least EGL. While not impossible to use that on Mac it will be a software (i.e. CPU) based implementation so slow, and tricky to get right in WebKit as I already discovered with v2.40 (got a few kernel panics because of it). I see I didn't commit the resulting Webkit2-gtk-devel yet, I'll try to remember to fix that. Your system is a lot more recent clearly and if you're adventurous enough and familiar with Vulkan and porting software then you could try build that -devel port.
On my machine this fails on Error: Failed to configure libsndfile: extra characters after close-quote.
On my machine this fails on
Error: Failed to configure libsndfile: extra characters after close-quote.
Well, that's a tiny bit more information; the problem seems to be with my port:libsndfile but I still don't see anything wrong with it. Can you attach port logfile libsndfile please?
On my machine this fails on
Error: Failed to configure libsndfile: extra characters after close-quote.Well, that's a tiny bit more information; the problem seems to be with my
port:libsndfilebut I still don't see anything wrong with it. Can you attachport logfile libsndfileplease?
Ah, sorry about that! I'm trying to recreate this but am unable to get the same error. I'll attach the logfile anyway. main.log
Now for sudo port install webkit2-gtk I get:
Warning: No port libcxx-dev found in the index.
Warning: No port py37-markdown found in the index.
---> Computing dependencies for x265
---> Building x265
Error: Failed to build x265: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_site-ports_multimedia_x265/x265/main.log for details.
Error: Unable to execute port webkit2-gtk: upgrade libsecret failed
Running sudo port selfupdate followed by sudo port upgrade outdated shows:
---> Computing dependencies for pcre
---> Configuring pcre
Error: Failed to configure pcre: extra characters after close-quote
Error: See /opt/local/var/macports/logs/_opt_local_site-ports_devel_pcre/pcre/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there
is a bug.
I'm not super familiar with using MacPorts and may have screwed something up, though sudo port diagnose doesn't show anything noteworthy.
main.log
main.log
I've attached both logfiles.
Variations on this:
sudo port install webkit2-gtk-4.1fails with the same error regardingx265sudo port install -n webkit2-gtk&sudo port install -n webkit2-gtk-4.1both fail on buildingsoxr(log file attached) main.log
I have the latest Xcode, Xcode command-line tools, and stable macOS installed, if that helps. I'm totally open to the idea that my machine is misconfigured somehow.
On Wednesday December 04 2024 09:00:33 Emil Sayahi wrote:
On my machine this fails on
Error: Failed to configure libsndfile: extra characters after close-quote.
Ah, sorry about that! I'm trying to recreate this but am unable to get the same error. I'll attach the logfile anyway. main.log
Actually, the logfile does contain the same error. I'm guess you do not have my patched MacPorts "base" version installed?
Can you do port edit libsndfile and put a hash (#) symbol in from of line 57 (configure.save_configure_cmd "install log") or delete it completely, and try again please?
If that fails, remove the PortGroup save_configure_cmd 1.0 line first please, and then the PortGroup LTO 1.0 line.
Sorry that I have to ask this from you but I see little other choice because I cannot reproduce the issue nor see any reason for the error in my code.
Warning: No port libcxx-dev found in the index.
That is strange. What do port dir libcxx and port info libcxx say?
Warning: No port py37-markdown found in the index.
This one I should have been able to fix (I'm guessing it is due to port:gobject-introspection
Error: Failed to build x265: command execution failed Error: See /opt/local/var/macports/logs/_opt_local_site-ports_multimedia_x265/x265/main.log for details. Error: Unable to execute port webkit2-gtk: upgrade libsecret failed
I'd need to see the logfiles for port:x265 and port:libsecret
Error: Failed to configure pcre: extra characters after close-quote Error: See /opt/local/var/macports/logs/_opt_local_site-ports_devel_pcre/pcre/main.log for details.
With luck this will be fixed after fixing the issue with libsndfile.
On Wednesday December 04 2024 09:06:44 Emil Sayahi wrote:
sudo port install -n webkit2-gtk&sudo port install -n webkit2-gtk-4.1both fail on buildingsoxr(log file attached) main.logI have the latest Xcode, Xcode command-line tools, and stable macOS installed, if that helps. I'm totally open to the idea that my machine is misconfigured somehow.
I'm (almost ;) ) relieved that port:soxr is not in my ports tree, and that you'll probably need to report this error on trac (for port:soxr, so try sudo port -n install soxr separately and then report your findings if this fails with the same error about the SDK sysroot).
Can you do
port edit libsndfileand put a hash (#) symbol in from of line 57 (configure.save_configure_cmd "install log") or delete it completely, and try again please?
Commented out line 57, and now sudo port install libsndfile shows:
Portfile for libsndfile changed since last build; discarding previous state.
---> Computing dependencies for libsndfile
---> Cleaning libsndfile
---> Updating database of binaries
---> Scanning binaries for linking errors
---> Found 40 broken files, matching files to ports
---> Found 4 broken ports, determining rebuild order
You can always run 'port rev-upgrade' again to fix errors.
The following ports will be rebuilt:
cargo-c @0.9.15
webkit-gtk @2.4.11+video
boost176 @1.76.0+no_single+no_static+python311
texlive-bin @2023.66589+x11
Continue? [Y/n]: y
Warning: No port libcxx-dev found in the index.
---> Computing dependencies for gss
---> Fetching distfiles for gss
---> Attempting to fetch gss-1.0.4.tar.gz from https://distfiles.macports.org/gss
---> Verifying checksums for gss
---> Extracting gss
---> Applying patches to gss
---> Configuring gss
Error: Failed to configure gss: extra characters after close-quote
Error: See /opt/local/var/macports/logs/_opt_local_site-ports_security_gss/gss/main.log for details.
Error: Problem while installing gss
Error: rev-upgrade failed: Error rebuilding cargo-c
Error: Follow https://guide.macports.org/#project.tickets if you believe there
is a bug.
Log for gss is attached.
main.log
What do
port dir libcxxandport info libcxxsay?
port dir libcxx: /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/lang/libcxx
port info libcxx:
libcxx @5.0.1_5 (lang)
Variants: replacemnt_libcxx
Description: libc++ is a new implementation of the C++ standard library
with support for C++11 and portions of C++14. Because
objects cannot be passed between different versions of the
C++ runtime, this port must replace the host version in
order to be used. On Snow Leopard and earlier, this is
done automatically because there is no existing host
version of this library. On Lion and later, users must
build the port with +replacemnt_libcxx and install the
root manually if they wish to replace the existing host
implementation.
Homepage: https://libcxx.llvm.org/
Platforms: any
License: MIT and NCSA
Maintainers: Email: [email protected], GitHub: jeremyhu
On Friday December 06 2024 14:09:19 Emil Sayahi wrote:
Commented out line 57, and now
sudo port install libsndfileshows: ... ---> Applying patches to gss ---> Configuring gss Error: Failed to configure gss: extra characters after close-quote
OK, sorry, I clearly should have asked to do sudo port -n install libsndfile, so it would only try to install just that port :(
What do
port dir libcxxandport info libcxxsay?
port dir libcxx:/opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/lang/libcxx
port info libcxx:libcxx @5.0.1_5 (lang)
Right, you don't have port:cmake installed yet. Still, my port:libcxx tries to provide a stub port:libcxx-dev in that case, but apparently portindex doesn't see it?!
Supposing you installed my MacStrop tree as indicated in the README, what do
port info /opt/local/site-ports/lang/libcxx and port info /opt/local/site-ports/lang/libcxx subport=libcxx-dev say?
If the latter command raises an error, please paste the output of port -vd info /opt/local/site-ports/lang/libcxx subport=libcxx-dev !
Thanks.
I think I have fixed the missing port:libcxx-dev issue
On Friday December 06 2024 14:02:14 Emil Sayahi wrote:
sudo port -n install soxrStill fails (log attached). Will report this. main.log
I didn't notice this before, but there seems to be a weird kind of mixing between the 13.0 and 15.0 SDKs going on between the configure and the build phases.
You did do a sudo port clean soxr before your last attempt I hope?
I did sudo port clean --all all before, which I assumed was sufficient.
sudo port clean --all all; sudo port -n install soxr succeeded!
Now, sudo port clean webkit2-gtk; sudo port install -n webkit2-gtk fails on:
---> Cleaning webkit2-gtk
---> Computing dependencies for webkit2-gtk
The following dependencies will be installed:
fftw-3
fftw-3-single
gcc14
gcc14-libcxx
gcc_select
gstreamer1-gst-plugins-good
isl
ld64
ld64-xcode
libgcc
libgcc13
libmpc
pulseaudio
Continue? [Y/n]: y
---> Fetching distfiles for isl
---> Attempting to fetch isl-0.24.tar.bz2 from https://distfiles.macports.org/isl
---> Verifying checksums for isl
---> Extracting isl
---> Applying patches to isl
---> Configuring isl
Error: Failed to configure isl: extra characters after close-quote
Error: See /opt/local/var/macports/logs/_opt_local_site-ports_devel_isl/isl/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there
is a bug.
Error: Processing of port webkit2-gtk failed
On Sunday December 08 2024 09:58:06 Emil Sayahi wrote:
A bit of a mystery what went wrong with port:soxr but good that it got resolved.
Now:
Error: Failed to configure isl: extra characters after close-quote
Yes, this is an error that we started to look into with port:libsndfile. From what I've seen that one hasn't yet been installed, am I right?
Can you do sudo port clean libsndfile and then do what I wrote earlier (please double-check if the changes you made to the libsndfile Portfile are still intact)?
On Sunday December 08 2024 09:58:06 Emil Sayahi wrote: A bit of a mystery what went wrong with port:soxr but good that it got resolved. Now: Error: Failed to configure isl: extra characters after close-quote Yes, this is an error that we started to look into with port:libsndfile. From what I've seen that one hasn't yet been installed, am I right? Can you do
sudo port clean libsndfileand then do what I wrote earlier (please double-check if the changes you made to the libsndfile Portfile are still intact)?
After confirming that line 57 is still commented out, sudo port clean libsndfile; sudo port -n install libsndfile shows:
---> Cleaning libsndfile
---> Computing dependencies for libsndfile
---> Cleaning libsndfile
Trying with only sudo port install -n libsndfile:
---> Computing dependencies for libsndfile
---> Cleaning libsndfile
Trying sudo port install libsndfile:
---> Computing dependencies for libsndfile
---> Cleaning libsndfile
---> Updating database of binaries
---> Scanning binaries for linking errors
---> Found 40 broken files, matching files to ports
---> Found 4 broken ports, determining rebuild order
You can always run 'port rev-upgrade' again to fix errors.
The following ports will be rebuilt:
cargo-c @0.9.15
webkit-gtk @2.4.11+video
boost176 @1.76.0+no_single+no_static+python311
texlive-bin @2023.66589+x11
Continue? [Y/n]: Y
---> Computing dependencies for gss
---> Fetching distfiles for gss
---> Attempting to fetch gss-1.0.4.tar.gz from https://distfiles.macports.org/gss
---> Verifying checksums for gss
---> Extracting gss
---> Applying patches to gss
---> Configuring gss
Error: Failed to configure gss: extra characters after close-quote
Error: See /opt/local/var/macports/logs/_opt_local_site-ports_security_gss/gss/main.log for details.
Error: Problem while installing gss
Error: rev-upgrade failed: Error rebuilding cargo-c
Error: Follow https://guide.macports.org/#project.tickets if you believe there
is a bug.
After all of these commands, I checked that line 57 was still commented and it was.
@RJVB Going to test https://github.com/RJVB/macstrop/pull/134