-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.log
5706 lines (5667 loc) · 169 KB
/
config.log
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by GNU Make configure 4.4.1, which was
generated by GNU Autoconf 2.72. Invocation command line was
$ configure --disable-nls --no-create --no-recursion
## --------- ##
## Platform. ##
## --------- ##
hostname = ritadeiMac.local
uname -m = x86_64
uname -r = 22.6.0
uname -s = Darwin
uname -v = Darwin Kernel Version 22.6.0: Tue Nov 7 21:48:06 PST 2023; root:xnu-8796.141.3.702.9~2/RELEASE_X86_64
/usr/bin/uname -p = i386
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = Mach kernel version:
Darwin Kernel Version 22.6.0: Tue Nov 7 21:48:06 PST 2023; root:xnu-8796.141.3.702.9~2/RELEASE_X86_64
Kernel configured for up to 4 processors.
4 processors are physically available.
4 processors are logically available.
Processor type: x86_64h (Intel x86-64h Haswell)
Processors active: 0 1 2 3
Primary memory available: 8.00 gigabytes
Default processor set: 528 tasks, 2083 threads, 4 processors
Load average: 3.90, Mach factor: 0.78
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /Users/rita/.bun/bin/
PATH: /usr/local/bin/
PATH: /System/Cryptexes/App/usr/bin/
PATH: /usr/bin/
PATH: /bin/
PATH: /usr/sbin/
PATH: /sbin/
PATH: /Library/TeX/texbin/
PATH: /Library/Apple/usr/bin/
PATH: /var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin/
PATH: /var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin/
PATH: /var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin/
PATH: /Users/rita/.bun/bin/
PATH: /Users/rita/.zvm/bin/
PATH: /Users/rita/.zvm/bin/
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2975: looking for aux files: config.rpath config.guess config.sub compile missing install-sh
configure:2988: trying ./build-aux/
configure:3017: ./build-aux/config.rpath found
configure:3017: ./build-aux/config.guess found
configure:3017: ./build-aux/config.sub found
configure:3017: ./build-aux/compile found
configure:3017: ./build-aux/missing found
configure:2999: ./build-aux/install-sh found
configure:3163: checking for a BSD-compatible install
configure:3237: result: /usr/local/bin/ginstall -c
configure:3248: checking whether build environment is sane
configure:3303: result: yes
configure:3464: checking for a race-free mkdir -p
configure:3507: result: /usr/local/bin/gmkdir -p
configure:3514: checking for gawk
configure:3550: result: no
configure:3514: checking for mawk
configure:3550: result: no
configure:3514: checking for nawk
configure:3550: result: no
configure:3514: checking for awk
configure:3535: found /usr/bin/awk
configure:3547: result: awk
configure:3558: checking whether make sets $(MAKE)
configure:3582: result: yes
configure:3612: checking whether make supports nested variables
configure:3631: result: yes
configure:3782: checking whether make supports the include directive
configure:3797: make -f confmf.GNU && cat confinc.out
this is the am__doit target
configure:3800: $? = 0
configure:3819: result: yes (GNU style)
configure:3896: checking for gcc
configure:3917: found /usr/bin/gcc
configure:3929: result: gcc
configure:4288: checking for C compiler version
configure:4297: gcc --version >&5
Apple clang version 14.0.3 (clang-1403.0.22.14.1)
Target: x86_64-apple-darwin22.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
configure:4308: $? = 0
configure:4297: gcc -v >&5
Apple clang version 14.0.3 (clang-1403.0.22.14.1)
Target: x86_64-apple-darwin22.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
configure:4308: $? = 0
configure:4297: gcc -V >&5
clang: error: argument to '-V' is missing (expected 1 value)
clang: error: no input files
configure:4308: $? = 1
configure:4297: gcc -qversion >&5
clang: error: unknown argument '-qversion'; did you mean '--version'?
clang: error: no input files
configure:4308: $? = 1
configure:4297: gcc -version >&5
clang: error: unknown argument '-version'; did you mean '--version'?
clang: error: no input files
configure:4308: $? = 1
configure:4328: checking whether the C compiler works
configure:4350: gcc conftest.c >&5
configure:4354: $? = 0
configure:4405: result: yes
configure:4409: checking for C compiler default output file name
configure:4411: result: a.out
configure:4417: checking for suffix of executables
configure:4424: gcc -o conftest conftest.c >&5
configure:4428: $? = 0
configure:4452: result:
configure:4476: checking whether we are cross compiling
configure:4484: gcc -o conftest conftest.c >&5
configure:4488: $? = 0
configure:4495: ./conftest
configure:4499: $? = 0
configure:4514: result: no
configure:4520: checking for suffix of object files
configure:4543: gcc -c conftest.c >&5
configure:4547: $? = 0
configure:4571: result: o
configure:4575: checking whether the compiler supports GNU C
configure:4595: gcc -c conftest.c >&5
configure:4595: $? = 0
configure:4607: result: yes
configure:4618: checking whether gcc accepts -g
configure:4639: gcc -c -g conftest.c >&5
configure:4639: $? = 0
configure:4686: result: yes
configure:4706: checking for gcc option to enable C11 features
configure:4721: gcc -c -g -O2 conftest.c >&5
configure:4721: $? = 0
configure:4740: result: none needed
configure:4864: checking whether gcc understands -c and -o together
configure:4887: gcc -c conftest.c -o conftest2.o
configure:4890: $? = 0
configure:4887: gcc -c conftest.c -o conftest2.o
configure:4890: $? = 0
configure:4903: result: yes
configure:4921: checking whether the compiler is clang
configure:4943: gcc -c -g -O2 conftest.c >&5
conftest.c:13:12: error: unknown type name 'barfbarf'
barfbarf
^
1 error generated.
configure:4943: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU Make"
| #define PACKAGE_TARNAME "make"
| #define PACKAGE_VERSION "4.4.1"
| #define PACKAGE_STRING "GNU Make 4.4.1"
| #define PACKAGE_BUGREPORT "bug-make@gnu.org"
| #define PACKAGE_URL "https://www.gnu.org/software/make/"
| #define PACKAGE "make"
| #define VERSION "4.4.1"
| /* end confdefs.h. */
|
| #ifdef __clang__
| barfbarf
| #endif
|
| int
| main (void)
| {
|
| ;
| return 0;
| }
|
configure:4954: result: yes
configure:4958: checking for compiler option needed when checking for declarations
configure:4978: gcc -c -g -O2 conftest.c >&5 -Werror=implicit-function-declaration
configure:4978: $? = 0
configure:4993: result: -Werror=implicit-function-declaration
configure:5004: checking dependency style of gcc
configure:5117: result: gcc3
configure:5137: checking for stdio.h
configure:5137: gcc -c -g -O2 conftest.c >&5
configure:5137: $? = 0
configure:5137: result: yes
configure:5137: checking for stdlib.h
configure:5137: gcc -c -g -O2 conftest.c >&5
configure:5137: $? = 0
configure:5137: result: yes
configure:5137: checking for string.h
configure:5137: gcc -c -g -O2 conftest.c >&5
configure:5137: $? = 0
configure:5137: result: yes
configure:5137: checking for inttypes.h
configure:5137: gcc -c -g -O2 conftest.c >&5
configure:5137: $? = 0
configure:5137: result: yes
configure:5137: checking for stdint.h
configure:5137: gcc -c -g -O2 conftest.c >&5
configure:5137: $? = 0
configure:5137: result: yes
configure:5137: checking for strings.h
configure:5137: gcc -c -g -O2 conftest.c >&5
configure:5137: $? = 0
configure:5137: result: yes
configure:5137: checking for sys/stat.h
configure:5137: gcc -c -g -O2 conftest.c >&5
configure:5137: $? = 0
configure:5137: result: yes
configure:5137: checking for sys/types.h
configure:5137: gcc -c -g -O2 conftest.c >&5
configure:5137: $? = 0
configure:5137: result: yes
configure:5137: checking for unistd.h
configure:5137: gcc -c -g -O2 conftest.c >&5
configure:5137: $? = 0
configure:5137: result: yes
configure:5137: checking for wchar.h
configure:5137: gcc -c -g -O2 conftest.c >&5
configure:5137: $? = 0
configure:5137: result: yes
configure:5137: checking for minix/config.h
configure:5137: gcc -c -g -O2 conftest.c >&5
conftest.c:49:10: fatal error: 'minix/config.h' file not found
#include <minix/config.h>
^~~~~~~~~~~~~~~~
1 error generated.
configure:5137: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU Make"
| #define PACKAGE_TARNAME "make"
| #define PACKAGE_VERSION "4.4.1"
| #define PACKAGE_STRING "GNU Make 4.4.1"
| #define PACKAGE_BUGREPORT "bug-make@gnu.org"
| #define PACKAGE_URL "https://www.gnu.org/software/make/"
| #define PACKAGE "make"
| #define VERSION "4.4.1"
| #define HAVE_STDIO_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_WCHAR_H 1
| /* end confdefs.h. */
| #include <stddef.h>
| #ifdef HAVE_STDIO_H
| # include <stdio.h>
| #endif
| #ifdef HAVE_STDLIB_H
| # include <stdlib.h>
| #endif
| #ifdef HAVE_STRING_H
| # include <string.h>
| #endif
| #ifdef HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #ifdef HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #ifdef HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <minix/config.h>
configure:5137: result: no
configure:5137: checking for sys/param.h
configure:5137: gcc -c -g -O2 conftest.c >&5
configure:5137: $? = 0
configure:5137: result: yes
configure:5137: checking for stdbool.h
configure:5137: gcc -c -g -O2 conftest.c >&5
configure:5137: $? = 0
configure:5137: result: yes
configure:5137: checking for vfork.h
configure:5137: gcc -c -g -O2 conftest.c >&5
conftest.c:51:10: fatal error: 'vfork.h' file not found
#include <vfork.h>
^~~~~~~~~
1 error generated.
configure:5137: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU Make"
| #define PACKAGE_TARNAME "make"
| #define PACKAGE_VERSION "4.4.1"
| #define PACKAGE_STRING "GNU Make 4.4.1"
| #define PACKAGE_BUGREPORT "bug-make@gnu.org"
| #define PACKAGE_URL "https://www.gnu.org/software/make/"
| #define PACKAGE "make"
| #define VERSION "4.4.1"
| #define HAVE_STDIO_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_WCHAR_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_STDBOOL_H 1
| /* end confdefs.h. */
| #include <stddef.h>
| #ifdef HAVE_STDIO_H
| # include <stdio.h>
| #endif
| #ifdef HAVE_STDLIB_H
| # include <stdlib.h>
| #endif
| #ifdef HAVE_STRING_H
| # include <string.h>
| #endif
| #ifdef HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #ifdef HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #ifdef HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <vfork.h>
configure:5137: result: no
configure:5168: checking whether it is safe to define __EXTENSIONS__
configure:5187: gcc -c -g -O2 conftest.c >&5
configure:5187: $? = 0
configure:5197: result: yes
configure:5200: checking whether _XOPEN_SOURCE should be defined
configure:5222: gcc -c -g -O2 conftest.c >&5
configure:5222: $? = 0
configure:5251: result: no
configure:5364: checking for gcc
configure:5397: result: gcc
configure:5756: checking for C compiler version
configure:5765: gcc --version >&5
Apple clang version 14.0.3 (clang-1403.0.22.14.1)
Target: x86_64-apple-darwin22.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
configure:5776: $? = 0
configure:5765: gcc -v >&5
Apple clang version 14.0.3 (clang-1403.0.22.14.1)
Target: x86_64-apple-darwin22.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
configure:5776: $? = 0
configure:5765: gcc -V >&5
clang: error: argument to '-V' is missing (expected 1 value)
clang: error: no input files
configure:5776: $? = 1
configure:5765: gcc -qversion >&5
clang: error: unknown argument '-qversion'; did you mean '--version'?
clang: error: no input files
configure:5776: $? = 1
configure:5765: gcc -version >&5
clang: error: unknown argument '-version'; did you mean '--version'?
clang: error: no input files
configure:5776: $? = 1
configure:5780: checking whether the compiler supports GNU C
configure:5812: result: yes
configure:5823: checking whether gcc accepts -g
configure:5891: result: yes
configure:5911: checking for gcc option to enable C11 features
configure:5945: result: none needed
configure:6069: checking whether gcc understands -c and -o together
configure:6108: result: yes
configure:6126: checking whether the compiler is clang
configure:6159: result: yes
configure:6163: checking for compiler option needed when checking for declarations
configure:6198: result: -Werror=implicit-function-declaration
configure:6209: checking dependency style of gcc
configure:6322: result: gcc3
configure:6407: checking for g++
configure:6428: found /usr/bin/g++
configure:6440: result: g++
configure:6467: checking for C++ compiler version
configure:6476: g++ --version >&5
Apple clang version 14.0.3 (clang-1403.0.22.14.1)
Target: x86_64-apple-darwin22.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
configure:6487: $? = 0
configure:6476: g++ -v >&5
Apple clang version 14.0.3 (clang-1403.0.22.14.1)
Target: x86_64-apple-darwin22.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
configure:6487: $? = 0
configure:6476: g++ -V >&5
clang: error: argument to '-V' is missing (expected 1 value)
clang: error: no input files
configure:6487: $? = 1
configure:6476: g++ -qversion >&5
clang: error: unknown argument '-qversion'; did you mean '--version'?
clang: error: no input files
configure:6487: $? = 1
configure:6491: checking whether the compiler supports GNU C++
configure:6511: g++ -c conftest.cpp >&5
configure:6511: $? = 0
configure:6523: result: yes
configure:6534: checking whether g++ accepts -g
configure:6555: g++ -c -g conftest.cpp >&5
configure:6555: $? = 0
configure:6602: result: yes
configure:6622: checking for g++ option to enable C++11 features
configure:6637: g++ -c -g -O2 conftest.cpp >&5
conftest.cpp:87:3: error: "Compiler does not advertise C++11 conformance"
# error "Compiler does not advertise C++11 conformance"
^
conftest.cpp:92:3: error: unknown type name 'constexpr'
constexpr int get_val() { return 20; }
^
conftest.cpp:104:17: error: delegating constructors are permitted only in C++11
delegate(): delegate(2354) {}
^~~~~~~~
conftest.cpp:115:26: warning: 'override' keyword is a C++11 extension [-Wc++11-extensions]
virtual int getval() override final { return this->n * 2; }
^
conftest.cpp:115:35: warning: 'final' keyword is a C++11 extension [-Wc++11-extensions]
virtual int getval() override final { return this->n * 2; }
^
conftest.cpp:122:16: warning: defaulted function definitions are a C++11 extension [-Wc++11-extensions]
nocopy() = default;
^
conftest.cpp:123:29: warning: deleted function definitions are a C++11 extension [-Wc++11-extensions]
nocopy(const nocopy&) = delete;
^
conftest.cpp:124:41: warning: deleted function definitions are a C++11 extension [-Wc++11-extensions]
nocopy & operator=(const nocopy&) = delete;
^
conftest.cpp:136:25: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
template <typename V> auto sum(V first) -> V
^
conftest.cpp:136:25: error: 'auto' not allowed in function return type
template <typename V> auto sum(V first) -> V
^~~~
conftest.cpp:136:42: error: expected ';' at end of declaration
template <typename V> auto sum(V first) -> V
^
;
conftest.cpp:136:43: error: cannot use arrow operator on a type
template <typename V> auto sum(V first) -> V
^
conftest.cpp:140:33: warning: variadic templates are a C++11 extension [-Wc++11-extensions]
template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
^
conftest.cpp:140:43: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
^
conftest.cpp:140:43: error: 'auto' not allowed in function return type
template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
^~~~
conftest.cpp:140:74: error: expected ';' at end of declaration
template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
^
;
conftest.cpp:140:75: error: cannot use arrow operator on a type
template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
^
conftest.cpp:164:3: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
auto a1 = 6538;
^
conftest.cpp:165:3: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
auto a2 = 48573953.4;
^
conftest.cpp:166:3: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
auto a3 = "String literal";
^
conftest.cpp:169:8: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
for (auto i = a3; *i; ++i) { total += *i; }
^
conftest.cpp:185:8: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
for (auto &x : array) { x += 23; }
^
conftest.cpp:185:16: warning: range-based for loop is a C++11 extension [-Wc++11-extensions]
for (auto &x : array) { x += 23; }
^
conftest.cpp:190:17: error: expected expression
assert (eval ([](int x) { return x*2; }, 21) == 42);
^
conftest.cpp:192:17: error: expected expression
assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
^
conftest.cpp:194:17: error: expected expression
assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
^
conftest.cpp:200:3: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
auto a = sum(1);
^
conftest.cpp:200:12: error: no matching function for call to 'sum'
auto a = sum(1);
^~~
conftest.cpp:201:3: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
auto b = sum(1, 2);
^
conftest.cpp:201:12: error: no matching function for call to 'sum'
auto b = sum(1, 2);
^~~
conftest.cpp:202:3: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
auto c = sum(1.0, 2.0, 3.0);
^
conftest.cpp:202:12: error: no matching function for call to 'sum'
auto c = sum(1.0, 2.0, 3.0);
^~~
conftest.cpp:207:25: warning: empty parentheses interpreted as a function declaration [-Wvexing-parse]
cxx11test::delegate d2();
^~
conftest.cpp:207:25: note: remove parentheses to declare a variable
cxx11test::delegate d2();
^~
conftest.cpp:220:16: error: found '<::' after a template name which forms the digraph '<:' (aka '[') and a ':', did you mean '< ::'?
test_template<::test_template<int>> v(test_template<int>(12));
^~~
< ::
conftest.cpp:220:36: error: a space is required between consecutive right angle brackets (use '> >')
test_template<::test_template<int>> v(test_template<int>(12));
^~
> >
conftest.cpp:224:22: error: use of undeclared identifier 'u8'
char const *utf8 = u8"UTF-8 string \u2500";
^
conftest.cpp:224:24: error: expected ';' at end of declaration
char const *utf8 = u8"UTF-8 string \u2500";
^
;
fatal error: too many errors emitted, stopping now [-ferror-limit=]
18 warnings and 20 errors generated.
configure:6637: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU Make"
| #define PACKAGE_TARNAME "make"
| #define PACKAGE_VERSION "4.4.1"
| #define PACKAGE_STRING "GNU Make 4.4.1"
| #define PACKAGE_BUGREPORT "bug-make@gnu.org"
| #define PACKAGE_URL "https://www.gnu.org/software/make/"
| #define PACKAGE "make"
| #define VERSION "4.4.1"
| #define HAVE_STDIO_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_WCHAR_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_STDBOOL_H 1
| #define STDC_HEADERS 1
| #define _ALL_SOURCE 1
| #define _DARWIN_C_SOURCE 1
| #define _GNU_SOURCE 1
| #define _HPUX_ALT_XOPEN_SOCKET_API 1
| #define _NETBSD_SOURCE 1
| #define _OPENBSD_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1
| #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
| #define __STDC_WANT_IEC_60559_DFP_EXT__ 1
| #define __STDC_WANT_IEC_60559_EXT__ 1
| #define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1
| #define __STDC_WANT_IEC_60559_TYPES_EXT__ 1
| #define __STDC_WANT_LIB_EXT2__ 1
| #define __STDC_WANT_MATH_SPEC_FUNCS__ 1
| #define _TANDEM_SOURCE 1
| #define __EXTENSIONS__ 1
| /* end confdefs.h. */
|
| // Does the compiler advertise C++98 conformance?
| #if !defined __cplusplus || __cplusplus < 199711L
| # error "Compiler does not advertise C++98 conformance"
| #endif
|
| // These inclusions are to reject old compilers that
| // lack the unsuffixed header files.
| #include <cstdlib>
| #include <exception>
|
| // <cassert> and <cstring> are *not* freestanding headers in C++98.
| extern void assert (int);
| namespace std {
| extern int strcmp (const char *, const char *);
| }
|
| // Namespaces, exceptions, and templates were all added after "C++ 2.0".
| using std::exception;
| using std::strcmp;
|
| namespace {
|
| void test_exception_syntax()
| {
| try {
| throw "test";
| } catch (const char *s) {
| // Extra parentheses suppress a warning when building autoconf itself,
| // due to lint rules shared with more typical C programs.
| assert (!(strcmp) (s, "test"));
| }
| }
|
| template <typename T> struct test_template
| {
| T const val;
| explicit test_template(T t) : val(t) {}
| template <typename U> T add(U u) { return static_cast<T>(u) + val; }
| };
|
| } // anonymous namespace
|
|
| // Does the compiler advertise C++ 2011 conformance?
| #if !defined __cplusplus || __cplusplus < 201103L
| # error "Compiler does not advertise C++11 conformance"
| #endif
|
| namespace cxx11test
| {
| constexpr int get_val() { return 20; }
|
| struct testinit
| {
| int i;
| double d;
| };
|
| class delegate
| {
| public:
| delegate(int n) : n(n) {}
| delegate(): delegate(2354) {}
|
| virtual int getval() { return this->n; };
| protected:
| int n;
| };
|
| class overridden : public delegate
| {
| public:
| overridden(int n): delegate(n) {}
| virtual int getval() override final { return this->n * 2; }
| };
|
| class nocopy
| {
| public:
| nocopy(int i): i(i) {}
| nocopy() = default;
| nocopy(const nocopy&) = delete;
| nocopy & operator=(const nocopy&) = delete;
| private:
| int i;
| };
|
| // for testing lambda expressions
| template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
| {
| return f(v);
| }
|
| // for testing variadic templates and trailing return types
| template <typename V> auto sum(V first) -> V
| {
| return first;
| }
| template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
| {
| return first + sum(rest...);
| }
| }
|
|
| int
| main (int argc, char **argv)
| {
| int ok = 0;
|
| assert (argc);
| assert (! argv[0]);
| {
| test_exception_syntax ();
| test_template<double> tt (2.0);
| assert (tt.add (4) == 6.0);
| assert (true && !false);
| }
|
|
| {
| // Test auto and decltype
| auto a1 = 6538;
| auto a2 = 48573953.4;
| auto a3 = "String literal";
|
| int total = 0;
| for (auto i = a3; *i; ++i) { total += *i; }
|
| decltype(a2) a4 = 34895.034;
| }
| {
| // Test constexpr
| short sa[cxx11test::get_val()] = { 0 };
| }
| {
| // Test initializer lists
| cxx11test::testinit il = { 4323, 435234.23544 };
| }
| {
| // Test range-based for
| int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
| 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
| for (auto &x : array) { x += 23; }
| }
| {
| // Test lambda expressions
| using cxx11test::eval;
| assert (eval ([](int x) { return x*2; }, 21) == 42);
| double d = 2.0;
| assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
| assert (d == 5.0);
| assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
| assert (d == 5.0);
| }
| {
| // Test use of variadic templates
| using cxx11test::sum;
| auto a = sum(1);
| auto b = sum(1, 2);
| auto c = sum(1.0, 2.0, 3.0);
| }
| {
| // Test constructor delegation
| cxx11test::delegate d1;
| cxx11test::delegate d2();
| cxx11test::delegate d3(45);
| }
| {
| // Test override and final
| cxx11test::overridden o1(55464);
| }
| {
| // Test nullptr
| char *c = nullptr;
| }
| {
| // Test template brackets
| test_template<::test_template<int>> v(test_template<int>(12));
| }
| {
| // Unicode literals
| char const *utf8 = u8"UTF-8 string \u2500";
| char16_t const *utf16 = u"UTF-8 string \u2500";
| char32_t const *utf32 = U"UTF-32 string \u2500";
| }
|
| return ok;
| }
|
configure:6637: g++ -std=gnu++11 -c -g -O2 conftest.cpp >&5
conftest.cpp:207:25: warning: empty parentheses interpreted as a function declaration [-Wvexing-parse]
cxx11test::delegate d2();
^~
conftest.cpp:207:25: note: remove parentheses to declare a variable
cxx11test::delegate d2();
^~
1 warning generated.
configure:6637: $? = 0
configure:6659: result: -std=gnu++11
configure:6727: checking dependency style of g++ -std=gnu++11
configure:6840: result: gcc3
configure:6866: checking build system type
configure:6882: result: x86_64-apple-darwin22.6.0
configure:6902: checking host system type
configure:6917: result: x86_64-apple-darwin22.6.0
configure:6954: checking how to run the C preprocessor
configure:6980: gcc -E conftest.c
configure:6980: $? = 0
configure:6996: gcc -E conftest.c
conftest.c:42:10: fatal error: 'ac_nonexistent.h' file not found
#include <ac_nonexistent.h>
^~~~~~~~~~~~~~~~~~
1 error generated.
configure:6996: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU Make"
| #define PACKAGE_TARNAME "make"
| #define PACKAGE_VERSION "4.4.1"
| #define PACKAGE_STRING "GNU Make 4.4.1"
| #define PACKAGE_BUGREPORT "bug-make@gnu.org"
| #define PACKAGE_URL "https://www.gnu.org/software/make/"
| #define PACKAGE "make"
| #define VERSION "4.4.1"
| #define HAVE_STDIO_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_WCHAR_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_STDBOOL_H 1
| #define STDC_HEADERS 1
| #define _ALL_SOURCE 1
| #define _DARWIN_C_SOURCE 1
| #define _GNU_SOURCE 1
| #define _HPUX_ALT_XOPEN_SOCKET_API 1
| #define _NETBSD_SOURCE 1
| #define _OPENBSD_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1
| #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
| #define __STDC_WANT_IEC_60559_DFP_EXT__ 1
| #define __STDC_WANT_IEC_60559_EXT__ 1
| #define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1
| #define __STDC_WANT_IEC_60559_TYPES_EXT__ 1
| #define __STDC_WANT_LIB_EXT2__ 1
| #define __STDC_WANT_MATH_SPEC_FUNCS__ 1
| #define _TANDEM_SOURCE 1
| #define __EXTENSIONS__ 1
| #define MAKE_CXX "g++ -std=gnu++11"
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:7025: result: gcc -E
configure:7039: gcc -E conftest.c
configure:7039: $? = 0
configure:7055: gcc -E conftest.c
conftest.c:42:10: fatal error: 'ac_nonexistent.h' file not found
#include <ac_nonexistent.h>
^~~~~~~~~~~~~~~~~~
1 error generated.
configure:7055: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU Make"
| #define PACKAGE_TARNAME "make"
| #define PACKAGE_VERSION "4.4.1"
| #define PACKAGE_STRING "GNU Make 4.4.1"
| #define PACKAGE_BUGREPORT "bug-make@gnu.org"
| #define PACKAGE_URL "https://www.gnu.org/software/make/"
| #define PACKAGE "make"
| #define VERSION "4.4.1"
| #define HAVE_STDIO_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_WCHAR_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_STDBOOL_H 1
| #define STDC_HEADERS 1
| #define _ALL_SOURCE 1
| #define _DARWIN_C_SOURCE 1
| #define _GNU_SOURCE 1
| #define _HPUX_ALT_XOPEN_SOCKET_API 1
| #define _NETBSD_SOURCE 1
| #define _OPENBSD_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1
| #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
| #define __STDC_WANT_IEC_60559_DFP_EXT__ 1
| #define __STDC_WANT_IEC_60559_EXT__ 1
| #define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1
| #define __STDC_WANT_IEC_60559_TYPES_EXT__ 1
| #define __STDC_WANT_LIB_EXT2__ 1
| #define __STDC_WANT_MATH_SPEC_FUNCS__ 1
| #define _TANDEM_SOURCE 1
| #define __EXTENSIONS__ 1
| #define MAKE_CXX "g++ -std=gnu++11"
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:7088: checking for egrep -e
configure:7218: result: /usr/bin/grep -E
configure:7225: checking for Minix Amsterdam compiler
configure:7253: result: no
configure:7316: checking for ar
configure:7337: found /usr/bin/ar
configure:7349: result: ar
configure:7430: checking for ranlib
configure:7451: found /usr/bin/ranlib
configure:7463: result: ranlib
configure:7496: checking for gcc option to enable large file support
configure:7531: gcc -c -g -O2 conftest.c >&5
configure:7531: $? = 0
configure:7537: gcc -DFTYPE=ino_t -c -g -O2 conftest.c >&5
configure:7537: $? = 0
configure:7574: result: none needed
configure:7735: checking for size_t
configure:7735: gcc -c -g -O2 conftest.c >&5
configure:7735: $? = 0
configure:7735: gcc -c -g -O2 conftest.c >&5
conftest.c:73:21: error: expected expression
if (sizeof ((size_t)))
^
1 error generated.
configure:7735: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU Make"
| #define PACKAGE_TARNAME "make"
| #define PACKAGE_VERSION "4.4.1"
| #define PACKAGE_STRING "GNU Make 4.4.1"
| #define PACKAGE_BUGREPORT "bug-make@gnu.org"
| #define PACKAGE_URL "https://www.gnu.org/software/make/"
| #define PACKAGE "make"
| #define VERSION "4.4.1"
| #define HAVE_STDIO_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_WCHAR_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_STDBOOL_H 1
| #define STDC_HEADERS 1
| #define _ALL_SOURCE 1
| #define _DARWIN_C_SOURCE 1
| #define _GNU_SOURCE 1
| #define _HPUX_ALT_XOPEN_SOCKET_API 1
| #define _NETBSD_SOURCE 1
| #define _OPENBSD_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1
| #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
| #define __STDC_WANT_IEC_60559_DFP_EXT__ 1
| #define __STDC_WANT_IEC_60559_EXT__ 1
| #define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1
| #define __STDC_WANT_IEC_60559_TYPES_EXT__ 1
| #define __STDC_WANT_LIB_EXT2__ 1
| #define __STDC_WANT_MATH_SPEC_FUNCS__ 1
| #define _TANDEM_SOURCE 1
| #define __EXTENSIONS__ 1
| #define MAKE_CXX "g++ -std=gnu++11"
| /* end confdefs.h. */
| #include <stddef.h>
| #ifdef HAVE_STDIO_H
| # include <stdio.h>
| #endif
| #ifdef HAVE_STDLIB_H
| # include <stdlib.h>
| #endif
| #ifdef HAVE_STRING_H
| # include <string.h>
| #endif
| #ifdef HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #ifdef HAVE_STDINT_H
| # include <stdint.h>