-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.log
1481 lines (1457 loc) · 51.7 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 guinea-pig configure 1.2.2, which was
generated by GNU Autoconf 2.71. Invocation command line was
$ ./configure --prefix=/home/baonguye/guinea-pig/install
## --------- ##
## Platform. ##
## --------- ##
hostname = eofe7.mit.edu
uname -m = x86_64
uname -r = 3.10.0-514.26.2.el7.x86_64
uname -s = Linux
uname -v = #1 SMP Tue Jul 4 15:04:05 UTC 2017
/usr/bin/uname -p = x86_64
/bin/uname -X = unknown
/bin/arch = x86_64
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /usr/lib64/qt-3.3/bin/
PATH: /bin/
PATH: /usr/local/bin/
PATH: /usr/bin/
PATH: /usr/local/sbin/
PATH: /usr/sbin/
PATH: /opt/dell/srvadmin/bin/
PATH: /home/baonguye/.local/bin/
PATH: /home/baonguye/bin/
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2841: looking for aux files: install-sh config.guess config.sub
configure:2854: trying ./
configure:2865: ./install-sh found
configure:2883: ./config.guess found
configure:2883: ./config.sub found
configure:3008: checking build system type
configure:3023: result: x86_64-unknown-linux-gnu
configure:3043: checking host system type
configure:3057: result: x86_64-unknown-linux-gnu
configure:3077: checking target system type
configure:3091: result: x86_64-unknown-linux-gnu
configure:3133: checking for a BSD-compatible install
configure:3206: result: /bin/install -c
configure:3217: checking whether build environment is sane
configure:3254: result: yes
configure:3266: checking whether make sets $(MAKE)
configure:3289: result: yes
configure:3315: checking for working aclocal-1.4
configure:3326: result: missing
configure:3330: checking for working autoconf
configure:3337: result: found
configure:3345: checking for working automake-1.4
configure:3356: result: missing
configure:3360: checking for working autoheader
configure:3367: result: found
configure:3375: checking for working makeinfo
configure:3382: result: found
configure:3517: checking for g++
configure:3538: found /bin/g++
configure:3549: result: g++
configure:3576: checking for C++ compiler version
configure:3585: g++ --version >&5
g++ (GCC) 4.8.5 20150623 (Red Hat 4.8.5-39)
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:3596: $? = 0
configure:3585: g++ -v >&5
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/cloog-install --enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.8.5 20150623 (Red Hat 4.8.5-39) (GCC)
configure:3596: $? = 0
configure:3585: g++ -V >&5
g++: error: unrecognized command line option '-V'
g++: fatal error: no input files
compilation terminated.
configure:3596: $? = 4
configure:3585: g++ -qversion >&5
g++: error: unrecognized command line option '-qversion'
g++: fatal error: no input files
compilation terminated.
configure:3596: $? = 4
configure:3616: checking whether the C++ compiler works
configure:3638: g++ conftest.cpp >&5
configure:3642: $? = 0
configure:3692: result: yes
configure:3695: checking for C++ compiler default output file name
configure:3697: result: a.out
configure:3703: checking for suffix of executables
configure:3710: g++ -o conftest conftest.cpp >&5
configure:3714: $? = 0
configure:3737: result:
configure:3759: checking whether we are cross compiling
configure:3767: g++ -o conftest conftest.cpp >&5
configure:3771: $? = 0
configure:3778: ./conftest
configure:3782: $? = 0
configure:3797: result: no
configure:3802: checking for suffix of object files
configure:3825: g++ -c conftest.cpp >&5
configure:3829: $? = 0
configure:3851: result: o
configure:3855: checking whether the compiler supports GNU C++
configure:3875: g++ -c conftest.cpp >&5
configure:3875: $? = 0
configure:3885: result: yes
configure:3896: checking whether g++ accepts -g
configure:3917: g++ -c -g conftest.cpp >&5
configure:3917: $? = 0
configure:3961: result: yes
configure:3981: checking for g++ option to enable C++11 features
configure:3996: g++ -c -g -O2 conftest.cpp >&5
conftest.cpp:57:3: error: #error "Compiler does not advertise C++11 conformance"
# error "Compiler does not advertise C++11 conformance"
^
conftest.cpp:62:3: error: 'constexpr' does not name a type
constexpr int get_val() { return 20; }
^
conftest.cpp:62:3: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11
conftest.cpp: In constructor 'cxx11test::delegate::delegate()':
conftest.cpp:74:30: warning: delegating constructors only available with -std=c++11 or -std=gnu++11 [enabled by default]
delegate(): delegate(2354) {}
^
conftest.cpp: At global scope:
conftest.cpp:85:24: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
virtual int getval() override final { return this->n * 2; }
^
conftest.cpp:85:26: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
virtual int getval() override final { return this->n * 2; }
^
conftest.cpp:92:16: warning: defaulted and deleted functions only available with -std=c++11 or -std=gnu++11 [enabled by default]
nocopy() = default;
^
conftest.cpp:93:29: warning: defaulted and deleted functions only available with -std=c++11 or -std=gnu++11 [enabled by default]
nocopy(const nocopy&) = delete;
^
conftest.cpp:94:41: warning: defaulted and deleted functions only available with -std=c++11 or -std=gnu++11 [enabled by default]
nocopy & operator=(const nocopy&) = delete;
^
conftest.cpp:106:46: error: ISO C++ forbids declaration of 'sum' with no type [-fpermissive]
template <typename V> auto sum(V first) -> V
^
conftest.cpp:106:46: error: top-level declaration of 'sum' specifies 'auto'
conftest.cpp:106:46: error: trailing return type only available with -std=c++11 or -std=gnu++11
conftest.cpp:110:33: warning: variadic templates only available with -std=c++11 or -std=gnu++11 [enabled by default]
template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
^
conftest.cpp:110:69: warning: variadic templates only available with -std=c++11 or -std=gnu++11 [enabled by default]
template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
^
conftest.cpp:110:78: error: ISO C++ forbids declaration of 'sum' with no type [-fpermissive]
template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
^
conftest.cpp:110:78: error: top-level declaration of 'sum' specifies 'auto'
conftest.cpp:110:78: error: trailing return type only available with -std=c++11 or -std=gnu++11
conftest.cpp: In function 'int main(int, char**)':
conftest.cpp:134:8: error: 'a1' does not name a type
auto a1 = 6538;
^
conftest.cpp:135:8: error: 'a2' does not name a type
auto a2 = 48573953.4;
^
conftest.cpp:136:8: error: 'a3' does not name a type
auto a3 = "String literal";
^
conftest.cpp:139:13: error: 'i' does not name a type
for (auto i = a3; *i; ++i) { total += *i; }
^
conftest.cpp:139:21: error: expected ';' before '*' token
for (auto i = a3; *i; ++i) { total += *i; }
^
conftest.cpp:139:22: error: 'i' was not declared in this scope
for (auto i = a3; *i; ++i) { total += *i; }
^
conftest.cpp:141:12: error: 'a2' was not declared in this scope
decltype(a2) a4 = 34895.034;
^
conftest.cpp:141:14: error: 'decltype' was not declared in this scope
decltype(a2) a4 = 34895.034;
^
conftest.cpp:141:16: error: expected ';' before 'a4'
decltype(a2) a4 = 34895.034;
^
conftest.cpp:145:12: error: 'get_val' is not a member of 'cxx11test'
short sa[cxx11test::get_val()] = { 0 };
^
conftest.cpp:155:14: error: ISO C++ forbids declaration of 'x' with no type [-fpermissive]
for (auto &x : array) { x += 23; }
^
conftest.cpp:155:18: error: range-based 'for' loops are not allowed in C++98 mode
for (auto &x : array) { x += 23; }
^
conftest.cpp:160:41: warning: lambda expressions only available with -std=c++11 or -std=gnu++11 [enabled by default]
assert (eval ([](int x) { return x*2; }, 21) == 42);
^
conftest.cpp:160:46: error: no matching function for call to 'eval(main(int, char**)::__lambda0, int)'
assert (eval ([](int x) { return x*2; }, 21) == 42);
^
conftest.cpp:160:46: note: candidate is:
conftest.cpp:100:44: note: template<class Ret, class Fn> Ret cxx11test::eval(Fn, Ret)
template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
^
conftest.cpp:100:44: note: template argument deduction/substitution failed:
conftest.cpp: In substitution of 'template<class Ret, class Fn> Ret cxx11test::eval(Fn, Ret) [with Ret = int; Fn = main(int, char**)::__lambda0]':
conftest.cpp:160:46: required from here
conftest.cpp:160:46: error: template argument for 'template<class Ret, class Fn> Ret cxx11test::eval(Fn, Ret)' uses local type 'main(int, char**)::__lambda0'
assert (eval ([](int x) { return x*2; }, 21) == 42);
^
conftest.cpp:160:46: error: trying to instantiate 'template<class Ret, class Fn> Ret cxx11test::eval(Fn, Ret)'
conftest.cpp:162:48: warning: lambda expressions only available with -std=c++11 or -std=gnu++11 [enabled by default]
assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
^
conftest.cpp:162:54: error: no matching function for call to 'eval(main(int, char**)::__lambda1, double)'
assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
^
conftest.cpp:162:54: note: candidate is:
conftest.cpp:100:44: note: template<class Ret, class Fn> Ret cxx11test::eval(Fn, Ret)
template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
^
conftest.cpp:100:44: note: template argument deduction/substitution failed:
conftest.cpp: In substitution of 'template<class Ret, class Fn> Ret cxx11test::eval(Fn, Ret) [with Ret = double; Fn = main(int, char**)::__lambda1]':
conftest.cpp:162:54: required from here
conftest.cpp:162:54: error: template argument for 'template<class Ret, class Fn> Ret cxx11test::eval(Fn, Ret)' uses local type 'main(int, char**)::__lambda1'
assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
^
conftest.cpp:162:54: error: trying to instantiate 'template<class Ret, class Fn> Ret cxx11test::eval(Fn, Ret)'
conftest.cpp:164:56: warning: lambda expressions only available with -std=c++11 or -std=gnu++11 [enabled by default]
assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
^
conftest.cpp:164:62: error: no matching function for call to 'eval(main(int, char**)::__lambda2, double)'
assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
^
conftest.cpp:164:62: note: candidate is:
conftest.cpp:100:44: note: template<class Ret, class Fn> Ret cxx11test::eval(Fn, Ret)
template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
^
conftest.cpp:100:44: note: template argument deduction/substitution failed:
conftest.cpp: In substitution of 'template<class Ret, class Fn> Ret cxx11test::eval(Fn, Ret) [with Ret = double; Fn = main(int, char**)::__lambda2]':
conftest.cpp:164:62: required from here
conftest.cpp:164:62: error: template argument for 'template<class Ret, class Fn> Ret cxx11test::eval(Fn, Ret)' uses local type 'main(int, char**)::__lambda2'
assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
^
conftest.cpp:164:62: error: trying to instantiate 'template<class Ret, class Fn> Ret cxx11test::eval(Fn, Ret)'
conftest.cpp:169:20: error: 'cxx11test::sum' has not been declared
using cxx11test::sum;
^
conftest.cpp:170:8: error: 'a' does not name a type
auto a = sum(1);
^
conftest.cpp:171:8: error: 'b' does not name a type
auto b = sum(1, 2);
^
conftest.cpp:172:8: error: 'c' does not name a type
auto c = sum(1.0, 2.0, 3.0);
^
conftest.cpp:186:13: error: 'nullptr' was not declared in this scope
char *c = nullptr;
^
conftest.cpp:190:36: error: '>>' should be '> >' within a nested template argument list
test_template<::test_template<int>> v(test_template<int>(12));
^
conftest.cpp:190:16: error: '<::' cannot begin a template-argument list [-fpermissive]
test_template<::test_template<int>> v(test_template<int>(12));
^
conftest.cpp:190:16: note: '<:' is an alternate spelling for '['. Insert whitespace between '<' and '::'
conftest.cpp:190:16: note: (if you use '-fpermissive' or '-std=c++11', or '-std=gnu++11' G++ will accept your code)
conftest.cpp:194:22: error: 'u8' was not declared in this scope
char const *utf8 = u8"UTF-8 string \u2500";
^
conftest.cpp:195:3: error: 'char16_t' was not declared in this scope
char16_t const *utf16 = u"UTF-8 string \u2500";
^
conftest.cpp:195:12: error: expected ';' before 'const'
char16_t const *utf16 = u"UTF-8 string \u2500";
^
conftest.cpp:196:3: error: 'char32_t' was not declared in this scope
char32_t const *utf32 = U"UTF-32 string \u2500";
^
conftest.cpp:196:12: error: expected ';' before 'const'
char32_t const *utf32 = U"UTF-32 string \u2500";
^
configure:3996: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "guinea-pig"
| #define PACKAGE_TARNAME "guinea-pig"
| #define PACKAGE_VERSION "1.2.2"
| #define PACKAGE_STRING "guinea-pig 1.2.2"
| #define PACKAGE_BUGREPORT "[email protected]"
| #define PACKAGE_URL ""
| #define PACKAGE ""
| #define VERSION ""
| /* 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:4014: result: none needed
configure:4140: checking for gcc
configure:4161: found /bin/gcc
configure:4172: result: gcc
configure:4525: checking for C compiler version
configure:4534: gcc --version >&5
gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-39)
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:4545: $? = 0
configure:4534: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/cloog-install --enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.8.5 20150623 (Red Hat 4.8.5-39) (GCC)
configure:4545: $? = 0
configure:4534: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:4545: $? = 4
configure:4534: gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion'
gcc: fatal error: no input files
compilation terminated.
configure:4545: $? = 4
configure:4534: gcc -version >&5
gcc: error: unrecognized command line option '-version'
gcc: fatal error: no input files
compilation terminated.
configure:4545: $? = 4
configure:4549: checking whether the compiler supports GNU C
configure:4569: gcc -c conftest.c >&5
configure:4569: $? = 0
configure:4579: result: yes
configure:4590: checking whether gcc accepts -g
configure:4611: gcc -c -g conftest.c >&5
configure:4611: $? = 0
configure:4655: result: yes
configure:4675: checking for gcc option to enable C11 features
configure:4690: gcc -c -g -O2 conftest.c >&5
conftest.c:63:3: error: #error "Compiler does not advertise C99 conformance"
# error "Compiler does not advertise C99 conformance"
^
conftest.c:118:29: error: expected ';', ',' or ')' before 'text'
test_restrict (ccp restrict text)
^
conftest.c:167:3: error: #error "Compiler does not advertise C11 conformance"
# error "Compiler does not advertise C11 conformance"
^
conftest.c:198:12: error: 'syntax' undeclared here (not in a function)
#define u8 syntax error!
^
conftest.c:199:29: note: in expansion of macro 'u8'
char const utf8_literal[] = u8"happens to be ASCII" "another string";
^
conftest.c:198:19: error: expected ',' or ';' before 'error'
#define u8 syntax error!
^
conftest.c:199:29: note: in expansion of macro 'u8'
char const utf8_literal[] = u8"happens to be ASCII" "another string";
^
conftest.c: In function 'main':
conftest.c:232:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'newvar'
char *restrict newvar = "Another string";
^
conftest.c:232:18: error: 'newvar' undeclared (first use in this function)
conftest.c:232:18: note: each undeclared identifier is reported only once for each function it appears in
conftest.c:242:3: error: 'for' loop initial declarations are only allowed in C99 mode
for (int i = 0; i < ia->datasize; ++i)
^
conftest.c:242:3: note: use option -std=c99 or -std=gnu99 to compile your code
configure:4690: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "guinea-pig"
| #define PACKAGE_TARNAME "guinea-pig"
| #define PACKAGE_VERSION "1.2.2"
| #define PACKAGE_STRING "guinea-pig 1.2.2"
| #define PACKAGE_BUGREPORT "[email protected]"
| #define PACKAGE_URL ""
| #define PACKAGE ""
| #define VERSION ""
| /* end confdefs.h. */
|
| /* Does the compiler advertise C89 conformance?
| Do not test the value of __STDC__, because some compilers set it to 0
| while being otherwise adequately conformant. */
| #if !defined __STDC__
| # error "Compiler does not advertise C89 conformance"
| #endif
|
| #include <stddef.h>
| #include <stdarg.h>
| struct stat;
| /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
| struct buf { int x; };
| struct buf * (*rcsopen) (struct buf *, struct stat *, int);
| static char *e (p, i)
| char **p;
| int i;
| {
| return p[i];
| }
| static char *f (char * (*g) (char **, int), char **p, ...)
| {
| char *s;
| va_list v;
| va_start (v,p);
| s = g (p, va_arg (v,int));
| va_end (v);
| return s;
| }
|
| /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
| function prototypes and stuff, but not \xHH hex character constants.
| These do not provoke an error unfortunately, instead are silently treated
| as an "x". The following induces an error, until -std is added to get
| proper ANSI mode. Curiously \x00 != x always comes out true, for an
| array size at least. It is necessary to write \x00 == 0 to get something
| that is true only with -std. */
| int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
| /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
| inside strings and character constants. */
| #define FOO(x) 'x'
| int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
|
| int test (int i, double x);
| struct s1 {int (*f) (int a);};
| struct s2 {int (*f) (double a);};
| int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
| int, int);
|
| // Does the compiler advertise C99 conformance?
| #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
| # error "Compiler does not advertise C99 conformance"
| #endif
|
| #include <stdbool.h>
| extern int puts (const char *);
| extern int printf (const char *, ...);
| extern int dprintf (int, const char *, ...);
| extern void *malloc (size_t);
|
| // Check varargs macros. These examples are taken from C99 6.10.3.5.
| // dprintf is used instead of fprintf to avoid needing to declare
| // FILE and stderr.
| #define debug(...) dprintf (2, __VA_ARGS__)
| #define showlist(...) puts (#__VA_ARGS__)
| #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
| static void
| test_varargs_macros (void)
| {
| int x = 1234;
| int y = 5678;
| debug ("Flag");
| debug ("X = %d\n", x);
| showlist (The first, second, and third items.);
| report (x>y, "x is %d but y is %d", x, y);
| }
|
| // Check long long types.
| #define BIG64 18446744073709551615ull
| #define BIG32 4294967295ul
| #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
| #if !BIG_OK
| #error "your preprocessor is broken"
| #endif
| #if BIG_OK
| #else
| #error "your preprocessor is broken"
| #endif
| static long long int bignum = -9223372036854775807LL;
| static unsigned long long int ubignum = BIG64;
|
| struct incomplete_array
| {
| int datasize;
| double data[];
| };
|
| struct named_init {
| int number;
| const wchar_t *name;
| double average;
| };
|
| typedef const char *ccp;
|
| static inline int
| test_restrict (ccp restrict text)
| {
| // See if C++-style comments work.
| // Iterate through items via the restricted pointer.
| // Also check for declarations in for loops.
| for (unsigned int i = 0; *(text+i) != '\0'; ++i)
| continue;
| return 0;
| }
|
| // Check varargs and va_copy.
| static bool
| test_varargs (const char *format, ...)
| {
| va_list args;
| va_start (args, format);
| va_list args_copy;
| va_copy (args_copy, args);
|
| const char *str = "";
| int number = 0;
| float fnumber = 0;
|
| while (*format)
| {
| switch (*format++)
| {
| case 's': // string
| str = va_arg (args_copy, const char *);
| break;
| case 'd': // int
| number = va_arg (args_copy, int);
| break;
| case 'f': // float
| fnumber = va_arg (args_copy, double);
| break;
| default:
| break;
| }
| }
| va_end (args_copy);
| va_end (args);
|
| return *str && number && fnumber;
| }
|
|
| // Does the compiler advertise C11 conformance?
| #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
| # error "Compiler does not advertise C11 conformance"
| #endif
|
| // Check _Alignas.
| char _Alignas (double) aligned_as_double;
| char _Alignas (0) no_special_alignment;
| extern char aligned_as_int;
| char _Alignas (0) _Alignas (int) aligned_as_int;
|
| // Check _Alignof.
| enum
| {
| int_alignment = _Alignof (int),
| int_array_alignment = _Alignof (int[100]),
| char_alignment = _Alignof (char)
| };
| _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
|
| // Check _Noreturn.
| int _Noreturn does_not_return (void) { for (;;) continue; }
|
| // Check _Static_assert.
| struct test_static_assert
| {
| int x;
| _Static_assert (sizeof (int) <= sizeof (long int),
| "_Static_assert does not work in struct");
| long int y;
| };
|
| // Check UTF-8 literals.
| #define u8 syntax error!
| char const utf8_literal[] = u8"happens to be ASCII" "another string";
|
| // Check duplicate typedefs.
| typedef long *long_ptr;
| typedef long int *long_ptr;
| typedef long_ptr long_ptr;
|
| // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
| struct anonymous
| {
| union {
| struct { int i; int j; };
| struct { int k; long int l; } w;
| };
| int m;
| } v1;
|
|
| int
| main (int argc, char **argv)
| {
| int ok = 0;
|
| ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
|
|
| // Check bool.
| _Bool success = false;
| success |= (argc != 0);
|
| // Check restrict.
| if (test_restrict ("String literal") == 0)
| success = true;
| char *restrict newvar = "Another string";
|
| // Check varargs.
| success &= test_varargs ("s, d' f .", "string", 65, 34.234);
| test_varargs_macros ();
|
| // Check flexible array members.
| struct incomplete_array *ia =
| malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
| ia->datasize = 10;
| for (int i = 0; i < ia->datasize; ++i)
| ia->data[i] = i * 1.234;
|
| // Check named initializers.
| struct named_init ni = {
| .number = 34,
| .name = L"Test wide string",
| .average = 543.34343,
| };
|
| ni.number = 58;
|
| int dynamic_array[ni.number];
| dynamic_array[0] = argv[0][0];
| dynamic_array[ni.number - 1] = 543;
|
| // work around unused variable warnings
| ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
| || dynamic_array[ni.number - 1] != 543);
|
|
| _Static_assert ((offsetof (struct anonymous, i)
| == offsetof (struct anonymous, w.k)),
| "Anonymous union alignment botch");
| v1.i = 2;
| v1.w.k = 5;
| ok |= v1.i != 5;
|
| return ok;
| }
|
configure:4690: gcc -std=gnu11 -c -g -O2 conftest.c >&5
configure:4690: $? = 0
configure:4711: result: -std=gnu11
configure:4851: checking for stdio.h
configure:4851: gcc -std=gnu11 -c -O3 -ffast-math -fno-keep-inline-functions -Wall -Wundef -fPIC -DUSE_NON_CONST conftest.c >&5
configure:4851: $? = 0
configure:4851: result: yes
configure:4851: checking for stdlib.h
configure:4851: gcc -std=gnu11 -c -O3 -ffast-math -fno-keep-inline-functions -Wall -Wundef -fPIC -DUSE_NON_CONST conftest.c >&5
configure:4851: $? = 0
configure:4851: result: yes
configure:4851: checking for string.h
configure:4851: gcc -std=gnu11 -c -O3 -ffast-math -fno-keep-inline-functions -Wall -Wundef -fPIC -DUSE_NON_CONST conftest.c >&5
configure:4851: $? = 0
configure:4851: result: yes
configure:4851: checking for inttypes.h
configure:4851: gcc -std=gnu11 -c -O3 -ffast-math -fno-keep-inline-functions -Wall -Wundef -fPIC -DUSE_NON_CONST conftest.c >&5
configure:4851: $? = 0
configure:4851: result: yes
configure:4851: checking for stdint.h
configure:4851: gcc -std=gnu11 -c -O3 -ffast-math -fno-keep-inline-functions -Wall -Wundef -fPIC -DUSE_NON_CONST conftest.c >&5
configure:4851: $? = 0
configure:4851: result: yes
configure:4851: checking for strings.h
configure:4851: gcc -std=gnu11 -c -O3 -ffast-math -fno-keep-inline-functions -Wall -Wundef -fPIC -DUSE_NON_CONST conftest.c >&5
configure:4851: $? = 0
configure:4851: result: yes
configure:4851: checking for sys/stat.h
configure:4851: gcc -std=gnu11 -c -O3 -ffast-math -fno-keep-inline-functions -Wall -Wundef -fPIC -DUSE_NON_CONST conftest.c >&5
configure:4851: $? = 0
configure:4851: result: yes
configure:4851: checking for sys/types.h
configure:4851: gcc -std=gnu11 -c -O3 -ffast-math -fno-keep-inline-functions -Wall -Wundef -fPIC -DUSE_NON_CONST conftest.c >&5
configure:4851: $? = 0
configure:4851: result: yes
configure:4851: checking for unistd.h
configure:4851: gcc -std=gnu11 -c -O3 -ffast-math -fno-keep-inline-functions -Wall -Wundef -fPIC -DUSE_NON_CONST conftest.c >&5
configure:4851: $? = 0
configure:4851: result: yes
configure:4880: checking size of void*
configure:4886: gcc -std=gnu11 -o conftest -O3 -ffast-math -fno-keep-inline-functions -Wall -Wundef -fPIC -DUSE_NON_CONST conftest.c >&5
configure:4886: $? = 0
configure:4886: ./conftest
configure:4886: $? = 0
configure:4901: result: 8
configure:5086: checking for grep that handles long lines and -e
configure:5150: result: /bin/grep
configure:5155: checking for egrep
configure:5223: result: /bin/grep -E
configure:5229: checking for stdlib.h
configure:5229: result: yes
configure:5239: checking for _Bool
configure:5239: gcc -std=gnu11 -c -O3 -ffast-math -fno-keep-inline-functions -Wall -Wundef -fPIC -m64 -DCOMPUTER64b -DUSE_NON_CONST conftest.c >&5
configure:5239: $? = 0
configure:5239: gcc -std=gnu11 -c -O3 -ffast-math -fno-keep-inline-functions -Wall -Wundef -fPIC -m64 -DCOMPUTER64b -DUSE_NON_CONST conftest.c >&5
conftest.c: In function 'main':
conftest.c:54:20: error: expected expression before ')' token
if (sizeof ((_Bool)))
^
configure:5239: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "guinea-pig"
| #define PACKAGE_TARNAME "guinea-pig"
| #define PACKAGE_VERSION "1.2.2"
| #define PACKAGE_STRING "guinea-pig 1.2.2"
| #define PACKAGE_BUGREPORT "[email protected]"
| #define PACKAGE_URL ""
| #define PACKAGE ""
| #define VERSION ""
| #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 STDC_HEADERS 1
| #define SIZEOF_VOIDP 8
| #define HAVE_STDLIB_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
| int
| main (void)
| {
| if (sizeof ((_Bool)))
| return 0;
| ;
| return 0;
| }
configure:5239: result: yes
configure:5248: checking for stdbool.h that conforms to C99
configure:5364: gcc -std=gnu11 -c -O3 -ffast-math -fno-keep-inline-functions -Wall -Wundef -fPIC -m64 -DCOMPUTER64b -DUSE_NON_CONST conftest.c >&5
conftest.c:76:18: warning: "__cplusplus" is not defined [-Wundef]
#if __cplusplus < 201103
^
conftest.c: In function 'main':
conftest.c:109:14: warning: the address of 's' will always evaluate as 'true' [-Waddress]
bool ps = &s;
^
conftest.c:114:16: warning: the address of 't' will always evaluate as 'true' [-Waddress]
_Bool pt = &t;
^
conftest.c:121:22: warning: the address of 'a' will always evaluate as 'true' [-Waddress]
return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !j + !k
^
conftest.c:121:27: warning: the address of 'b' will always evaluate as 'true' [-Waddress]
return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !j + !k
^
conftest.c:121:32: warning: the address of 'c' will always evaluate as 'true' [-Waddress]
return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !j + !k
^
conftest.c:121:37: warning: the address of 'd' will always evaluate as 'true' [-Waddress]
return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !j + !k
^
conftest.c:121:62: warning: the address of 'i' will always evaluate as 'true' [-Waddress]
return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !j + !k