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

mat at matws.net mat at matws.net
Wed Oct 24 14:10:43 MDT 2012


can you strace -p the gcc process and see if it moves ?
You can also try to GDP the process and once in GDP h it ctrl-c and then bt to see where it is.

Hth Matthieu

On Oct 24, 2012, at 2:04 AM, Andrew Bartlett <abartlet at samba.org> wrote:

> On Wed, 2012-10-24 at 09:24 +0100, Edward Ashley wrote:
>> Hi,
>> I have tried both RC4 and samba-master from the repository but I can't seem
>> to get samba4 to compile. I have rebuilt the OS (Centos 6.3) from scratch,
>> applied all updates and followed the samba4 howto but I am still having the
>> same issue. I get:
>> 
>> # make
>> WAF_MAKE=1 ./buildtools/bin/waf build
>> Waf: Entering directory `/opt/samba-master/bin'
>> Selected embedded Heimdal build
>> [ 133/3978] Generating VERSION
>> [ 168/3978] Generating smbd/build_options.c
>> [1815/3978] Compiling librpc/ndr/ndr_basic.c
>> 
>> As previously suggested I have run make V=1 and make V=2 with the following
>> output:
> 
>> And when adding the path to a config.h that I found so:
>> 
>> # /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../bin/default/include/ -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
>> 
>> It just hangs with no output.
>> 
>> 
>> Sorry for the long post, has anyone got any clues as to why this is
>> happening?
> 
> We don't, at this point.  BTW, The normal gcc command is run in 'bin',
> which is why all the paths have a ../ on them.  If run from there, you
> shouldn't need the extra include for config.h
> 
> It's always a cop-out to cry 'compiler bug', but I'm lost as to what
> else it could be.  Do you have any further indication on what exactly
> that gcc command is doing when hung? 
> 
> There isn't anything on that command that could be confused for 'stdin',
> so I'm really quite lost.  Are ../librpc/ndr/ndr_basic.c and
> default/librpc/ndr/ndr_basic_156.o both normal files?
> 
> Thanks,
> 
> Andrew Bartlett
> 
> -- 
> Andrew Bartlett                                http://samba.org/~abartlet/
> Authentication Developer, Samba Team           http://samba.org
> 
> 
On Wed, 2012-10-24 at 09:24 +0100, Edward Ashley wrote:
> Hi,
> I have tried both RC4 and samba-master from the repository but I can't seem
> to get samba4 to compile. I have rebuilt the OS (Centos 6.3) from scratch,
> applied all updates and followed the samba4 howto but I am still having the
> same issue. I get:
> 
> # make
> WAF_MAKE=1 ./buildtools/bin/waf build
> Waf: Entering directory `/opt/samba-master/bin'
> Selected embedded Heimdal build
> [ 133/3978] Generating VERSION
> [ 168/3978] Generating smbd/build_options.c
> [1815/3978] Compiling librpc/ndr/ndr_basic.c
> 
> As previously suggested I have run make V=1 and make V=2 with the following
> output:

> And when adding the path to a config.h that I found so:
> 
> # /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../bin/default/include/ -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
> 
> It just hangs with no output.
> 
> 
> Sorry for the long post, has anyone got any clues as to why this is
> happening?

We don't, at this point.  BTW, The normal gcc command is run in 'bin',
which is why all the paths have a ../ on them.  If run from there, you
shouldn't need the extra include for config.h

It's always a cop-out to cry 'compiler bug', but I'm lost as to what
else it could be.  Do you have any further indication on what exactly
that gcc command is doing when hung? 

There isn't anything on that command that could be confused for 'stdin',
so I'm really quite lost.  Are ../librpc/ndr/ndr_basic.c and
default/librpc/ndr/ndr_basic_156.o both normal files?

Thanks,

Andrew Bartlett

-- 
Andrew Bartlett                                http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org





More information about the samba mailing list