You are not logged in.

#1 2015-01-10 16:17:41

kevdog
Member
Registered: 2013-01-26
Posts: 107

[SOLVED] makepkg tends to hang indefinitely when building

I'm not that new to arch.  I'm currently installing arch via VB on MBP.

The makepkg command is hanging indefinitely when I'm trying to make multiple packages -- specifically cower and package-query

I get something like the following:

==> Creating package "cower"...

And then it hangs indefinitely.  I've waited like 10 minutes.  The same result occurred with package-query.

Is there anything I can do to debug this problem?

Last edited by kevdog (2015-01-10 18:45:49)

Offline

#2 2015-01-10 16:34:02

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,547
Website

Re: [SOLVED] makepkg tends to hang indefinitely when building

What are VB and MBP?

Is your system up-to-date? Have you merged any .pacnew files? If you run makepkg with strace, what do the last few messages say?

Last edited by WorMzy (2015-01-10 16:34:18)


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2015-01-10 17:27:46

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] makepkg tends to hang indefinitely when building

WorMzy wrote:

What are VB and MBP?

VirtualBox on MacBook Pro?

Offline

#4 2015-01-10 17:30:45

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,547
Website

Re: [SOLVED] makepkg tends to hang indefinitely when building

That would make sense. I was afraid it would be some third-party installer script thing.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#5 2015-01-10 18:19:32

kevdog
Member
Registered: 2013-01-26
Posts: 107

Re: [SOLVED] makepkg tends to hang indefinitely when building

Sorry VB = virtual box
MBP=MacBook Pro
Just installed everything this morning

I looked at the strace call.  I'm not finding much.  Here is some output:

read(3, "Entering %s environment...", 128) = 26
read(3, "", 128)                        = 0
close(3)                                = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGINT, {0x807e930, [], 0}, {0x8095410, [], 0}, 8) = 0
waitpid(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0) = 5728
rt_sigaction(SIGINT, {0x8095410, [], 0}, {0x807e930, [], 0}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5728, si_uid=1000, si_
status=0, si_utime=0, si_stime=0} ---
waitpid(-1, 0xbfb8dcb4, WNOHANG)        = -1 ECHILD (No child processes)
sigreturn() (mask [])                   = 0
fcntl64(1, F_GETFD)                     = 0
fcntl64(1, F_DUPFD, 10)                 = 10
fcntl64(1, F_GETFD)                     = 0
fcntl64(10, F_SETFD, FD_CLOEXEC)        = 0
dup2(2, 1)                              = 1
fcntl64(2, F_GETFD)                     = 0
write(1, "\33[1m\33[32m==>\33(B\33[m\33[1m Entering "..., 62) = 62
dup2(10, 1)                             = 1
fcntl64(10, F_GETFD)                    = 0x1 (flags FD_CLOEXEC)
close(10)                               = 0
stat64(".", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/usr/local/sbin/fakeroot", 0xbfb8e5ec) = -1 ENOENT (No such file or dire
ctory)
stat64("/usr/local/bin/fakeroot", 0xbfb8e5ec) = -1 ENOENT (No such file or direc
tory)
stat64("/usr/bin/fakeroot", {st_mode=S_IFREG|0755, st_size=3866, ...}) = 0
stat64("/usr/bin/fakeroot", {st_mode=S_IFREG|0755, st_size=3866, ...}) = 0
geteuid32()                             = 1000
getegid32()                             = 1000
getuid32()                              = 1000
getgid32()                              = 1000
access("/usr/bin/fakeroot", X_OK)       = 0
stat64("/usr/bin/fakeroot", {st_mode=S_IFREG|0755, st_size=3866, ...}) = 0
geteuid32()                             = 1000
getegid32()                             = 1000
getuid32()                              = 1000
getgid32()                              = 1000
access("/usr/bin/fakeroot", R_OK)       = 0
stat64("/usr/bin/fakeroot", {st_mode=S_IFREG|0755, st_size=3866, ...}) = 0
stat64("/usr/bin/fakeroot", {st_mode=S_IFREG|0755, st_size=3866, ...}) = 0
geteuid32()                             = 1000
getegid32()                             = 1000
getuid32()                              = 1000
getgid32()                              = 1000
access("/usr/bin/fakeroot", X_OK)       = 0
stat64("/usr/bin/fakeroot", {st_mode=S_IFREG|0755, st_size=3866, ...}) = 0
geteuid32()                             = 1000
getegid32()                             = 1000
getuid32()                              = 1000
getgid32()                              = 1000
access("/usr/bin/fakeroot", R_OK)       = 0
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [INT CHLD], 8) = 0
rt_sigprocmask(SIG_SETMASK, [INT CHLD], NULL, 8) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, chil
d_tidptr=0xb750c768) = 5729
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGINT, {0x807e930, [], 0}, {0x8095410, [], 0}, 8) = 0
waitpid(-1,

Offline

#6 2015-01-10 18:24:44

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,459
Website

Re: [SOLVED] makepkg tends to hang indefinitely when building

Strace is the right idea - but you need to use `strace -f` as the hang looks to be in a child process.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#7 2015-01-10 18:45:04

kevdog
Member
Registered: 2013-01-26
Posts: 107

Re: [SOLVED] makepkg tends to hang indefinitely when building

Hey thanks for that tip -- Believe it or not guys -- I have no idea how this effected the problem, but with VB I had put a line in my /etc/fstab file to automatically mount the host home or root directory.  I had also done this within the VB machine itself -- basically duplicating the functionality.  For some reason if I attempted to cd into the /media directory it would always hang.  Now I have no idea how this effected mkgpkg, however when doing the strace -f command I saw something in the output that mentioned the /media directory.  Anyway, I removed the offending entry within the fstab file and reboot the VM.  Everything now builds.  Again I'm confused how any error within the mount process could effect makepkg, however I suppose it might have something to do with entering a fakeroot environment which may then may try to mount directories, etc.  I'm guessing someone may know the exact process here.  Anyway thanks for the heads up on the strace -f call.

Offline

Board footer

Powered by FluxBB