[issue36034] Suprise halt caused by -Werror=implicit-function-declaration in ./Modules/posixmodule.c

Michael Felt report at bugs.python.org
Thu Feb 21 06:19:04 EST 2019


Michael Felt <aixtools at felt.demon.nl> added the comment:

xlc has an option -qsource that creates output like this - first showing
the code with macro, then showing the expansion

>>>>> SOURCE SECTION <<<<<
...
       16 |         dev = st.st_dev;
       17 |         minor = minor(dev);
       17 +         minor = (int)((dev)&0xFFFF);
       18 |         major = major(dev);
       18 +         major = (int)((unsigned)(dev)>>16);

I'll check and see if -E processes the output in the same way. Thx.

On 2/19/2019 9:29 PM, Alexey Izbyshev wrote:
> Alexey Izbyshev <izbyshev at ispras.ru> added the comment:
>
> I don't know what you mean by "in-line" pre-processing output, but you can use -E option to get the normal preprocessor output. Line directives will tell you where those functions come from on a system where there is no compilation error.
>
> Of course, if those functions are defined in some other headers on AIX 6.1, it won't help you, so you might as well just grep /usr/include :)
>
> ----------
> nosy: +izbyshev
>
> _______________________________________
> Python tracker <report at bugs.python.org>
> <https://bugs.python.org/issue36034>
> _______________________________________
>

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36034>
_______________________________________


More information about the Python-bugs-list mailing list