[Samba] Compiling samba4 hangs at [1815/3978] Compiling librpc/ndr/ndr_basic.c

Edward Ashley ned at redmonkeysoftware.com
Thu Oct 25 07:29:29 MDT 2012


Hi,
ccache is not installed. I have run the strace like this:

#strace /usr/bin/gcc -DDEVELOPER -DDEBUG_PASSWORD -fPIC -D_REENTRANT
-D_POSIX_PTHREAD_SEMANTICS -Wall -g -Wshadow -Werror=strict-prototypes
-Wstrict-prototypes -Werror=pointer-arith -Wpointer-arith -Wcast-align
-Werror=write-strings -Wwrite-strings -Werror-implicit-function-declaration
-Wformat=2 -Wno-format-y2k -Wmissing-prototypes -fno-common -Werror=address
-Wcast-qual -Werror=format -DSTATIC_ndr_MODULES=NULL
-DSTATIC_ndr_MODULES_PROTO -MD -Idefault/librpc -I../librpc
-Idefault/include/public -I../include/public -Idefault/source4 -I../source4
-Idefault/lib -I../lib -Idefault/source4/lib -I../source4/lib
-Idefault/source4/include -I../source4/include -Idefault/include
-I../include -Idefault/lib/replace -I../lib/replace -Idefault -I..
-Idefault/lib/socket_wrapper -I../lib/socket_wrapper -Idefault/lib/talloc
-I../lib/talloc -Idefault/lib/util/charset -I../lib/util/charset
-Idefault/lib/crypto -I../lib/crypto -Idefault/libcli/util -I../libcli/util
-Idefault/lib/nss_wrapper -I../lib/nss_wrapper -Idefault/lib/uid_wrapper
-I../lib/uid_wrapper -Idefault/dynconfig -I../dynconfig -I/
-I/usr/local/include -D_SAMBA_BUILD_=4 -DHAVE_CONFIG_H=1 -D_GNU_SOURCE=1
-D_XOPEN_SOURCE_EXTENDED=1 ../librpc/ndr/ndr_basic.c -c -o
default/librpc/ndr/ndr_basic_156.o
execve("/usr/bin/gcc", ["/usr/bin/gcc", "-DDEVELOPER", "-DDEBUG_PASSWORD",
"-fPIC", "-D_REENTRANT", "-D_POSIX_PTHREAD_SEMANTICS", "-Wall", "-g",
"-Wshadow", "-Werror=strict-prototypes", "-Wstrict-prototypes",
"-Werror=pointer-arith", "-Wpointer-arith", "-Wcast-align",
"-Werror=write-strings", "-Wwrite-strings", ...], [/* 29 vars */]) = 0
brk(0)                                  = 0xd2e000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f9489257000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or
directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=60481, ...}) = 0
mmap(NULL, 60481, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f9489248000
close(3)                                = 0
open("/lib64/libc.so.6", O_RDONLY)      = 3
read(3,
"\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\360\355a\2332\0\0\0"...,
832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1922112, ...}) = 0
mmap(0x329b600000, 3745960, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE,
3, 0) = 0x329b600000
mprotect(0x329b789000, 2097152, PROT_NONE) = 0
mmap(0x329b989000, 20480, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x189000) = 0x329b989000
mmap(0x329b98e000, 18600, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x329b98e000
close(3)                                = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f9489247000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f9489246000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f9489245000
arch_prctl(ARCH_SET_FS, 0x7f9489246700) = 0
mprotect(0x329b989000, 16384, PROT_READ) = 0
mprotect(0x329b01f000, 4096, PROT_READ) = 0
munmap(0x7f9489248000, 60481)           = 0
brk(0)                                  = 0xd2e000
brk(0xd4f000)                           = 0xd4f000
open("/usr/lib/locale/locale-archive", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=99158576, ...}) = 0
mmap(NULL, 99158576, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f94833b4000
close(3)                                = 0
open("/usr/share/locale/locale.alias", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=2512, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f9489256000
read(3, "# Locale name alias data base.\n#"..., 4096) = 2512
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x7f9489256000, 4096)            = 0
open("/usr/share/locale/en_US.UTF-8/LC_MESSAGES/gcc.mo", O_RDONLY) = -1
ENOENT (No such file or directory)
open("/usr/share/locale/en_US.utf8/LC_MESSAGES/gcc.mo", O_RDONLY) = -1
ENOENT (No such file or directory)
open("/usr/share/locale/en_US/LC_MESSAGES/gcc.mo", O_RDONLY) = -1 ENOENT
(No such file or directory)
open("/usr/share/locale/en.UTF-8/LC_MESSAGES/gcc.mo", O_RDONLY) = -1 ENOENT
(No such file or directory)
open("/usr/share/locale/en.utf8/LC_MESSAGES/gcc.mo", O_RDONLY) = -1 ENOENT
(No such file or directory)
open("/usr/share/locale/en/LC_MESSAGES/gcc.mo", O_RDONLY) = -1 ENOENT (No
such file or directory)
rt_sigaction(SIGINT, {SIG_IGN, [INT], SA_RESTORER|SA_RESTART,
0x329b632920}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGINT, {0x403017, [INT], SA_RESTORER|SA_RESTART,
0x329b632920}, {SIG_IGN, [INT], SA_RESTORER|SA_RESTART, 0x329b632920}, 8) =
0
rt_sigaction(SIGHUP, {SIG_IGN, [HUP], SA_RESTORER|SA_RESTART,
0x329b632920}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGHUP, {0x403017, [HUP], SA_RESTORER|SA_RESTART,
0x329b632920}, {SIG_IGN, [HUP], SA_RESTORER|SA_RESTART, 0x329b632920}, 8) =
0
rt_sigaction(SIGTERM, {SIG_IGN, [TERM], SA_RESTORER|SA_RESTART,
0x329b632920}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGTERM, {0x403017, [TERM], SA_RESTORER|SA_RESTART,
0x329b632920}, {SIG_IGN, [TERM], SA_RESTORER|SA_RESTART, 0x329b632920}, 8)
= 0
rt_sigaction(SIGPIPE, {SIG_IGN, [PIPE], SA_RESTORER|SA_RESTART,
0x329b632920}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGPIPE, {0x403017, [PIPE], SA_RESTORER|SA_RESTART,
0x329b632920}, {SIG_IGN, [PIPE], SA_RESTORER|SA_RESTART, 0x329b632920}, 8)
= 0
rt_sigaction(SIGCHLD, {SIG_DFL, [CHLD], SA_RESTORER|SA_RESTART,
0x329b632920}, {SIG_DFL, [], 0}, 8) = 0
lstat("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/bin", {st_mode=S_IFDIR|0555, st_size=45056, ...}) = 0
lstat("/usr/bin/gcc", {st_mode=S_IFREG|0755, st_size=268096, ...}) = 0
lstat("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/bin", {st_mode=S_IFDIR|0555, st_size=45056, ...}) = 0
lstat("/usr/bin/gcc", {st_mode=S_IFREG|0755, st_size=268096, ...}) = 0
access("/usr/lib/gcc/x86_64-redhat-linux/4.4.6/", X_OK) = 0
access("/usr/lib/gcc/x86_64-redhat-linux/4.4.6/", X_OK) = 0
access("../librpc/ndr/ndr_basic.c", F_OK) = 0
access("/usr/lib/gcc/x86_64-redhat-linux/4.4.6/specs", R_OK) = -1 ENOENT
(No such file or directory)
access("/usr/lib/gcc/x86_64-redhat-linux/4.4.6/specs", R_OK) = -1 ENOENT
(No such file or directory)
access("/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../x86_64-redhat-linux/lib/x86_64-redhat-linux/4.4.6/specs",
R_OK) = -1 ENOENT (No such file or directory)
access("/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../x86_64-redhat-linux/lib/specs",
R_OK) = -1 ENOENT (No such file or directory)
access("/usr/lib/gcc/x86_64-redhat-linux/specs", R_OK) = -1 ENOENT (No such
file or directory)
access("/usr/lib/gcc/x86_64-redhat-linux/4.4.6/", X_OK) = 0
access("/tmp", R_OK|W_OK|X_OK)          = 0
gettimeofday({1351171586, 629103}, NULL) = 0
getpid()                                = 12572
open("/tmp/ccX1sGbp.s", O_RDWR|O_CREAT|O_EXCL, 0600) = 3
close(3)                                = 0
stat("/usr/libexec/gcc/x86_64-redhat-linux/4.4.6/cc1",
{st_mode=S_IFREG|0755, st_size=9326392, ...}) = 0
access("/usr/libexec/gcc/x86_64-redhat-linux/4.4.6/cc1", X_OK) = 0
vfork()                                 = 12573
wait4(12573, 0xd36a70, 0, NULL)         = ? ERESTARTSYS (To be restarted)
--- SIGWINCH (Window changed) @ 0 (0) ---
wait4(12573,

HTH, if I need to use a different strace command or switch please let me
know.
Thanks
Ned

On 25 October 2012 11:37, Andrew Bartlett <abartlet at samba.org> wrote:

> On Thu, 2012-10-25 at 11:24 +0100, Edward Ashley wrote:
> > Hi,
> > Sorry I have been so quiet but has been difficult for me to get some
> > time to look into it. Basically this is what has happened for me so
> > far (I am running virtual machines on KVM for this):
> > I setup centos 6.3 x86_64 with all latest updates. I ran the yum
> > install which is recommended in the OS Requirements documentation.
> > Grabbed a copy of the samba-master and compiled and made it
> > successfully. I provisioned a domain and everything seemed fine, until
> > I could not add a windows 7 machine to the domain. It kept coming back
> > with an error message on the windows machine whenever I tried to add
> > it to the domain. I tried to debug this and I think it came down to
> > the internal dns server not being able to update itself as there was
> > no dns.keytab file or something like that. Anyway I decided that I
> > would make uninstall and make clean and start again with a fresh
> > compilation, so I started back at the ./configure.developer stage and
> > never got passed hanging at compiling ndr_basic.c. In the end I
> > thought I would scratch that setup and try on a fresh rebuild.
> > So I started again, installed Centos 6.3 x86_64, installed all
> > updates, ran the yum from the OS requirements and grabbed
> > samba-master. This time it hang straight away at compiling
> > ndr_basic.c. So I tried a packaged version which I think was RC4, same
> > result.
> > To answer a few things that have so far been asked, yes kernel-devel
> > is installed and it doesn't make a difference. I have tried the gcc
> > command from the bin folder, no change. A make clean doesn't make any
> > difference it just starts from the beginning again.
>
> is ccache installed?  does a 'ccache -C' help?
>
> Certainly let's work from the gcc command run from the bin folder, as
> that avoids all the waf lines.
>
> An interesting idea would be to see if a copy of this exact tree, run on
> a different (currently successful) host succeeds for fails.
>
> > I will try and debug more (trying the strace) but I don't know how
> > quickly I can to it.
> > Thanks
> > Ned
>
> Please do the strace of the gcc command.
>
> Thanks,
>
> Andrew Bartlett
>
> --
> Andrew Bartlett                                http://samba.org/~abartlet/
> Authentication Developer, Samba Team           http://samba.org
>
>
>
Edward Ashley
Developer

e. ned at redmonkeysoftware.com
u. www.redmonkeysoftware.com
t. 0845 867 3849
f. 0845 867 4127

Red Monkey Software | Superior Software Solutions

Red Monkey Software Ltd, 24 The Layne, Elmer Sands, Bognor Regis, West Sussex. PO22 6JL
Registered in England and Wales no 5923420
Registered Office: 20 Springfield Road, Crawley, West Sussex, RH11 8AD


More information about the samba mailing list