Hi Helmut,

Thanks a lot for providing the info.
I have raised a PR for this: https://github.com/ColinIanKing/stress-ng/pull/591

When doing the cross compilation, although the CC and CXX variables was set to 
the target architecture's toolchain, it was using the native objdump. So, 
Makefile.machine, instead of generating the output s390, was generating big 
which caused the if condition in the Makefile to fail and led to the addition 
of -fmodulo-sched flag to CC which resulted in the insane build time.

/usr/share/dpkg/buildtools.mk sets all the necessary variables including CC, 
CXX and OBJDUMP accordingly and hence exporting it fixes the issue.

And as you suggested in a previous mail, adding -dumpmachine flag is a very 
promising idea and doesn't seem to be prone to errors like this.

Thanks and Regards,
Pranav

Reply via email to