Public bug reported: I'm testing stress-ng on FreeBSD and I noted some compile problems, if an older compiler stack is used (normally it's a clang or gcc4.2.1 problem). As maintainer of stree-ng port on FreeBSD (http://www.freshports.org/benchmarks/stress-ng/), pushing patches to upstream is one of my task. For that reason, a patch is provided; the goal is to extend the compatibility of stress-ng with other Unixes or older Linux distros.
If floating point complex functions are missing (because the libm is not STDC_IEC_559_COMPLEX compliant), this patch avoid to compile stress_cpu_complex functions in a clean way, using the __STDC_IEC_559_COMPLEX__ preprocessor definition. The three functions stress_cpu_complex_double(), stress_cpu_complex_float() and stress_cpu_complex_long_double() are not compiled and executed. I'm not sure if it's done in the right way and for that I need the review of the official maintainer. ** Affects: stress-ng (Ubuntu) Importance: Undecided Status: New ** Patch added: "The patch to check if floating-point complex functions are provided by the C library" https://bugs.launchpad.net/bugs/1500349/+attachment/4477319/+files/patch-complex -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1500349 Title: Complex conditional compilation To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/stress-ng/+bug/1500349/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs