[Mono-bugs] [Bug 55902][Nor] Changed - GNU bison 1.875 fails on monoburg compilation (use /usr/ccs/bin/yacc instead) (mono-0.31)

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 22 Mar 2004 17:10:06 -0500 (EST)


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 louis.p.santillan@jpl.nasa.gov.

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

--- shadow/55902	2004-03-22 16:58:17.000000000 -0500
+++ shadow/55902.tmp.6452	2004-03-22 17:10:06.000000000 -0500
@@ -78,6 +78,117 @@
 Could you try running it under 'truss', e.g.
 
 truss  bison ./monoburg.y -o parser.c
 
 and paste the output ?
 
+
+------- Additional Comments From Louis.P.Santillan@jpl.nasa.gov  2004-03-22 17:10 -------
+lpsantil@MachineName:~/build/mono/mono-0.31/mono/monoburg>truss bison
+./monoburg.y -o parser.c
+execve("/usr/local/bin/bison", 0xFFBFFC5C, 0xFFBFFC70)  argc = 4
+resolvepath("/usr/local/bin/bison", "/usr/local/bin/bison", 1023) = 20
+resolvepath("/usr/lib/ld.so.1", "/usr/lib/ld.so.1", 1023) = 16
+stat("/usr/local/bin/bison", 0xFFBFFA30)        = 0
+open("/var/ld/ld.config", O_RDONLY)             Err#2 ENOENT
+stat("/usr/local/lib/libc.so.1", 0xFFBFF374)    Err#2 ENOENT
+stat("/usr/lib/libc.so.1", 0xFFBFF374)          = 0
+open("/usr/lib/libc.so.1", O_RDONLY)            = 3
+fstat(3, 0xFFBFF374)                            = 0
+mmap(0x00000000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =
+0xFF3B0000
+mmap(0x00000000, 802816, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =
+0xFF280000
+mmap(0xFF33C000, 24472, PROT_READ|PROT_WRITE|PROT_EXEC,
+MAP_PRIVATE|MAP_FIXED, 3, 704512) = 0xFF33C000
+mmap(0xFF342000, 6588, PROT_READ|PROT_WRITE|PROT_EXEC,
+MAP_PRIVATE|MAP_FIXED|MAP_ANON, -1, 0) = 0xFF342000
+munmap(0xFF32C000, 65536)                       = 0
+resolvepath("/usr/lib/libc.so.1", "/usr/lib/libc.so.1", 1023) = 18
+memcntl(0xFF280000, 117256, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
+close(3)                                        = 0
+stat("/usr/local/lib/libdl.so.1", 0xFFBFF374)   Err#2 ENOENT
+stat("/usr/lib/libdl.so.1", 0xFFBFF374)         = 0
+open("/usr/lib/libdl.so.1", O_RDONLY)           = 3
+fstat(3, 0xFFBFF374)                            = 0
+mmap(0xFF3B0000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3,
+0) = 0xFF3B0000
+resolvepath("/usr/lib/libdl.so.1", "/usr/lib/libdl.so.1", 1023) = 19
+close(3)                                        = 0
+stat("/usr/platform/SUNW,UltraAX-i2/lib/libc_psr.so.1", 0xFFBFF184) = 0
+open("/usr/platform/SUNW,UltraAX-i2/lib/libc_psr.so.1", O_RDONLY) = 3
+fstat(3, 0xFFBFF184)                            = 0
+mmap(0x00000000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =
+0xFF3A0000
+mmap(0x00000000, 16384, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =
+0xFF390000
+resolvepath("/usr/platform/sun4u/lib/libc_psr.so.1c_psr.so.1",
+"/usr/platform/sun4u/lib/libc_psr.so.1", 1023) = 37
+close(3)                                        = 0
+mmap(0x00000000, 8192, PROT_READ|PROT_WRITE|PROT_EXEC,
+MAP_PRIVATE|MAP_ANON, -1, 0) = 0xFF380000
+munmap(0xFF3A0000, 8192)                        = 0
+getustack(0xFFBFF89C)
+getrlimit(RLIMIT_STACK, 0xFFBFF894)             = 0
+getcontext(0xFFBFF6D0)
+setustack(0xFF343944)
+brk(0x00057F40)                                 = 0
+brk(0x00059F40)                                 = 0
+brk(0x00059F40)                                 = 0
+brk(0x0005BF40)                                 = 0
+brk(0x0005BF40)                                 = 0
+brk(0x0005DF40)                                 = 0
+open("./monoburg.y", O_RDONLY)                  = 3
+brk(0x0005DF40)                                 = 0
+brk(0x0005FF40)                                 = 0
+brk(0x0005FF40)                                 = 0
+brk(0x00063F40)                                 = 0
+fstat64(3, 0xFFBFCA18)                          = 0
+brk(0x00063F40)                                 = 0
+brk(0x00065F40)                                 = 0
+fstat64(3, 0xFFBFC8C0)                          = 0
+ioctl(3, TCGETA, 0xFFBFC9A4)                    Err#25 ENOTTY
+read(3, " % {\n / *\n   *   m o n".., 8192)     = 5930
+read(3, 0x00062A74, 8192)                       = 0
+brk(0x00065F40)                                 = 0
+brk(0x00067F40)                                 = 0
+brk(0x00067F40)                                 = 0
+brk(0x00069F40)                                 = 0
+brk(0x00069F40)                                 = 0
+brk(0x0006BF40)                                 = 0
+llseek(3, 0, SEEK_CUR)                          = 5930
+close(3)                                        = 0
+brk(0x0006BF40)                                 = 0
+brk(0x0006DF40)                                 = 0
+brk(0x0006DF40)                                 = 0
+brk(0x0008DF40)                                 = 0
+brk(0x0008DF40)                                 = 0
+brk(0x000ADF40)                                 = 0
+brk(0x000ADF40)                                 = 0
+brk(0x000CDF40)                                 = 0
+brk(0x000CDF40)                                 = 0
+brk(0x000CFF40)                                 = 0
+open("/usr/local/share/bison/m4sugar/m4sugar.m4", O_RDONLY) = 3
+llseek(3, 0, SEEK_CUR)                          = 0
+close(3)                                        = 0
+sigaction(SIGCLD, 0xFFBFF9B0, 0xFFBFFA30)       = 0
+pipe()                                          = 3 [4]
+pipe()                                          = 5 [6]
+vfork()                                         = 7170
+close(3)                                        = 0
+close(6)                                        = 0
+fstat64(4, 0xFFBFF8B8)                          = 0
+fstat64(4, 0xFFBFF760)                          = 0
+ioctl(4, TCGETA, 0xFFBFF844)                    Err#22 EINVAL
+write(4, " m 4 _ i n i t ( )\n m 4".., 5120)    Err#32 EPIPE
+    Received signal #13, SIGPIPE [default]
+
+
+Hmm...bison seems to want to use FD 4.  I guess it is a bison error. 
+The work around me at least was to manually translate monoburg.y by doing
+
+/usr/ccs/bin/yacc monoburg.y ; mv y.tab.c parser.c
+
+Everything seemed to compile OK after that and the ld fix I mentioned
+in #55910 <http://bugzilla.ximian.com/show_bug.cgi?id=55910>.
+
+Louis