You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stdcxx.apache.org by "Martin Sebor (JIRA)" <ji...@apache.org> on 2007/07/07 23:36:04 UTC

[jira] Created: (STDCXX-470) [Sun C++/Solaris/AMD64] BUILDMODE=wide has no effect

[Sun C++/Solaris/AMD64] BUILDMODE=wide has no effect
----------------------------------------------------

                 Key: STDCXX-470
                 URL: https://issues.apache.org/jira/browse/STDCXX-470
             Project: C++ Standard Library
          Issue Type: Bug
          Components: Configuration
    Affects Versions: 4.2
         Environment: Sun C++/Solaris/AMD64
            Reporter: Martin Sebor


>From http://mail-archives.apache.org/mod_mbox/incubator-stdcxx-dev/200707.mbox/%3cd21d65950707071209r1fe0b9b3wdc96b221477c9094@mail.gmail.com%3e

-------- Original Message --------
Subject: config with wide has no effect on Solaris/Intel + patch
Date: Sat, 7 Jul 2007 21:09:04 +0200
From: Michael van der Westhuizen <r1...@gmail.com>
Reply-To: stdcxx-dev@incubator.apache.org
To: Apache stdcxx Developers <st...@incubator.apache.org>

Hi,

I thought it was just me going mad, but a quick glance at
http://people.apache.org/~sebor/stdcxx/results/solaris-10-amd64-sunpro-64b-5.8-12S-solaris-553686-log.gz.txt
confirms that I'm right.

After configuring as: gmake builddir
BUILDMODE=threads,archive,optimized,wide CONFIG=sunpro.config

I see command-lines like this:
CC -c -mt -D_RWSTD_SOLARIS_THREADS -I$(TOPDIR)/include
-I$(BUILDDIR)/include  -library=%none -O   +w
$(TOPDIR)/src/assert.cpp

Note that on Solaris CXXFLAGS.wide is supposed to be -xarch=amd64, but
this is not being used by the build system.

Hunting this down, it seems that sunpro.config expects "uname -p" to
return amd64 on 64 bit Solaris/Intel. This is not true, it returns
i386.

The following patch fixes this for Solaris only - I don't run Sun
Studio on Linux, so I don't know if this is broken there or not.

Michael

Index: etc/config/sunpro.config
===================================================================
--- etc/config/sunpro.config    (revision 554241)
+++ etc/config/sunpro.config    (working copy)
@@ -89,6 +89,9 @@
else
    # wide (64-bit) flags -- must be set explicitly
    # narrow (32-bit) flags are implicit on AMD64
+    ifeq ($(OSNAME),SunOS)
+        arch=$(shell /usr/bin/optisa amd64)
+    endif
    ifeq ($(arch),amd64)
        wide_flags     = -xarch=amd64
        narrow_flags   =


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (STDCXX-470) [Sun C++/Solaris/AMD64] BUILDMODE=wide has no effect

Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/STDCXX-470?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Sebor updated STDCXX-470:
--------------------------------

    Affects Version/s:     (was: 4.2)
                       4.1.3

I suspect (but haven't actually confirmed) that this affects 4.1.3 in addition to trunk at the time report was filed.

> [Sun C++/Solaris/AMD64] BUILDMODE=wide has no effect
> ----------------------------------------------------
>
>                 Key: STDCXX-470
>                 URL: https://issues.apache.org/jira/browse/STDCXX-470
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: Configuration
>    Affects Versions: 4.1.3
>         Environment: Sun C++/Solaris/AMD64
>            Reporter: Martin Sebor
>            Assignee: Martin Sebor
>             Fix For: 4.2
>
>
> From http://mail-archives.apache.org/mod_mbox/incubator-stdcxx-dev/200707.mbox/%3cd21d65950707071209r1fe0b9b3wdc96b221477c9094@mail.gmail.com%3e
> -------- Original Message --------
> Subject: config with wide has no effect on Solaris/Intel + patch
> Date: Sat, 7 Jul 2007 21:09:04 +0200
> From: Michael van der Westhuizen <r1...@gmail.com>
> Reply-To: stdcxx-dev@incubator.apache.org
> To: Apache stdcxx Developers <st...@incubator.apache.org>
> Hi,
> I thought it was just me going mad, but a quick glance at
> http://people.apache.org/~sebor/stdcxx/results/solaris-10-amd64-sunpro-64b-5.8-12S-solaris-553686-log.gz.txt
> confirms that I'm right.
> After configuring as: gmake builddir
> BUILDMODE=threads,archive,optimized,wide CONFIG=sunpro.config
> I see command-lines like this:
> CC -c -mt -D_RWSTD_SOLARIS_THREADS -I$(TOPDIR)/include
> -I$(BUILDDIR)/include  -library=%none -O   +w
> $(TOPDIR)/src/assert.cpp
> Note that on Solaris CXXFLAGS.wide is supposed to be -xarch=amd64, but
> this is not being used by the build system.
> Hunting this down, it seems that sunpro.config expects "uname -p" to
> return amd64 on 64 bit Solaris/Intel. This is not true, it returns
> i386.
> The following patch fixes this for Solaris only - I don't run Sun
> Studio on Linux, so I don't know if this is broken there or not.
> Michael
> Index: etc/config/sunpro.config
> ===================================================================
> --- etc/config/sunpro.config    (revision 554241)
> +++ etc/config/sunpro.config    (working copy)
> @@ -89,6 +89,9 @@
> else
>     # wide (64-bit) flags -- must be set explicitly
>     # narrow (32-bit) flags are implicit on AMD64
> +    ifeq ($(OSNAME),SunOS)
> +        arch=$(shell /usr/bin/optisa amd64)
> +    endif
>     ifeq ($(arch),amd64)
>         wide_flags     = -xarch=amd64
>         narrow_flags   =

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (STDCXX-470) [Sun C++/Solaris/AMD64] BUILDMODE=wide has no effect

Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/STDCXX-470?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Sebor closed STDCXX-470.
-------------------------------

       Resolution: Fixed
    Fix Version/s: 4.2

Nightly build results confirm that the patch fixed it.

> [Sun C++/Solaris/AMD64] BUILDMODE=wide has no effect
> ----------------------------------------------------
>
>                 Key: STDCXX-470
>                 URL: https://issues.apache.org/jira/browse/STDCXX-470
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: Configuration
>    Affects Versions: 4.1.3
>         Environment: Sun C++/Solaris/AMD64
>            Reporter: Martin Sebor
>            Assignee: Martin Sebor
>             Fix For: 4.2
>
>
> From http://mail-archives.apache.org/mod_mbox/incubator-stdcxx-dev/200707.mbox/%3cd21d65950707071209r1fe0b9b3wdc96b221477c9094@mail.gmail.com%3e
> -------- Original Message --------
> Subject: config with wide has no effect on Solaris/Intel + patch
> Date: Sat, 7 Jul 2007 21:09:04 +0200
> From: Michael van der Westhuizen <r1...@gmail.com>
> Reply-To: stdcxx-dev@incubator.apache.org
> To: Apache stdcxx Developers <st...@incubator.apache.org>
> Hi,
> I thought it was just me going mad, but a quick glance at
> http://people.apache.org/~sebor/stdcxx/results/solaris-10-amd64-sunpro-64b-5.8-12S-solaris-553686-log.gz.txt
> confirms that I'm right.
> After configuring as: gmake builddir
> BUILDMODE=threads,archive,optimized,wide CONFIG=sunpro.config
> I see command-lines like this:
> CC -c -mt -D_RWSTD_SOLARIS_THREADS -I$(TOPDIR)/include
> -I$(BUILDDIR)/include  -library=%none -O   +w
> $(TOPDIR)/src/assert.cpp
> Note that on Solaris CXXFLAGS.wide is supposed to be -xarch=amd64, but
> this is not being used by the build system.
> Hunting this down, it seems that sunpro.config expects "uname -p" to
> return amd64 on 64 bit Solaris/Intel. This is not true, it returns
> i386.
> The following patch fixes this for Solaris only - I don't run Sun
> Studio on Linux, so I don't know if this is broken there or not.
> Michael
> Index: etc/config/sunpro.config
> ===================================================================
> --- etc/config/sunpro.config    (revision 554241)
> +++ etc/config/sunpro.config    (working copy)
> @@ -89,6 +89,9 @@
> else
>     # wide (64-bit) flags -- must be set explicitly
>     # narrow (32-bit) flags are implicit on AMD64
> +    ifeq ($(OSNAME),SunOS)
> +        arch=$(shell /usr/bin/optisa amd64)
> +    endif
>     ifeq ($(arch),amd64)
>         wide_flags     = -xarch=amd64
>         narrow_flags   =

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (STDCXX-470) [Sun C++/Solaris/AMD64] BUILDMODE=wide has no effect

Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/STDCXX-470?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Sebor reassigned STDCXX-470:
-----------------------------------

    Assignee: Martin Sebor

> [Sun C++/Solaris/AMD64] BUILDMODE=wide has no effect
> ----------------------------------------------------
>
>                 Key: STDCXX-470
>                 URL: https://issues.apache.org/jira/browse/STDCXX-470
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: Configuration
>    Affects Versions: 4.2
>         Environment: Sun C++/Solaris/AMD64
>            Reporter: Martin Sebor
>            Assignee: Martin Sebor
>
> From http://mail-archives.apache.org/mod_mbox/incubator-stdcxx-dev/200707.mbox/%3cd21d65950707071209r1fe0b9b3wdc96b221477c9094@mail.gmail.com%3e
> -------- Original Message --------
> Subject: config with wide has no effect on Solaris/Intel + patch
> Date: Sat, 7 Jul 2007 21:09:04 +0200
> From: Michael van der Westhuizen <r1...@gmail.com>
> Reply-To: stdcxx-dev@incubator.apache.org
> To: Apache stdcxx Developers <st...@incubator.apache.org>
> Hi,
> I thought it was just me going mad, but a quick glance at
> http://people.apache.org/~sebor/stdcxx/results/solaris-10-amd64-sunpro-64b-5.8-12S-solaris-553686-log.gz.txt
> confirms that I'm right.
> After configuring as: gmake builddir
> BUILDMODE=threads,archive,optimized,wide CONFIG=sunpro.config
> I see command-lines like this:
> CC -c -mt -D_RWSTD_SOLARIS_THREADS -I$(TOPDIR)/include
> -I$(BUILDDIR)/include  -library=%none -O   +w
> $(TOPDIR)/src/assert.cpp
> Note that on Solaris CXXFLAGS.wide is supposed to be -xarch=amd64, but
> this is not being used by the build system.
> Hunting this down, it seems that sunpro.config expects "uname -p" to
> return amd64 on 64 bit Solaris/Intel. This is not true, it returns
> i386.
> The following patch fixes this for Solaris only - I don't run Sun
> Studio on Linux, so I don't know if this is broken there or not.
> Michael
> Index: etc/config/sunpro.config
> ===================================================================
> --- etc/config/sunpro.config    (revision 554241)
> +++ etc/config/sunpro.config    (working copy)
> @@ -89,6 +89,9 @@
> else
>     # wide (64-bit) flags -- must be set explicitly
>     # narrow (32-bit) flags are implicit on AMD64
> +    ifeq ($(OSNAME),SunOS)
> +        arch=$(shell /usr/bin/optisa amd64)
> +    endif
>     ifeq ($(arch),amd64)
>         wide_flags     = -xarch=amd64
>         narrow_flags   =

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.