build failure

55 views
Skip to first unread message

tooth pik

unread,
Aug 11, 2024, 3:13:08 PM8/11/24
to vim...@googlegroups.com
something broke my python3/dyn build

in function ListItem
if_python3.c 312:24 error:  dereferencing pointer to incomplete type 'PyTypeObject'

Christian Brabandt

unread,
Aug 11, 2024, 3:24:18 PM8/11/24
to vim...@googlegroups.com
what version is this? What python3 version are you using?

Thanks,
Christian
--
"There is such a fine line between genius and stupidity."
-- David St. Hubbins, "Spinal Tap"

tooth pik

unread,
Aug 11, 2024, 3:28:48 PM8/11/24
to vim...@googlegroups.com
my python is 3.6.15

my os is opensuse 15.4

i am attaching a screen grab of the error, i seem to have forgotten how to use clipboard
in x11

--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/ZrkP2/WDOHPRT64M%40256bit.org.
Screenshot_20240811_142110.png

Christian Brabandt

unread,
Aug 11, 2024, 3:34:21 PM8/11/24
to vim...@googlegroups.com

On So, 11 Aug 2024, tooth pik wrote:

> my python is 3.6.15
>
> my os is opensuse 15.4
>
> i am attaching a screen grab of the error, i seem to have forgotten how to use
> clipboard
> in x11

python 3.6 is end of life for some time already. Can you try an updated
python 3 please? I'll check with 3.6 later, but cannot make any
guarantees.


Thanks,
Christian
--
Avoid cliches like the plague. They're a dime a dozen.

tooth pik

unread,
Aug 11, 2024, 3:40:35 PM8/11/24
to vim...@googlegroups.com
ooof -- i've been putting off the upgrade from suse 15.4 to 15.5, those upgrades
can be such a pain -- as it stands, for the repositories i have, 3.6.15 is as good
as it gets

--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+u...@googlegroups.com.

Christian Brabandt

unread,
Aug 11, 2024, 3:50:08 PM8/11/24
to vim...@googlegroups.com

On So, 11 Aug 2024, tooth pik wrote:

> ooof -- i've been putting off the upgrade from suse 15.4 to 15.5, those
> upgrades
> can be such a pain -- as it stands, for the repositories i have, 3.6.15 is as
> good
> as it gets

What version did you compile? What are your compile settings? Have you
tried --with-python3-stable-abi=36 ?

Thanks,
Christian
--
The best diplomat I know is a fully activated phaser bank.
-- Scotty

tooth pik

unread,
Aug 11, 2024, 4:41:45 PM8/11/24
to vim...@googlegroups.com
that didn't take until i put a dot between the 3 and the 6

it then took, but the build still failed in the same place

--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+u...@googlegroups.com.

tooth pik

unread,
Aug 11, 2024, 5:03:17 PM8/11/24
to vim...@googlegroups.com
in xterm drag the mouse to highlight, in your target hit the middle
mouse button -- any fool can paste from an xterm

if_python3.c
if_py_both.h: In function ‘ListItem’:
if_python3.c:312:24: error: dereferencing pointer to incomplete type ‘PyTypeObject {aka struct _typeobject}’
 # define PySlice_Type (*py3_PySlice_Type)
                        ^~
/usr/include/python3.6m/sliceobject.h:31:44: note: in expansion of macro ‘PySlice_Type’
 #define PySlice_Check(op) (Py_TYPE(op) == &PySlice_Type)
                                            ^~~~~~~~~~~~
if_py_both.h:2745:14: note: in expansion of macro ‘PySlice_Check’
     else if (PySlice_Check(idx))
              ^~~~~~~~~~~~~
make[1]: *** [Makefile:3308: objects/if_python3.o] Error 1

Christian Brabandt

unread,
Aug 12, 2024, 3:48:28 AM8/12/24
to vim...@googlegroups.com

On So, 11 Aug 2024, tooth pik wrote:

> that didn't take until i put a dot between the 3 and the 6
>
> it then took, but the build still failed in the same place

So what patch introduced the problem? v9.1.0369 or v9.1.0368?

Mit freundlichen Grüßen
Christian
--
Love IS what it's cracked up to be.

tooth pik

unread,
Aug 12, 2024, 8:46:00 AM8/12/24
to vim...@googlegroups.com
i don't know how to answer that

--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+u...@googlegroups.com.

Christian Brabandt

unread,
Aug 12, 2024, 12:54:08 PM8/12/24
to vim...@googlegroups.com
Hi,
please show/attach the full log for (including the build-error):

./configure --with-features=huge --enable-python3interp=yes --with-python3-stable-abi=3.6

And the error happens during compilation? Or when running Vim?

Thanks,
Chris

tooth pik

unread,
Aug 12, 2024, 3:05:09 PM8/12/24
to vim...@googlegroups.com
it happens during build

not sure what log you want to see so i'll start with 'myconfig':

#!/bin/bash
#  myconfigure whacks the old config.cash so it always works
cd /home/toothpik/.build/vim/vim || exit 1
date '+%Y-%b-%d %H:%M' >> ../configure.log
rm -vf src/auto/config.cache | tee -a ../configure.log
./configure --with-features=huge --with-compiledby=toothpik@home --enable-fail-if-missing --enable-gui=gtk3 --enable-python3interp=dynamic --enable-terminal --disable-rightleft --disable-arabic --with-python3-stable-ab=3.6 2>&1 | tee -a ../configure.log

i will attach my last configure.log..

also the build log...

--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+u...@googlegroups.com.
configure.log2
make.log2

Christian Brabandt

unread,
Aug 12, 2024, 6:22:26 PM8/12/24
to vim...@googlegroups.com
Hi,
I compiled my own Python3.6.8 version and tried to reproduce but
couldn't. I'd really recommend to upgrade your system, considering that
Python3.6 and Leap 15.4 is end-of-life already.

Thanks,
Chris


On Mo, 12 Aug 2024, tooth pik wrote:

> it happens during build
>
> not sure what log you want to see so i'll start with 'myconfig':
>
> #!/bin/bash
> #  myconfigure whacks the old config.cash so it always works
> cd /home/toothpik/.build/vim/vim || exit 1
> date '+%Y-%b-%d %H:%M' >> ../configure.log
> rm -vf src/auto/config.cache | tee -a ../configure.log
> ./configure --with-features=huge --with-compiledby=toothpik@home --enable-fail-if-missing --enable-gui=gtk3 --enable-python3interp=dynamic --enable-terminal --disable-rightleft --disable-arabic --with-python3-stable-ab=3.6 2>&1 | tee -a ..
> /configure.log
>
> i will attach my last configure.log..
>
> also the build log...
>
> On Mon, Aug 12, 2024 at 11:54 AM Christian Brabandt <cbl...@256bit.org> wrote:
>
> Hi,
> please show/attach the full log for (including the build-error):
>
> ./configure --with-features=huge --enable-python3interp=yes --with-python3-stable-abi=3.6
>
> And the error happens during compilation? Or when running Vim?
>
> Thanks,
> Chris
>




Mit freundlichen Grüßen
Christian
--
Try `stty 0' -- it works much better.

Christian Brabandt

unread,
Aug 13, 2024, 4:27:11 AM8/13/24
to vim...@googlegroups.com

On Di, 13 Aug 2024, Christian Brabandt wrote:

> Hi,
> I compiled my own Python3.6.8 version and tried to reproduce but
> couldn't. I'd really recommend to upgrade your system, considering that
> Python3.6 and Leap 15.4 is end-of-life already.

The same issue happened on the vim-appimage repository, see here:
https://github.com/vim/vim-appimage/actions/runs/10361791149/job/28682712784

This was with gcc-9.4 and python3.8 on Ubuntu 20.04 LTS.

Turned out, this seems to be a gcc bug, so I had to change the
vim-appimage repository to compile using gcc-10 instead and (I hope)
this fixes the issue (https://github.com/vim/vim-appimage/pull/75)

Please check on your side as well please.

Thanks,
Christian
--
The camel has a single hump;
The dromedary two;
Or else the other way around.
I'm never sure. Are you?
-- Ogden Nash

tooth pik

unread,
Aug 13, 2024, 9:36:20 AM8/13/24
to vim...@googlegroups.com
my gcc is 7.5.0 with no higher option

i will upgrade my os, i promise...

--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+u...@googlegroups.com.

Christian Brabandt

unread,
Aug 13, 2024, 9:39:09 AM8/13/24
to vim...@googlegroups.com

On Di, 13 Aug 2024, tooth pik wrote:

> my gcc is 7.5.0 with no higher option
>
> i will upgrade my os, i promise...

yes, you really should. You are on an unsupported platform for quite a
while already and do not receive security updates.

Thanks,
Christian
--
<``Erik> 18,446,744,073,709,551,616 is a big number
Reply all
Reply to author
Forward
0 new messages