Firstly, r7840 != 4.0-7840 (I fixed that for you -- r7840 is a build from SVN times and it's hugely outdated today). And about your actual issue, it seems that whatever you modified is now doing something illegal (trying to convert from an integer pointer to an unsigned char)...
Avell A70 MOB: Core i7-11800H, GeForce RTX 3060, 16 GB DDR4-3200, Windows 11 (Insider Preview)
ASRock Z97M OC Formula: Pentium G3258, GeForce GT 440, 16 GB DDR3-1600, Windows 10 (22H2)
ASRock Z97M OC Formula: Pentium G3258, GeForce GT 440, 16 GB DDR3-1600, Windows 10 (22H2)
