2.8.3 not compiling on IRIX... strtoull issue?

Vadim Zeitlin vadim at wxwindows.org
Fri May 4 14:58:09 PDT 2007


On 4 May 2007 08:27:27 -0700 defreitas at gmail.com wrote:

> At the risk of sounding ignorant, isn't bk-deps only used when the
> source code is compiled? The file string.cpp is indeed being compiled
> with CC.

 Yes, bk-deps is indeed only used during build but it wasn't clear to me if
the problem was that CC was used even at that moment -- I was misled by
"cc" in the error messages.

> Isn't the problem with configure -- the test program that checks for
> strtoull is being compiled with cc instead of CC.

 Now, thanks to your run of bk-deps with "set -x" it's clear that it's
indeed this.

> strtoull It looks like the configure command file uses a variable called
> $ac_link to specify the build command and the last time it gets set
> (before the test for strtoull) it gets set to:
> 
> $ac_link='$CC -o ...'
> 
> instead of:
> 
> $ac_link='$CXX -o ...'
> 
> Confused,

 So was I. But the explanation is very simple, as usual, in such cases: I
just apparently forgot to regenerate configure after adding AC_LANG_XXX to
configure.in :-( I've done it now and the test should be done using the
correct compiler, it would be great if you could please test IRIX build
using the latest cvs sources from WX_2_8_BRANCH.


> + CC -c -o baselib_string.o -D__WXGTK__ -I../src/tiff -I../src/expat/
> lib -DwxUSE_GUI=0 -DwxUSE_BASE=1 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES
> -I/people/mdefreitas/wx/wxGTK/wxGTK-2.8.3/IRIX/lib/wx/include/gtk2-
> ansi-release-static-2.8 -I../include -D_REENTRANT -I/usr/freeware/
> include/glib-2.0 -I/usr/freeware/lib32/glib-2.0/include -I/usr/
> freeware/include/pango-1.0 -I/usr/freeware/include/gtk-2.0 -I/usr/
> freeware/include/atk-1.0 -I/usr/freeware/lib32/gtk-2.0/include -O -
> woff 3970 -n32 ../src/common/string.cpp
> cc-1685 : WARNING
>   Invalid error number:  3970.

 It would be also nice to fix this one presumably. Unfortunately the
compiler I used the last time I could test under IRIX (7.4.4m) gave this
warning for wxPtrToUInt() and, as the comment in configure.in says, I
couldn't find any way to silence it except for this switch. If you know how
to do it otherwise, by chance, with this compiler, please let us know.
Also, I wonder if this warning wouldn't be 64 bit specific by chance: does
the compiler still warn about it in 64 bit build?

 Thanks,
VZ

-- 
TT-Solutions: wxWidgets consultancy and technical support
               http://www.tt-solutions.com/





More information about the wx-users mailing list