Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RE error: illegal byte sequence #186

Open
ShadowMikado opened this issue Dec 29, 2023 · 10 comments
Open

RE error: illegal byte sequence #186

ShadowMikado opened this issue Dec 29, 2023 · 10 comments

Comments

@ShadowMikado
Copy link

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 ?

@dktapps
Copy link
Member

dktapps commented Jan 5, 2024

Please show the arguments passed to compile.sh

@ShadowMikado
Copy link
Author

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

@dktapps
Copy link
Member

dktapps commented Jan 8, 2024

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

@dktapps
Copy link
Member

dktapps commented Jan 8, 2024

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

@ShadowMikado
Copy link
Author

same error: sed: RE error: illegal byte sequence

@dktapps
Copy link
Member

dktapps commented Jan 8, 2024

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

@ShadowMikado
Copy link
Author

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.

@dktapps
Copy link
Member

dktapps commented Jan 8, 2024

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

@ShadowMikado
Copy link
Author

Can I close the issue ?

@dktapps
Copy link
Member

dktapps commented Jan 9, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants