[Bug 268328] www/firefox fails to build with LTO enabled

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 15 May 2024 19:26:15 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268328

Nuno Teixeira <eduardo@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |eduardo@FreeBSD.org

--- Comment #7 from Nuno Teixeira <eduardo@FreeBSD.org> ---
firefox-126.0_2,2 is failing with LTO. Anyone experience it?

Tomorrow I will take a closer look at logs but I didn't a relevant errors, only
warnings:

```
In file included from
/wrkdirs/usr/ports/www/firefox/work/.build/dist/include/mozilla/layers/TextureClient.h:24:
/wrkdirs/usr/ports/www/firefox/work/.build/dist/include/mozilla/gfx/CriticalSection.h:55:3:
warning: mutex 'mMutex' is still held at the end of function
[-Wthread-safety-analysis]
   55 |   }
      |   ^
/wrkdirs/usr/ports/www/firefox/work/.build/dist/include/mozilla/gfx/CriticalSection.h:53:26:
note: mutex acquired here
   53 |     DebugOnly<int> err = pthread_mutex_lock(&mMutex);
      |                          ^
/wrkdirs/usr/ports/www/firefox/work/.build/dist/include/mozilla/gfx/CriticalSection.h:58:26:
warning: releasing mutex 'mMutex' that was not held [-Wthread-safety-analysis]
   58 |     DebugOnly<int> err = pthread_mutex_unlock(&mMutex);
      |                          ^
2 warnings generated.
2 warnings generated.
2 warnings generated.
gmake[3]: Leaving directory
'/wrkdirs/usr/ports/www/firefox/work/.build/dom/media'
2 warnings generated.
2 warnings generated.
gmake[3]: Leaving directory
'/wrkdirs/usr/ports/www/firefox/work/.build/gfx/thebes'
gmake[2]: Leaving directory '/wrkdirs/usr/ports/www/firefox/work/.build'
gmake[1]: ***
[/wrkdirs/usr/ports/www/firefox/work/firefox-126.0/config/recurse.mk:34:
compile] Error 2
gmake[1]: Leaving directory '/wrkdirs/usr/ports/www/firefox/work/.build'
gmake: ***
[/wrkdirs/usr/ports/www/firefox/work/firefox-126.0/config/rules.mk:361: all]
Error 2
===> Compilation failed unexpectedly.

```

-- 
You are receiving this mail because:
You are the assignee for the bug.