PHP-Binaries icon indicating copy to clipboard operation
PHP-Binaries copied to clipboard

RE error: illegal byte sequence

Open ShadowMikado opened this issue 1 year ago • 10 comments

Hello, when building binaries on a Mac Mini with an M2 chip I got the error RE error: illegal byte sequence at the very end of the PHP build. There are no errors in the install.log file.

image

Can anyone solve my problem ?

ShadowMikado avatar Dec 29 '23 19:12 ShadowMikado

Please show the arguments passed to compile.sh

dktapps avatar Jan 05 '24 15:01 dktapps

Here is the command I sent: bash compile.sh -P 5 -t mac-arm64 -j 9

ShadowMikado avatar Jan 05 '24 17:01 ShadowMikado

Try doing ./compile.sh instead of bash compile.sh

dktapps avatar Jan 08 '24 11:01 dktapps

Also, leave out the -t option, you don't need it unless you're building for a different machine

dktapps avatar Jan 08 '24 11:01 dktapps

same error: sed: RE error: illegal byte sequence

ShadowMikado avatar Jan 08 '24 17:01 ShadowMikado

I'm not able to reproduce this on an M1 MacBook. Perhaps the path you're compiling in is the issue?

dktapps avatar Jan 08 '24 17:01 dktapps

I tried with a new path, and it worked! I think I know where the problem comes from. Being French, I use words with accents, hence the error "sed: RE error: illegal byte sequence" which comes from RE (probably a character not accepted by one of the compilers). Here, the name of my folder was "Développement" I renamed it to "Developpement" and it worked.

ShadowMikado avatar Jan 08 '24 19:01 ShadowMikado

Thanks, that makes sense. I'll probably flag this on the README as a pitfall issue.

dktapps avatar Jan 08 '24 20:01 dktapps

Can I close the issue ?

ShadowMikado avatar Jan 08 '24 20:01 ShadowMikado

Leave it for now. I'll see what can be done about it later.

dktapps avatar Jan 09 '24 11:01 dktapps