RE: Bug#1120809: stress-ng FTCBFS for s390x: -fmodulo-sched is not removed

Pranav P <[email protected]>
Newsgroups gmane.linux.debian.ports.s390
Message-ID <CO1PR15MB48418E3F1EBAFA3BFF464304A0D0A@CO1PR15MB4841.namprd15.prod.outlook.com>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.