This is the mail archive of the
cygwin-apps
mailing list for the Cygwin project.
Re: 64 bit: build problems
- From: Thomas Wolff <towo at towo dot net>
- To: cygwin-apps at cygwin dot com
- Date: Fri, 29 Mar 2013 12:37:55 +0100
- Subject: Re: 64 bit: build problems
- References: <51548FB0 dot 8020705 at towo dot net> <20130328195149 dot GE11845 at calimero dot vinschen dot de> <5155584B dot 70504 at towo dot net> <20130329094213 dot GA11950 at calimero dot vinschen dot de>
Am 29.03.2013 10:42, schrieb Corinna Vinschen:
On Mar 29 10:00, Thomas Wolff wrote:
Am 28.03.2013 20:51, schrieb Corinna Vinschen:
On Mar 28 19:45, Thomas Wolff wrote:
I've tried to build my package (mined) with freshly installed 64-bit
cygwin (default + gcc + make).
When I try it with make, nothing happens, make simply hangs.
When I try it without make, it fails with:
linking mined
/usr/lib/gcc/x86_64-pc-cygwin/4.8.0/../../../../x86_64-pc-cygwin/bin/ld:
cannot find -ladvapi32
/usr/lib/gcc/x86_64-pc-cygwin/4.8.0/../../../../x86_64-pc-cygwin/bin/ld:
cannot find -lshell32
/usr/lib/gcc/x86_64-pc-cygwin/4.8.0/../../../../x86_64-pc-cygwin/bin/ld:
cannot find -luser32
/usr/lib/gcc/x86_64-pc-cygwin/4.8.0/../../../../x86_64-pc-cygwin/bin/ld:
cannot find -lkernel32
From your cygcheck output w32api is, in fact, missing, just as Adam wrote. Other than that, the hang is strange. I installed Cygwin 64 on 3 machines, W7, 2K8R2, and W8, and none of them is suffering a hang.
I don't know what to say. Can you try to debug that?
make -d reads all makefiles (with includes), then hangs.
make option --trace, as mentioned in the manual page, does not exist.
Any further hints how/what to debug?
strace and gdb are the usual tools here. I don't know what to say else.
I'm running native builds using cygport for a couple of days now, and
sure enough I found a few bugs, but I didn't have a make hang at all.
Are you trying to build the exact 2012.22 package? What's your exact
set of make options? I can try if this occurs for me too.
I verified that my local copy is identical to the 2012.22 package.
Then strace gave me some hint indeed;
If I comment out line 573 of include file mkinclud.mak (the "links:"
target), all works fine.
Otherwise, strace ends like this:
401 1643027 [main] make 1412 stat64: entering
16 1643043 [main] make 1412 normalize_posix_path: src ./links
18 1643061 [main] make 1412 cwdstuff::get: posix
/cygdrive/d/temp/mined-2012.22/src
15 1643076 [main] make 1412 cwdstuff::get:
(/cygdrive/d/temp/mined-2012.22/src) = cwdstuff::get (0x600000010,
32768, 1, 0), errno 2
17 1643093 [main] make 1412 normalize_posix_path:
/cygdrive/d/temp/mined-2012.22/src/links = normalize_posix_path (./links)
16 1643109 [main] make 1412 mount_info::conv_to_win32_path:
conv_to_win32_path (/cygdrive/d/temp/mined-2012.22/src/links)
20 1643129 [main] make 1412 mount_info::cygdrive_win32_path: src
'/cygdrive/d/temp/mined-2012.22/src/links', dst
'D:\temp\mined-2012.22\src\links'
23 1643152 [main] make 1412 set_flags: flags: binary (0x2)
17 1643169 [main] make 1412 mount_info::conv_to_win32_path: src_path
/cygdrive/d/temp/mined-2012.22/src/links, dst
D:\temp\mined-2012.22\src\links, flags 0x4
022, rc 0
43 1643212 [main] make 1412 symlink_info::check: 0xC0000034 =
NtCreateFile (\??\D:\temp\mined-2012.22\src\links)
21 1643233 [main] make 1412 symlink_info::check: 0xC0000034 =
NtQueryInformationFile (\??\D:\temp\mined-2012.22\src\links)
60 1643293 [main] make 1412 symlink_info::check: 0xC0000034 =
NtCreateFile (\??\D:\temp\mined-2012.22\src\links.exe)
21 1643314 [main] make 1412 symlink_info::check: 0xC0000034 =
NtQueryInformationFile (\??\D:\temp\mined-2012.22\src\links.exe)
36 1643350 [main] make 1412 symlink_info::check: 0xC0000034 =
NtCreateFile (\??\D:\temp\mined-2012.22\src\links.lnk)
22 1643372 [main] make 1412 symlink_info::check: 0xC0000034 =
NtQueryInformationFile (\??\D:\temp\mined-2012.22\src\links.lnk)
38 1643410 [main] make 1412 symlink_info::check: 0xC0000034 =
NtCreateFile (\??\D:\temp\mined-2012.22\src\links.exe.lnk)
18 1643428 [main] make 1412 symlink_info::check: 0xC0000034 =
NtQueryInformationFile (\??\D:\temp\mined-2012.22\src\links.exe.lnk)
18 1643446 [main] make 1412 symlink_info::check: 0 =
symlink.check(D:\temp\mined-2012.22\src\links, 0x227700) (0x404022)
17 1643463 [main] make 1412 mount_info::conv_to_win32_path:
conv_to_win32_path (/cygdrive/d/temp/mined-2012.22/src)
34 1643497 [main] make 1412 mount_info::cygdrive_win32_path: src
'/cygdrive/d/temp/mined-2012.22/src', dst 'D:\temp\mined-2012.22\src'
18 1643515 [main] make 1412 set_flags: flags: binary (0x2)
15 1643530 [main] make 1412 mount_info::conv_to_win32_path: src_path
/cygdrive/d/temp/mined-2012.22/src, dst D:\temp\mined-2012.22\src, flags
0x4022, rc 0
41 1643571 [main] make 1412 symlink_info::check: 0x0 = NtCreateFile
(\??\D:\temp\mined-2012.22\src)
26 1643597 [main] make 1412 symlink_info::check: not a symlink
30 1643627 [main] make 1412 symlink_info::check: 0 =
symlink.check(D:\temp\mined-2012.22\src, 0x227700) (0x4022)
18 1643645 [main] make 1412 path_conv::check:
this->path(D:\temp\mined-2012.22\src\links), has_acls(1)
19 1643664 [main] make 1412 __set_errno: int stat_worker(path_conv&,
stat*):1880 setting errno 2
32 1643696 [main] make 1412 stat_worker: -1 =
(\??\D:\temp\mined-2012.22\src\links,0x228960)
271 1643967 [main] make 1412 stat64: entering
15 1643982 [main] make 1412 normalize_posix_path: src //xmined
18 1644000 [main] make 1412 normalize_posix_path: //xmined =
normalize_posix_path (//xmined)
35 1644035 [main] make 1412 mount_info::conv_to_win32_path:
conv_to_win32_path (//xmined)
19 1644054 [main] make 1412 set_flags: flags: binary (0x2)
15 1644069 [main] make 1412 mount_info::conv_to_win32_path: src_path
//xmined, dst \\xmined, flags 0x2, rc 0
31 1644100 [main] make 1412 build_fh_pc: fh 0x1802DBA98, dev 000000C2
49634 1693734 [main] make 1412 cygthread::terminate_thread: thread
'WNetOpenEnum', id 0x1B88, inuse 1, stack_ptr 0x7DAC90
375 1694109 [main] make 1412 cygthread::terminate_thread: VirtualFree
of allocation base 0x7DAC90<0x0> failed, Win32 error 487
137 1694246 [main] make 1412 __set_errno: int stat_worker(path_conv&,
stat*):1880 setting errno 2
49 1694295 [main] make 1412 stat_worker: -1 = (\??\UNC\xmined,0x228870)
118 1694413 [main] make 1412 stat64: entering
56 1694469 [main] make 1412 normalize_posix_path: src //minmacs
59 1694528 [main] make 1412 normalize_posix_path: //minmacs =
normalize_posix_path (//minmacs)
121 1694649 [main] make 1412 mount_info::conv_to_win32_path:
conv_to_win32_path (//minmacs)
33 1694682 [main] make 1412 set_flags: flags: binary (0x2)
14 1694696 [main] make 1412 mount_info::conv_to_win32_path: src_path
//minmacs, dst \\minmacs, flags 0x2, rc 0
16 1694712 [main] make 1412 build_fh_pc: fh 0x1802DBA98, dev 000000C2
216 1694928 [WNetOpenEnum] make 1412 cygthread::stub: thread
'WNetOpenEnum', id 0x1A34, stack_ptr 0x7DAC90
--------------------------------------------------------------
hanging here;
after kill -9:
--------------------------------------------------------------
17420894 19115822 [sig] make 1412 sigpacket::process: signal 9 processing
121 19115943 [sig] make 1412 init_cygheap::find_tls: sig 9
49 19115992 [sig] make 1412 sigpacket::process: using tls 0x22CE00
114 19116106 [sig] make 1412 sigpacket::process: signal 9, signal
handler 0x18006E3B0
43 19116149 [sig] make 1412 sigpacket::setup_handler: controlled
interrupt. stackptr 0x22E030, stack 0x22E028, stackptr[-1] 0x10041D0C8
82 19116231 [sig] make 1412 proc_subproc: args: 5, 1
41 19116272 [sig] make 1412 proc_subproc: clear waiting threads
34 19116306 [sig] make 1412 proc_subproc: finished clearing
34 19116340 [sig] make 1412 proc_subproc: returning 1
34 19116374 [sig] make 1412 _cygtls::interrupt_setup: armed
signal_arrived 0xFC, signal 9
37 19116411 [sig] make 1412 sigpacket::setup_handler: signal 9 delivered
36 19116447 [sig] make 1412 sigpacket::process: returning 1
49858 19166305 [main] make 1412 cygthread::terminate_thread: thread
'WNetOpenEnum', id 0x1A34, inuse 1, stack_ptr 0x7DAC90
421 19166726 [main] make 1412 cygthread::terminate_thread:
VirtualFree of allocation base 0x7DAC90<0x0> failed, Win32 error 487
219 19166945 [main] make 1412 __set_errno: int
stat_worker(path_conv&, stat*):1880 setting errno 2
71 19167016 [main] make 1412 stat_worker: -1 =
(\??\UNC\minmacs,0x228870)
47 19167063 [main] make 1412 set_process_mask_delta: oldmask 0,
newmask 0, deltamask 0
110 19167173 [main] make 1412 signal_exit: exiting due to signal 9
154 19167327 [main] make 1412 signal_exit: about to call do_exit (9)
74 19167401 [main] make 1412 do_exit: do_exit (9), exit_state 2
49 19167450 [main] make 1412 void: 0x10040BBF0 = signal (20, 0x1)
44 19167494 [main] make 1412 void: 0x100402AE0 = signal (1, 0x1)
40 19167534 [main] make 1412 void: 0x100402AE0 = signal (2, 0x1)
140 19167674 [main] make 1412 void: 0x100402AE0 = signal (3, 0x1)
64 19167738 [main] make 1412 fhandler_base::close: closing '' handle
0x200
48 19167786 [main] make 1412 fhandler_base::close: closing '' handle
0x204
46 19167832 [main] make 1412 fhandler_base::close: closing '' handle
0xB4
42 19167874 [main] make 1412 fhandler_base::close: closing
'/cygdrive/d/temp/mined-2012.22/src/makefile.cygwin' handle 0xE8
104 19167978 [main] make 1412 fhandler_base::close: closing
'/cygdrive/d/temp/mined-2012.22/src/mkinclud.mak' handle 0xF4
70 19168048 [main] make 1412 do_exit: 1412 == pgrp 1412, send
SIG{HUP,CONT} to stopped children
41 19168089 [main] make 1412 kill_pgrp: pid 1412, signal -1
191 19168280 [main] make 1412 open_shared: name cygpid.5328, n 5328,
shared 0x5E0000 (wanted 0x0), h 0xE8, *m 6
116 19168396 [main] make 1412 open_shared: name cygpid.2200, n 2200,
shared 0x5F0000 (wanted 0x0), h 0x200, *m 6
54 19168450 [main] make 1412 pinfo::init: execed process windows pid
2200, cygwin pid 5328
95 19168545 [main] make 1412 open_shared: name cygpid.5328, n 5328,
shared 0x5F0000 (wanted 0x0), h 0x200, *m 6
111 19168656 [main] make 1412 open_shared: name cygpid.2204, n 2204,
shared 0x5F0000 (wanted 0x0), h 0x200, *m 6
155 19168811 [main] make 1412 open_shared: name cygpid.2676, n 2676,
shared 0x600000 (wanted 0x0), h 0x124, *m 6
93 19168904 [main] make 1412 open_shared: name cygpid.4368, n 4368,
shared 0x610000 (wanted 0x0), h 0x1D0, *m 6
77 19168981 [main] make 1412 open_shared: name cygpid.988, n 988,
shared 0x620000 (wanted 0x0), h 0x1D8, *m 6
47 19169028 [main] make 1412 pinfo::init: execed process windows pid
988, cygwin pid 5996
58 19169086 [main] make 1412 open_shared: name cygpid.5996, n 5996,
shared 0x620000 (wanted 0x0), h 0x1D8, *m 6
75 19169161 [main] make 1412 open_shared: name cygpid.5684, n 5684,
shared 0x630000 (wanted 0x0), h 0x1E0, *m 6
48 19169209 [main] make 1412 pinfo::init: execed process windows pid
5684, cygwin pid 2204
57 19169266 [main] make 1412 open_shared: name cygpid.2204, n 2204,
shared 0x630000 (wanted 0x0), h 0x1E0, *m 6
102 19169368 [main] make 1412 open_shared: name cygpid.5996, n 5996,
shared 0x630000 (wanted 0x0), h 0x1E0, *m 6
89 19169457 [main] make 1412 open_shared: name cygpid.6156, n 6156,
shared 0x630000 (wanted 0x0), h 0x1E0, *m 6
85 19169542 [main] make 1412 open_shared: name cygpid.6004, n 6004,
shared 0x640000 (wanted 0x0), h 0x1E8, *m 6
46 19169588 [main] make 1412 pinfo::init: execed process windows pid
6004, cygwin pid 6156
54 19169642 [main] make 1412 open_shared: name cygpid.6156, n 6156,
shared 0x640000 (wanted 0x0), h 0x1E8, *m 6
100 19169742 [main] make 1412 open_shared: name cygpid.2628, n 2628,
shared 0x640000 (wanted 0x0), h 0x1E8, *m 6
102 19169844 [main] make 1412 __set_errno: int kill_pgrp(pid_t,
siginfo_t&):347 setting errno 3
40 19169884 [main] make 1412 kill_pgrp: -1 = kill(1412, -1), errno 3
219 19170103 [main] make 1412 getpid: 1412 = getpid()
37 19170140 [main] make 1412 proc_terminate: nprocs 0
37 19170177 [main] make 1412 proc_terminate: leaving
37 19170214 [main] make 1412 __to_clock_t: dwHighDateTime 0,
dwLowDateTime 3120020
41 19170255 [main] make 1412 __to_clock_t: total 00000000 00000138
34 19170289 [main] make 1412 __to_clock_t: dwHighDateTime 0,
dwLowDateTime 936006
34 19170323 [main] make 1412 __to_clock_t: total 00000000 0000005D
35 19170358 [main] make 1412 pinfo::exit: Calling ExitProcess n 0x9,
exitcode 0x900
------
Thomas