From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3500 invoked by alias); 23 Mar 2019 16:25:57 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 3488 invoked by uid 89); 23 Mar 2019 16:25:56 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-6.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,GIT_PATCH_3,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=mail2vinaya@gmail.com, HX-Received:a9d, HX-HELO:sk:mail-ot, mail2vinayagmailcom X-HELO: mail-ot1-f44.google.com Received: from mail-ot1-f44.google.com (HELO mail-ot1-f44.google.com) (209.85.210.44) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 23 Mar 2019 16:25:54 +0000 Received: by mail-ot1-f44.google.com with SMTP id u15so4531674otq.10 for ; Sat, 23 Mar 2019 09:25:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/sFcCUzGyffahHmVXEbS6WHJFz9JNGsg8aKbfpu+hmo=; b=iz7VLQwBhhnpd+dduFgEMsCft84GpB9+L1aCHtxZqMFTlA1nm/X7uWrSC8G1AzozFp PqZIVbBcprJfFC7WiN88rIifExIhIEH6akXMG5ba4ffzD3MWRaUtFwIhI8HHKfHrw+ye FfOECDb7m2nDFNVTvIFrLbtF1YQDFSFgrNmUAYhMlsxinMie0PRCpjue/2jsKpmboZti 3qIh59l/hQ1Ha1kPuDu9zjzoZ2cMGV0NQI+pQQBEF6qdD5f2o5lHkrva6KFRzsZBkVnR ENqLgtL5NL9FxGKvSUkaBPB3O/dQR8e57PPHdIYXYTTZ1jZLFccCiDT10oL3071GGteQ w8yQ== MIME-Version: 1.0 References: In-Reply-To: From: Vinaya Dandur Date: Sat, 23 Mar 2019 16:25:00 -0000 Message-ID: Subject: Re: GCC 4.8.1 unable to compile a .c File To: Jonathan Wakely Cc: "gcc@gcc.gnu.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-SW-Source: 2019-03/txt/msg00175.txt.bz2 Hi Jonathan, Thank you. Yes it is not an issue with the GCC but the TRAP_BRKPT is defined in signal.h which the GCC could include but can't find the constant mentioned. Is there any way this problem could be resolved ? any pointers I can get ? Thanks and Regards, Vinaya D R On Sat, Mar 23, 2019 at 9:52 PM Jonathan Wakely wrote: > On Sat, 23 Mar 2019 at 15:15, Vinaya Dandur wrote: > > > > Dear Developers, > > > > It is unfortunate that I am facing this issue and to my bad luck, I do > not > > see an answer on google as well. > > > > Problem: > > > > I have downloaded and compiled GCC 4.8.1 with the below configure optio= ns > > on SLES 12 and post installation, created soft links cc c++ gcc and g++ > to > > point to gcc-4.8.1 and g++-4.8.1 . > > > > ./configure --prefix=3D/usr --infodir=3D/usr/share/info > --mandir=3D/usr/share/man > > --libdir=3D/usr/lib64 --libexecdir=3D/usr/lib64 --enable-checking=3Drel= ease > > --enable-ssp --disable-libssp --with-bugurl=3Dhttp://bugs.opensuse.org/ > > --with-pkgversion=3D'SUSE Linux' --disable-libgcj --disable-libmudflap > > --with-slibdir=3D/lib64 --enable-__cxa_atexit > > --enable-libstdcxx-allocator=3Dnew --disable-libstdcxx-pch > > --enable-version-specific-runtime-libs --program-suffix=3D-4.8.1 > > --enable-linux-futex --without-system-libunwind --with-cpu=3Dgeneric > > --build=3Dx86_64-suse-linux --disable-multilib --enable-languages=3Dc,c= ++ > > > > A simple .c program would copilte which has a simple print with the new > > compiler, but not the below one. > > > > Program: > > ++++++++++ > > #include > > #include > > > > int main () { > > > > printf("TRAP_BRKPT is: %d\n", TRAP_BRKPT); > > > > return 0; > > } > > +++++++ > > > > ecomdev:/tmp # cc test.c > > test.c: In function =E2=80=98main=E2=80=99: > > test.c:6:31: error: =E2=80=98TRAP_BRKPT=E2=80=99 undeclared (first use = in this function) > > printf("TRAP_BRKPT is: %d\n", TRAP_BRKPT); > > ^ > > test.c:6:31: note: each undeclared identifier is reported only once for > > each function it appears in > > ecomdev:/tmp # > > This is not a problem with GCC, it just means the TRAP_BRKPT symbol > isn't defined in the headers you've included. >