public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/45174]  New: Make fails in zlib
@ 2010-08-03 22:20 dschlic1 at gmail dot com
  2010-08-03 22:23 ` [Bug bootstrap/45174] " dschlic1 at gmail dot com
                   ` (19 more replies)
  0 siblings, 20 replies; 26+ messages in thread
From: dschlic1 at gmail dot com @ 2010-08-03 22:20 UTC (permalink / raw)
  To: gcc-bugs

Cross compiler to arm bare metal fails during make in zlib. If configured with
--with-system-zlib, make succeeds. I have an automated script which allows
easier detection.


-- 
           Summary: Make fails in zlib
           Product: gcc
           Version: 4.5.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dschlic1 at gmail dot com
 GCC build triplet: arm-unknown-elf
  GCC host triplet:  i686-pc-linux-gnu
GCC target triplet: arm-unknown-elf


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45174


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

* [Bug bootstrap/45174] Make fails in zlib
  2010-08-03 22:20 [Bug bootstrap/45174] New: Make fails in zlib dschlic1 at gmail dot com
@ 2010-08-03 22:23 ` dschlic1 at gmail dot com
  2010-08-03 22:25 ` pinskia at gcc dot gnu dot org
                   ` (18 subsequent siblings)
  19 siblings, 0 replies; 26+ messages in thread
From: dschlic1 at gmail dot com @ 2010-08-03 22:23 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from dschlic1 at gmail dot com  2010-08-03 22:22 -------
Created an attachment (id=21382)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21382&action=view)
Script file to build arm cross compiler

In line 53 commented out lines will cause make failure. Remove comments, and
cross tool chain is created.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45174


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

* [Bug bootstrap/45174] Make fails in zlib
  2010-08-03 22:20 [Bug bootstrap/45174] New: Make fails in zlib dschlic1 at gmail dot com
  2010-08-03 22:23 ` [Bug bootstrap/45174] " dschlic1 at gmail dot com
@ 2010-08-03 22:25 ` pinskia at gcc dot gnu dot org
  2010-08-03 22:28 ` pinskia at gcc dot gnu dot org
                   ` (17 subsequent siblings)
  19 siblings, 0 replies; 26+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2010-08-03 22:25 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2010-08-03 22:25 -------
This script is broken.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   GCC host triplet| i686-pc-linux-gnu          |i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45174


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

* [Bug bootstrap/45174] Make fails in zlib
  2010-08-03 22:20 [Bug bootstrap/45174] New: Make fails in zlib dschlic1 at gmail dot com
  2010-08-03 22:23 ` [Bug bootstrap/45174] " dschlic1 at gmail dot com
  2010-08-03 22:25 ` pinskia at gcc dot gnu dot org
@ 2010-08-03 22:28 ` pinskia at gcc dot gnu dot org
  2010-08-03 23:00 ` dschlic1 at gmail dot com
                   ` (16 subsequent siblings)
  19 siblings, 0 replies; 26+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2010-08-03 22:28 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pinskia at gcc dot gnu dot org  2010-08-03 22:28 -------
The first compile of GCC should be with only C and configured with
--with-newlib. And then a normal make instead of a make all-gcc. And a normal
make install.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45174


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

* [Bug bootstrap/45174] Make fails in zlib
  2010-08-03 22:20 [Bug bootstrap/45174] New: Make fails in zlib dschlic1 at gmail dot com
                   ` (2 preceding siblings ...)
  2010-08-03 22:28 ` pinskia at gcc dot gnu dot org
@ 2010-08-03 23:00 ` dschlic1 at gmail dot com
  2010-08-03 23:14 ` pinskia at gcc dot gnu dot org
                   ` (15 subsequent siblings)
  19 siblings, 0 replies; 26+ messages in thread
From: dschlic1 at gmail dot com @ 2010-08-03 23:00 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from dschlic1 at gmail dot com  2010-08-03 23:00 -------
Subject: Re:  Make fails in zlib

I have made the changes requested below, however the make still fails in
zlib.

Thank You,
Donald Schlicht

On Tue, 2010-08-03 at 22:28 +0000, pinskia at gcc dot gnu dot org wrote:
> 
> ------- Comment #3 from pinskia at gcc dot gnu dot org  2010-08-03 22:28 -------
> The first compile of GCC should be with only C and configured with
> --with-newlib. And then a normal make instead of a make all-gcc. And a normal
> make install.
> 
> 


------- Comment #5 from dschlic1 at gmail dot com  2010-08-03 23:00 -------
Created an attachment (id=21384)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21384&action=view)


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45174


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

* [Bug bootstrap/45174] Make fails in zlib
  2010-08-03 22:20 [Bug bootstrap/45174] New: Make fails in zlib dschlic1 at gmail dot com
                   ` (3 preceding siblings ...)
  2010-08-03 23:00 ` dschlic1 at gmail dot com
@ 2010-08-03 23:14 ` pinskia at gcc dot gnu dot org
  2010-08-03 23:22 ` dschlic1 at gmail dot com
                   ` (14 subsequent siblings)
  19 siblings, 0 replies; 26+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2010-08-03 23:14 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from pinskia at gcc dot gnu dot org  2010-08-03 23:13 -------
Can you provide the log of the build?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45174


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

* [Bug bootstrap/45174] Make fails in zlib
  2010-08-03 22:20 [Bug bootstrap/45174] New: Make fails in zlib dschlic1 at gmail dot com
                   ` (4 preceding siblings ...)
  2010-08-03 23:14 ` pinskia at gcc dot gnu dot org
@ 2010-08-03 23:22 ` dschlic1 at gmail dot com
  2010-08-04  0:42 ` pinskia at gcc dot gnu dot org
                   ` (13 subsequent siblings)
  19 siblings, 0 replies; 26+ messages in thread
From: dschlic1 at gmail dot com @ 2010-08-03 23:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from dschlic1 at gmail dot com  2010-08-03 23:21 -------
Subject: Re:  Make fails in zlib

Hello;
        Log files attached.

Thank You,
Donald Schlicht

On Tue, 2010-08-03 at 23:13 +0000, pinskia at gcc dot gnu dot org wrote:
> 
> ------- Comment #6 from pinskia at gcc dot gnu dot org  2010-08-03 23:13 -------
> Can you provide the log of the build?
> 
> 


------- Comment #8 from dschlic1 at gmail dot com  2010-08-03 23:21 -------
Created an attachment (id=21386)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21386&action=view)


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45174


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

* [Bug bootstrap/45174] Make fails in zlib
  2010-08-03 22:20 [Bug bootstrap/45174] New: Make fails in zlib dschlic1 at gmail dot com
                   ` (5 preceding siblings ...)
  2010-08-03 23:22 ` dschlic1 at gmail dot com
@ 2010-08-04  0:42 ` pinskia at gcc dot gnu dot org
  2010-08-04  0:43 ` pinskia at gcc dot gnu dot org
                   ` (12 subsequent siblings)
  19 siblings, 0 replies; 26+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2010-08-04  0:42 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from pinskia at gcc dot gnu dot org  2010-08-04 00:42 -------
Created an attachment (id=21387)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21387&action=view)
This one works for me

This works for me on x86_64-linux-gnu.  I don't know what is going wrong with
your build.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45174


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

* [Bug bootstrap/45174] Make fails in zlib
  2010-08-03 22:20 [Bug bootstrap/45174] New: Make fails in zlib dschlic1 at gmail dot com
                   ` (6 preceding siblings ...)
  2010-08-04  0:42 ` pinskia at gcc dot gnu dot org
@ 2010-08-04  0:43 ` pinskia at gcc dot gnu dot org
  2010-08-05  0:27 ` dschlic1 at gmail dot com
                   ` (11 subsequent siblings)
  19 siblings, 0 replies; 26+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2010-08-04  0:43 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from pinskia at gcc dot gnu dot org  2010-08-04 00:43 -------
Can you attach all config.log files?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45174


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

* [Bug bootstrap/45174] Make fails in zlib
  2010-08-03 22:20 [Bug bootstrap/45174] New: Make fails in zlib dschlic1 at gmail dot com
                   ` (7 preceding siblings ...)
  2010-08-04  0:43 ` pinskia at gcc dot gnu dot org
@ 2010-08-05  0:27 ` dschlic1 at gmail dot com
  2010-08-05 17:01 ` rwild at gcc dot gnu dot org
                   ` (10 subsequent siblings)
  19 siblings, 0 replies; 26+ messages in thread
From: dschlic1 at gmail dot com @ 2010-08-05  0:27 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #11 from dschlic1 at gmail dot com  2010-08-05 00:27 -------
Subject: Re:  Make fails in zlib

Hello;
        Attached are all of the config.log files in the gcc build directory.
Please advise if you need any other files.

Thank You,
Donald Schlicht

On Wed, 2010-08-04 at 00:43 +0000, pinskia at gcc dot gnu dot org wrote:
> 
> ------- Comment #10 from pinskia at gcc dot gnu dot org  2010-08-04 00:43 -------
> Can you attach all config.log files?
> 
> 


------- Comment #12 from dschlic1 at gmail dot com  2010-08-05 00:27 -------
Created an attachment (id=21399)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21399&action=view)


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45174


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

* [Bug bootstrap/45174] Make fails in zlib
  2010-08-03 22:20 [Bug bootstrap/45174] New: Make fails in zlib dschlic1 at gmail dot com
                   ` (8 preceding siblings ...)
  2010-08-05  0:27 ` dschlic1 at gmail dot com
@ 2010-08-05 17:01 ` rwild at gcc dot gnu dot org
  2010-08-06 14:35 ` dschlic1 at gmail dot com
                   ` (9 subsequent siblings)
  19 siblings, 0 replies; 26+ messages in thread
From: rwild at gcc dot gnu dot org @ 2010-08-05 17:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #13 from rwild at gcc dot gnu dot org  2010-08-05 17:01 -------
config.log excerpt from zlib:

configure:7903: result: yes
configure:7936: checking whether the gcc  -m64 linker (ld) supports shared
libraries
configure:9020: result: yes
configure:9265: checking dynamic linker characteristics
configure:9710: error: Link tests are not allowed after GCC_NO_EXECUTABLES.

which corresponds to this code in zlib/configure, from AC_PROG_LIBTOOL:

  lt_cv_shlibpath_overrides_runpath=no
    save_LDFLAGS=$LDFLAGS
    save_libdir=$libdir
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
    if test x$gcc_no_link = xyes; then
  as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO"
5


Either GCC or the user needs to prime cache variables in the way this test
shows:
<http://git.savannah.gnu.org/cgit/libtool.git/tree/tests/no-executables.at>
(There is currently one item missing there for AIX, which is relevant for GCC
but irrelevant to this particular PR).

This same issue supposedly holds for other GCC directories in which
GCC_NO_EXECUTABLES is used; it might just be latent.

Question is, what values the variables should be primed with.  In general,
tough one.  In this specific case: find out whether your linker sets DT_RUNPATH
upon -Wl,-rpath ("yes") or only DT_RPATH ("no").  Pass
lt_cv_shlibpath_overrides_runpath=no or =yes to configure accordingly.  Hmm. 
How can I ensure this primes the cache for host directories only?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45174


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

* [Bug bootstrap/45174] Make fails in zlib
  2010-08-03 22:20 [Bug bootstrap/45174] New: Make fails in zlib dschlic1 at gmail dot com
                   ` (9 preceding siblings ...)
  2010-08-05 17:01 ` rwild at gcc dot gnu dot org
@ 2010-08-06 14:35 ` dschlic1 at gmail dot com
  2010-08-06 17:22 ` rwild at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  19 siblings, 0 replies; 26+ messages in thread
From: dschlic1 at gmail dot com @ 2010-08-06 14:35 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2064 bytes --]



------- Comment #14 from dschlic1 at gmail dot com  2010-08-06 14:35 -------
Subject:  Make fails in zlib

Hello;
     Can you put that in layman's terms? I am using the standard GNU
linker and assembler. I run Ubuntu 10.04 LTS with all of the latest
patches.

Thank You,
Donald Schlicht

On Thu, Aug 5, 2010 at 1:01 PM, rwild at gcc dot gnu dot org
<gcc-bugzilla@gcc.gnu.org> wrote:
>
>
> ------- Comment #13 from rwild at gcc dot gnu dot org  2010-08-05 17:01 -------
> config.log excerpt from zlib:
>
> configure:7903: result: yes
> configure:7936: checking whether the gcc  -m64 linker (ld) supports shared
> libraries
> configure:9020: result: yes
> configure:9265: checking dynamic linker characteristics
> configure:9710: error: Link tests are not allowed after GCC_NO_EXECUTABLES.
>
> which corresponds to this code in zlib/configure, from AC_PROG_LIBTOOL:
>
>  lt_cv_shlibpath_overrides_runpath=no
>    save_LDFLAGS=$LDFLAGS
>    save_libdir=$libdir
>    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
>         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
>    if test x$gcc_no_link = xyes; then
>  as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO"
> 5
>
>
> Either GCC or the user needs to prime cache variables in the way this test
> shows:
> <http://git.savannah.gnu.org/cgit/libtool.git/tree/tests/no-executables.at>
> (There is currently one item missing there for AIX, which is relevant for GCC
> but irrelevant to this particular PR).
>
> This same issue supposedly holds for other GCC directories in which
> GCC_NO_EXECUTABLES is used; it might just be latent.
>
> Question is, what values the variables should be primed with.  In general,
> tough one.  In this specific case: find out whether your linker sets DT_RUNPATH
> upon -Wl,-rpath ("yes") or only DT_RPATH ("no").  Pass
> lt_cv_shlibpath_overrides_runpath=no or =yes to configure accordingly.  Hmm.
> How can I ensure this primes the cache for host directories only?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45174


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

* [Bug bootstrap/45174] Make fails in zlib
  2010-08-03 22:20 [Bug bootstrap/45174] New: Make fails in zlib dschlic1 at gmail dot com
                   ` (10 preceding siblings ...)
  2010-08-06 14:35 ` dschlic1 at gmail dot com
@ 2010-08-06 17:22 ` rwild at gcc dot gnu dot org
  2010-08-07  0:18 ` dschlic1 at gmail dot com
                   ` (7 subsequent siblings)
  19 siblings, 0 replies; 26+ messages in thread
From: rwild at gcc dot gnu dot org @ 2010-08-06 17:22 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1034 bytes --]



------- Comment #15 from rwild at gcc dot gnu dot org  2010-08-06 17:22 -------
(In reply to comment #14)
>      Can you put that in layman's terms?

Yes; sorry for the complicated and technical response.  As far as I can see,
there is at the moment no simple way to avoid this issue with a configure
command-line switch, so I'll describe an approach that hopefully works around
the issue for now:

In the build tree where the error occurred, there should be an empty file named
something like:

  arm-unknown-elf/zlib/config.cache

Please open that file with a text editor and add the line

  lt_cv_shlibpath_overrides_runpath=no

Then rerun make.  Please report back if that works or not; if it doesn't, then
find the first error message in the output and cut and paste 50 lines of output
from a few lines above that error message. Thanks.

I'll write to the gcc list about how to improve configury so that this
hopefully becomes easier or unnecessary in the future.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45174


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

* [Bug bootstrap/45174] Make fails in zlib
  2010-08-03 22:20 [Bug bootstrap/45174] New: Make fails in zlib dschlic1 at gmail dot com
                   ` (11 preceding siblings ...)
  2010-08-06 17:22 ` rwild at gcc dot gnu dot org
@ 2010-08-07  0:18 ` dschlic1 at gmail dot com
  2010-08-07 14:29 ` rwild at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  19 siblings, 0 replies; 26+ messages in thread
From: dschlic1 at gmail dot com @ 2010-08-07  0:18 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #16 from dschlic1 at gmail dot com  2010-08-07 00:18 -------
Subject: Re:  Make fails in zlib

Hello;
        I changed the value of lt_cv_shlibpath_overrides_runpath (it was set to
the result of an equality statement). No joy. The log is attached.
Results from the terminal are:

donald@donald-desktop:~$  sh Try15.sh /home/donald arm-elf 5
Found Linux OS.
******************************************************************
* Building gcc-4.5.1-boot
******************************************************************
make[3]: *** No rule to make target `all'.  Stop.
make[2]: *** [multi-do] Error 1
make[1]: *** [all-multi] Error 2
make: *** [all-zlib] Error 2
make: *** Waiting for unfinished jobs....
donald@donald-desktop:~$ 

        Previously to placing this bug report, I tried to find the source of
the error. The error occurs in this piece of code from configure in the
zlib source directory:

if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_ld_exported_symbols_list=no
      save_LDFLAGS=$LDFLAGS
      echo "_main" > conftest.sym
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
      if test x$gcc_no_link = xyes; then
  as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES."
"$LINENO" 5
fi

This piece of code is executed twice, first with
lt_cv_ld_exported_symbols_list set to blank, and gcc_no_link set to
blank. lt_cv_ld_exported_symbols_list is set to no because the else part
of the if statement is executed. Because gcc_no_link is not set, no
error is triggered.

However on the second pass, lt_cv_ld_exported_symbols_list has lost its
value (is blank), however gcc_no_link is set to yes. Result error. I
have not found out why lt_cv_ld_exported_symbols_list loses its value on
the second pass. LDFLAGS also loses its value on the second pass.

Thank You,
Donald Schlicht


------- Comment #17 from dschlic1 at gmail dot com  2010-08-07 00:18 -------
Created an attachment (id=21430)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21430&action=view)


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45174


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

* [Bug bootstrap/45174] Make fails in zlib
  2010-08-03 22:20 [Bug bootstrap/45174] New: Make fails in zlib dschlic1 at gmail dot com
                   ` (12 preceding siblings ...)
  2010-08-07  0:18 ` dschlic1 at gmail dot com
@ 2010-08-07 14:29 ` rwild at gcc dot gnu dot org
  2010-08-08 19:19 ` dschlic1 at gmail dot com
                   ` (5 subsequent siblings)
  19 siblings, 0 replies; 26+ messages in thread
From: rwild at gcc dot gnu dot org @ 2010-08-07 14:29 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #18 from rwild at gcc dot gnu dot org  2010-08-07 14:29 -------
Please do the following for me in your toplevel build directory, thanks:
  tar cvf config-logs.tar `find . -name config.log -o -name config.cache`
  gzip config-logs.tar

and attach the tarball to this issue.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45174


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

* [Bug bootstrap/45174] Make fails in zlib
  2010-08-03 22:20 [Bug bootstrap/45174] New: Make fails in zlib dschlic1 at gmail dot com
                   ` (13 preceding siblings ...)
  2010-08-07 14:29 ` rwild at gcc dot gnu dot org
@ 2010-08-08 19:19 ` dschlic1 at gmail dot com
  2010-08-08 20:44 ` rwild at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  19 siblings, 0 replies; 26+ messages in thread
From: dschlic1 at gmail dot com @ 2010-08-08 19:19 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #19 from dschlic1 at gmail dot com  2010-08-08 19:19 -------
Subject: Re:  Make fails in zlib

Hello;
        I am afraid I messed up my system. I was playing around trying to
install the latest versions of binutils and gcc on my linux system
(native, not cross compile), and now I am getting a different error. In
zlib's config.log:

ne=generic --enable-checking=release --build=i486-linux-gnu
--host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) 
configure:3234: $? = 0
configure:3223: gcc  -m64 -V >&5
gcc: '-V' must come at the start of the command line
configure:3234: $? = 1
configure:3223: gcc  -m64 -qversion >&5
gcc: unrecognized option '-qversion'
gcc: no input files
configure:3234: $? = 1
configure:3250: gcc  -m64 -o conftest -g -O2    conftest.c  >&5
Assembler messages:
Fatal error: No compiled in support for x86_64
configure:3253: $? = 1
configure:3441: checking for suffix of object files
configure:3463: gcc  -m64 -c -g -O2  conftest.c >&5
Assembler messages:
Fatal error: No compiled in support for x86_64
configure:3467: $? = 1

It looks like configure is trying to compile sources to 64 bit. I am
running a 32 bit system. Any ideas on how to tell configure to compile
for a 32 bit linux box?

Thank You,
Donald Schlicht


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45174


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

* [Bug bootstrap/45174] Make fails in zlib
  2010-08-03 22:20 [Bug bootstrap/45174] New: Make fails in zlib dschlic1 at gmail dot com
                   ` (14 preceding siblings ...)
  2010-08-08 19:19 ` dschlic1 at gmail dot com
@ 2010-08-08 20:44 ` rwild at gcc dot gnu dot org
  2010-08-09  0:42 ` dschlic1 at gmail dot com
                   ` (3 subsequent siblings)
  19 siblings, 0 replies; 26+ messages in thread
From: rwild at gcc dot gnu dot org @ 2010-08-08 20:44 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #20 from rwild at gcc dot gnu dot org  2010-08-08 20:44 -------
(In reply to comment #19)
>         I am afraid I messed up my system. I was playing around trying to
> install the latest versions of binutils and gcc on my linux system
> (native, not cross compile), and now I am getting a different error. In
> zlib's config.log:
> 
> ne=generic --enable-checking=release --build=i486-linux-gnu
> --host=i486-linux-gnu --target=i486-linux-gnu

You are not cross-building for arm-unknown-elf any more, so the error you are
getting has nothing to do with this PR any more.  Please get your system in
order first, I cannot help you with that, and I'm afraid people working on GCC
PRs don't really have the resources to help with that.  Their primary interest
is in fixing GCC.  I think this PR is probably valid but don't have the
resources to confirm myself.

If you want to create a native compiler on x86-linux, try disabling multilibs
as documented in the installation manual (and please follow up on the gcc-help
list if you have questions regarding that).


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45174


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

* [Bug bootstrap/45174] Make fails in zlib
  2010-08-03 22:20 [Bug bootstrap/45174] New: Make fails in zlib dschlic1 at gmail dot com
                   ` (15 preceding siblings ...)
  2010-08-08 20:44 ` rwild at gcc dot gnu dot org
@ 2010-08-09  0:42 ` dschlic1 at gmail dot com
  2010-09-07 14:49 ` ibolton at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  19 siblings, 0 replies; 26+ messages in thread
From: dschlic1 at gmail dot com @ 2010-08-09  0:42 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #21 from dschlic1 at gmail dot com  2010-08-09 00:42 -------
Subject: Re:  Make fails in zlib

Hello;
        Well I solved my problem, however the issue still remains. I installed
the latest native binutils and gcc-4.5.1 on my linux installation. The
script now works without any errors.

        However it appears that using the supplied binutils and compilers from
Ubuntu 10.04 there is a problem creating the cross compilers. I do not
know how or if I should proceed from here. It maybe there there is some
subtle error in the bins supplied with Ubuntu.

Thank You,
Donald Schlicht


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45174


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

* [Bug bootstrap/45174] Make fails in zlib
  2010-08-03 22:20 [Bug bootstrap/45174] New: Make fails in zlib dschlic1 at gmail dot com
                   ` (16 preceding siblings ...)
  2010-08-09  0:42 ` dschlic1 at gmail dot com
@ 2010-09-07 14:49 ` ibolton at gcc dot gnu dot org
  2010-09-08 10:06 ` ibolton at gcc dot gnu dot org
  2010-09-08 16:27 ` rwild at gcc dot gnu dot org
  19 siblings, 0 replies; 26+ messages in thread
From: ibolton at gcc dot gnu dot org @ 2010-09-07 14:49 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #22 from ibolton at gcc dot gnu dot org  2010-09-07 14:44 -------
(In reply to comment #21)
> Subject: Re:  Make fails in zlib
> 
> Hello;
>         Well I solved my problem, however the issue still remains. I installed
> the latest native binutils and gcc-4.5.1 on my linux installation. The
> script now works without any errors.
> 
>         However it appears that using the supplied binutils and compilers from
> Ubuntu 10.04 there is a problem creating the cross compilers. I do not
> know how or if I should proceed from here. It maybe there there is some
> subtle error in the bins supplied with Ubuntu.
> 
> Thank You,
> Donald Schlicht
> 

I've just read this thread and am now unsure as to whether there is a bug with
GCC or not.  It sounds like your initial troubles have gone away and now there
is a new problem.  Would it make sense to close this bug and raise a new bug to
cover the new issue?


-- 

ibolton at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45174


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

* [Bug bootstrap/45174] Make fails in zlib
  2010-08-03 22:20 [Bug bootstrap/45174] New: Make fails in zlib dschlic1 at gmail dot com
                   ` (17 preceding siblings ...)
  2010-09-07 14:49 ` ibolton at gcc dot gnu dot org
@ 2010-09-08 10:06 ` ibolton at gcc dot gnu dot org
  2010-09-08 16:27 ` rwild at gcc dot gnu dot org
  19 siblings, 0 replies; 26+ messages in thread
From: ibolton at gcc dot gnu dot org @ 2010-09-08 10:06 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #23 from ibolton at gcc dot gnu dot org  2010-09-08 10:06 -------
(In reply to comment #21)
> Subject: Re:  Make fails in zlib
> 
> Hello;
>         Well I solved my problem, however the issue still remains. I installed
> the latest native binutils and gcc-4.5.1 on my linux installation. The
> script now works without any errors.
> 
>         However it appears that using the supplied binutils and compilers from
> Ubuntu 10.04 there is a problem creating the cross compilers. I do not
> know how or if I should proceed from here. It maybe there there is some
> subtle error in the bins supplied with Ubuntu.
> 
> Thank You,
> Donald Schlicht
> 

I've just read this thread and am now unsure as to whether there is a bug with
GCC or not.  It sounds like your initial troubles have gone away and now there
is a new problem.  Would it make sense to close this bug and raise a new bug to
cover the new issue?


-- 

ibolton at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ibolton at gcc dot gnu dot
                   |                            |org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45174


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

* [Bug bootstrap/45174] Make fails in zlib
  2010-08-03 22:20 [Bug bootstrap/45174] New: Make fails in zlib dschlic1 at gmail dot com
                   ` (18 preceding siblings ...)
  2010-09-08 10:06 ` ibolton at gcc dot gnu dot org
@ 2010-09-08 16:27 ` rwild at gcc dot gnu dot org
  19 siblings, 0 replies; 26+ messages in thread
From: rwild at gcc dot gnu dot org @ 2010-09-08 16:27 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #24 from rwild at gcc dot gnu dot org  2010-09-08 16:26 -------
(In reply to comment #22)
> I've just read this thread and am now unsure as to whether there is a bug with
> GCC or not.  It sounds like your initial troubles have gone away and now there
> is a new problem.  Would it make sense to close this bug and raise a new bug to
> cover the new issue?

It would make sense to treat any issues that Donald has in a new PR (after
making sure they are not setup problems).

However, I am fairly sure that comment #13 describes a real issue, as it has
been reported to Libtool before, and there is a Libtool testsuite addition that
exposes link tests in AC_PROG_LIBTOOL that are not guarded by a cache variable.

The issue described by #13 may be latent in GCC.  I haven't tried to reproduce
it there yet.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45174


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

* [Bug bootstrap/45174] Make fails in zlib
       [not found] <bug-45174-4@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2011-01-18  8:30 ` rwild at gcc dot gnu.org
@ 2011-04-12 19:36 ` dschlic1 at gmail dot com
  4 siblings, 0 replies; 26+ messages in thread
From: dschlic1 at gmail dot com @ 2011-04-12 19:36 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45174

--- Comment #29 from Donald Schlicht <dschlic1 at gmail dot com> 2011-04-12 19:36:43 UTC ---
I found that there is a problem with the gcc compiler that shipps with
Ubuntu. If you build the gcc compiler from scratch for Linux, then the
build for the arm works.


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

* [Bug bootstrap/45174] Make fails in zlib
       [not found] <bug-45174-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2011-01-18  6:29 ` John.Tytgat at aaug dot net
@ 2011-01-18  8:30 ` rwild at gcc dot gnu.org
  2011-04-12 19:36 ` dschlic1 at gmail dot com
  4 siblings, 0 replies; 26+ messages in thread
From: rwild at gcc dot gnu.org @ 2011-01-18  8:30 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45174

--- Comment #28 from Ralf Wildenhues <rwild at gcc dot gnu.org> 2011-01-18 07:10:48 UTC ---
(In reply to comment #26)
> I'm seeing the same problem with gcc 4.6 trunk (r168937) for building a cross
> compiler with target arm-unknown-eabi configured with newlib in tree.  The
> crucial bit is --enable-multilib, without this option the problem is not
> reproducible.

You shouldn't ever need to pass --enable-multilib explicitly to toplevel
configure, as multilib is enabled by default.  On top of that, there is a bug
currently in that explicit --enable-multilib is handled wrongly, see PR 43328.


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

* [Bug bootstrap/45174] Make fails in zlib
       [not found] <bug-45174-4@http.gcc.gnu.org/bugzilla/>
  2010-10-02 14:52 ` rwild at gcc dot gnu.org
  2011-01-18  1:46 ` John.Tytgat at aaug dot net
@ 2011-01-18  6:29 ` John.Tytgat at aaug dot net
  2011-01-18  8:30 ` rwild at gcc dot gnu.org
  2011-04-12 19:36 ` dschlic1 at gmail dot com
  4 siblings, 0 replies; 26+ messages in thread
From: John.Tytgat at aaug dot net @ 2011-01-18  6:29 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45174

--- Comment #27 from John Tytgat <John.Tytgat at aaug dot net> 2011-01-18 01:17:29 UTC ---
Created attachment 23009
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23009
Build log and full copy of zlib and 32/zlib subdirectories in build directory


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

* [Bug bootstrap/45174] Make fails in zlib
       [not found] <bug-45174-4@http.gcc.gnu.org/bugzilla/>
  2010-10-02 14:52 ` rwild at gcc dot gnu.org
@ 2011-01-18  1:46 ` John.Tytgat at aaug dot net
  2011-01-18  6:29 ` John.Tytgat at aaug dot net
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 26+ messages in thread
From: John.Tytgat at aaug dot net @ 2011-01-18  1:46 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45174

John Tytgat <John.Tytgat at aaug dot net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |John.Tytgat at aaug dot net

--- Comment #26 from John Tytgat <John.Tytgat at aaug dot net> 2011-01-18 01:15:57 UTC ---
I'm seeing the same problem with gcc 4.6 trunk (r168937) for building a cross
compiler with target arm-unknown-eabi configured with newlib in tree.  The
crucial bit is --enable-multilib, without this option the problem is not
reproducible.

It looks like the --enable-multilib enables building the multilibs of the host
(instead of the target) for zlib.  In my case the host is (on Ubuntu 10.04):

$ gcc -dumpmachine
x86_64-linux-gnu
$ gcc -print-multi-lib
.;
32;@m32

I've attached my buildlog and the full content of gcc builddir subdirectories
'zlib' and '32/zlib' (the latter not present when --enable-multilib is
omitted).

Also like the original bug reporter is saying: I can avoid this problem by
specifying --with-system-zlib.


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

* [Bug bootstrap/45174] Make fails in zlib
       [not found] <bug-45174-4@http.gcc.gnu.org/bugzilla/>
@ 2010-10-02 14:52 ` rwild at gcc dot gnu.org
  2011-01-18  1:46 ` John.Tytgat at aaug dot net
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 26+ messages in thread
From: rwild at gcc dot gnu.org @ 2010-10-02 14:52 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45174

--- Comment #25 from Ralf Wildenhues <rwild at gcc dot gnu.org> 2010-10-02 14:52:12 UTC ---
Author: rwild
Date: Sat Oct  2 14:52:07 2010
New Revision: 164904

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=164904
Log:
Allow to pass separate configure arguments for build, host and target.

/:
    PR bootstrap/45326
    PR bootstrap/45174
    * configure.ac: Honor initial values of $build_configargs,
    $host_configargs, $target_configargs.  Mark the precious, so
    environment settings get recorded.
    * configure: Regenerate.

gcc/:
    * doc/install.texi (Configuration): Document build_configargs,
    host_configargs, target_configargs.

Modified:
    trunk/ChangeLog
    trunk/configure
    trunk/configure.ac
    trunk/gcc/ChangeLog
    trunk/gcc/doc/install.texi


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

end of thread, other threads:[~2011-04-12 19:36 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-03 22:20 [Bug bootstrap/45174] New: Make fails in zlib dschlic1 at gmail dot com
2010-08-03 22:23 ` [Bug bootstrap/45174] " dschlic1 at gmail dot com
2010-08-03 22:25 ` pinskia at gcc dot gnu dot org
2010-08-03 22:28 ` pinskia at gcc dot gnu dot org
2010-08-03 23:00 ` dschlic1 at gmail dot com
2010-08-03 23:14 ` pinskia at gcc dot gnu dot org
2010-08-03 23:22 ` dschlic1 at gmail dot com
2010-08-04  0:42 ` pinskia at gcc dot gnu dot org
2010-08-04  0:43 ` pinskia at gcc dot gnu dot org
2010-08-05  0:27 ` dschlic1 at gmail dot com
2010-08-05 17:01 ` rwild at gcc dot gnu dot org
2010-08-06 14:35 ` dschlic1 at gmail dot com
2010-08-06 17:22 ` rwild at gcc dot gnu dot org
2010-08-07  0:18 ` dschlic1 at gmail dot com
2010-08-07 14:29 ` rwild at gcc dot gnu dot org
2010-08-08 19:19 ` dschlic1 at gmail dot com
2010-08-08 20:44 ` rwild at gcc dot gnu dot org
2010-08-09  0:42 ` dschlic1 at gmail dot com
2010-09-07 14:49 ` ibolton at gcc dot gnu dot org
2010-09-08 10:06 ` ibolton at gcc dot gnu dot org
2010-09-08 16:27 ` rwild at gcc dot gnu dot org
     [not found] <bug-45174-4@http.gcc.gnu.org/bugzilla/>
2010-10-02 14:52 ` rwild at gcc dot gnu.org
2011-01-18  1:46 ` John.Tytgat at aaug dot net
2011-01-18  6:29 ` John.Tytgat at aaug dot net
2011-01-18  8:30 ` rwild at gcc dot gnu.org
2011-04-12 19:36 ` dschlic1 at gmail dot com

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).