Since the GCC update to version 6.1.1, I can't compile firefox from source anymore.
I'm probably missing a special flag to prevent this type of errors:
Fehler: »malloc« wurde in diesem Gültigkeitsbereich nicht definiert
I tried '-fpermissive' but that doesn't help.
This has already been reported both on Arch bugzilla and upstream:
https://bugs.archlinux.org/task/49243There's also a patch file which works for firefox 46.0.1, but not for 45esr
Edit: we could also try to compile with '-fno-lifetime-dse -fno-delete-null-pointer-checks', although it's better to fix the code.