Boost C++ Libraries: Ticket #502: Problem running configure for unsupported platform https://svn.boost.org/trac10/ticket/502 <pre class="wiki">I'm trying to build Boost for HP NonStop system using a cross compiler running on cygwin. I'm just starting out trying to run ".../boost/libs/config/configure" to generate an initial confg header. This is failing on the attempt to simply compile an empty "main" configure: failed program was: | /* confdefs.h. */ | | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } If I manually create such a file and compile it with the following line, I find the following: DKICK1@IL27-7496 /usr/local/boost_1_33_0/libs/config $ ls config.htm config.log configure duff.cc index.html test tools DKICK1@IL27-7496 /usr/local/boost_1_33_0/libs/config $ cat duff.cc int main () { ; return 0; } DKICK1@IL27-7496 /usr/local/boost_1_33_0/libs/config $ /usr/local/compaq-etk-nse/G06.24/bin/c89.exe -Wversion3 -Winspect -Wsaveabend -Wrefalign=2 -Wfieldalign=auto -Wnolist -Wverbose -WC -Wrunnamed -Whighpin=off -Wnld="-allow_missing_libs -libname $APPL1.CSSLIB.NLIBRARY -libvol $APPL1.CSSL IB" -Wsystype=guardian duff.cc c89 args: C:\Program Files\Compaq ETK-NSE\G06.24\bin\c89.exe -Wversion3 -Winspec t -Wsaveabend -Wrefalign=2 -Wfieldalign=auto -Wnolist -Wverbose -WC -Wrunnamed - Whighpin=off -Wnld=-allow_missing_libs -libname .CSSLIB.NLIBRARY -libvol .CSSLIB -Wsystype=guardian duff.cc C:\Program Files\Compaq ETK-NSE\G06.24\cmplr\cfe.dll loaded C:\Program Files\Compaq ETK-NSE\G06.24\cmplr\uopt.dll loaded C:\Program Files\Compaq ETK-NSE\G06.24\cmplr\ugen.dll loaded C:\Program Files\Compaq ETK-NSE\G06.24\cmplr\as1.dll loaded c89: running C:\Program Files\Compaq ETK-NSE\G06.24\cmplr\cfe.dll -ZtG -ZR2 -Zg0 -ZSD:\Profiles\DKICK1\LOCALS~1\Temp\t216328.T -ZUD:\Profiles\DKICK1\LOCALS~1\Te mp\t316328.B -D__cplusplus -a -ZnA -a -C -Zz -IC:\Program Files\Compaq ETK-NSE\G 06.24\include\ duff.cc c89: running C:\Program Files\Compaq ETK-NSE\G06.24\cmplr\ugen.dll D:\Profiles\D KICK1\LOCALS~1\Temp\t316328.B -o D:\Profiles\DKICK1\LOCALS~1\Temp\ugen216328.G - t D:\Profiles\DKICK1\LOCALS~1\Temp\t216328.T -temp D:\Profiles\DKICK1\LOCALS~1\T emp\ugen316328.t -EB -g0 -O1 -G 8 c89: running C:\Program Files\Compaq ETK-NSE\G06.24\cmplr\as1.dll D:\Profiles\DK ICK1\LOCALS~1\Temp\ugen216328.G -o duff.o -t D:\Profiles\DKICK1\LOCALS~1\Temp\t2 16328.T -Olimit 2500 -EB -g0 -O1 -elf -G 8 C:\Program Files\Compaq ETK-NSE\G06.24\cmplr\nld.dll loaded c89: running C:\Program Files\Compaq ETK-NSE\G06.24\cmplr\nld.dll -allow_missing _libs -libname .CSSLIB.NLIBRARY -libvol .CSSLIB -o a.out -elf -set systype guard ian -set highpin off -set highrequestor off -set inspect on -set runnamed on -se t saveabend on C:\Program Files\Compaq ETK-NSE\G06.24\lib\crtlmain.o C:\Program Files\Compaq ETK-NSE\G06.24\lib\cppinit3.o duff.o -L C:\Program Files\Compaq ETK -NSE\G06.24\lib\ -lstl -obey C:\Program Files\Compaq ETK-NSE\G06.24\lib\libc.obe y c89.exe: Exiting with status 0; 0 error(s). DKICK1@IL27-7496 /usr/local/boost_1_33_0/libs/config $ ls a.out config.htm config.log configure duff.cc index.html test tools DKICK1@IL27-7496 /usr/local/boost_1_33_0/libs/config $ However, if I try the following: DKICK1@IL27-7496 /usr/local/boost_1_33_0/libs/config $ sh ./configure CXX=/usr/local/compaq-etk-nse/G06.24/bin/c89 CXXFLAGS='-Wversi on3 -Winspect -Wsaveabend -Wrefalign=2 -Wfieldalign=auto -Wnolist -Wverbose -WC ' LDFLAGS='-Wrunnamed -Whighpin=off -Wnld="-allow_missing_libs -libname \$APPL1 .CSSLIB.NLIBRARY -libvol $APPL1.CSSLIB" -Wsystype=guardian' I get the attached config.log. I'm sure that the problem has something to do with quoting/expansion/etc. I've tried variations on the theme, including exporting these environment variables instead of passing them on the command line, but I can't seem to find the right combination of quotes and escapes to get configure to do what I want it to do. Any help? BTW, the option to get this compiler to dump the version is '-Wversion'. $ /usr/local/compaq-etk-nse/G06.24/bin/c89.exe -Wversion @(#) $Version: T8164G09_01MAR2004_c89_05MAR2004_WIN32V_ $c89.exe: error: No input file. I'm not sure how to get configure to use this option correctly, though. </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/502 Trac 1.4.3 dkixk Thu, 27 Oct 2005 18:06:01 GMT <link>https://svn.boost.org/trac10/ticket/502#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/502#comment:1</guid> <description> <pre class="wiki">Logged In: YES user_id=1287561 I had logged in before submitting this but it seemed to forget me. I'm adding this comment having logged in again to try and help track the issue. </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>René Rivera</dc:creator> <pubDate>Wed, 11 Jul 2007 15:17:53 GMT</pubDate> <title>description, reporter changed; severity set https://svn.boost.org/trac10/ticket/502#comment:2 https://svn.boost.org/trac10/ticket/502#comment:2 <ul> <li><strong>severity</strong> → <span class="trac-field-new">Showstopper</span> </li> <li><strong>description</strong> modified (<a href="/trac10/ticket/502?action=diff&amp;version=2">diff</a>) </li> <li><strong>reporter</strong> changed from <span class="trac-author">nobody</span> to <span class="trac-author">dkixk</span> </li> </ul> Ticket John Maddock Mon, 13 Aug 2007 18:31:35 GMT <link>https://svn.boost.org/trac10/ticket/502#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/502#comment:3</guid> <description> <p> Hi, I found this open ticket after our move to TRAC, unfortunately the attachment appears to have got lost somewhere. </p> <p> Can you tell me whether this is still an issue? </p> <p> BTW the current configure script isn't really designed for cross-compilers, as it does compile-and-run tests as well as just compile tests. </p> <p> Regards, John Maddock </p> </description> <category>Ticket</category> </item> <item> <dc:creator>John Maddock</dc:creator> <pubDate>Mon, 10 Sep 2007 10:56:22 GMT</pubDate> <title>status changed https://svn.boost.org/trac10/ticket/502#comment:4 https://svn.boost.org/trac10/ticket/502#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> </ul> <p> Not sure but I think this should be: </p> <p> export CXX=/usr/local/compaq-etk-nse/G06.24/bin/c89 export CXXFLAGS="-Wversion3 -Winspect -Wsaveabend -Wrefalign=2 -Wfieldalign=auto -Wnolist -Wverbose -WC" export LDFLAGS="-Wrunnamed -Whighpin=off -Wnld=\"-allow_missing_libs -libname \$APPL1.CSSLIB.NLIBRARY -libvol \$APPL1.CSSLIB\" -Wsystype=guardian" ./configure </p> Ticket