You are not logged in.

#1 2019-07-02 23:19:45

joaocandre
Member
Registered: 2013-02-23
Posts: 146

[SOLVED] makepkg hanging at 'Starting build()'

I'm trying to compile `python-rosdep` but after calling makepkg it hangs infinitely on "Starting build()". I've tried with several AUR helpers and manually calling makepkg and the result is always the same. I can, however, install other AUR packages.

Is this a problem on the package/PKGBUILD/source files, or on my side? Is there a way to get a more verbose output of makepkg?

Last edited by joaocandre (2019-07-04 22:39:15)

Offline

#2 2019-07-03 07:09:26

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,429

Re: [SOLVED] makepkg hanging at 'Starting build()'

There's very little makepkg involvement here run

pacman -Qkk python-setuptools
strace python setup.py build

in the relevant folder, maybe something turns up. Educated guess, did you ever install anything with sudo pip? You shouldn't.

Online

#3 2019-07-03 12:23:45

joaocandre
Member
Registered: 2013-02-23
Posts: 146

Re: [SOLVED] makepkg hanging at 'Starting build()'

Not that I recall honestly, but I can't be sure. I may have used pip in the past to install packages in the past, but this problem started over this last week.

The first command outputs `python-setuptools: 192 total files, 0 altered files`

And the second leaves me in a jumble of characters, and apparently `read()` keeps being called, waiting for keyboard input? Maybe that is why it hangs.

Offline

#4 2019-07-04 16:59:22

joaocandre
Member
Registered: 2013-02-23
Posts: 146

Re: [SOLVED] makepkg hanging at 'Starting build()'

I noticed that at this moment, I can't build any AUR packages, no matter which helper I use. It always hangs somewhere during the build process. Is there a way to debug exactly what is happening?

Offline

#5 2019-07-04 17:53:09

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,429

Re: [SOLVED] makepkg hanging at 'Starting build()'

Usual suspects, you contain something in your PATH that masks an actual existing and standard binary: See https://bbs.archlinux.org/viewtopic.php?id=247306 for another example of this. Check/remove any path adjustments, and/or verify which binaries you are masking. Alternatively a broken bash? Did you do partial updates at some point ?

FWIW you might want to post at least part of that strace (or rather strace makepkg instead...) as it will likely clear up things and/or initiate a build with

bash -x makepkg

.

Last edited by V1del (2019-07-04 17:58:19)

Online

#6 2019-07-04 22:38:48

joaocandre
Member
Registered: 2013-02-23
Posts: 146

Re: [SOLVED] makepkg hanging at 'Starting build()'

Thanks, I think was able to solve it.

I had a script `/usr/local/bin/python` in order to force previous ROS projects to use python2, as suggested [in the wiki](https://wiki.archlinux.org/index.php/Py … ld_scripts), but since then I have uninstalled ROS completely and removed the project folders, so that script was hanging there.

Offline

Board footer

Powered by FluxBB