Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 95976 invoked from network); 8 Mar 2007 17:46:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Mar 2007 17:46:44 -0000 Received: (qmail 34042 invoked by uid 500); 8 Mar 2007 17:46:52 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 34026 invoked by uid 500); 8 Mar 2007 17:46:52 -0000 Mailing-List: contact stdcxx-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-dev@incubator.apache.org Delivered-To: mailing list stdcxx-dev@incubator.apache.org Received: (qmail 34015 invoked by uid 99); 8 Mar 2007 17:46:52 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Mar 2007 09:46:52 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [208.30.140.160] (HELO moroha.quovadx.com) (208.30.140.160) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Mar 2007 09:46:41 -0800 Received: from qxvcexch01.ad.quovadx.com ([192.168.170.59]) by moroha.quovadx.com (8.13.6/8.13.6) with ESMTP id l28HkIcX025381 for ; Thu, 8 Mar 2007 17:46:19 GMT Received: from [10.70.3.113] ([10.70.3.113]) by qxvcexch01.ad.quovadx.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 8 Mar 2007 10:46:06 -0700 Message-ID: <45F04C82.70707@roguewave.com> Date: Thu, 08 Mar 2007 10:48:50 -0700 From: Martin Sebor Organization: Rogue Wave Software User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.2pre) Gecko/20070111 SeaMonkey/1.1 MIME-Version: 1.0 To: stdcxx-dev@incubator.apache.org Subject: Re: xlC link errors caused by commas in BUILDDIR References: <45EF0BEF.7080003@roguewave.com> <45EF2262.6080506@roguewave.com> In-Reply-To: <45EF2262.6080506@roguewave.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 08 Mar 2007 17:46:07.0045 (UTC) FILETIME=[A647F750:01C761A9] X-Virus-Checked: Checked by ClamAV on apache.org Andrew Black wrote: > Greetings Martin. > > For what it's worth, this isn't a problem restricted to XLC++. My > reading of the .config files indicates that the only compilers that > won't be affected are the osf_cxx, Sunpro, reliant_cds, como and eccp > compilers. The first two compilers don't use a comma in the rpath > option, and the remainder don't have an rpath switch defined. > > It might be possible to alter the makefiles to mangle the path, escaping > the comma, but I suspect that could cause other problems. I would > hazard a guess that spaces in the value of $BUILDDIR might also cause a > number of problems. Spaces in file names are known not to work on UNIX in general because they are reserved by all utilities to separate command line arguments and options. Commas are not reserved by most utilities and they are handled fine in most cases so when they don't work it's likely to be surprising to users, especially if they don't cause any problems in archive builds (they don't appear to). Martin > > --Andrew Black > > Martin Sebor wrote: >> I've run into a linker error when building with IBM XLC++ >> in a directory whose name contains a comma (see below). >> The problem is that we're passing the absolute pathname >> of $BUILDDIR/lib to the linker via the -Wl compiler driver >> option. This option uses the comma to separate individual >> arguments from one another. I don't know if it's worth >> trying to deal with this or not but I thought I'd mention >> it in case someone else runs into the same problem or in >> case Andrew has an idea for how to fix it. >> >> Martin >> >> $ nice gmake BUILDMODE=shared,debug >> BUILDDIR=/build/sebor/tmp/stdcxx-vacpp-7.0-shared,debug >> GNUmakefile:289: "CONFIG not specified, using vacpp.config" >> expr: 0402-050 Syntax error. >> creating BUILDDIR=/build/sebor/tmp/stdcxx-vacpp-7.0-shared,debug >> generating /build/sebor/tmp/stdcxx-vacpp-7.0-shared,debug/makefile.in >> from /amd/devco/sebor/stdcxx/etc/config/vacpp.config >> expr: 0402-050 Syntax error. >> gmake[1]: Entering directory >> `/build/sebor/tmp/stdcxx-vacpp-7.0-shared,debug' >> gmake[2]: Entering directory >> `/build/sebor/tmp/stdcxx-vacpp-7.0-shared,debug/include' >> gmake config >> gmake[3]: Entering directory >> `/build/sebor/tmp/stdcxx-vacpp-7.0-shared,debug/include' >> >> configuring for xlCcore- on aix-5.3 >> >> checking if the compiler is sane ok (invoked with >> xlCcore) >> checking if the linker is sane ok (invoked with >> xlCcore) >> ... >> gmake[2]: Entering directory >> `/build/sebor/tmp/stdcxx-vacpp-7.0-shared,debug/examples' >> xlCcore -c -I/amd/devco/sebor/stdcxx/include/ansi -D_RWSTDDEBUG >> -D_RWSTD_USE_CONFIG -I/amd/devco/sebor/stdcxx/include >> -I/build/sebor/tmp/stdcxx-vacpp-7.0-shared,debug/include >> -I/amd/devco/sebor/stdcxx/examples/include -g >> -qtemplateregistry=accumulate.ti >> /amd/devco/sebor/stdcxx/examples/manual/accumulate.cpp >> xlCcore accumulate.o -o accumulate >> -I/amd/devco/sebor/stdcxx/include/ansi -D_RWSTDDEBUG >> -D_RWSTD_USE_CONFIG -liconv -brtl >> -L/build/sebor/tmp/stdcxx-vacpp-7.0-shared,debug/lib -lstd >> -Wl,-bsvr4,-R/build/sebor/tmp/stdcxx-vacpp-7.0-shared,debug/lib -lm >> -qtemplateregistry=accumulate.ti >> ld: 0706-005 Cannot find or open file: debug/lib >> ld:open(): A file or directory in the path name does not exist. >> gmake[2]: *** [accumulate] Error 255 >> gmake[2]: Leaving directory >> `/build/sebor/tmp/stdcxx-vacpp-7.0-shared,debug/examples' >> gmake[1]: [examples] Error 2 (ignored) >> >