public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/26497]  New: libstdc++-v3: configure: test: -lt: unary operator expected
@ 2006-02-28 15:37 ralf dot corsepius at rtems dot org
  2006-02-28 15:59 ` [Bug libstdc++/26497] " pinskia at gcc dot gnu dot org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: ralf dot corsepius at rtems dot org @ 2006-02-28 15:37 UTC (permalink / raw)
  To: gcc-bugs

While cross building gcc-4.1.0 rc2 for sparc-sun-solaris2.7 on FC4, this error
is being issued:

...
checking for enabled iconv specializations... yes
checking for shared libgcc... yes
/users/rtems/src/rpms/BUILD/local-sparc-sun-solaris2.7-gcc-4.1.0_20060223/gcc-4.1.0/libstdc++-v3/configure:
line 87719: test: -lt: unary operator expected
checking for size_t as unsigned int... yes
checking for ptrdiff_t as int... yes
...

This is a sysroot'ed build, using vanilla FSF-binutils-2.16.1
config.log doesn't contain any indication on what might be going wrong.


-- 
           Summary: libstdc++-v3: configure: test: -lt: unary operator
                    expected
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ralf dot corsepius at rtems dot org
  GCC host triplet: i386-pc-linux-gnu
GCC target triplet: sparc-sun-solaris2.7


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


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

* [Bug libstdc++/26497] libstdc++-v3: configure: test: -lt: unary operator expected
  2006-02-28 15:37 [Bug libstdc++/26497] New: libstdc++-v3: configure: test: -lt: unary operator expected ralf dot corsepius at rtems dot org
@ 2006-02-28 15:59 ` pinskia at gcc dot gnu dot org
  2006-02-28 16:26 ` ralf dot corsepius at rtems dot org
                   ` (10 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-28 15:59 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-02-28 15:56 -------
  elif test $glibcxx_gnu_ld_version -lt $glibcxx_min_gnu_ld_version ; then

What options are you using to bootstrap with?


-- 


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


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

* [Bug libstdc++/26497] libstdc++-v3: configure: test: -lt: unary operator expected
  2006-02-28 15:37 [Bug libstdc++/26497] New: libstdc++-v3: configure: test: -lt: unary operator expected ralf dot corsepius at rtems dot org
  2006-02-28 15:59 ` [Bug libstdc++/26497] " pinskia at gcc dot gnu dot org
@ 2006-02-28 16:26 ` ralf dot corsepius at rtems dot org
  2006-02-28 18:15 ` schwab at suse dot de
                   ` (9 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: ralf dot corsepius at rtems dot org @ 2006-02-28 16:26 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from ralf dot corsepius at rtems dot org  2006-02-28 16:04 -------
../gcc-4.1.0/configure  \
--prefix=/usr/local --bindir=/usr/local/bin --includedir=/usr/local/include \
--libdir=/usr/local/lib --mandir=/usr/local/man \
--infodir=/usr/local/info \--datadir=/usr/local/share \
--build=i686-redhat-linux-gnu --host=i686-redhat-linux-gnu \
--target=sparc-sun-solaris2.7 --with-gnu-as --with-gnu-ld --verbose \
--with-system-zlib \
--disable-nls --without-included-gettext --disable-win32-registry \
--enable-version-specific-runtime-libs \
--with-sysroot=/usr/local/sparc-sun-solaris2.7/sys-root \
--enable-languages=c,c++


-- 


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


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

* [Bug libstdc++/26497] libstdc++-v3: configure: test: -lt: unary operator expected
  2006-02-28 15:37 [Bug libstdc++/26497] New: libstdc++-v3: configure: test: -lt: unary operator expected ralf dot corsepius at rtems dot org
  2006-02-28 15:59 ` [Bug libstdc++/26497] " pinskia at gcc dot gnu dot org
  2006-02-28 16:26 ` ralf dot corsepius at rtems dot org
@ 2006-02-28 18:15 ` schwab at suse dot de
  2006-03-01  6:38 ` ralf dot corsepius at rtems dot org
                   ` (8 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: schwab at suse dot de @ 2006-02-28 18:15 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from schwab at suse dot de  2006-02-28 18:15 -------
glibcxx_gnu_ld_version is only set when building natively, but used when
--with-gnu-ld which implies --enable-symvers=gnu.


-- 

schwab at suse dot de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2006-02-28 18:15:27
               date|                            |


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


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

* [Bug libstdc++/26497] libstdc++-v3: configure: test: -lt: unary operator expected
  2006-02-28 15:37 [Bug libstdc++/26497] New: libstdc++-v3: configure: test: -lt: unary operator expected ralf dot corsepius at rtems dot org
                   ` (2 preceding siblings ...)
  2006-02-28 18:15 ` schwab at suse dot de
@ 2006-03-01  6:38 ` ralf dot corsepius at rtems dot org
  2006-03-16  8:39 ` bkoz at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: ralf dot corsepius at rtems dot org @ 2006-03-01  6:38 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from ralf dot corsepius at rtems dot org  2006-03-01 06:38 -------
(In reply to comment #3)
> glibcxx_gnu_ld_version is only set when building natively, but used when
> --with-gnu-ld which implies --enable-symvers=gnu.

So what to do? Moving GLIBCXX_CHECK_LINKER_FEATURES out of the "native"
if-clause?


-- 


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


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

* [Bug libstdc++/26497] libstdc++-v3: configure: test: -lt: unary operator expected
  2006-02-28 15:37 [Bug libstdc++/26497] New: libstdc++-v3: configure: test: -lt: unary operator expected ralf dot corsepius at rtems dot org
                   ` (3 preceding siblings ...)
  2006-03-01  6:38 ` ralf dot corsepius at rtems dot org
@ 2006-03-16  8:39 ` bkoz at gcc dot gnu dot org
  2006-03-16  9:06 ` ralf dot corsepius at rtems dot org
                   ` (6 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: bkoz at gcc dot gnu dot org @ 2006-03-16  8:39 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from bkoz at gcc dot gnu dot org  2006-03-16 08:39 -------
> glibcxx_gnu_ld_version is only set when building natively, but used when
> --with-gnu-ld which implies --enable-symvers=gnu.

This is the bug. Unfortunately, GLIBCXX_CHECK_LINKER_FEATURES is a native-only
test. 

However, even if not native, if using GNU ld one should be able to get the
version  and thus set glibcxx_gnu_ld_version. I suppose that is the right way
to fix this.

-benjamin


-- 


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


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

* [Bug libstdc++/26497] libstdc++-v3: configure: test: -lt: unary operator expected
  2006-02-28 15:37 [Bug libstdc++/26497] New: libstdc++-v3: configure: test: -lt: unary operator expected ralf dot corsepius at rtems dot org
                   ` (4 preceding siblings ...)
  2006-03-16  8:39 ` bkoz at gcc dot gnu dot org
@ 2006-03-16  9:06 ` ralf dot corsepius at rtems dot org
  2006-03-17 18:31 ` bkoz at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: ralf dot corsepius at rtems dot org @ 2006-03-16  9:06 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from ralf dot corsepius at rtems dot org  2006-03-16 09:06 -------
(In reply to comment #5)
> Unfortunately, GLIBCXX_CHECK_LINKER_FEATURES is a native-only test. 
Could you explain why it is native-only? 

AFAIS, it tries to run the linker, which is a build-host tool at this point.


-- 


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


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

* [Bug libstdc++/26497] libstdc++-v3: configure: test: -lt: unary operator expected
  2006-02-28 15:37 [Bug libstdc++/26497] New: libstdc++-v3: configure: test: -lt: unary operator expected ralf dot corsepius at rtems dot org
                   ` (5 preceding siblings ...)
  2006-03-16  9:06 ` ralf dot corsepius at rtems dot org
@ 2006-03-17 18:31 ` bkoz at gcc dot gnu dot org
  2006-12-12 12:15 ` bkoz at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: bkoz at gcc dot gnu dot org @ 2006-03-17 18:31 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from bkoz at gcc dot gnu dot org  2006-03-17 18:31 -------

linking tests are native only, because finding all the support objects needed
for all the various platforms (crt.o, etc.) is hard. At least, this is the
traditional objection.

fixing glibcxx_gnu_ld_version still seems possible, see earlier comment.
Suggest you try this approach...


-- 


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


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

* [Bug libstdc++/26497] libstdc++-v3: configure: test: -lt: unary operator expected
  2006-02-28 15:37 [Bug libstdc++/26497] New: libstdc++-v3: configure: test: -lt: unary operator expected ralf dot corsepius at rtems dot org
                   ` (6 preceding siblings ...)
  2006-03-17 18:31 ` bkoz at gcc dot gnu dot org
@ 2006-12-12 12:15 ` bkoz at gcc dot gnu dot org
  2006-12-12 12:42 ` bkoz at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: bkoz at gcc dot gnu dot org @ 2006-12-12 12:15 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from bkoz at gcc dot gnu dot org  2006-12-12 12:14 -------
Created an attachment (id=12789)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12789&action=view)
add check_linker_features for solaris crosses


-- 


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


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

* [Bug libstdc++/26497] libstdc++-v3: configure: test: -lt: unary operator expected
  2006-02-28 15:37 [Bug libstdc++/26497] New: libstdc++-v3: configure: test: -lt: unary operator expected ralf dot corsepius at rtems dot org
                   ` (7 preceding siblings ...)
  2006-12-12 12:15 ` bkoz at gcc dot gnu dot org
@ 2006-12-12 12:42 ` bkoz at gcc dot gnu dot org
  2006-12-12 13:13 ` bkoz at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: bkoz at gcc dot gnu dot org @ 2006-12-12 12:42 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from bkoz at gcc dot gnu dot org  2006-12-12 12:41 -------
Subject: Bug 26497

Author: bkoz
Date: Tue Dec 12 12:41:26 2006
New Revision: 119778

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=119778
Log:

2006-12-12  Benjamin Kosnik  <bkoz@redhat.com>

        PR libstdc++/26497
        * crossconfig.m4: Add GLIBCXX_CHECK_LINKER_FEATURES for Solaris.
        * acinclude.m4 (GLIBCXX_CHECK_LINKER_FEATURES): Set
        glibcxx_gnu_ld_version only when with GNU ld confirmed. 
        * configure: Regenerate.


Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/acinclude.m4
    trunk/libstdc++-v3/configure
    trunk/libstdc++-v3/crossconfig.m4


-- 


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


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

* [Bug libstdc++/26497] libstdc++-v3: configure: test: -lt: unary operator expected
  2006-02-28 15:37 [Bug libstdc++/26497] New: libstdc++-v3: configure: test: -lt: unary operator expected ralf dot corsepius at rtems dot org
                   ` (9 preceding siblings ...)
  2006-12-12 13:13 ` bkoz at gcc dot gnu dot org
@ 2006-12-12 13:13 ` bkoz at gcc dot gnu dot org
  2006-12-12 13:14 ` bkoz at gcc dot gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: bkoz at gcc dot gnu dot org @ 2006-12-12 13:13 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #11 from bkoz at gcc dot gnu dot org  2006-12-12 13:13 -------
Subject: Bug 26497

Author: bkoz
Date: Tue Dec 12 13:13:21 2006
New Revision: 119781

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=119781
Log:
2006-12-12  Benjamin Kosnik  <bkoz@redhat.com>

        PR libstdc++/26497
        * crossconfig.m4: Add GLIBCXX_CHECK_LINKER_FEATURES for Solaris.
        * acinclude.m4 (GLIBCXX_CHECK_LINKER_FEATURES): Set
        glibcxx_gnu_ld_version only when with GNU ld confirmed. 
        * configure: Regenerate.


Modified:
    branches/gcc-4_1-branch/libstdc++-v3/ChangeLog
    branches/gcc-4_1-branch/libstdc++-v3/acinclude.m4
    branches/gcc-4_1-branch/libstdc++-v3/configure
    branches/gcc-4_1-branch/libstdc++-v3/crossconfig.m4


-- 


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


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

* [Bug libstdc++/26497] libstdc++-v3: configure: test: -lt: unary operator expected
  2006-02-28 15:37 [Bug libstdc++/26497] New: libstdc++-v3: configure: test: -lt: unary operator expected ralf dot corsepius at rtems dot org
                   ` (8 preceding siblings ...)
  2006-12-12 12:42 ` bkoz at gcc dot gnu dot org
@ 2006-12-12 13:13 ` bkoz at gcc dot gnu dot org
  2006-12-12 13:13 ` bkoz at gcc dot gnu dot org
  2006-12-12 13:14 ` bkoz at gcc dot gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: bkoz at gcc dot gnu dot org @ 2006-12-12 13:13 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from bkoz at gcc dot gnu dot org  2006-12-12 13:13 -------
Subject: Bug 26497

Author: bkoz
Date: Tue Dec 12 13:13:08 2006
New Revision: 119780

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=119780
Log:
2006-12-12  Benjamin Kosnik  <bkoz@redhat.com>

        PR libstdc++/26497
        * crossconfig.m4: Add GLIBCXX_CHECK_LINKER_FEATURES for Solaris.
        * acinclude.m4 (GLIBCXX_CHECK_LINKER_FEATURES): Set
        glibcxx_gnu_ld_version only when with GNU ld confirmed. 
        * configure: Regenerate.


Modified:
    branches/gcc-4_2-branch/libstdc++-v3/ChangeLog
    branches/gcc-4_2-branch/libstdc++-v3/acinclude.m4
    branches/gcc-4_2-branch/libstdc++-v3/configure
    branches/gcc-4_2-branch/libstdc++-v3/crossconfig.m4


-- 


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


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

* [Bug libstdc++/26497] libstdc++-v3: configure: test: -lt: unary operator expected
  2006-02-28 15:37 [Bug libstdc++/26497] New: libstdc++-v3: configure: test: -lt: unary operator expected ralf dot corsepius at rtems dot org
                   ` (10 preceding siblings ...)
  2006-12-12 13:13 ` bkoz at gcc dot gnu dot org
@ 2006-12-12 13:14 ` bkoz at gcc dot gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: bkoz at gcc dot gnu dot org @ 2006-12-12 13:14 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #12 from bkoz at gcc dot gnu dot org  2006-12-12 13:14 -------

Fixed.


-- 

bkoz at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.1.3


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


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

end of thread, other threads:[~2006-12-12 13:14 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-28 15:37 [Bug libstdc++/26497] New: libstdc++-v3: configure: test: -lt: unary operator expected ralf dot corsepius at rtems dot org
2006-02-28 15:59 ` [Bug libstdc++/26497] " pinskia at gcc dot gnu dot org
2006-02-28 16:26 ` ralf dot corsepius at rtems dot org
2006-02-28 18:15 ` schwab at suse dot de
2006-03-01  6:38 ` ralf dot corsepius at rtems dot org
2006-03-16  8:39 ` bkoz at gcc dot gnu dot org
2006-03-16  9:06 ` ralf dot corsepius at rtems dot org
2006-03-17 18:31 ` bkoz at gcc dot gnu dot org
2006-12-12 12:15 ` bkoz at gcc dot gnu dot org
2006-12-12 12:42 ` bkoz at gcc dot gnu dot org
2006-12-12 13:13 ` bkoz at gcc dot gnu dot org
2006-12-12 13:13 ` bkoz at gcc dot gnu dot org
2006-12-12 13:14 ` bkoz at gcc dot gnu dot org

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