· 8 years ago · Dec 28, 2017, 12:02 AM
1}Build started at 2017-12-23T00:17:05.755259
2Main binary: /usr/bin/python
3Python system: Linux
4The Meson build system
5Version: 0.44.0
6Source dir: /home/empty/git/ast
7Build dir: /home/empty/git/ast/build
8Build type: native build
9Project name: ksh93
10Sanity testing C compiler: cc
11Is cross compiler: False.
12Sanity check compiler command line: cc /home/empty/git/ast/build/meson-private/sanitycheckc.c -o /home/empty/git/ast/build/meson-private/sanitycheckc.exe
13Sanity check compile stdout:
14
15-----
16Sanity check compile stderr:
17
18-----
19Running test binary command: /home/empty/git/ast/build/meson-private/sanitycheckc.exe
20Native C compiler: cc (gcc 7.2.1)
21Build machine cpu family: x86_64
22Build machine cpu: x86_64
23Running command: /home/empty/git/ast/bin/setup_cmds.sh
24--- stdout----
25
26----stderr----
27
28
29Running command: /home/empty/git/ast/bin/libast_prereq.sh
30--- stdout----
31~/git/ast/src/lib/libast/features ~/git/ast
32~/git/ast
33~/git/ast ~/git/ast
34~/git/ast
35
36----stderr----
37+ set -e
38++ realpath /home/empty/git/ast/bin/libast_prereq.sh
39+ script_path=/home/empty/git/ast/bin/libast_prereq.sh
40++ dirname /home/empty/git/ast/bin/libast_prereq.sh
41+ bin_dir=/home/empty/git/ast/bin
42++ dirname /home/empty/git/ast/bin
43+ base_dir=/home/empty/git/ast
44+ PATH=/home/empty/git/ast/bin:/home/empty/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/lib/plan9/bin
45+ iffe_tests=('common' 'aso' 'ccode' 'iconv' 'vmalloc')
46+ iffe_tests_2=()
47+ iffe_c_tests=('limits.c')
48+ iffe_c_tests_2=('sfinit.c' 'signal.c')
49+ iffe_c_tests_3=()
50+ iffe_sh_tests=()
51+ iffe_sh_tests_2=()
52+ iffe_sh_tests_3=()
53+ mkdir /home/empty/git/ast/src/lib/libast/features/FEATURE
54+ /home/empty/git/ast/src/lib/libast/features/siglist.sh
55+ pushd /home/empty/git/ast/src/lib/libast/features
56+ for iffe_test in ${iffe_tests[@]}
57+ iffe -v -X ast -X std -c 'cc -D_BLD_DLL -D_BLD_ast' run common
58iffe: test: is sys/types.h a header ... yes
59iffe: test: is pthread.h a header ... yes
60iffe: test: is stdarg.h a header ... yes
61iffe: test: is stddef.h a header ... yes
62iffe: test: is stdint.h a header ... yes
63iffe: test: is inttypes.h a header ... yes
64iffe: test: is types.h a header ... no
65iffe: test: is unistd.h a header ... yes
66iffe: test: is time.h a header ... yes
67iffe: test: is sys/time.h a header ... yes
68iffe: test: is sys/times.h a header ... yes
69iffe: test: is stdlib.h a header ... yes
70iffe: test: is long double a type or typedef ... yes
71iffe: test: is size_t a type or typedef ... yes
72iffe: test: is ssize_t a type or typedef ... yes
73iffe: test: is stdio.h a header ... yes
74iffe: test: is __va_list a type or typedef ... no
75iffe: test: is sys/stat.h a header ... yes
76iffe: test: is sys/socket.h a header ... yes
77iffe: test: is SF_APPEND a macro ... no
78iffe: test: is SF_CLOSE a macro ... no
79iffe: test: Microsoft import/export nonsense ... no
80iffe: test: standard C prototypes ok ... yes
81iffe: test: standard C void* ok ... yes
82iffe: test: cat{ ... }end ... yes
83iffe: test: <stdarg.h>+<wchar.h> works ... yes
84iffe: test: LL numeric suffix supported ... yes
85iffe: test: output{ ... }end ... yes
86iffe: test: output{ ... }end ... yes
87iffe: test: output{ ... }end ... yes
88iffe: test: is int8_t a type or typedef ... yes
89iffe: test: is uint8_t a type or typedef ... yes
90iffe: test: is int16_t a type or typedef ... yes
91iffe: test: is uint16_t a type or typedef ... yes
92iffe: test: is int32_t a type or typedef ... yes
93iffe: test: is uint32_t a type or typedef ... yes
94iffe: test: is int64_t a type or typedef ... yes
95iffe: test: is uint64_t a type or typedef ... yes
96iffe: test: is intmax_t a type or typedef ... yes
97iffe: test: is uintmax_t a type or typedef ... yes
98iffe: test: is uintptr_t a type or typedef ... yes
99iffe: test: is _Bool a type or typedef ... yes
100iffe: test: cat{ ... }end ... yes
101iffe: test: is -lpthread a library ... yes
102iffe: test: __thread keyword exists and works with -lpthread ... yes
103iffe: test: output{ ... }end ...
104iffe: test: output{ ... }end ...
105iffe: test: output{ ... }end ...
106iffe: test: output{ ... }end ...
107iffe: test: output{ ... }end ... yes
108iffe: test: cat{ ... }end ... yes
109iffe: test: run{ ... }end ... no
110+ cp /home/empty/git/ast/src/lib/libast/features/FEATURE/common /home/empty/git/ast/src/lib/libast/features/ast_common.h
111+ for iffe_test in ${iffe_tests[@]}
112+ iffe -v -X ast -X std -c 'cc -D_BLD_DLL -D_BLD_ast' run aso
113iffe: test: is sys/types.h a header ... yes
114iffe: test: cat{ ... }end ... yes
115iffe: test: gcc 4.1+ 64 bit memory atomic operations model ... yes
116iffe: test: cat{ ... }end ... yes
117+ cp /home/empty/git/ast/src/lib/libast/features/FEATURE/aso /home/empty/git/ast/src/lib/libast/features/ast_aso.h
118+ for iffe_test in ${iffe_tests[@]}
119+ iffe -v -X ast -X std -c 'cc -D_BLD_DLL -D_BLD_ast' run ccode
120iffe: test: is sys/types.h a header ... yes
121iffe: test: output{ ... }end ... yes
122+ cp /home/empty/git/ast/src/lib/libast/features/FEATURE/ccode /home/empty/git/ast/src/lib/libast/features/ast_ccode.h
123+ for iffe_test in ${iffe_tests[@]}
124+ iffe -v -X ast -X std -c 'cc -D_BLD_DLL -D_BLD_ast' run iconv
125iffe: test: is sys/types.h a header ... yes
126iffe: test: is iconv.h a header ... yes
127iffe: test: is -liconv a library ... no
128iffe: test: is iconv_open a library function ... yes
129iffe: test: is iconv_close a library function ... yes
130iffe: test: is iconv a library function ... yes
131iffe: test: is iconv an include path for the native header ... yes
132iffe: test: output{ ... }end ... yes
133+ cp /home/empty/git/ast/src/lib/libast/features/FEATURE/iconv /home/empty/git/ast/src/lib/libast/features/ast_iconv.h
134+ for iffe_test in ${iffe_tests[@]}
135+ iffe -v -X ast -X std -c 'cc -D_BLD_DLL -D_BLD_ast' run vmalloc
136iffe: test: is sys/types.h a header ... yes
137iffe: test: is atexit a library function ... yes
138iffe: test: is getpagesize a library function ... yes
139iffe: test: is mallinfo a library function ... yes
140iffe: test: is mallopt a library function ... yes
141iffe: test: is memalign a library function ... yes
142iffe: test: is mstats a library function ... no
143iffe: test: is onexit a library function ... no
144iffe: test: is pvalloc a library function ... yes
145iffe: test: is strdup a library function ... yes
146iffe: test: is valloc a library function ... yes
147iffe: test: is vmalloc a library function ... no
148iffe: test: is _malloc a library function ... no
149iffe: test: is __malloc a library function ... no
150iffe: test: is __libc_malloc a library function ... yes
151iffe: test: is alloca.h a header ... yes
152iffe: test: is malloc.h a header ... yes
153iffe: test: is stat.h a header ... no
154iffe: test: is stdlib.h a header ... yes
155iffe: test: is unistd.h a header ... yes
156iffe: test: is mallinfo a type or typedef ... no
157iffe: test: is arena a member of struct mallinfo ... yes
158iffe: test: is mstats a type or typedef ... no
159iffe: test: is bytes_total a member of struct mstats ... no
160iffe: test: is sys/stat.h a header ... yes
161iffe: test: is time.h a header ... yes
162iffe: test: is sys/time.h a header ... yes
163iffe: test: is sys/times.h a header ... yes
164iffe: test: is stddef.h a header ... yes
165iffe: test: is ssize_t a type or typedef ... yes
166iffe: test: sbrk() works as expected ... yes
167iffe: test: map malloc to _ast_malloc ... no
168iffe: test: map malloc to _ast_malloc -- wimp-o mach? ... no
169iffe: test: alloca exists ... yes
170iffe: test: alloca is based on malloc() ... no
171iffe: test: stack grows downward ... yes
172iffe: test: gnu malloc hooks work ... no
173iffe: test: cat{ ... }end ... yes
174+ cp /home/empty/git/ast/src/lib/libast/features/FEATURE/vmalloc /home/empty/git/ast/src/lib/libast/features/ast_vmalloc.h
175+ /home/empty/git/ast/bin/conf -v /home/empty/git/ast/src/lib/libast/comp/conf.tab cc -I../include -D_BLD_DLL -D_BLD_ast
176conf: read /home/empty/git/ast/src/lib/libast/comp/conf.tab
177conf: check /usr/bin/getconf(1),confstr(2),pathconf(2),sysconf(2),sysinfo(2) configuration names
178conf: check macros/enums as static initializers
179conf: probe for ABI_AIO_XFER_MAX <limits.h> value
180conf: probe for ABI_ASYNCHRONOUS_IO <limits.h> value
181conf: probe for ABI_ASYNC_IO <limits.h> value
182conf: probe for AIO_LISTIO_MAX <limits.h> value
183conf: probe for AIO_MAX <limits.h> value
184conf: probe for ALLOC_SIZE_MIN <limits.h> value
185conf: probe for ATEXIT_MAX <limits.h> value
186conf: probe for AUDIT <limits.h> value
187conf: probe for AVAIL_PROCESSORS <limits.h> value
188conf: probe for CHAR_BIT <limits.h> value
189conf: probe for CHAR_MAX <limits.h> value
190conf: probe for CHAR_MIN <limits.h> value
191conf: probe for CHILD_MAX <limits.h> value
192conf: probe for CLOCKS_PER_SEC <limits.h> value
193conf: probe for CPU_KEYBITS1 <limits.h> value
194conf: probe for CPU_VERSION <limits.h> value
195conf: probe for EQUIV_CLASS_MAX <limits.h> value
196conf: probe for EXEC_INTERPRETER_LENGTH <limits.h> value
197conf: probe for FCHR_MAX <limits.h> value
198conf: probe for FILESIZEBITS <limits.h> value
199conf: probe for GETGR_R_SIZE_MAX <limits.h> value
200conf: probe for GETPW_R_SIZE_MAX <limits.h> value
201conf: probe for HOSTID <limits.h> value
202conf: probe for HW_SERIAL <limits.h> value
203conf: probe for INT_MIN <limits.h> value
204conf: probe for IO_TYPE <limits.h> value
205conf: probe for IP_SECOPTS <limits.h> value
206conf: probe for _POSIX_JOB_CONTROL minmax value
207conf: probe for KERN_POINTERS <limits.h> value
208conf: probe for KERN_SIM <limits.h> value
209conf: probe for _POSIX_LFS_CFLAGS minmax value
210conf: probe for LLONG_MAX <limits.h> value
211conf: probe for LLONG_MIN <limits.h> value
212conf: probe for LONG_MAX <limits.h> value
213conf: probe for LONG_MIN <limits.h> value
214conf: probe for MB_LEN_MAX <limits.h> value
215conf: probe for MCAS_OFFSET <limits.h> value
216conf: probe for MIN_HOLE_SIZE <limits.h> value
217conf: probe for MMAP_FIXED_ALIGNMENT <limits.h> value
218conf: probe for MSEM_LOCKID <limits.h> value
219conf: probe for NL_MAX <limits.h> value
220conf: probe for NL_SPECMAX <limits.h> value
221conf: probe for NPROC_CONF <limits.h> value
222conf: probe for NPROC_ONLN <limits.h> value
223conf: probe for NSS_BUFLEN_GROUP <limits.h> value
224conf: probe for NSS_BUFLEN_PASSWD <limits.h> value
225conf: probe for NUM_PROCESSORS <limits.h> value
226conf: probe for OPEN_MAX <limits.h> value
227conf: probe for OPEN_MAX_CEIL <limits.h> value
228conf: probe for OSREL_MAJ <limits.h> value
229conf: probe for OSREL_MIN <limits.h> value
230conf: probe for OSREL_PATCH <limits.h> value
231conf: probe for _POSIX_PAGESIZE minmax value
232conf: probe for PASS_MAX <limits.h> value
233conf: probe for PID_MAX <limits.h> value
234conf: probe for _SVID_PID_MAX minmax value
235conf: probe for PROC_RSRC_MGR <limits.h> value
236conf: probe for PTHREAD_THREADS_MAX <limits.h> value
237conf: probe for PTRDIFF_MAX <limits.h> value
238conf: probe for PTRDIFF_MIN <limits.h> value
239conf: probe for REC_INCR_XFER_SIZE <limits.h> value
240conf: probe for REC_XFER_ALIGN <limits.h> value
241conf: probe for RELEASE <limits.h> value
242conf: probe for SCHAR_MAX <limits.h> value
243conf: probe for SCHAR_MIN <limits.h> value
244conf: probe for SECURITY_CLASS <limits.h> value
245conf: probe for SEM_NSEMS_MAX <limits.h> value
246conf: probe for _AST_SF_BUFSIZE minmax value
247conf: probe for _AST_SH minmax value
248conf: probe for SHRT_MIN <limits.h> value
249conf: probe for SIGQUEUE_MAX <limits.h> value
250conf: probe for SIG_ATOMIC_MAX <limits.h> value
251conf: probe for SIG_ATOMIC_MIN <limits.h> value
252conf: probe for SLVM_MAXNODES <limits.h> value
253conf: probe for SOFTPOWER <limits.h> value
254conf: probe for STD_BLK <limits.h> value
255conf: probe for STREAM_MAX <limits.h> value
256conf: probe for SYSPID_MAX <limits.h> value
257conf: probe for THREAD_THREADS_MAX <limits.h> value
258conf: probe for TIMER_MAX <limits.h> value
259conf: probe for TMP_MAX <limits.h> value
260conf: probe for UCHAR_MAX <limits.h> value
261conf: probe for UCHAR_MIN <limits.h> value
262conf: probe for UID_MAX <limits.h> value
263conf: probe for ULLONG_MAX <limits.h> value
264conf: probe for ULONG_MAX <limits.h> value
265conf: probe for USHRT_MAX <limits.h> value
266conf: probe for VERSION_88 <limits.h> value
267conf: probe for VERSION_88 <limits.h> value
268conf: probe for VERSION_90 <limits.h> value
269conf: probe for VERSION_90 <limits.h> value
270conf: probe for VERSION_93 <limits.h> value
271conf: probe for VERSION_93 <limits.h> value
272conf: probe for WCHAR_MAX <limits.h> value
273conf: probe for WCHAR_MIN <limits.h> value
274conf: probe for WINT_MAX <limits.h> value
275conf: probe for WINT_MIN <limits.h> value
276conf: generate conftab.h string table header
277conf: generate conftab.c string table
278conf: generate conflim.h supplemental <limits.h> values
279+ export -f cc_fun
280+ for iffe_test in ${iffe_c_tests[@]}
281+ iffe -v -X ast -X std -c cc_fun run limits.c
282iffe: test: is sys/types.h a header ... yes
283iffe: test: capture output of limits.c ...
284iffe: test: capture output of limits.c ... yes
285++ echo limits.c
286++ cut -f1 -d.
287+ name=limits
288+ cp /home/empty/git/ast/src/lib/libast/features/FEATURE/limits.c /home/empty/git/ast/src/lib/libast/features/ast_limits.h
289+ for iffe_test in ${iffe_c_tests_2[@]}
290+ iffe -v -X ast -X std -c cc_fun run sfinit.c
291iffe: test: is sys/types.h a header ... yes
292iffe: test: capture output of sfinit.c ...
293iffe: test: capture output of sfinit.c ... yes
294++ echo sfinit.c
295++ cut -f1 -d.
296+ name=sfinit
297+ cp /home/empty/git/ast/src/lib/libast/features/FEATURE/sfinit.c /home/empty/git/ast/src/lib/libast/features/FEATURE/sfinit
298+ for iffe_test in ${iffe_c_tests_2[@]}
299+ iffe -v -X ast -X std -c cc_fun run signal.c
300iffe: test: is sys/types.h a header ... yes
301iffe: test: capture output of signal.c ...
302iffe: test: capture output of signal.c ... yes
303++ echo signal.c
304++ cut -f1 -d.
305+ name=signal
306+ cp /home/empty/git/ast/src/lib/libast/features/FEATURE/signal.c /home/empty/git/ast/src/lib/libast/features/FEATURE/signal
307+ popd
308+ pushd /home/empty/git/ast/
309+ cc -o /home/empty/git/ast/bin/lcgen /home/empty/git/ast/src/lib/libast/port/lcgen.c
310+ /home/empty/git/ast/bin/lcgen /home/empty/git/ast/src/lib/libast/include/lc.h /home/empty/git/ast/src/lib/libast/port/lctab.c
311+ popd
312
313
314Running command: /home/empty/git/ast/bin/ksh93_prereq.sh
315--- stdout----
316~/git/ast/src/cmd/ksh93/features ~/git/ast
317~/git/ast
318
319----stderr----
320+ set -e
321++ realpath /home/empty/git/ast/bin/ksh93_prereq.sh
322+ script_path=/home/empty/git/ast/bin/ksh93_prereq.sh
323++ dirname /home/empty/git/ast/bin/ksh93_prereq.sh
324+ bin_dir=/home/empty/git/ast/bin
325++ dirname /home/empty/git/ast/bin
326+ base_dir=/home/empty/git/ast
327+ pushd /home/empty/git/ast/src/cmd/ksh93/features
328+ echo 'const char bash_pre_rc[] = '
329+ sed -e 's/\\/\\\\/g' -e 's/"/\\"/g' -e 's/'\''/\\'\''/g' -e 's/^[[:space:]]*\(.*\)$/\"\1\\n\"/' /home/empty/git/ast/src/cmd/ksh93/data/bash_pre_rc.sh
330+ echo ';'
331+ popd
332
333
334Running command: /home/empty/git/ast/bin/package
335--- stdout----
336linux.i386-64
337
338----stderr----
339
340
341Running command: /usr/bin/env bash /home/empty/git/ast/src/lib/libast/features/syslocale.sh
342--- stdout----
343"UTF-8"
344----stderr----
345
346
347Running command: /home/empty/git/ast/src/lib/libast/features/libpath.sh
348--- stdout----
349"lib:LD_LIBRARY_PATH"
350----stderr----
351/home/empty/git/ast/src/lib/libast/features/libpath.sh: line 44: package: command not found
352
353
354Running command: /home/empty/git/ast/src/lib/libast/features/prog.sh
355--- stdout----
356"/proc/self/exe"
357----stderr----
358
359
360Running compile:
361Working directory: /tmp/tmpgye78h6p
362Command line: cc /tmp/tmpgye78h6p/testfile.c -O0 -pipe -D_FILE_OFFSET_BITS=64 -o /tmp/tmpgye78h6p/output.exe
363
364Code:
365
366#include <stdio.h>
367#include <setjmp.h>
368#include <inttypes.h>
369
370union _u_
371{
372 long u1;
373 char* u2;
374 double u3;
375 char u4[1024];
376 intmax_t u5;
377 uintmax_t u6;
378 long double u7;
379 void* u8;
380 char* (*u9)();
381 jmp_buf u10;
382};
383
384struct _s_
385{
386 char s1;
387 union _u_ s2;
388};
389
390#define roundof(x,y) (((x)+((y)-1))&~((y)-1))
391
392static union _u_ u;
393static union _u_ v;
394
395int
396main()
397{
398 int i;
399 int j;
400 int k;
401
402 int align0;
403 int align1;
404 int align2;
405 unsigned long bit1;
406 unsigned long bit2;
407 unsigned long bits0;
408 unsigned long bits1;
409 unsigned long bits2;
410
411 u.u2 = u.u4;
412 v.u2 = u.u2 + 1;
413 bit1 = u.u1 ^ v.u1;
414 v.u2 = u.u2 + 2;
415 bit2 = u.u1 ^ v.u1;
416 align0 = sizeof(struct _s_) - sizeof(union _u_);
417 bits0 = 0;
418 k = 0;
419 for (j = 0; j < align0; j++)
420 {
421 u.u2 = u.u4 + j;
422 bits1 = 0;
423 for (i = 0; i < align0; i++)
424 {
425 v.u2 = u.u2 + i;
426 bits1 |= u.u1 ^ v.u1;
427 }
428 if (!bits0 || bits1 < bits0)
429 {
430 bits0 = bits1;
431 k = j;
432 }
433 }
434 align1 = roundof(align0, 2);
435 u.u2 = u.u4 + k;
436 for (bits1 = bits0; i < align1; i++)
437 {
438 v.u2 = u.u2 + i;
439 bits1 |= u.u1 ^ v.u1;
440 }
441 align2 = roundof(align0, 4);
442 for (bits2 = bits1; i < align2; i++)
443 {
444 v.u2 = u.u2 + i;
445 bits2 |= u.u1 ^ v.u1;
446 }
447#if _X86_ || _X64_
448 #if _X64
449 printf("ALIGN_BOUND2=16 ");
450 #else
451 printf("ALIGN_BOUND2=8 ");
452 #endif
453#else
454 printf("ALIGN_BOUND2=%d ", align2);
455#endif
456 if (align1 == align2)
457 {
458 printf("ALIGN_BOUND1=ALIGN_BOUND2 ");
459 }
460 else
461 {
462 printf("ALIGN_BOUND1=%d ", align1);
463 }
464
465 if (align0 == align2)
466 {
467 printf("ALIGN_BOUND=ALIGN_BOUND2");
468 }
469 else if (align0 == align1)
470 {
471 printf("ALIGN_BOUND=ALIGN_BOUND1");
472 }
473 else
474 {
475 printf("ALIGN_BOUND=1");
476 }
477 return 0;
478}
479
480Compiler stdout:
481
482Compiler stderr:
483
484Program stdout:
485
486ALIGN_BOUND2=16 ALIGN_BOUND1=ALIGN_BOUND2 ALIGN_BOUND=ALIGN_BOUND2
487Program stderr:
488
489
490Checking if "align bound check" runs: YES
491Running compile:
492Working directory: /tmp/tmpa37s26am
493Command line: cc /tmp/tmpa37s26am/testfile.c -O0 -pipe -D_FILE_OFFSET_BITS=64 -o /tmp/tmpa37s26am/output.exe
494
495Code:
496 #include <math.h>
497#include <limits.h>
498
499 #if defined __stub_isnanl || defined __stub___isnanl
500 fail fail fail this function is not going to work
501 #endif
502
503int main() {
504 void *a = (void*) &isnanl;
505 long b = (long) a;
506 return (int) b;
507 }
508Compiler stdout:
509
510Compiler stderr:
511
512Checking for function "isnanl": YES
513Running compile:
514Working directory: /tmp/tmpj5y4tlth
515Command line: cc /tmp/tmpj5y4tlth/testfile.c -O0 -pipe -D_FILE_OFFSET_BITS=64 -o /tmp/tmpj5y4tlth/output.exe
516
517Code:
518 #include <sys/time.h>
519#include <limits.h>
520
521 #if defined __stub_utimensat || defined __stub___utimensat
522 fail fail fail this function is not going to work
523 #endif
524
525int main() {
526 void *a = (void*) &utimensat;
527 long b = (long) a;
528 return (int) b;
529 }
530Compiler stdout:
531
532Compiler stderr:
533 /tmp/tmpj5y4tlth/testfile.c: In function ‘main’:
534/tmp/tmpj5y4tlth/testfile.c:9:32: error: ‘utimensat’ undeclared (first use in this function); did you mean ‘utimes’?
535 void *a = (void*) &utimensat;
536 ^~~~~~~~~
537 utimes
538/tmp/tmpj5y4tlth/testfile.c:9:32: note: each undeclared identifier is reported only once for each function it appears in
539
540Running compile:
541Working directory: /tmp/tmp55xm13sz
542Command line: cc /tmp/tmp55xm13sz/testfile.c -O0 -pipe -D_FILE_OFFSET_BITS=64 -o /tmp/tmp55xm13sz/output.exe
543
544Code:
545 #include <sys/time.h>
546 int main() {
547 #ifdef __has_builtin
548 #if !__has_builtin(__builtin_utimensat)
549 #error "__builtin_utimensat not found"
550 #endif
551 #elif ! defined(utimensat)
552 /* Check for __builtin_utimensat only if no includes were added to the
553 * prefix above, which means no definition of utimensat can be found.
554 * We would always check for this, but we get false positives on
555 * MSYS2 if we do. Their toolchain is broken, but we can at least
556 * give them a workaround. */
557 #if 0
558 __builtin_utimensat;
559 #else
560 #error "No definition for __builtin_utimensat found in the prefix"
561 #endif
562 #endif
563 }
564Compiler stdout:
565
566Compiler stderr:
567 /tmp/tmp55xm13sz/testfile.c: In function ‘main’:
568/tmp/tmp55xm13sz/testfile.c:16:18: error: #error "No definition for __builtin_utimensat found in the prefix"
569 #error "No definition for __builtin_utimensat found in the prefix"
570 ^~~~~
571
572Checking for function "utimensat": NO
573Running compile:
574Working directory: /tmp/tmp8e3y08if
575Command line: cc /tmp/tmp8e3y08if/testfile.c -O0 -pipe -D_FILE_OFFSET_BITS=64 -o /tmp/tmp8e3y08if/output.exe
576
577Code:
578 #include <sys/time.h>
579#include <limits.h>
580
581 #if defined __stub_utimets || defined __stub___utimets
582 fail fail fail this function is not going to work
583 #endif
584
585int main() {
586 void *a = (void*) &utimets;
587 long b = (long) a;
588 return (int) b;
589 }
590Compiler stdout:
591
592Compiler stderr:
593 /tmp/tmp8e3y08if/testfile.c: In function ‘main’:
594/tmp/tmp8e3y08if/testfile.c:9:32: error: ‘utimets’ undeclared (first use in this function); did you mean ‘utimes’?
595 void *a = (void*) &utimets;
596 ^~~~~~~
597 utimes
598/tmp/tmp8e3y08if/testfile.c:9:32: note: each undeclared identifier is reported only once for each function it appears in
599
600Running compile:
601Working directory: /tmp/tmpqnb8vk03
602Command line: cc /tmp/tmpqnb8vk03/testfile.c -O0 -pipe -D_FILE_OFFSET_BITS=64 -o /tmp/tmpqnb8vk03/output.exe
603
604Code:
605 #include <sys/time.h>
606 int main() {
607 #ifdef __has_builtin
608 #if !__has_builtin(__builtin_utimets)
609 #error "__builtin_utimets not found"
610 #endif
611 #elif ! defined(utimets)
612 /* Check for __builtin_utimets only if no includes were added to the
613 * prefix above, which means no definition of utimets can be found.
614 * We would always check for this, but we get false positives on
615 * MSYS2 if we do. Their toolchain is broken, but we can at least
616 * give them a workaround. */
617 #if 0
618 __builtin_utimets;
619 #else
620 #error "No definition for __builtin_utimets found in the prefix"
621 #endif
622 #endif
623 }
624Compiler stdout:
625
626Compiler stderr:
627 /tmp/tmpqnb8vk03/testfile.c: In function ‘main’:
628/tmp/tmpqnb8vk03/testfile.c:16:18: error: #error "No definition for __builtin_utimets found in the prefix"
629 #error "No definition for __builtin_utimets found in the prefix"
630 ^~~~~
631
632Checking for function "utimets": NO
633Running compile:
634Working directory: /tmp/tmpmqdydec_
635Command line: cc /tmp/tmpmqdydec_/testfile.c -O0 -pipe -D_FILE_OFFSET_BITS=64 -o /tmp/tmpmqdydec_/output.exe
636
637Code:
638 #include <sys/sysinfo.h>
639#include <limits.h>
640
641 #if defined __stub_sysinfo || defined __stub___sysinfo
642 fail fail fail this function is not going to work
643 #endif
644
645int main() {
646 void *a = (void*) &sysinfo;
647 long b = (long) a;
648 return (int) b;
649 }
650Compiler stdout:
651
652Compiler stderr:
653
654Checking for function "sysinfo": YES
655Running compile:
656Working directory: /tmp/tmpjjmugbi6
657Command line: cc /tmp/tmpjjmugbi6/testfile.c -O0 -pipe -D_FILE_OFFSET_BITS=64 -o /tmp/tmpjjmugbi6/output.exe
658
659Code:
660 #include <unistd.h>
661#include <limits.h>
662
663 #if defined __stub_pipe2 || defined __stub___pipe2
664 fail fail fail this function is not going to work
665 #endif
666
667int main() {
668 void *a = (void*) &pipe2;
669 long b = (long) a;
670 return (int) b;
671 }
672Compiler stdout:
673
674Compiler stderr:
675 /tmp/tmpjjmugbi6/testfile.c: In function ‘main’:
676/tmp/tmpjjmugbi6/testfile.c:9:32: error: ‘pipe2’ undeclared (first use in this function); did you mean ‘pipe’?
677 void *a = (void*) &pipe2;
678 ^~~~~
679 pipe
680/tmp/tmpjjmugbi6/testfile.c:9:32: note: each undeclared identifier is reported only once for each function it appears in
681
682Running compile:
683Working directory: /tmp/tmpo89vqf_u
684Command line: cc /tmp/tmpo89vqf_u/testfile.c -O0 -pipe -D_FILE_OFFSET_BITS=64 -o /tmp/tmpo89vqf_u/output.exe
685
686Code:
687 #include <unistd.h>
688 int main() {
689 #ifdef __has_builtin
690 #if !__has_builtin(__builtin_pipe2)
691 #error "__builtin_pipe2 not found"
692 #endif
693 #elif ! defined(pipe2)
694 /* Check for __builtin_pipe2 only if no includes were added to the
695 * prefix above, which means no definition of pipe2 can be found.
696 * We would always check for this, but we get false positives on
697 * MSYS2 if we do. Their toolchain is broken, but we can at least
698 * give them a workaround. */
699 #if 0
700 __builtin_pipe2;
701 #else
702 #error "No definition for __builtin_pipe2 found in the prefix"
703 #endif
704 #endif
705 }
706Compiler stdout:
707
708Compiler stderr:
709 /tmp/tmpo89vqf_u/testfile.c: In function ‘main’:
710/tmp/tmpo89vqf_u/testfile.c:16:18: error: #error "No definition for __builtin_pipe2 found in the prefix"
711 #error "No definition for __builtin_pipe2 found in the prefix"
712 ^~~~~
713
714Checking for function "pipe2": NO
715Running compile:
716Working directory: /tmp/tmppms18mci
717Command line: cc /tmp/tmppms18mci/testfile.c -O0 -pipe -D_FILE_OFFSET_BITS=64 -c -o /tmp/tmppms18mci/output.obj
718
719Code:
720 #include <sys/stat.h>
721 void bar() {
722 struct stat foo;
723 foo.st_mtim;
724
725 };
726Compiler stdout:
727
728Compiler stderr:
729
730Checking whether type "struct stat" has member "st_mtim": YES
731Running compile:
732Working directory: /tmp/tmpeqfbyqun
733Command line: cc /tmp/tmpeqfbyqun/testfile.c -O0 -pipe -D_FILE_OFFSET_BITS=64 -E -P
734
735Code:
736
737 #ifdef __has_include
738 #if !__has_include("mach-o/dyld.h")
739 #error "Header 'mach-o/dyld.h' could not be found"
740 #endif
741 #else
742 #include <mach-o/dyld.h>
743 #endif
744Compiler stdout:
745
746Compiler stderr:
747 /tmp/tmpeqfbyqun/testfile.c:4:12: error: #error "Header 'mach-o/dyld.h' could not be found"
748 #error "Header 'mach-o/dyld.h' could not be found"
749 ^~~~~
750
751Has header "mach-o/dyld.h": NO
752Running compile:
753Working directory: /tmp/tmpi0ldpg60
754Command line: cc /tmp/tmpi0ldpg60/testfile.c -O0 -pipe -D_FILE_OFFSET_BITS=64 -o /tmp/tmpi0ldpg60/output.exe
755
756Code:
757 #include<stdio.h>
758
759 int main(int argc, char **argv) {
760 printf("%ld\n", (long)(sizeof(char*)));
761 return 0;
762 };
763Compiler stdout:
764
765Compiler stderr:
766
767Program stdout:
768
7698
770
771Program stderr:
772
773
774Checking for size of "char*": 8
775Running compile:
776Working directory: /tmp/tmpvbuiwh7j
777Command line: cc /tmp/tmpvbuiwh7j/testfile.c -O0 -pipe -D_FILE_OFFSET_BITS=64 -o /tmp/tmpvbuiwh7j/output.exe
778
779Code:
780 #include<stdio.h>
781
782 int main(int argc, char **argv) {
783 printf("%ld\n", (long)(sizeof(int)));
784 return 0;
785 };
786Compiler stdout:
787
788Compiler stderr:
789
790Program stdout:
791
7924
793
794Program stderr:
795
796
797Checking for size of "int": 4
798Running compile:
799Working directory: /tmp/tmp0wabwclh
800Command line: cc /tmp/tmp0wabwclh/testfile.c -O0 -pipe -D_FILE_OFFSET_BITS=64 -o /tmp/tmp0wabwclh/output.exe
801
802Code:
803 #include<stdio.h>
804
805 int main(int argc, char **argv) {
806 printf("%ld\n", (long)(sizeof(long)));
807 return 0;
808 };
809Compiler stdout:
810
811Compiler stderr:
812
813Program stdout:
814
8158
816
817Program stderr:
818
819
820Checking for size of "long": 8
821Running compile:
822Working directory: /tmp/tmpywohq_bc
823Command line: cc /tmp/tmpywohq_bc/testfile.c -O0 -pipe -D_FILE_OFFSET_BITS=64 -o /tmp/tmpywohq_bc/output.exe
824
825Code:
826
827 #include <sys/types.h>
828 #include <sys/stat.h>
829 #include <sys/wait.h>
830 #include <spawn.h>
831 #include <signal.h>
832 #include <fcntl.h>
833 #include <string.h>
834 /* if it uses fork() why bother? */
835 #undef fork
836 pid_t fork (void) { printf("uses fork()"); return -1; }
837 pid_t _fork (void) { printf("uses _fork()"); return -1; }
838 pid_t __fork (void) { printf("uses __fork()"); return -1; }
839 int
840 main(argc, argv)
841 int argc;
842 char** argv;
843 {
844 char* s;
845 pid_t pid;
846 posix_spawnattr_t attr;
847 int n;
848 int status;
849 char* cmd[4];
850 char tmp[1024];
851 if (argv[2])
852 _exit(signal(SIGHUP, SIG_DFL) != SIG_IGN);
853 signal(SIGHUP, SIG_IGN);
854 if (posix_spawnattr_init(&attr))
855 {
856 printf("posix_spawnattr_init() FAILED");
857 _exit(0);
858 }
859 if (posix_spawnattr_setpgroup(&attr, 0))
860 {
861 printf("posix_spawnattr_setpgroup() FAILED");
862 _exit(0);
863 }
864 if (posix_spawnattr_setflags(&attr, POSIX_SPAWN_SETPGROUP))
865 {
866 printf("posix_spawnattr_setflags() FAILED");
867 _exit(0);
868 }
869 /* first try an a.out and verify that SIGHUP is ignored */
870 cmd[0] = argv[0];
871 cmd[1] = argv[1];
872 cmd[2] = "test";
873 cmd[3] = 0;
874 if (posix_spawn(&pid, cmd[0], 0, &attr, cmd, 0))
875 {
876 printf("posix_spawn() FAILED");
877 _exit(0);
878 }
879 status = 1;
880 if (wait(&status) < 0)
881 {
882 printf("wait() FAILED");
883 _exit(0);
884 }
885 if (status != 0)
886 {
887 printf("SIGHUP ignored in parent not ignored in child");
888 _exit(0);
889 }
890 /* must return exec-type errors or its useless to us *unless* there is no [v]fork() */
891 n = strlen(cmd[0]);
892 if (n >= (sizeof(tmp) - 3))
893 {
894 printf("test executable path too long");
895 _exit(0);
896 }
897 strcpy(tmp, cmd[0]);
898 tmp[n] = '.';
899 tmp[n+1] = 's';
900 tmp[n+2] = 'h';
901 tmp[n+3] = 0;
902 if ((n = open(tmp, O_CREAT|O_WRONLY, S_IRWXU|S_IRWXG|S_IRWXO)) < 0 ||
903 chmod(tmp, S_IRWXU|S_IRWXG|S_IRWXO) < 0 ||
904 write(n, "exit 99\n", 8) != 8 ||
905 close(n) < 0)
906 {
907 printf("test script create FAILED");
908 _exit(0);
909 }
910 cmd[0] = tmp;
911 n = 0; /* 0 means reject */
912 pid = -1;
913 if (posix_spawn(&pid, cmd[0], 0, &attr, cmd, 0))
914 {
915 n = 2;
916 printf("ENOEXEC produces posix_spawn() error (BEST)");
917 }
918 else if (pid == -1)
919 printf("ENOEXEC returns pid == -1");
920 else if (wait(&status) != pid)
921 printf("ENOEXEC produces no child process");
922 else if (!WIFEXITED(status))
923 printf("ENOEXEC produces signal exit");
924 else
925 {
926 status = WEXITSTATUS(status);
927 if (status == 127)
928 {
929 n = 1;
930 printf("ENOEXEC produces exit status 127 (GOOD)");
931 }
932 else if (status == 99)
933 printf("ENOEXEC invokes sh");
934 else if (status == 0)
935 printf("ENOEXEC reports no error");
936 else
937 printf("ENOEXEC produces non-zero exit status");
938 }
939 _exit(n);
940 }
941
942Compiler stdout:
943
944Compiler stderr:
945 /tmp/tmpywohq_bc/testfile.c: In function ‘fork’:
946/tmp/tmpywohq_bc/testfile.c:11:22: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration]
947 pid_t fork (void) { printf("uses fork()"); return -1; }
948 ^~~~~~
949/tmp/tmpywohq_bc/testfile.c:11:22: warning: incompatible implicit declaration of built-in function ‘printf’
950/tmp/tmpywohq_bc/testfile.c:11:22: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
951/tmp/tmpywohq_bc/testfile.c: In function ‘_fork’:
952/tmp/tmpywohq_bc/testfile.c:12:23: warning: incompatible implicit declaration of built-in function ‘printf’
953 pid_t _fork (void) { printf("uses _fork()"); return -1; }
954 ^~~~~~
955/tmp/tmpywohq_bc/testfile.c:12:23: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
956/tmp/tmpywohq_bc/testfile.c: In function ‘__fork’:
957/tmp/tmpywohq_bc/testfile.c:13:24: warning: incompatible implicit declaration of built-in function ‘printf’
958 pid_t __fork (void) { printf("uses __fork()"); return -1; }
959 ^~~~~~
960/tmp/tmpywohq_bc/testfile.c:13:24: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
961/tmp/tmpywohq_bc/testfile.c: In function ‘main’:
962/tmp/tmpywohq_bc/testfile.c:27:4: warning: implicit declaration of function ‘_exit’ [-Wimplicit-function-declaration]
963 _exit(signal(SIGHUP, SIG_DFL) != SIG_IGN);
964 ^~~~~
965/tmp/tmpywohq_bc/testfile.c:27:4: warning: incompatible implicit declaration of built-in function ‘_exit’
966/tmp/tmpywohq_bc/testfile.c:31:4: warning: incompatible implicit declaration of built-in function ‘printf’
967 printf("posix_spawnattr_init() FAILED");
968 ^~~~~~
969/tmp/tmpywohq_bc/testfile.c:31:4: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
970/tmp/tmpywohq_bc/testfile.c:32:4: warning: incompatible implicit declaration of built-in function ‘_exit’
971 _exit(0);
972 ^~~~~
973/tmp/tmpywohq_bc/testfile.c:36:4: warning: incompatible implicit declaration of built-in function ‘printf’
974 printf("posix_spawnattr_setpgroup() FAILED");
975 ^~~~~~
976/tmp/tmpywohq_bc/testfile.c:36:4: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
977/tmp/tmpywohq_bc/testfile.c:37:4: warning: incompatible implicit declaration of built-in function ‘_exit’
978 _exit(0);
979 ^~~~~
980/tmp/tmpywohq_bc/testfile.c:41:4: warning: incompatible implicit declaration of built-in function ‘printf’
981 printf("posix_spawnattr_setflags() FAILED");
982 ^~~~~~
983/tmp/tmpywohq_bc/testfile.c:41:4: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
984/tmp/tmpywohq_bc/testfile.c:42:4: warning: incompatible implicit declaration of built-in function ‘_exit’
985 _exit(0);
986 ^~~~~
987/tmp/tmpywohq_bc/testfile.c:51:4: warning: incompatible implicit declaration of built-in function ‘printf’
988 printf("posix_spawn() FAILED");
989 ^~~~~~
990/tmp/tmpywohq_bc/testfile.c:51:4: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
991/tmp/tmpywohq_bc/testfile.c:52:4: warning: incompatible implicit declaration of built-in function ‘_exit’
992 _exit(0);
993 ^~~~~
994/tmp/tmpywohq_bc/testfile.c:57:4: warning: incompatible implicit declaration of built-in function ‘printf’
995 printf("wait() FAILED");
996 ^~~~~~
997/tmp/tmpywohq_bc/testfile.c:57:4: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
998/tmp/tmpywohq_bc/testfile.c:58:4: warning: incompatible implicit declaration of built-in function ‘_exit’
999 _exit(0);
1000 ^~~~~
1001/tmp/tmpywohq_bc/testfile.c:62:4: warning: incompatible implicit declaration of built-in function ‘printf’
1002 printf("SIGHUP ignored in parent not ignored in child");
1003 ^~~~~~
1004/tmp/tmpywohq_bc/testfile.c:62:4: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
1005/tmp/tmpywohq_bc/testfile.c:63:4: warning: incompatible implicit declaration of built-in function ‘_exit’
1006 _exit(0);
1007 ^~~~~
1008/tmp/tmpywohq_bc/testfile.c:69:4: warning: incompatible implicit declaration of built-in function ‘printf’
1009 printf("test executable path too long");
1010 ^~~~~~
1011/tmp/tmpywohq_bc/testfile.c:69:4: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
1012/tmp/tmpywohq_bc/testfile.c:70:4: warning: incompatible implicit declaration of built-in function ‘_exit’
1013 _exit(0);
1014 ^~~~~
1015/tmp/tmpywohq_bc/testfile.c:79:7: warning: implicit declaration of function ‘write’; did you mean ‘wait4’? [-Wimplicit-function-declaration]
1016 write(n, "exit 99\n", 8) != 8 ||
1017 ^~~~~
1018 wait4
1019/tmp/tmpywohq_bc/testfile.c:80:7: warning: implicit declaration of function ‘close’ [-Wimplicit-function-declaration]
1020 close(n) < 0)
1021 ^~~~~
1022/tmp/tmpywohq_bc/testfile.c:82:4: warning: incompatible implicit declaration of built-in function ‘printf’
1023 printf("test script create FAILED");
1024 ^~~~~~
1025/tmp/tmpywohq_bc/testfile.c:82:4: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
1026/tmp/tmpywohq_bc/testfile.c:83:4: warning: incompatible implicit declaration of built-in function ‘_exit’
1027 _exit(0);
1028 ^~~~~
1029/tmp/tmpywohq_bc/testfile.c:91:4: warning: incompatible implicit declaration of built-in function ‘printf’
1030 printf("ENOEXEC produces posix_spawn() error (BEST)");
1031 ^~~~~~
1032/tmp/tmpywohq_bc/testfile.c:91:4: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
1033/tmp/tmpywohq_bc/testfile.c:94:4: warning: incompatible implicit declaration of built-in function ‘printf’
1034 printf("ENOEXEC returns pid == -1");
1035 ^~~~~~
1036/tmp/tmpywohq_bc/testfile.c:94:4: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
1037/tmp/tmpywohq_bc/testfile.c:96:4: warning: incompatible implicit declaration of built-in function ‘printf’
1038 printf("ENOEXEC produces no child process");
1039 ^~~~~~
1040/tmp/tmpywohq_bc/testfile.c:96:4: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
1041/tmp/tmpywohq_bc/testfile.c:98:4: warning: incompatible implicit declaration of built-in function ‘printf’
1042 printf("ENOEXEC produces signal exit");
1043 ^~~~~~
1044/tmp/tmpywohq_bc/testfile.c:98:4: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
1045/tmp/tmpywohq_bc/testfile.c:105:5: warning: incompatible implicit declaration of built-in function ‘printf’
1046 printf("ENOEXEC produces exit status 127 (GOOD)");
1047 ^~~~~~
1048/tmp/tmpywohq_bc/testfile.c:105:5: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
1049/tmp/tmpywohq_bc/testfile.c:108:5: warning: incompatible implicit declaration of built-in function ‘printf’
1050 printf("ENOEXEC invokes sh");
1051 ^~~~~~
1052/tmp/tmpywohq_bc/testfile.c:108:5: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
1053/tmp/tmpywohq_bc/testfile.c:110:5: warning: incompatible implicit declaration of built-in function ‘printf’
1054 printf("ENOEXEC reports no error");
1055 ^~~~~~
1056/tmp/tmpywohq_bc/testfile.c:110:5: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
1057/tmp/tmpywohq_bc/testfile.c:112:5: warning: incompatible implicit declaration of built-in function ‘printf’
1058 printf("ENOEXEC produces non-zero exit status");
1059 ^~~~~~
1060/tmp/tmpywohq_bc/testfile.c:112:5: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
1061/tmp/tmpywohq_bc/testfile.c:114:3: warning: incompatible implicit declaration of built-in function ‘_exit’
1062 _exit(n);
1063 ^~~~~
1064
1065Program stdout:
1066
1067
1068Program stderr:
1069
1070
1071Checking if "posix_spawn exists and it works and its worth using " runs: NO (1)
1072Running compile:
1073Working directory: /tmp/tmpdfpvqopi
1074Command line: cc /tmp/tmpdfpvqopi/testfile.c -O0 -Wl,--start-group -lm -Wl,--end-group -pipe -D_FILE_OFFSET_BITS=64 -o /tmp/tmpdfpvqopi/output.exe
1075
1076Code:
1077 int main(int argc, char **argv) { return 0; }
1078Compiler stdout:
1079
1080Compiler stderr:
1081
1082Library m found: YES
1083Running compile:
1084Working directory: /tmp/tmp5t5p0a9_
1085Command line: cc /tmp/tmp5t5p0a9_/testfile.c -O0 -Wl,--start-group -liconv -Wl,--end-group -pipe -D_FILE_OFFSET_BITS=64 -o /tmp/tmp5t5p0a9_/output.exe
1086
1087Code:
1088 int main(int argc, char **argv) { return 0; }
1089Compiler stdout:
1090
1091Compiler stderr:
1092 /usr/bin/ld: cannot find -liconv
1093collect2: error: ld returned 1 exit status
1094
1095Library iconv found: NO
1096Program newgrp found: YES (/usr/bin/newgrp)
1097Program ed found: YES (/usr/lib/plan9/bin/ed)
1098Program tput found: YES (/usr/bin/tput)
1099[Errno 21] Is a directory: '/home/empty/git/ast/src/cmd/ksh93/sh'
1100Unusable script '/home/empty/git/ast/src/cmd/ksh93/sh'
1101Running command: /usr/bin/sh -c ls /dev/fd/9 9<&0
1102--- stdout----
1103/dev/fd/9
1104
1105----stderr----
1106
1107
1108Running compile:
1109Working directory: /tmp/tmpcikjiep_
1110Command line: cc /tmp/tmpcikjiep_/testfile.c -O0 -Wl,--start-group -lm -Wl,--end-group -pipe -D_FILE_OFFSET_BITS=64 -o /tmp/tmpcikjiep_/output.exe
1111
1112Code:
1113 int main(int argc, char **argv) { return 0; }
1114Compiler stdout:
1115
1116Compiler stderr:
1117
1118Library m found: YES
1119Running compile:
1120Working directory: /tmp/tmp8z_bayr6
1121Command line: cc /tmp/tmp8z_bayr6/testfile.c -O0 -Wl,--start-group -lexecinfo -Wl,--end-group -pipe -D_FILE_OFFSET_BITS=64 -o /tmp/tmp8z_bayr6/output.exe
1122
1123Code:
1124 int main(int argc, char **argv) { return 0; }
1125Compiler stdout:
1126
1127Compiler stderr:
1128 /usr/bin/ld: cannot find -lexecinfo
1129collect2: error: ld returned 1 exit status
1130
1131Library execinfo found: NO
1132Running compile:
1133Working directory: /tmp/tmpmwtjot0u
1134Command line: cc /tmp/tmpmwtjot0u/testfile.c -O0 -Wl,--start-group -llibdl -Wl,--end-group -pipe -D_FILE_OFFSET_BITS=64 -o /tmp/tmpmwtjot0u/output.exe
1135
1136Code:
1137 int main(int argc, char **argv) { return 0; }
1138Compiler stdout:
1139
1140Compiler stderr:
1141 /usr/bin/ld: cannot find -llibdl
1142collect2: error: ld returned 1 exit status
1143
1144Library libdl found: YES
1145Running compile:
1146Working directory: /tmp/tmph708b4t1
1147Command line: cc /tmp/tmph708b4t1/testfile.c -O0 -pipe -D_FILE_OFFSET_BITS=64 -o /tmp/tmph708b4t1/output.exe
1148
1149Code:
1150 #include <signal.h>
1151#include <limits.h>
1152
1153 #if defined __stub_sigqueue || defined __stub___sigqueue
1154 fail fail fail this function is not going to work
1155 #endif
1156
1157int main() {
1158 void *a = (void*) &sigqueue;
1159 long b = (long) a;
1160 return (int) b;
1161 }
1162Compiler stdout:
1163
1164Compiler stderr:
1165
1166Checking for function "sigqueue": YES
1167Running compile:
1168Working directory: /tmp/tmpt8mjfpkh
1169Command line: cc /tmp/tmpt8mjfpkh/testfile.c -O0 -pipe -D_FILE_OFFSET_BITS=64 -o /tmp/tmpt8mjfpkh/output.exe
1170
1171Code:
1172
1173 #include <sys/types.h>
1174 #include <sys/stat.h>
1175 #include <sys/socket.h>
1176 int main()
1177 {
1178 int sfd[2];
1179 struct stat st0;
1180 struct stat st1;
1181 if (socketpair(AF_UNIX, SOCK_STREAM, 0, sfd) < 0 ||
1182 shutdown(sfd[0], 1) < 0 ||
1183 shutdown(sfd[1], 0) < 0)
1184 return(1);
1185 if (fstat(sfd[0], &st0) < 0 || fstat(sfd[1], &st1) < 0)
1186 return(1);
1187 if ((st0.st_mode & (S_IRUSR|S_IWUSR)) == S_IRUSR &&
1188 (st1.st_mode & (S_IRUSR|S_IWUSR)) == S_IWUSR)
1189 return(1);
1190 if (fchmod(sfd[0], S_IRUSR) < 0 ||
1191 fstat(sfd[0], &st0) < 0 ||
1192 (st0.st_mode & (S_IRUSR|S_IWUSR)) != S_IRUSR)
1193 return(1);
1194 if (fchmod(sfd[1], S_IWUSR) < 0 ||
1195 fstat(sfd[1], &st1) < 0 ||
1196 (st1.st_mode & (S_IRUSR|S_IWUSR)) != S_IWUSR)
1197 return(1);
1198 return(0);
1199 }
1200
1201Compiler stdout:
1202
1203Compiler stderr:
1204
1205Program stdout:
1206
1207
1208Program stderr:
1209
1210
1211Checking if "fchmod() after socketpair() shutdown()" runs: YES
1212Running compile:
1213Working directory: /tmp/tmp2h9p2cee
1214Command line: cc /tmp/tmp2h9p2cee/testfile.c -O0 -pipe -D_FILE_OFFSET_BITS=64 -c -o /tmp/tmp2h9p2cee/output.obj
1215
1216Code:
1217 #include <sys/stat.h>
1218 void bar() {
1219 struct stat foo;
1220 foo.st_mtim;
1221
1222 };
1223Compiler stdout:
1224
1225Compiler stderr:
1226
1227Checking whether type "struct stat" has member "st_mtim": YES
1228Adding test "alias".
1229Adding test "alias(C.UTF-8)".
1230Adding test "alias(shcomp)".
1231Adding test "append".
1232Adding test "append(C.UTF-8)".
1233Adding test "append(shcomp)".
1234Adding test "arith".
1235Adding test "arith(C.UTF-8)".
1236Adding test "arith(shcomp)".
1237Adding test "arrays".
1238Adding test "arrays(C.UTF-8)".
1239Adding test "arrays(shcomp)".
1240Adding test "arrays2".
1241Adding test "arrays2(C.UTF-8)".
1242Adding test "arrays2(shcomp)".
1243Adding test "attributes".
1244Adding test "attributes(C.UTF-8)".
1245Adding test "attributes(shcomp)".
1246Adding test "basic".
1247Adding test "basic(C.UTF-8)".
1248Adding test "basic(shcomp)".
1249Adding test "bracket".
1250Adding test "bracket(C.UTF-8)".
1251Adding test "bracket(shcomp)".
1252Adding test "builtins".
1253Adding test "builtins(C.UTF-8)".
1254Adding test "builtins(shcomp)".
1255Adding test "case".
1256Adding test "case(C.UTF-8)".
1257Adding test "case(shcomp)".
1258Adding test "comvar".
1259Adding test "comvar(C.UTF-8)".
1260Adding test "comvar(shcomp)".
1261Adding test "comvario".
1262Adding test "comvario(C.UTF-8)".
1263Adding test "comvario(shcomp)".
1264Adding test "coprocess".
1265Adding test "coprocess(C.UTF-8)".
1266Adding test "coprocess(shcomp)".
1267Adding test "cubetype".
1268Adding test "cubetype(C.UTF-8)".
1269Adding test "cubetype(shcomp)".
1270Adding test "directoryfd".
1271Adding test "directoryfd(C.UTF-8)".
1272Adding test "directoryfd(shcomp)".
1273Adding test "enum".
1274Adding test "enum(C.UTF-8)".
1275Adding test "enum(shcomp)".
1276Adding test "exit".
1277Adding test "exit(C.UTF-8)".
1278Adding test "exit(shcomp)".
1279Adding test "expand".
1280Adding test "expand(C.UTF-8)".
1281Adding test "expand(shcomp)".
1282Adding test "functions".
1283Adding test "functions(C.UTF-8)".
1284Adding test "functions(shcomp)".
1285Adding test "glob".
1286Adding test "glob(C.UTF-8)".
1287Adding test "glob(shcomp)".
1288Adding test "grep".
1289Adding test "grep(C.UTF-8)".
1290Adding test "grep(shcomp)".
1291Adding test "heredoc".
1292Adding test "heredoc(C.UTF-8)".
1293Adding test "heredoc(shcomp)".
1294Adding test "io".
1295Adding test "io(C.UTF-8)".
1296Adding test "leaks".
1297Adding test "leaks(C.UTF-8)".
1298Adding test "leaks(shcomp)".
1299Adding test "locale".
1300Adding test "locale(C.UTF-8)".
1301Adding test "locale(shcomp)".
1302Adding test "math".
1303Adding test "math(C.UTF-8)".
1304Adding test "math(shcomp)".
1305Adding test "nameref".
1306Adding test "nameref(C.UTF-8)".
1307Adding test "nameref(shcomp)".
1308Adding test "namespace".
1309Adding test "namespace(C.UTF-8)".
1310Adding test "options".
1311Adding test "options(C.UTF-8)".
1312Adding test "options(shcomp)".
1313Adding test "path".
1314Adding test "path(C.UTF-8)".
1315Adding test "path(shcomp)".
1316Adding test "pointtype".
1317Adding test "pointtype(C.UTF-8)".
1318Adding test "pointtype(shcomp)".
1319Adding test "pty".
1320Adding test "pty(C.UTF-8)".
1321Adding test "pty(shcomp)".
1322Adding test "quoting".
1323Adding test "quoting(C.UTF-8)".
1324Adding test "quoting(shcomp)".
1325Adding test "quoting2".
1326Adding test "quoting2(C.UTF-8)".
1327Adding test "quoting2(shcomp)".
1328Adding test "readcsv".
1329Adding test "readcsv(C.UTF-8)".
1330Adding test "readcsv(shcomp)".
1331Adding test "recttype".
1332Adding test "recttype(C.UTF-8)".
1333Adding test "recttype(shcomp)".
1334Adding test "restricted".
1335Adding test "restricted(C.UTF-8)".
1336Adding test "restricted(shcomp)".
1337Adding test "return".
1338Adding test "return(C.UTF-8)".
1339Adding test "return(shcomp)".
1340Adding test "select".
1341Adding test "select(C.UTF-8)".
1342Adding test "select(shcomp)".
1343Adding test "sh_match".
1344Adding test "sh_match(C.UTF-8)".
1345Adding test "sh_match(shcomp)".
1346Adding test "sigchld".
1347Adding test "sigchld(C.UTF-8)".
1348Adding test "sigchld(shcomp)".
1349Adding test "signal".
1350Adding test "signal(C.UTF-8)".
1351Adding test "signal(shcomp)".
1352Adding test "statics".
1353Adding test "statics(C.UTF-8)".
1354Adding test "statics(shcomp)".
1355Adding test "subshell".
1356Adding test "subshell(C.UTF-8)".
1357Adding test "subshell(shcomp)".
1358Adding test "substring".
1359Adding test "substring(C.UTF-8)".
1360Adding test "substring(shcomp)".
1361Adding test "tilde".
1362Adding test "tilde(C.UTF-8)".
1363Adding test "tilde(shcomp)".
1364Adding test "timetype".
1365Adding test "timetype(C.UTF-8)".
1366Adding test "timetype(shcomp)".
1367Adding test "treemove".
1368Adding test "treemove(C.UTF-8)".
1369Adding test "types".
1370Adding test "types(C.UTF-8)".
1371Adding test "types(shcomp)".
1372Adding test "variables".
1373Adding test "variables(C.UTF-8)".
1374Adding test "variables(shcomp)".
1375Adding test "vartree1".
1376Adding test "vartree1(C.UTF-8)".
1377Adding test "vartree1(shcomp)".
1378Adding test "vartree2".
1379Adding test "vartree2(C.UTF-8)".
1380Adding test "vartree2(shcomp)".
1381Adding test "wchar".
1382Adding test "wchar(C.UTF-8)".
1383Adding test "wchar(shcomp)".
1384Build targets in project: 5
1385Found ninja-1.8.2 at /usr/bin/ninja