Skip to content

hsc cast size warnings on 32-bit Linux

When compiling the gtk package with GHC 7.9.20140308 I get a bunch of warnings as outlined below. I'm on 32-bit system. Apparently this is something that should be reported.

In file included from dist/dist-sandbox-c4fc5f8b/build/Graphics/UI/Gtk/General/Structs_hsc_make.c:1:0:
Structs.hsc: In function ‘main’:
/home/shana/ghc-20140308/lib/ghc-7.9.20140308/template-hsc.h:36:29: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
         hsc_printf ("%lld", (long long)(x));          \
                             ^
Structs.hsc:1020:5: note: in expansion of macro ‘hsc_const’
/home/shana/ghc-20140308/lib/ghc-7.9.20140308/template-hsc.h:38:29: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
         hsc_printf ("%llu", (unsigned long long)(x));
                             ^
Structs.hsc:1020:5: note: in expansion of macro ‘hsc_const’
/home/shana/ghc-20140308/lib/ghc-7.9.20140308/template-hsc.h:36:29: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
         hsc_printf ("%lld", (long long)(x));          \
                             ^
Structs.hsc:1025:5: note: in expansion of macro ‘hsc_const’
/home/shana/ghc-20140308/lib/ghc-7.9.20140308/template-hsc.h:38:29: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
         hsc_printf ("%llu", (unsigned long long)(x));
                             ^
Structs.hsc:1025:5: note: in expansion of macro ‘hsc_const’
/home/shana/ghc-20140308/lib/ghc-7.9.20140308/template-hsc.h:36:29: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
         hsc_printf ("%lld", (long long)(x));          \
                             ^
Structs.hsc:1029:5: note: in expansion of macro ‘hsc_const’
/home/shana/ghc-20140308/lib/ghc-7.9.20140308/template-hsc.h:38:29: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
         hsc_printf ("%llu", (unsigned long long)(x));
                             ^
Structs.hsc:1029:5: note: in expansion of macro ‘hsc_const’
/home/shana/ghc-20140308/lib/ghc-7.9.20140308/template-hsc.h:36:29: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
         hsc_printf ("%lld", (long long)(x));          \
                             ^
Structs.hsc:1033:5: note: in expansion of macro ‘hsc_const’
/home/shana/ghc-20140308/lib/ghc-7.9.20140308/template-hsc.h:38:29: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
         hsc_printf ("%llu", (unsigned long long)(x));
                             ^
Structs.hsc:1033:5: note: in expansion of macro ‘hsc_const’
/home/shana/ghc-20140308/lib/ghc-7.9.20140308/template-hsc.h:36:29: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
         hsc_printf ("%lld", (long long)(x));          \
                             ^
Structs.hsc:1037:5: note: in expansion of macro ‘hsc_const’
/home/shana/ghc-20140308/lib/ghc-7.9.20140308/template-hsc.h:38:29: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
         hsc_printf ("%llu", (unsigned long long)(x));
                             ^
Structs.hsc:1037:5: note: in expansion of macro ‘hsc_const’
/home/shana/ghc-20140308/lib/ghc-7.9.20140308/template-hsc.h:36:29: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
         hsc_printf ("%lld", (long long)(x));          \
                             ^
Structs.hsc:1042:5: note: in expansion of macro ‘hsc_const’
/home/shana/ghc-20140308/lib/ghc-7.9.20140308/template-hsc.h:38:29: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
         hsc_printf ("%llu", (unsigned long long)(x));
                             ^
Structs.hsc:1042:5: note: in expansion of macro ‘hsc_const’
/home/shana/ghc-20140308/lib/ghc-7.9.20140308/template-hsc.h:36:29: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
         hsc_printf ("%lld", (long long)(x));          \
                             ^
Structs.hsc:1046:5: note: in expansion of macro ‘hsc_const’
/home/shana/ghc-20140308/lib/ghc-7.9.20140308/template-hsc.h:38:29: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
         hsc_printf ("%llu", (unsigned long long)(x));
                             ^
Structs.hsc:1046:5: note: in expansion of macro ‘hsc_const’
/home/shana/ghc-20140308/lib/ghc-7.9.20140308/template-hsc.h:36:29: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
         hsc_printf ("%lld", (long long)(x));          \
                             ^
Structs.hsc:1051:5: note: in expansion of macro ‘hsc_const’
/home/shana/ghc-20140308/lib/ghc-7.9.20140308/template-hsc.h:38:29: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
         hsc_printf ("%llu", (unsigned long long)(x));
Trac metadata
Trac field Value
Version 7.9
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component hsc2hs
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture Unknown/Multiple
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information