Issue Details (XML | Word | Printable)

Key: STDCXX-736
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Martin Sebor
Reporter: Martin Sebor
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
C++ Standard Library

[EDG eccp 3.9] errors compiling utilities

Created: 20/Feb/08 01:30 AM   Updated: 17/Apr/08 11:19 AM
Return to search
Component/s: Utilities
Affects Version/s: 4.2.0
Fix Version/s: 4.2.1

Time Tracking:
Original Estimate: 2h
Original Estimate - 2h
Remaining Estimate: 1h
Time Spent - 1h Remaining Estimate - 1h
Time Spent: 1h
Time Spent - 1h Remaining Estimate - 1h

Environment: EDG eccp on Linux with gcc for back end.
Issue Links:
Reference
 

Severity: Compiler Error
Resolution Date: 20/Feb/08 01:36 AM


 Description  « Hide
Here's a complete listing of all the errors in an 11s build with eccp 3.9 on top of gcc 4.1.2 on Fedora 8:
make: Entering directory `/build/sebor/stdcxx-4.2.0-eccp-3.9-11s/bin'
eccp -c -I/home/sebor/stdcxx-4.2.0/include/ansi -D_RWSTDDEBUG    -I/home/sebor/stdcxx-4.2.0/include -I/build/sebor/stdcxx-4.2.0-eccp-3.9-11s/include  -A -x --template_directory=/build/sebor/stdcxx-4.2.0-eccp-3.9-11s/lib -g   --display_error_number --remarks --diag_suppress 193,236,340,401,261,479,487,678,679,815   /home/sebor/stdcxx-4.2.0/util/cmdopt.cpp
"/home/sebor/stdcxx-4.2.0/util/cmdopt.cpp", line 181: error #70: incomplete
          type is not allowed
      struct sigaction act;
                       ^

"/home/sebor/stdcxx-4.2.0/util/cmdopt.cpp", line 191: error #70: incomplete
          type is not allowed
      return 0 > sigaction (signo, &act, 0);
                 ^

"/home/sebor/stdcxx-4.2.0/util/cmdopt.cpp", line 191: error #18: expected a ")"
      return 0 > sigaction (signo, &act, 0);
                                 ^

3 errors detected in the compilation of "/home/sebor/stdcxx-4.2.0/util/cmdopt.cpp".
make: *** [cmdopt.o] Error 2
eccp -c -I/home/sebor/stdcxx-4.2.0/include/ansi -D_RWSTDDEBUG    -I/home/sebor/stdcxx-4.2.0/include -I/build/sebor/stdcxx-4.2.0-eccp-3.9-11s/include  -A -x --template_directory=/build/sebor/stdcxx-4.2.0-eccp-3.9-11s/lib -g   --display_error_number --remarks --diag_suppress 193,236,340,401,261,479,487,678,679,815   /home/sebor/stdcxx-4.2.0/util/exec.cpp
"/home/sebor/stdcxx-4.2.0/util/exec.cpp", line 391: error #20: identifier
          "SIGALRM" is undefined
      if (SIGALRM == signo)
          ^

"/home/sebor/stdcxx-4.2.0/util/exec.cpp", line 442: error #20: identifier
          "SIGHUP" is undefined
          SIGHUP, SIGINT, SIGQUIT, SIGTERM, SIGKILL, SIGKILL
          ^

"/home/sebor/stdcxx-4.2.0/util/exec.cpp", line 442: error #20: identifier
          "SIGQUIT" is undefined
          SIGHUP, SIGINT, SIGQUIT, SIGTERM, SIGKILL, SIGKILL
                          ^

"/home/sebor/stdcxx-4.2.0/util/exec.cpp", line 442: error #20: identifier
          "SIGKILL" is undefined
          SIGHUP, SIGINT, SIGQUIT, SIGTERM, SIGKILL, SIGKILL
                                            ^

"/home/sebor/stdcxx-4.2.0/util/exec.cpp", line 447: error #70: incomplete type
          is not allowed
      struct sigaction act;
                       ^

"/home/sebor/stdcxx-4.2.0/util/exec.cpp", line 477: error #70: incomplete type
          is not allowed
      sigaction (SIGALRM, &act, 0);
      ^

"/home/sebor/stdcxx-4.2.0/util/exec.cpp", line 477: error #20: identifier
          "SIGALRM" is undefined
      sigaction (SIGALRM, &act, 0);
                 ^

"/home/sebor/stdcxx-4.2.0/util/exec.cpp", line 477: error #18: expected a ")"
      sigaction (SIGALRM, &act, 0);
                        ^

"/home/sebor/stdcxx-4.2.0/util/exec.cpp", line 487: error #70: incomplete type
          is not allowed
      sigaction (SIGHUP, &act, 0);
      ^

"/home/sebor/stdcxx-4.2.0/util/exec.cpp", line 487: error #18: expected a ")"
      sigaction (SIGHUP, &act, 0);
                       ^

"/home/sebor/stdcxx-4.2.0/util/exec.cpp", line 488: error #70: incomplete type
          is not allowed
      sigaction (SIGINT, &act, 0);
      ^

"/home/sebor/stdcxx-4.2.0/util/exec.cpp", line 488: error #18: expected a ")"
      sigaction (SIGINT, &act, 0);
                       ^

"/home/sebor/stdcxx-4.2.0/util/exec.cpp", line 489: error #70: incomplete type
          is not allowed
      sigaction (SIGQUIT, &act, 0);
      ^

"/home/sebor/stdcxx-4.2.0/util/exec.cpp", line 489: error #18: expected a ")"
      sigaction (SIGQUIT, &act, 0);
                        ^

"/home/sebor/stdcxx-4.2.0/util/exec.cpp", line 490: error #70: incomplete type
          is not allowed
      sigaction (SIGTERM, &act, 0);
      ^

"/home/sebor/stdcxx-4.2.0/util/exec.cpp", line 490: error #18: expected a ")"
      sigaction (SIGTERM, &act, 0);
                        ^

"/home/sebor/stdcxx-4.2.0/util/exec.cpp", line 525: error #20: identifier
          "EINTR" is undefined
              if (EINTR == errno && alarm_timeout) {
                  ^

"/home/sebor/stdcxx-4.2.0/util/exec.cpp", line 537: error #20: identifier
          "kill" is undefined
                  if (0 != kill (-child_pid, signals [siginx])) {
                           ^

"/home/sebor/stdcxx-4.2.0/util/exec.cpp", line 538: error #20: identifier
          "ESRCH" is undefined
                      if (ESRCH == errno)
                          ^

"/home/sebor/stdcxx-4.2.0/util/exec.cpp", line 586: error #20: identifier
          "EINVAL" is undefined
              else if (EINVAL == errno) {
                       ^

"/home/sebor/stdcxx-4.2.0/util/exec.cpp", line 593: error #20: identifier
          "ECHILD" is undefined
              else if (ECHILD == errno) {
                       ^

"/home/sebor/stdcxx-4.2.0/util/exec.cpp", line 618: error #20: identifier
          "kill" is undefined
      while (siginx < sigcount && 0 == kill (-child_pid, signals [siginx])) {
                                       ^

"/home/sebor/stdcxx-4.2.0/util/exec.cpp", line 627: error #70: incomplete type
          is not allowed
          sigaction (SIGHUP, &act, 0);
          ^

"/home/sebor/stdcxx-4.2.0/util/exec.cpp", line 627: error #18: expected a ")"
          sigaction (SIGHUP, &act, 0);
                           ^

"/home/sebor/stdcxx-4.2.0/util/exec.cpp", line 628: error #70: incomplete type
          is not allowed
          sigaction (SIGINT, &act, 0);
          ^

"/home/sebor/stdcxx-4.2.0/util/exec.cpp", line 628: error #18: expected a ")"
          sigaction (SIGINT, &act, 0);
                           ^

"/home/sebor/stdcxx-4.2.0/util/exec.cpp", line 629: error #70: incomplete type
          is not allowed
          sigaction (SIGQUIT, &act, 0);
          ^

"/home/sebor/stdcxx-4.2.0/util/exec.cpp", line 629: error #18: expected a ")"
          sigaction (SIGQUIT, &act, 0);
                            ^

"/home/sebor/stdcxx-4.2.0/util/exec.cpp", line 630: error #70: incomplete type
          is not allowed
          sigaction (SIGTERM, &act, 0);
          ^

"/home/sebor/stdcxx-4.2.0/util/exec.cpp", line 630: error #18: expected a ")"
          sigaction (SIGTERM, &act, 0);
                            ^

"/home/sebor/stdcxx-4.2.0/util/exec.cpp", line 811: error #20: identifier
          "fdopen" is undefined
              error_file = fdopen (error_cache,"a");
                           ^

31 errors detected in the compilation of "/home/sebor/stdcxx-4.2.0/util/exec.cpp".
make: *** [exec.o] Error 2
eccp -c -I/home/sebor/stdcxx-4.2.0/include/ansi -D_RWSTDDEBUG    -I/home/sebor/stdcxx-4.2.0/include -I/build/sebor/stdcxx-4.2.0-eccp-3.9-11s/include  -A -x --template_directory=/build/sebor/stdcxx-4.2.0-eccp-3.9-11s/lib -g   --display_error_number --remarks --diag_suppress 193,236,340,401,261,479,487,678,679,815   /home/sebor/stdcxx-4.2.0/util/locale.cpp
"/usr/include/bits/pthreadtypes.h", line 121: error #450-D: the type "long
          long" is nonstandard
      __extension__ unsigned long long int __total_seq;
                                  ^

"/usr/include/bits/pthreadtypes.h", line 122: error #450-D: the type "long
          long" is nonstandard
      __extension__ unsigned long long int __wakeup_seq;
                                  ^

"/usr/include/bits/pthreadtypes.h", line 123: error #450-D: the type "long
          long" is nonstandard
      __extension__ unsigned long long int __woken_seq;
                                  ^

"/usr/include/bits/pthreadtypes.h", line 129: error #450-D: the type "long
          long" is nonstandard
    __extension__ long long int __align;
                       ^

"/home/sebor/stdcxx-4.2.0/util/locale.cpp", line 780: warning #177-D: function
          "print_c_lc_collate" was declared but never referenced
  print_c_lc_collate ()
  ^

"/home/sebor/stdcxx-4.2.0/util/locale.cpp", line 788: warning #177-D: function
          "get_wchar_from_offset" was declared but never referenced
  get_wchar_from_offset(unsigned int offset,
  ^

4 errors detected in the compilation of "/home/sebor/stdcxx-4.2.0/util/locale.cpp".
make: *** [locale.o] Error 2
eccp -c -I/home/sebor/stdcxx-4.2.0/include/ansi -D_RWSTDDEBUG    -I/home/sebor/stdcxx-4.2.0/include -I/build/sebor/stdcxx-4.2.0-eccp-3.9-11s/include  -A -x --template_directory=/build/sebor/stdcxx-4.2.0-eccp-3.9-11s/lib -g   --display_error_number --remarks --diag_suppress 193,236,340,401,261,479,487,678,679,815   /home/sebor/stdcxx-4.2.0/util/aliases.cpp
"/usr/include/bits/pthreadtypes.h", line 121: error #450-D: the type "long
          long" is nonstandard
      __extension__ unsigned long long int __total_seq;
                                  ^

"/usr/include/bits/pthreadtypes.h", line 122: error #450-D: the type "long
          long" is nonstandard
      __extension__ unsigned long long int __wakeup_seq;
                                  ^

"/usr/include/bits/pthreadtypes.h", line 123: error #450-D: the type "long
          long" is nonstandard
      __extension__ unsigned long long int __woken_seq;
                                  ^

"/usr/include/bits/pthreadtypes.h", line 129: error #450-D: the type "long
          long" is nonstandard
    __extension__ long long int __align;
                       ^

4 errors detected in the compilation of "/home/sebor/stdcxx-4.2.0/util/aliases.cpp".
make: *** [aliases.o] Error 2
eccp -c -I/home/sebor/stdcxx-4.2.0/include/ansi -D_RWSTDDEBUG    -I/home/sebor/stdcxx-4.2.0/include -I/build/sebor/stdcxx-4.2.0-eccp-3.9-11s/include  -A -x --template_directory=/build/sebor/stdcxx-4.2.0-eccp-3.9-11s/lib -g   --display_error_number --remarks --diag_suppress 193,236,340,401,261,479,487,678,679,815   /home/sebor/stdcxx-4.2.0/util/memchk.cpp
"/home/sebor/stdcxx-4.2.0/util/memchk.cpp", line 87: error #20: identifier
          "getpagesize" is undefined
          size = getpagesize ();
                 ^

1 error detected in the compilation of "/home/sebor/stdcxx-4.2.0/util/memchk.cpp".
make: *** [memchk.o] Error 2
make: Target `all' not remade because of errors.
make: Leaving directory `/build/sebor/stdcxx-4.2.0-eccp-3.9-11s/bin'


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Martin Sebor added a comment - 20/Feb/08 01:36 AM
Fixed with r629306. The utilities now compile cleanly (albeit with warnings) with EDG eccp 3.9 in 11s.

Martin Sebor added a comment - 20/Feb/08 01:41 AM
This is (remotely) related in that if I had bothered to use make -k I would have found all the other problems right there and then...

Farid Zaripov added a comment - 17/Apr/08 11:19 AM