Opened 17 years ago
Closed 15 years ago
#502 closed Support Requests (None)
Problem running configure for unsupported platform
| Reported by: | dkixk | Owned by: | John Maddock |
|---|---|---|---|
| Milestone: | Component: | Building Boost | |
| Version: | None | Severity: | Showstopper |
| Keywords: | Cc: |
Description (last modified by )
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.
Change History (4)
comment:2 by , 15 years ago
| Description: | modified (diff) |
|---|---|
| Reporter: | changed from to |
| Severity: | → Showstopper |
comment:3 by , 15 years ago
Hi, I found this open ticket after our move to TRAC, unfortunately the attachment appears to have got lost somewhere.
Can you tell me whether this is still an issue?
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.
Regards, John Maddock
comment:4 by , 15 years ago
| Status: | assigned → closed |
|---|
Not sure but I think this should be:
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
