[build2] Installation Error on Manjaro
Alex Syrnikov
san at masterspline.eu
Tue Apr 7 08:09:41 UTC 2020
IMHO, build system MUST start whole process (not just compilers call)
from setting environment for himself:
LC_NAME=C # do not remember why
LC_MESSAGES=C # to fix messages parsing not just build system but IDE too
LC_COLLATE=C # to fix patch sorting order in directory by ls -1
patches_dir | while read f; do patch -p1 < "$f"; done
LC_ALL=C
LANGUAGE=C
LANG=C
This will not only fix compiler run but other tools and IDE messages
parsing. And off cause this will make exotic errors in external tools.
On 06.04.2020 17:49, Boris Kolpackov wrote:
> Markus Pawellek <markus.pawellek at mailbox.org> writes:
>
>> $ g++ --version
>> g++ (Arch Linux 9.3.0-1) 9.3.0
>>
>> Based on the output in another language, I have changed the system
>> language from German to English. After restarting the computer, the
>> build2 installation process finished successfully. Could it be that
>> the installation process needs some language-specific settings?
> Uh, this is actually a messy problem that we've been trying to solve
> for some time now. The problem is that different translations change
> the format of the output from which we try to extract information,
> such as the compiler version. For example, in the above case they for
> some reason decided to throw away the word "version" and move the
> version itself to the end.
>
> The proper way to solve this it seems is to invoke the compiler with
> LC_ALL=C as the locale. Though it has issues of its own, like the need
> to print this information when we print the commands we execute (-V).
> It's also not clear how well this works across all the platforms even
> though it should according to POSIX. But I think we've had enough of
> this to give it a try.
>
> We will hopefully have something ready by to tomorrow (in the staged
> toolchain form) and it would be great if you could try it on your
> setup. Will let you know once it's available.
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: OpenPGP digital signature
URL: <https://lists.build2.org/archives/users/attachments/20200407/7885f867/attachment.sig>
More information about the users
mailing list