[graalvm-dev] Avoiding NINJA dependency

Foivos Zakkak fzakkak at redhat.com
Tue Apr 28 13:34:14 PDT 2020


Hi Christian,

The issue is that the build system does not have internet access and it
also doesn't support pypi, thus the build fails when trying to fetch
ninja_syntax (ninja can be installed through the repositories but
ninja_syntax is not available). We can add exceptions but we try to keep
those to a minimum.

Would a change like the one suggested by Gilles, that would make mx
resort to makefiles only when a special parameter is passed to mx, be
acceptable?
The Makefiles should preferably be generated to avoid the need of
maintaining them and we could add checks to allow the use of this flag
only on specific platforms. 

Thanks,
Foivos

On 28/04/2020 21:42, Christian Wimmer wrote:
> Hi,
>
> Ninja is a pretty established build tool. Why is the dependency a problem?
> Our initial hand-written make files were not portable (especially to 
> Windows). Automatically generating make files (or nmake files on 
> Windows) seems like making things worse.
>
> -Christian
>
>
> On 4/28/20 06:31, Foivos Zakkak wrote:
>> Hello all,
>>
>> I am trying to avoid the dependency on NINJA when building native 
>> libraries like libchelper.
>> Are you aware of any way to achieve this without manually writing Makefiles?
>>
>> Additionally, if I were to write the required Makefiles and alter the 
>> corresponding suite.py files is there any chance such a change would 
>> make it upstream or is NINJA the only way forward?
>> I see that makefiles are only used by sulong at the moment.
>>
>> Thanks
>> -- 
>>
>> Foivos Zakkak
>>
>> Senior Software Engineer, R&D Product Middleware
>>
>> Red Hat 
>> <https://urldefense.com/v3/__https://www.redhat.com__;!!GqivPVa7Brio!IxC-AQYSTh7M2kDyVowp6AdQFBTypGVR3YBR31dp586yDD2u6XGy0_Nxre--NZSYbjpwaA$> 
>>
>>
>> 7B4069D929BAAE91C0B3220A0846BFD103F04EA1
>>
>>
>> _______________________________________________
>> GraalVM-Dev mailing list
>> GraalVM-Dev at oss.oracle.com
>> https://oss.oracle.com/mailman/listinfo/graalvm-dev
>>
> _______________________________________________
> GraalVM-Dev mailing list
> GraalVM-Dev at oss.oracle.com
> https://oss.oracle.com/mailman/listinfo/graalvm-dev
>
-- 
Foivos Zakkak
Senior Software Engineer, R&D Product Middleware
Red Hat
7B4069D929BAAE91C0B3220A0846BFD103F04EA1 (keys.gnupg.net)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
Url : http://oss.oracle.com/pipermail/graalvm-dev/attachments/20200428/f2350374/attachment.bin 


More information about the GraalVM-Dev mailing list