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

2020-10-16 Thread Alexey Izbyshev


Change by Alexey Izbyshev :


--
resolution:  -> not a bug

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-02-03 Thread Michael Felt


Michael Felt  added the comment:

closing. Will open a new issue with a correct description of the issue at hand. 
The problem is related to 64-bit mode (which was not mentioned before) and 
minor() major() macro definitions.

--
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2019-02-21 Thread Michael Felt

Michael Felt  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)&0x);
   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  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 
> 
> ___
>

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2019-02-19 Thread Alexey Izbyshev


Alexey Izbyshev  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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2019-02-19 Thread Michael Felt


Michael Felt  added the comment:

correction - gcc version is v4.7.4

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2019-02-19 Thread Michael Felt


New submission from Michael Felt :

On a system using an older version of gcc (v5.7.4) I get an error: (also AIX 
6.1)

gcc -pthread -Wno-unused-result -Wsign-compare -g -O0 -Wall  -O  
-std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter 
-Wno-missing-field-initializers -Werror=implicit-function-declaration  
-I./Include/internal  -I. -I./Include-DPy_BUILD_CORE_BUILTIN  
-DPy_BUILD_CORE -I./Include/internal -c ./Modules/posixmodule.c -o 
Modules/posixmodule.o
./Modules/posixmodule.c: In function 'os_preadv_impl':
./Modules/posixmodule.c:8765:9: error: implicit declaration of function 
'preadv' [-Werror=implicit-function-declaration]
./Modules/posixmodule.c: In function 'os_pwritev_impl':
./Modules/posixmodule.c:9336:9: error: implicit declaration of function 
'pwritev' [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors

On another system - same code base (commit 
e7a4bb554edb72fc6619d23241d59162d06f249a) no "error" status. (AIX 7.2)

Not knowing gcc I have no idea which is correct - maybe they both are because 
the second system (where I am a guest) has an explicit declaration of these 
routines.

Is there a flag I can add to gcc to get the "in-line" pre-processing output so 
I can look for differences with regard to these two functions?

Thanks for hint.

--
messages: 335936
nosy: Michael.Felt
priority: normal
severity: normal
status: open
title: Suprise halt caused by -Werror=implicit-function-declaration in 
./Modules/posixmodule.c
type: compile error
versions: Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com