This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: GCC 5.1 and sanitizer issue
- From: Victor Rodriguez <vm dot rod25 at gmail dot com>
- To: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- Cc: Millad Ghane <millad dot mg at gmail dot com>, gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Tue, 9 Jun 2015 10:57:45 -0500
- Subject: Re: GCC 5.1 and sanitizer issue
- Authentication-results: sourceware.org; auth=none
- References: <CA+tV5cT06Ss-KtYs6AFLqycOJvQnD4T+Vv+MrETy9JhU7EmmFQ at mail dot gmail dot com> <CAH6eHdS_JDp3VBJURvVXnZGu+Nd-2EmcU1SwMT=ejroDimVzdg at mail dot gmail dot com> <CA+tV5cS1SnVDL6gMuQ6XwATNY_zgSgMzUpEgjUJB4umQh2aQhw at mail dot gmail dot com> <CAH6eHdRChg3nv2DsP+6231M4R6ytvAz_4m+zOytOvSxJ+x-NFg at mail dot gmail dot com>
On Tue, Jun 9, 2015 at 5:36 AM, Jonathan Wakely <jwakely.gcc@gmail.com> wrote:
> On 9 June 2015 at 10:27, Millad Ghane <millad.mg@gmail.com> wrote:
>> Hi Jonathan,
>>
>> Thanks for your consideration.
>>
>>
>> GCC: current gcc
>> ==============
>> Simple answer: 4.4.7
>> Full answer:
>> ----------------
>> Using built-in specs.
>> Target: x86_64-redhat-linux
>
> Then building GCC 5.1 should work fine, that's strange.
>
>> Right now, I think I have overcome above issue. But, a new issue comes
>> up. It is shown in here. It seems the issue is about LibGOMP (which I
>> need it).
>> =====================
>> ...
>> checking for C compiler default output file name... a.out
>> checking whether the C compiler works... configure: error: in
>> `/home/sarood1/millad/gcc-build/x86_64-unknown-linux-gnu/libgomp':
>> configure: error: cannot run C compiled programs.
>> If you meant to cross compile, use `--host'.
>> See `config.log' for more details.
>> make[1]: *** [configure-target-libgomp] Error 1
>> make[1]: Leaving directory `/home/sarood1/millad/gcc-build'
>> make: *** [all] Error 2
>
> You can look in gcc-build/x86_64-unknown-linux-gnu/libgomp/config.log
> to see the error that causes the "cannot run C compiled programs"
> problem.
Hi team
Clear Linux OS has a clean spec file for compile gcc 5 :
https://download.clearlinux.org/current/source/SRPMS/gcc-5.1.0-38.src.rpm
GCC 5 compilation should be simple , hope this spec file helps
Best regards
Victor Rodriguez