From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8216 invoked by alias); 15 Jan 2014 00:21:47 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 8205 invoked by uid 89); 15 Jan 2014 00:21:46 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-ob0-f182.google.com Received: from mail-ob0-f182.google.com (HELO mail-ob0-f182.google.com) (209.85.214.182) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Wed, 15 Jan 2014 00:21:45 +0000 Received: by mail-ob0-f182.google.com with SMTP id wn1so418713obc.27 for ; Tue, 14 Jan 2014 16:21:43 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=A89Ss2EtE1ika+TatHm2l6dCja+bC0rxVgluhCl63vk=; b=exj13s46+Dby2Oe+wadSDB434cQMgksShmHuXEJST/NyjkHe+br4cYFZlgYhkixFiy 9qpIkvlVJoP4SQbcXu4nCO9gjkPB5Z82hp+szrv/Ol9NTmyr5d9l0nOKnstMN4W+fQxh zq2lcirityDmFdgwPvjpqqFjhnJqVPJifjEGqpe1tA2STpryK9YaziCP3FNEKMfNDy+A M7FUxgvWes2rCuRjgv96F8t8Y5wQ9TEbCoAPh9PVgZUg2gDo5mZ7AsBSIbBc2wKb2xHZ HRp3OY3k0Alb9N9RcSJoK2rInetolniH1mDc3+SKjqM9gt1yiJE3b7ATbWeuIrUFeBQV Q4eQ== X-Gm-Message-State: ALoCoQklNn5DQGLW1eb9NPJULQhOOXvei0vpPBKyWlS94uMG3LUldqCAxtkYJcQicFstjvbllNpHKzLErD8c+/DtbLCUYbtFi+jOJi9QRNoHDkt8R+X6AH4PnrKnihnoJFhmDPSPt9g9i4wGRxCidJSa9iLOpc/rl6rv6MCX4Z3o8BkTeygbjVHHdirrexzxgnJsVjFFFqvt MIME-Version: 1.0 X-Received: by 10.60.68.83 with SMTP id u19mr3209983oet.74.1389745303270; Tue, 14 Jan 2014 16:21:43 -0800 (PST) Received: by 10.60.39.170 with HTTP; Tue, 14 Jan 2014 16:21:43 -0800 (PST) In-Reply-To: References: <3963E67C-49BA-4463-AF0F-032FC2D4CF8E@gmail.com> Date: Wed, 15 Jan 2014 00:21:00 -0000 Message-ID: Subject: Re: Build error after successful config on Redhat 6.2 with gcc 4.8.2 From: Ian Lance Taylor To: crazed.husk@gmail.com Cc: "gcc-help@gcc.gnu.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2014-01/txt/msg00056.txt.bz2 On Tue, Jan 14, 2014 at 2:54 PM, wrote: > > Hello. I'm attempting to build gcc 4.8.2 on a RedHat 6.2 system using gc= c 4.4.7. I assume you know that Red Hat 6.2 is very very old. You have to expect some challenges. > # make > g++ -c -g -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-= tables -W -Wall -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -ped= antic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-comm= on -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I/usr/local/src/gcc/gcc/g= cc -I/usr/local/src/gcc/gcc/gcc/build -I/usr/local/src/gcc/gcc/gcc/../inclu= de -I/usr/local/src/gcc/gcc/gcc/../libcpp/include -I/usr/local/src/gcc/gcc= /gcc/../libdecnumber -I/usr/local/src/gcc/gcc/gcc/../libdecnumber/bid -I../= libdecnumber -I/usr/local/src/gcc/gcc/gcc/../libbacktrace \ > -o build/genmddeps.o /usr/local/src/gcc/gcc/gcc/genmddeps= .c > In file included from /usr/include/sys/resource.h:25, > from /usr/include/sys/wait.h:32, > from /usr/local/src/gcc/gcc/gcc/system.h:358, > from /usr/local/src/gcc/gcc/gcc/genmddeps.c:19: > /usr/include/bits/resource.h:127: error: declaration does not declare any= thing > In file included from /usr/local/src/gcc/gcc/gcc/genmddeps.c:19: > /usr/local/src/gcc/gcc/gcc/system.h:450: error: declaration of C function= =E2=80=98void* sbrk(int)=E2=80=99 conflicts with > /usr/include/unistd.h:1053: error: previous declaration =E2=80=98void* sb= rk(intptr_t)=E2=80=99 here GCC's configure script thinks that your system does not have a declaration for sbrk in the system header files. But it does, and GCC's default definition (in gcc/system.h) does not match the one in the system header files. You need to look at gcc/config.log to see why configure thought your system did not have sbrk. Ian