public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Problem with gcc-4.8.2 compile
@ 2013-10-22  1:26 GHui
  2013-10-22  8:25 ` Andrew Haley
  0 siblings, 1 reply; 9+ messages in thread
From: GHui @ 2013-10-22  1:26 UTC (permalink / raw)
  To: gcc-help

Hi,
I have got some problem, when I build gcc-4.8.2.
I have google it. But without luck, I didnot get useful info.
Any help will be appreciated.


The following is error log:
--------------------------------
mkdir -p -- x86_64-unknown-linux-gnu/libgomp
Checking multilib configuration for libgomp...
Configuring stage 1 in x86_64-unknown-linux-gnu/libgomp
configure: creating cache ./config.cache
checking for --enable-version-specific-runtime-libs... no
checking for --enable-generated-files-in-srcdir... no
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for x86_64-unknown-linux-gnu-gcc... /root/JULY/gcc-4.8.1/host-x86_64-unknown-linux-gnu/gcc/xgcc -B/root/JULY/gcc-4.8.1/host-x86_64-unknown-linux-gnu/gcc/ -B/usr/local/gcc-4.8.1/x86_64-unknown-linux-gnu/bin/ -B/usr/local/gcc-4.8.1/x86_64-unknown-linux-gnu/lib/ -isystem /usr/local/gcc-4.8.1/x86_64-unknown-linux-gnu/include -isystem /usr/local/gcc-4.8.1/x86_64-unknown-linux-gnu/sys-include  
checking for C compiler default output file name...
configure: error: in `/root/JULY/gcc-4.8.1/x86_64-unknown-linux-gnu/libgomp':
configure: error: C compiler cannot create executables
See `config.log' for more details.
make[2]: *** [configure-stage1-target-libgomp] Error 77
make[2]: Leaving directory `/root/JULY/gcc-4.8.1'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/root/JULY/gcc-4.8.1'
make: *** [all] Error 2


The following is libgomp error log:
-----------------------------------------
gcc version 4.8.1 (GCC)
configure:3644: $? = 0
configure:3633: /root/JULY/gcc-4.8.1/build/./gcc/xgcc -B/root/JULY/gcc-4.8.1/build/./gcc/ -B/usr/local/gcc-4.8.1/x86_64-unknown-linux-gnu/bin/ -B/usr/local/gcc-4.8.1/x86_64-unknown-linux-gnu/lib/ -isystem /usr/local/gcc-4.8.1/x86_64-unknown-linux-gnu/include -isystem /usr/local/gcc-4.8.1/x86_64-unknown-linux-gnu/sys-include    -V >&5
xgcc: error: unrecognized command line option '-V'
xgcc: fatal error: no input files
compilation terminated.
configure:3644: $? = 1
configure:3633: /root/JULY/gcc-4.8.1/build/./gcc/xgcc -B/root/JULY/gcc-4.8.1/build/./gcc/ -B/usr/local/gcc-4.8.1/x86_64-unknown-linux-gnu/bin/ -B/usr/local/gcc-4.8.1/x86_64-unknown-linux-gnu/lib/ -isystem /usr/local/gcc-4.8.1/x86_64-unknown-linux-gnu/include -isystem /usr/local/gcc-4.8.1/x86_64-unknown-linux-gnu/sys-include    -qversion >&5
xgcc: error: unrecognized command line option '-qversion'
xgcc: fatal error: no input files
compilation terminated.
configure:3644: $? = 1
configure:3664: checking for C compiler default output file name
configure:3686: /root/JULY/gcc-4.8.1/build/./gcc/xgcc -B/root/JULY/gcc-4.8.1/build/./gcc/ -B/usr/local/gcc-4.8.1/x86_64-unknown-linux-gnu/bin/ -B/usr/local/gcc-4.8.1/x86_64-unknown-linux-gnu/lib/ -isystem /usr/local/gcc-4.8.1/x86_64-unknown-linux-gnu/include -isystem /usr/local/gcc-4.8.1/x86_64-unknown-linux-gnu/sys-include    -g -O2   conftest.c  >&5
/usr/lib/../lib64/crt1.o: In function `_start':
(.text+0x12): undefined reference to `__libc_csu_fini'
/usr/lib/../lib64/crt1.o: In function `_start':
(.text+0x19): undefined reference to `__libc_csu_init'
collect2: error: ld returned 1 exit status
configure:3690: $? = 1
configure:3727: result:
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU OpenMP Runtime Library"
| #define PACKAGE_TARNAME "libgomp"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU OpenMP Runtime Library 1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL "http://www.gnu.org/software/libgomp/"
| #define PACKAGE "libgomp"
| #define VERSION "1.0"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:3733: error: in `/root/JULY/gcc-4.8.1/build/x86_64-unknown-linux-gnu/libgomp':
configure:3737: error: C compiler cannot create executables

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Problem with gcc-4.8.2 compile
  2013-10-22  1:26 Problem with gcc-4.8.2 compile GHui
@ 2013-10-22  8:25 ` Andrew Haley
  2013-10-22  9:29   ` GHui
  0 siblings, 1 reply; 9+ messages in thread
From: Andrew Haley @ 2013-10-22  8:25 UTC (permalink / raw)
  To: GHui; +Cc: gcc-help

On 10/22/2013 02:25 AM, GHui wrote:
> Hi,
> I have got some problem, when I build gcc-4.8.2.
> I have google it. But without luck, I didnot get useful info.
> Any help will be appreciated.

You need to install GCC.

Andrew.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Problem with gcc-4.8.2 compile
  2013-10-22  8:25 ` Andrew Haley
@ 2013-10-22  9:29   ` GHui
  2013-10-22 10:22     ` Andrew Haley
  0 siblings, 1 reply; 9+ messages in thread
From: GHui @ 2013-10-22  9:29 UTC (permalink / raw)
  To: Andrew Haley; +Cc: gcc-help

Thanks for you help.
I have installed gcc-4.4.4-13.el6.x86_64.
I compiled it under the Red Hat Enterprise Linux Server release 6.0.
It seems to find libc.so in /lib64, but it should in /usr/lib64, because of /usr/lib64/libc_nonshared.a.
I don't known how to change the linker to open /usr/lib64/libc.so. 

GHui

------------------ Original ------------------
From:  "Andrew Haley";<aph@redhat.com>;
Date:  Tue, Oct 22, 2013 04:25 PM
To:  "GHui"<ugiwgh@gmail.com>; 
Cc:  "gcc-help"<gcc-help@gcc.gnu.org>; 
Subject:  Re: Problem with gcc-4.8.2 compile



On 10/22/2013 02:25 AM, GHui wrote:
> Hi,
> I have got some problem, when I build gcc-4.8.2.
> I have google it. But without luck, I didnot get useful info.
> Any help will be appreciated.

You need to install GCC.

Andrew.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Problem with gcc-4.8.2 compile
  2013-10-22  9:29   ` GHui
@ 2013-10-22 10:22     ` Andrew Haley
  2013-10-22 10:25       ` Andrew Haley
  0 siblings, 1 reply; 9+ messages in thread
From: Andrew Haley @ 2013-10-22 10:22 UTC (permalink / raw)
  To: GHui; +Cc: gcc-help

On 10/22/2013 10:29 AM, GHui wrote:
> Thanks for you help.
> I have installed gcc-4.4.4-13.el6.x86_64.
> I compiled it under the Red Hat Enterprise Linux Server release 6.0.
> It seems to find libc.so in /lib64, but it should in /usr/lib64, because of /usr/lib64/libc_nonshared.a.
> I don't known how to change the linker to open /usr/lib64/libc.so. 

Please don't top-post on gcc-help.

I'll try it now myself and see what happens.

Andrew.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Problem with gcc-4.8.2 compile
  2013-10-22 10:22     ` Andrew Haley
@ 2013-10-22 10:25       ` Andrew Haley
       [not found]         ` <tencent_43D371E83A8EED71300F1003@qq.com>
  0 siblings, 1 reply; 9+ messages in thread
From: Andrew Haley @ 2013-10-22 10:25 UTC (permalink / raw)
  To: GHui; +Cc: gcc-help

On 10/22/2013 11:22 AM, Andrew Haley wrote:
> On 10/22/2013 10:29 AM, GHui wrote:
>> Thanks for you help.
>> I have installed gcc-4.4.4-13.el6.x86_64.
>> I compiled it under the Red Hat Enterprise Linux Server release 6.0.
>> It seems to find libc.so in /lib64, but it should in /usr/lib64, because of /usr/lib64/libc_nonshared.a.
>> I don't known how to change the linker to open /usr/lib64/libc.so. 
> 
> Please don't top-post on gcc-help.
> 
> I'll try it now myself and see what happens.

Please tell us your configure and make lines.

Andrew.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Problem with gcc-4.8.2 compile
       [not found]         ` <tencent_43D371E83A8EED71300F1003@qq.com>
@ 2013-10-22 13:46           ` Andrew Haley
  0 siblings, 0 replies; 9+ messages in thread
From: Andrew Haley @ 2013-10-22 13:46 UTC (permalink / raw)
  To: GHui; +Cc: gcc-help

On 10/22/2013 02:15 PM, GHui wrote:
> I compiled gcc with the following step
> 1) cd gcc-4.8.1
> 2) mkdir build
> 3) cd build
> 4)../configure --build=x86_64-redhat-linux --prefix=/usr/local/gcc-4.8.1  --enable-FEATURE=yes --with-gmp=/usr/local/gmp-4.3.2  --with-mpfr=/usr/local/mpfr-2.4.2 --with-mpc=/usr/local/mpc-0.8.1/  --enable-languages=c,c++ --disable-multilib
> 5) make

Please do not top-post on gcc-help or I will not help you.

I wonder if you may be missing some libraries.  glibc-devel, perhaps?

"yum-builddep gcc" as root should install everything.

Enterprise Linux Server release 6.0 is old.

Andrew.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Problem with gcc-4.8.2 compile
  2013-10-22 14:39 GHui
@ 2013-10-26 21:32 ` Jonathan Wakely
  0 siblings, 0 replies; 9+ messages in thread
From: Jonathan Wakely @ 2013-10-26 21:32 UTC (permalink / raw)
  To: GHui; +Cc: Andrew Haley, gcc-help

On 22 October 2013 15:39, GHui wrote:
> Sorry, I misunderstand top-post.
> Did you mean that I shouldn't cc to gcc-help@gcc.gnu.org, or others?

No, it refers to your posting style when quoting previous mails.

Try using a search engine:

https://duckduckgo.com/?q=top-post

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Problem with gcc-4.8.2 compile
@ 2013-10-22 14:39 GHui
  2013-10-26 21:32 ` Jonathan Wakely
  0 siblings, 1 reply; 9+ messages in thread
From: GHui @ 2013-10-22 14:39 UTC (permalink / raw)
  To: Andrew Haley; +Cc: gcc-help

Sorry, I misunderstand top-post. 
Did you mean that I shouldn't cc to gcc-help@gcc.gnu.org, or others?

To execute "rpm -qf /lib64/libc.so" to find which pkg it belong to.
In my system(el6).
The /usr/lib64/libc.so belong to glibc-devel-2.12.
The /lib64/libc.so belong to none.
So, I think someone made it.
Thanks for you help.

GHui

------------------ Original ------------------
From:  "Andrew Haley";<aph@redhat.com>;
Date:  Tue, Oct 22, 2013 09:46 PM
To:  "GHui"<ugiwgh@gmail.com>; 
Cc:  "gcc-help"<gcc-help@gcc.gnu.org>; 
Subject:  Re: Problem with gcc-4.8.2 compile



On 10/22/2013 02:15 PM, GHui wrote:
> I compiled gcc with the following step
> 1) cd gcc-4.8.1
> 2) mkdir build
> 3) cd build
> 4)../configure --build=x86_64-redhat-linux --prefix=/usr/local/gcc-4.8.1  --enable-FEATURE=yes --with-gmp=/usr/local/gmp-4.3.2  --with-mpfr=/usr/local/mpfr-2.4.2 --with-mpc=/usr/local/mpc-0.8.1/  --enable-languages=c,c++ --disable-multilib
> 5) make

Please do not top-post on gcc-help or I will not help you.

I wonder if you may be missing some libraries.  glibc-devel, perhaps?

"yum-builddep gcc" as root should install everything.

Enterprise Linux Server release 6.0 is old.

Andrew.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Problem with gcc-4.8.2 compile
@ 2013-10-22 13:36 GHui
  0 siblings, 0 replies; 9+ messages in thread
From: GHui @ 2013-10-22 13:36 UTC (permalink / raw)
  To: Andrew Haley; +Cc: gcc-help

Thanks for your help.
Maybe someone make a soft link /lib64/libc.so.

 I compiled gcc with the following step
1) cd gcc-4.8.1
2) mkdir build
3) cd build
4)../configure --build=x86_64-redhat-linux --prefix=/usr/local/gcc-4.8.1 --enable-FEATURE=yes --with-gmp=/usr/local/gmp-4.3.2 --with-mpfr=/usr/local/mpfr-2.4.2 --with-mpc=/usr/local/mpc-0.8.1/ --enable-languages=c,c++ --disable-multilib
5) make


GHui



------------------ Original ------------------
From:  "Andrew Haley";<aph@redhat.com>;
Date:  Tue, Oct 22, 2013 06:25 PM
To:  "GHui"<ugiwgh@gmail.com>; 
Cc:  "gcc-help"<gcc-help@gcc.gnu.org>; 
Subject:  Re: Problem with gcc-4.8.2 compile



On 10/22/2013 11:22 AM, Andrew Haley wrote:
> On 10/22/2013 10:29 AM, GHui wrote:
>> Thanks for you help.
>> I have installed gcc-4.4.4-13.el6.x86_64.
>> I compiled it under the Red Hat Enterprise Linux Server release 6.0.
>> It seems to find libc.so in /lib64, but it should in /usr/lib64, because of /usr/lib64/libc_nonshared.a.
>> I don't known how to change the linker to open /usr/lib64/libc.so. 
> 
> Please don't top-post on gcc-help.
> 
> I'll try it now myself and see what happens.

Please tell us your configure and make lines.

Andrew.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2013-10-26 21:32 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-22  1:26 Problem with gcc-4.8.2 compile GHui
2013-10-22  8:25 ` Andrew Haley
2013-10-22  9:29   ` GHui
2013-10-22 10:22     ` Andrew Haley
2013-10-22 10:25       ` Andrew Haley
     [not found]         ` <tencent_43D371E83A8EED71300F1003@qq.com>
2013-10-22 13:46           ` Andrew Haley
2013-10-22 13:36 GHui
2013-10-22 14:39 GHui
2013-10-26 21:32 ` Jonathan Wakely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).