Operating System - Linux
1827965 Members
2773 Online
109973 Solutions
New Discussion

Re: SIGPIPE error in bison 2.1

 
Manish_33
Advisor

SIGPIPE error in bison 2.1

Hi,
I have built bison 2.1 but while running it gives me sigpipe error. any ideas?.....an analysis using tusc gives the following output

execve("/tools/hp9000_ux_11/usr/bin/bison", 0x7a0009f0, 0x7a000a08) = 0 [32-bit]
utssys(0x7a002b40, 0, 0) .............................................................................. = 0
open("/usr/lib/dld.sl", O_RDONLY, 04774) .............................................................. = 3
read(3, "02\v010e0512@ \0\0\0\0\0\0\0\0\0".., 128) .................................................... = 128
lseek(3, 128, SEEK_SET) ............................................................................... = 128
read(3, "10\0\004\0\0\0( \002e7\ \0\0\0\0".., 48) ..................................................... = 48
mmap(NULL, 190300, PROT_READ|PROT_EXEC, MAP_SHARED|MAP_SHLIB|MAP_STATICPREDICTION, 3, 40960) .......... = 0xc0010000
mmap(NULL, 16392, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_SHLIB, 3, 233472) ................... = 0x79ffb000
close(3) .............................................................................................. = 0
utssys(0x7a003000, 0, 0) .............................................................................. = 0
getuid() .............................................................................................. = 103 (103)
getuid() .............................................................................................. = 103 (103)
getgid() .............................................................................................. = 20 (20)
getgid() .............................................................................................. = 20 (20)
mmap(NULL, 8192, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) .................... = 0x79ff9000
sysconf(_SC_CPU_VERSION) .............................................................................. = 532
open("/opt/graphics/OpenGL/lib/libogltls.sl", O_RDONLY, 0) ............................................ ERR#2 ENOENT
open("/usr/lib/libc.2", O_RDONLY, 0) .................................................................. = 3
fstat(3, 0x7a003518) .................................................................................. = 0
read(3, "0214010e0512@ \0\0\0\0\0\0\0\0\0".., 128) .................................................... = 128
lseek(3, 128, SEEK_SET) ............................................................................... = 128
read(3, "10\0\004\0\0\0( \014~ cc\0\010\0".., 48) ..................................................... = 48
read(3, "80\0\0\v\0\0\004\0\0\0\0", 12) ............................................................... = 12
mmap(NULL, 1343488, PROT_READ|PROT_EXEC, MAP_SHARED|MAP_SHLIB, 3, 446464) ............................. = 0xc0100000
mmap(NULL, 45056, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANONYMOUS|MAP_SHLIB, -1, 0) ......... = 0x79fee000
mmap(0x79fe6000, 32768, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_SHLIB, 3, 1789952) .. = 0x79fe6000
mmap(NULL, 16384, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) ................... = 0x79fe2000
close(3) .............................................................................................. = 0
open("/usr/lib/libdld.2", O_RDONLY, 0) ................................................................ = 3
fstat(3, 0x7a003798) .................................................................................. = 0
read(3, "02\v010e0512@ \0\0\0\0\0\0\0\0\0".., 128) .................................................... = 128
lseek(3, 128, SEEK_SET) ............................................................................... = 128
read(3, "10\0\004\0\0\0( \0\0) \ \0\010\0".., 48) ..................................................... = 48
read(3, "80\0\0\v\0\0\004\0\0\0\0", 12) ............................................................... = 12
mmap(NULL, 12288, PROT_READ|PROT_EXEC, MAP_SHARED|MAP_SHLIB, 3, 8192) ................................. = 0xc0004000
mmap(NULL, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_SHLIB, 3, 20480) ..................... = 0x79fe1000
close(3) .............................................................................................. = 0
open("/usr/lib/libc.2", O_RDONLY, 0) .................................................................. = 3
fstat(3, 0x7a003a18) .................................................................................. = 0
close(3) .............................................................................................. = 0
mmap(NULL, 16384, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) ................... = 0x79fdd000
mmap(NULL, 120, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) ..................... = 0x79fdc000
sigsetreturn(0x79fe3fee, 0x6211988, 1392) ............................................................. = 0
sysconf(_SC_CPU_VERSION) .............................................................................. = 532
brk(0x400049d8) ....................................................................................... = 0
brk(0x400069c0) ....................................................................................... = 0
brk(0x40007000) ....................................................................................... = 0
brk(0x40008000) ....................................................................................... = 0
brk(0x40009000) ....................................................................................... = 0
open("/usr/lib/nls/loc/locales.2/C", O_RDONLY, 0) ..................................................... ERR#2 ENOENT
brk(0x4000a000) ....................................................................................... = 0
brk(0x4000b000) ....................................................................................... = 0
brk(0x4000c000) ....................................................................................... = 0
brk(0x4000d000) ....................................................................................... = 0
brk(0x4000e000) ....................................................................................... = 0
brk(0x4000f000) ....................................................................................... = 0
open("/home/katiyar/testsh/tshparse.y", O_RDONLY, 0666) ... = 3
brk(0x40010000) ....................................................................................... = 0
brk(0x40014000) ....................................................................................... = 0
brk(0x40016000) ....................................................................................... = 0
ioctl(3, TCGETA, 0x7a003ae8) .......................................................................... ERR#25 ENOTTY
read(3, "% { \n# i f d e f A I X _ P R ".., 8192) ................................................... = 8192
brk(0x40017000) ....................................................................................... = 0
brk(0x40018000) ....................................................................................... = 0
brk(0x40019000) ....................................................................................... = 0
brk(0x4001a000) ....................................................................................... = 0
brk(0x4001b000) ....................................................................................... = 0
read(3, "p ( " - d " ) ) ; \n\n ".., 8192) ................................................... = 8192
brk(0x4001c000) ....................................................................................... = 0
brk(0x4001d000) ....................................................................................... = 0
brk(0x4001e000) ....................................................................................... = 0
read(3, "s t _ c o u n t ; i + + ) \n\t".., 8192) ................................................... = 2135
read(3, 0x40013310, 8192) ............................................................................. = 0
brk(0x4001f000) ....................................................................................... = 0
read(3, 0x40013310, 8192) ............................................................................. = 0
brk(0x40020000) ....................................................................................... = 0
brk(0x40021000) ....................................................................................... = 0
read(3, 0x40013310, 8192) ............................................................................. = 0
close(3) .............................................................................................. = 0
brk(0x40022000) ....................................................................................... = 0
brk(0x40042000) ....................................................................................... = 0
brk(0x40062000) ....................................................................................... = 0
brk(0x40082000) ....................................................................................... = 0
brk(0x40083000) ....................................................................................... = 0
brk(0x40084000) ....................................................................................... = 0
brk(0x40085000) ....................................................................................... = 0
brk(0x40086000) ....................................................................................... = 0
open("/tools/hp9000_ux_11/usr/share/bison/m4sugar/m4sugar.m4", O_RDONLY, 0666) = 3
close(3) .............................................................................................. = 0
sigsetreturn(0x79fe3fee, 0x6211988, 1392) ............................................................. = 0
sigvec(SIGCLD, 0x7a000d20, 0x7a000d30) ................................................................ = 0
pipe() ................................................................................................ = 3 (4)
pipe() ................................................................................................ = 5 (6)
Received signal 18, SIGCLD, in vfork(), [SIG_DFL], no siginfo
vfork() ............................................................................................... = 10187
close(3) .............................................................................................. = 0
close(6) .............................................................................................. = 0
brk(0x40088000) ....................................................................................... = 0
ioctl(4, TCGETA, 0x7a001028) .......................................................................... ERR#25 ENOTTY
Received signal 13, SIGPIPE, in write(), [SIG_DFL], no siginfo
write(4, "m 4 _ i n i t ( ) \nm 4 _ d e f ".., 8192) .................................................. [entry]
exit(13) [implicit (write failure)] ................................................................... WIFSIGNALED(SIGPIPE)



Any help guys........Is there any patch for it?
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: SIGPIPE error in bison 2.1

Shalom,

One of the dependencies is probably not installed.

See the site you downloaded the code and look for two dependency issues:

compile time dependencies: You probably met these or the compile would have failed.

run time dependencies: Its common to get your results when a run time dependency is missing.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Arunvijai_4
Honored Contributor

Re: SIGPIPE error in bison 2.1

Hello,

bison has the folowing build time dependencies gcc, m4 and make. Also, it has got m4 as run time dependencies.

Try installing m4 depot and see what happens from there.

http://hpux.connect.org.uk/hppd/hpux/Languages/m4-1.4.4/

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Muthukumar_5
Honored Contributor

Re: SIGPIPE error in bison 2.1

bison 2.1 is available as depot format as,

http://hpux.connect.org.uk/hppd/hpux/Gnu/bison-2.1/

get there and install it.

Note: try to install dependencies like,

Build-time dependencies: gcc m4 make
Run-time dependencies: m4

--
Muthu
Easy to suggest when don't know about the problem!
Manish_33
Advisor

Re: SIGPIPE error in bison 2.1

I had built bison on a different machine while running on a different machine it was tryin to access a local path present on that m/c for m4. Setting the path properly by env variable M4 solved the problem. You can check the path it is trying to open through tusc.