This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

g++ just exits without any message, egcs-970910 and egcs-970907


Anytime I try to use a recent egcs (either 970907 or 970910) to compile
ACE (URL:http://www.cs.wustl.edu/~schmidt/ACE.html) it just silently exits
with error 1 on each file without generating anything!

The platform used is i686-pc-linux-gnu, and the reason I didn't send in a
bug report for 970907 was that 970910 arrived before I was ready to try to
handle it. It's configured with './configure --prefix=/usr', and created
and installed with 'make bootstrap' and 'make install', with only a minor
libio fix.

The compiler handles other programs I tried it on, and runs the g++
testcase without major problems, so I think the compiler is OK otherwise
(3305 expected passes, 15 unexpected failures, 4 unexpected successes, 80
expected failures, 6 untested testcases)

It's unknown what older version of egcs did on this, I haven't tried them
on ACE on Linux (gcc 2.7.2.x worked, both with libc-5.4.x and
glibc-2.0.5).

It starts by spitting out several warnings (replicated last in the
message), and then it just exits with error code 1 (according to make)
without generating any output. There are no errors, and none of the
warnings look serious out, certainly nothing that should stop the
compilation (bad declarations mostly, which are for gcc
2.7.2/libc-5.4.x instead of egcs/glibc-2.0.5.  Fixable, but shouldn't
have anything with this).


Any ideas on how to localize and fix this, it's kind of hard to tell
what's happening since it doesn't generate anything (not even a
core)...


This is the log it generates, after I removed a few switches (with it
it generates a few extra warnings about unused variables and longjmp,
nothing more, log available on request) and tried again:


g++ -D_POSIX_THREADS -D_POSIX_THREAD_SAFE_FUNCTIONS -D_REENTRANT -I. -I/usr/src/ACE_wrappers  -c Log_Msg.cpp
In file included from /usr/include/sys/socket.h:34,
                 from /usr/src/ACE_wrappers/ace/OS.h:2163,
                 from /usr/src/ACE_wrappers/ace/ACE.h:20,
                 from Log_Msg.cpp:19:
/usr/include/socketbits.h:77: warning: `AF_FILE' redefined
/usr/src/ACE_wrappers/ace/OS.h:292: warning: this is the location of the previous definition
In file included from /usr/src/ACE_wrappers/ace/OS.h:4095,
                 from /usr/src/ACE_wrappers/ace/ACE.h:20,
                 from Log_Msg.cpp:19:
/usr/src/ACE_wrappers/ace/OS.i:440: declaration of C function `int getrusage(int, struct rusage *)' conflicts with
/usr/include/sys/resource.h:45: previous declaration `int getrusage(enum __rusage_who, struct rusage *)' here
/usr/src/ACE_wrappers/ace/OS.i: In function `static int ACE_OS::accept(int, struct sockaddr *, int *)':
In file included from /usr/src/ACE_wrappers/ace/OS.h:4095,
                 from /usr/src/ACE_wrappers/ace/ACE.h:20,
                 from Log_Msg.cpp:19:
/usr/src/ACE_wrappers/ace/OS.i:3303: warning: passing `int *' as argument 3 of `accept(int, sockaddr *, unsigned int *)' changes signedness
/usr/src/ACE_wrappers/ace/OS.i: In function `static int ACE_OS::recvfrom(int, char *, int, int, struct sockaddr *, int *)':
/usr/src/ACE_wrappers/ace/OS.i:3397: warning: passing `int *' as argument 6 of `recvfrom(int, void *, unsigned int, int, sockaddr *, unsigned int *)' changes signedness
/usr/src/ACE_wrappers/ace/OS.i: In function `static int ACE_OS::getpeername(int, struct sockaddr *, int *)':
/usr/src/ACE_wrappers/ace/OS.i:3431: warning: passing `int *' as argument 3 of `getpeername(int, sockaddr *, unsigned int *)' changes signedness
/usr/src/ACE_wrappers/ace/OS.i: In function `static int ACE_OS::getsockname(int, struct sockaddr *, int *)':
/usr/src/ACE_wrappers/ace/OS.i:3561: warning: passing `int *' as argument 3 of `getsockname(int, sockaddr *, unsigned int *)' changes signedness
/usr/src/ACE_wrappers/ace/OS.i: In function `static int ACE_OS::getsockopt(int, int, int, char *, int *)':
/usr/src/ACE_wrappers/ace/OS.i:3573: warning: passing `int *' as argument 5 of `getsockopt(int, int, int, void *, unsigned int *)' changes signedness
/usr/src/ACE_wrappers/ace/OS.i: In function `static int ACE_OS::setsockopt(int, int, int, const char *, int)':
/usr/src/ACE_wrappers/ace/OS.i:3591: warning: passing `const char *' as argument 4 of `setsockopt(int, int, int, void *, unsigned int)' discards const
/usr/src/ACE_wrappers/ace/OS.i: In function `static int ACE_OS::getrlimit(int, struct rlimit *)':
/usr/src/ACE_wrappers/ace/OS.i:6536: warning: conversion from `int' to `enum __rlimit_resource'
/usr/src/ACE_wrappers/ace/OS.i: In function `static int ACE_OS::setrlimit(int, const struct rlimit *)':
/usr/src/ACE_wrappers/ace/OS.i:6551: warning: conversion from `int' to `enum __rlimit_resource'
/usr/src/ACE_wrappers/ace/OS.i:6551: warning: passing `const rlimit *' as argument 2 of `setrlimit(__rlimit_resource, rlimit *)' discards const
/usr/src/ACE_wrappers/ace/OS.i: In function `static int ACE_OS::getpgid(int)':
/usr/src/ACE_wrappers/ace/OS.i:6869: warning: implicit declaration of function `int getpgid(...)'
make: *** [.shobj/Log_Msg.so] Error 1


-- 
Torbjörn Lindgren
E-mail: tl@funcom.com
If Santa ever DID deliver presents on Christmas Eve, he's dead now.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]