From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 107929 invoked by alias); 10 Feb 2017 15:52:13 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 107911 invoked by uid 89); 10 Feb 2017 15:52:12 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.4 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=ham version=3.3.2 spammy=sk:mishra, mishra.nitish.88@gmail.com, mishranitish88gmailcom, sk:mishra. X-HELO: mail-qk0-f180.google.com Received: from mail-qk0-f180.google.com (HELO mail-qk0-f180.google.com) (209.85.220.180) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 10 Feb 2017 15:52:11 +0000 Received: by mail-qk0-f180.google.com with SMTP id 11so42864697qkl.3 for ; Fri, 10 Feb 2017 07:52:10 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=cjHrVqWfgg4j21No88lUaf5JfEctJiw0n28+E3e7Ke0=; b=Z4SsDcjOLm6kwYhikgTAIXV+5txYIj83rJfsmjttFZIcwqR0YAv6eGHcW9xhASMwX5 uqLubth6jZgrlS3MIsdnZztKd/s75RQLNBB0mRvnSNvdt6F7Pxu1KAqR+KLRyRJJZxQT DFq6FCYtAExRBQdq+cmW0OhM168+ft1cYOcy5dcdjfTSLkt22NBChd+vAHfAWtaWNC1y c114ck5vBXPeQ9MvXY8t4FcS9v8p26TFH2SgH8tEiNiO5ah9Xg3HTo49M74YlE5BrGE9 tAAa9fFLj61cNJMkg69SS6/31tN6ifyXnrVUzXAI8HaAwQTD/M2bFb2df7gbtFyuUUAn xPvA== X-Gm-Message-State: AMke39nFgQMoUUs0YyTVwxAR4zMNW+o9WMntDX6BBaz1vKAua2OF5n9/uVOS4Gyf/D2xl65Zqbxpphv7u3I6Yg== X-Received: by 10.55.159.206 with SMTP id i197mr8213761qke.175.1486741929587; Fri, 10 Feb 2017 07:52:09 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.181.202 with HTTP; Fri, 10 Feb 2017 07:52:09 -0800 (PST) In-Reply-To: References: <21a21388-b1d9-816c-377e-d4e084cc399e@redhat.com> <331a72d9-050c-7cd7-adc2-78e5f1ed6f85@redhat.com> <57147db4-83c3-2a8f-0c74-0efc6a94e9f5@redhat.com> From: David Edelsohn Date: Fri, 10 Feb 2017 15:52:00 -0000 Message-ID: Subject: Re: Issue with Latest GDB on AIX with GCC-6.12 To: Nitish Kumar Mishra Cc: Pedro Alves , "gdb@sourceware.org" , Yao Qi Content-Type: text/plain; charset=UTF-8 X-SW-Source: 2017-02/txt/msg00026.txt.bz2 On Fri, Feb 10, 2017 at 2:22 AM, Nitish Kumar Mishra wrote: > Hi All, > >> 3. GDB with GCC-6.1, 64 bit mode, with static options : NOT WORKING >> 4. GDB with GCC-6.1, 64 bit mode, without static options : COMPILATION ERROR. >> >> P.S.: Static options means: -static-libstdc++ -static-libgcc > >>What is the compilation error? > With GCC-6.1, 64 bit mode, WITHOUT static option, below is the output of the > compilation error: > > ld: 0711-317 ERROR: Undefined symbol: ._Unwind_Resume > ld: 0711-317 ERROR: Undefined symbol: .__cxa_atexit > ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. > collect2: error: ld returned 8 exit status > > >> Does GCC 4.8.5 and GCC 6.1 fail in the same manner? Neither catch the > exception? > Yes, by NOT WORKING, I meant, niether catching the exception and process is > getting terminated. Who built GCC 6.1 for you? Is this an IBM build or Bull Freeware? The version of GCC that you are using was built incorrectly. There have been problems in the past with some of the pre-built binaries containing libraries with recently added symbols not correctly exported. There seems to be a problem with exception handling and -static-libgcc in recent versions of GCC on AIX. I don't know what you have been testing and why you were not able to triage this. Thanks, David