[Mono-bugs] [Bug 61752][Blo] New - compiler fails to build, but only issues warnings (HPUX/Itanium)

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 20 Jul 2004 05:07:11 -0400 (EDT)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by bebark2@uky.edu.

http://bugzilla.ximian.com/show_bug.cgi?id=61752

--- shadow/61752	2004-07-20 05:07:11.000000000 -0400
+++ shadow/61752.tmp.9578	2004-07-20 05:07:11.000000000 -0400
@@ -0,0 +1,230 @@
+Bug#: 61752
+Product: Mono: Compilers
+Version: unspecified
+OS: HP-UX 11.22
+OS Details: HP-UX 11.23 running on an Itanium SuperDome
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Blocker
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: bebark2@uky.edu               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: compiler fails to build, but only issues warnings (HPUX/Itanium)
+
+I've been putting a lot of effort into getting the mono interpreter running 
+on HP-UX/Itanium (mainly in getting needed utilities and dependencies 
+running ... it should be noted that I do not have root access).  Now that 
+I've actually gotten the dependencies taken care of, make is failing during 
+the boot srap procedure of the CVS version, with only warnings so I'm not 
+sure where to look to fix things(note here I'm using HP's aCC compiler, 
+which built glib w/o problems ... in fact, on this system gcc 3.3.2 had an 
+internal compiler error and choked on glib):
+
+creating libmetadata.la
+(cd .libs && rm -f libmetadata.la && ln -s ../libmetadata.la libmetadata.
+la)
+source='reflection.c' object='reflection.lo' libtool=yes \
+depfile='.deps/reflection.Plo' tmpdepfile='.deps/reflection.TPlo' \
+depmode=none /bin/sh ../../depcomp \
+/bin/sh ../../libtool --mode=compile aCC -Ae -DHAVE_CONFIG_H -I. -I. -I../.
+. -I../.. -I../../mono -I../../libgc/include -D_REENTRANT -I/u/home2/
+bebark2/local/include/glib-2.0 -I/u/home2/bebark2/local/lib/glib-2.0/
+include   -I/u/home2/bebark2/local/include/glib-2.0 -I/u/home2/bebark2/
+local/lib/glib-2.0/include    -DMONO_ASSEMBLIES=\"/u/home2/bebark2/local/
+lib\" -DMONO_CFG_DIR=\"/u/home2/bebark2/local/etc\"  -I/u/home2/bebark2/
+local/include -DGC_HPUX_THREADS -D_HPUX_SOURCE -D_XOPEN_SOURCE_EXTENDED -
+D_REENTRANT -D_FILE_OFFSET_BITS=64 -DNO_PORT  +ESdbgasm -g  -c -o 
+reflection.lo reflection.c
+ aCC -Ae -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../mono -I../../
+libgc/include -D_REENTRANT -I/u/home2/bebark2/local/include/glib-2.0 -I/u/
+home2/bebark2/local/lib/glib-2.0/include -I/u/home2/bebark2/local/include/
+glib-2.0 -I/u/home2/bebark2/local/lib/glib-2.0/include -
+DMONO_ASSEMBLIES=\"/u/home2/bebark2/local/lib\" -DMONO_CFG_DIR=\"/u/home2/
+bebark2/local/etc\" -I/u/home2/bebark2/local/include -DGC_HPUX_THREADS -
+D_HPUX_SOURCE -D_XOPEN_SOURCE_EXTENDED -D_REENTRANT -D_FILE_OFFSET_BITS=64 
+-DNO_PORT +ESdbgasm -g -c reflection.c  -DPIC -o .libs/reflection.o
+Warning 129: "/usr/include/sys/param.h", line 432 # Redefinition of macro 
+'MIN' differs from previous definition at
+    ["/u/home2/bebark2/local/include/glib-2.0/glib/gmacros.h", line 154].
+    #define MIN(a,b) (((a)<(b))?(a):(b))
+            ^^^
+Warning 129: "/usr/include/sys/param.h", line 433 # Redefinition of macro 
+'MAX' differs from previous definition at
+    ["/u/home2/bebark2/local/include/glib-2.0/glib/gmacros.h", line 151].
+    #define MAX(a,b) (((a)>(b))?(a):(b))
+            ^^^
+Warning 942: "reflection.c", line 880 # Types 'const unsigned char *' and 
+'const char *' are not assignment-compatible.
+                    MonoException *exception = mono_get_exception_argument 
+(NULL, "a method does not have any IL associated");
+                                                                            
+      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+Warning 942: "reflection.c", line 948 # Types 'const char *' and 'unsigned 
+char *' are not assignment-compatible.
+                    mono_image_add_stream_data (&assembly->code, sheader, 
+4);
+                                                                 ^^^^^^^
+Warning 942: "reflection.c", line 1025 # Types 'const unsigned char *' and 
+'char *' are not assignment-compatible.
+                    ainfo->attrs [i].data = mono_array_addr (cattr->data, 
+char, 0);
+                    ^^^^^^^^^^^^^^^^^^^^^
+Error 201: "reflection.c", line 1424 # Pointer operands must be of the same 
+type for operator ':'; comparison of 'unsigned char *' and 'const char *'.
+                    ta->aname.public_key_token [0] ? ta->aname.
+public_key_token : "null");
+                                                     
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+Warning 942: "reflection.c", line 2083 # Types 'const unsigned char *' and 
+'const char *' are not assignment-compatible.
+                    mono_digest_get_public_token (pubtoken + 1, pubkey, 
+publen);
+                                                                ^^^^^^
+Warning 942: "reflection.c", line 2084 # Types 'const char *' and 'unsigned 
+char *' are not assignment-compatible.
+    YREF_PUBLIC_KEY] = mono_image_add_stream_data (&assembly->blob, 
+pubtoken, 9);
+                                                                    
+^^^^^^^^
+Warning 942: "reflection.c", line 2983 # Types 'const char *' and 'unsigned 
+char *' are not assignment-compatible.
+            mono_image_add_stream_data (&assembly->blob, hash, 20);
+                                                         ^^^^
+Warning 942: "reflection.c", line 3229 # Types 'unsigned char *' and 'char 
+*' are not assignment-compatible.
+            p = meta->raw_metadata;
+            ^^^^^^^^^^^^^^^^^^
+Warning 942: "reflection.c", line 3264 # Types 'char *' and 'unsigned char 
+*' are not assignment-compatible.
+                    strcpy (p, stream_desc [i].name);
+                            ^
+Warning 942: "reflection.c", line 3272 # Types 'unsigned char *' and 'char 
+*' are not assignment-compatible.
+            p = meta->raw_metadata + assembly->tstream.offset;
+            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+Warning 942: "reflection.c", line 3330 # Types 'const char *' and 'unsigned 
+char *' are not assignment-compatible.
+                    meta->tables [i].base = p;
+                    ^^^^^^^^^^^^^^^^^^^^^
+Warning 942: "reflection.c", line 3388 # Types 'unsigned char *' and 'char 
+*' are not assignment-compatible.
+                    target = assembly->code.data + code_idx + iltoken-
+>code_pos;
+                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+Warning 942: "reflection.c", line 3542 # Types 'const char *' and 'unsigned 
+char *' are not assignment-compatible.
+                    mono_image_add_stream_data (&assembly->blob, hash, 20);
+                                                                 ^^^^
+Warning 942: "reflection.c", line 4115 # Types 'const char *' and 'const 
+unsigned char *' are not assignment-compatible.
+            mono_image_add_stream_data (&image->code, entrycode, sizeof 
+(entrycode));
+                                                      ^^^^^^^^^
+Warning 942: "reflection.c", line 4501 # Types 'const char *' and 'const 
+unsigned char *' are not assignment-compatible.
+            mono_image_add_stream_data (pefile, msheader, sizeof (msheader)
+);
+                                                ^^^^^^^^
+Warning 942: "reflection.c", line 4648 # Types 'unsigned char *' and 'char 
+*' are not assignment-compatible.
+            p = (assembly->code.data + assembly->ilt_offset);
+            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+Warning 942: "reflection.c", line 4705 # Types 'unsigned char *' and 'char 
+*' are not assignment-compatible.
+                            p = (assembly->code.data + 2);
+                            ^^^^^^^^^^^^^^^^^^^^^^^
+Warning 942: "reflection.c", line 4781 # Types 'const unsigned char *' and 
+'char *' are not assignment-compatible.
+                            exc = mono_get_exception_bad_image_format 
+(name);
+                                                                       ^^^^
+Warning 942: "reflection.c", line 5365 # Types 'char *' and 'unsigned char 
+*' are not assignment-compatible.
+                                    g_strlcpy (assembly->public_key_token, 
+start, len);
+                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^
+Warning 942: "reflection.c", line 6082 # Types 'const char *' and 'const 
+unsigned char *' are not assignment-compatible.
+    attr = create_custom_attr (cinfo->image, cinfo->attrs [i].ctor, cinfo-
+>attrs [i].data, cinfo->attrs [i].data_size);
+                                                                    
+^^^^^^^^^^^^^^^^^^^^^
+Warning 942: "reflection.c", line 6135 # Types 'const unsigned char *' and 
+'const char *' are not assignment-compatible.
+                    ainfo->attrs [i].data = data;
+                    ^^^^^^^^^^^^^^^^^^^^^
+Warning 942: "reflection.c", line 7023 # Types 'unsigned char *' and 'char 
+*' are not assignment-compatible.
+                            code = mono_array_addr (rmb->ilgen->code, 
+guint8, 0);
+                            ^^^^^^^^^^^^^^^
+Warning 942: "reflection.c", line 7031 # Types 'unsigned char *' and 'char 
+*' are not assignment-compatible.
+                                    code = mono_array_addr (rmb->code, 
+guint8, 0);
+                                    ^^^^^^^^^^^^^^^
+Warning 942: "reflection.c", line 7212 # Types 'unsigned int *' and 
+'MonoTypeEnum *' are not assignment-compatible.
+                    idx = encode_constant (assembly, fb->def_value, &field-
+>def_type);
+                                                                    ^
+Warning 952: "reflection.c", line 7218 # Conversion of 'const char *' to 
+'void *' loses 'const'.
+                    memcpy (field->data, p, len);
+                            ^^^^^^^^^^^
+Warning 942: "reflection.c", line 7715 # Types 'unsigned int *' and 
+'MonoTypeEnum *' are not assignment-compatible.
+                            idx = encode_constant (assembly, fb->def_value, 
+&field->def_type);
+                                                                            
+^
+Warning 952: "reflection.c", line 7721 # Conversion of 'const char *' to 
+'void *' loses 'const'.
+                            memcpy (field->data, p, len);
+                                    ^^^^^^^^^^^
+gmake[2]: *** [reflection.lo] Error 1
+gmake[2]: Leaving directory `/scratch/bebark2/repository/mono/mono/
+metadata'
+gmake[1]: *** [all-recursive] Error 1
+gmake[1]: Leaving directory `/scratch/bebark2/repository/mono/mono'
+gmake: *** [mono-do-runtime-only] Error 1
+
+
+Steps to reproduce the problem:
+
+1:  checkout CVS
+2:  ./autogen.sh in the mono dir
+3:  make get-monolite-latest
+4:  monolite-bootstrap  (at which point we get the above failure).
+
+
+Additional Information:
+
+I tried using gcc however configure fails.  The error is:
+
+checking for gcc... gcc
+checking for gcc... (cached) gcc
+checking for C compiler default output file name... configure: error: C 
+compiler cannot create executables
+See `config.log' for more details.
+
+I think the following may have something to do with the problem (from 
+config.log):
+
+gcc version 3.3.2 20030829 (prerelease)
+configure:2616: $? = 0
+configure:2618: gcc -V </dev/null >&5
+gcc: `-V' option must have argument
+configure:2621: $? = 1
+configure:2644: checking for C compiler default output file name
+configure:2647: gcc  +ESdbgasm -I/u/home2/bebark2/local/include -
+DGC_HPUX_THREADS -D_HPUX_SOURCE -D_XOPEN_SOURCE_EXTENDED -D_REENTRANT -L/u/
+home2/bebark2/local/lib -z con
+ftest.c  >&5
+gcc: +ESdbgasm: No such file or directory
+gcc: no input files