Skip Menu |

This queue is for tickets about the DBD-Pg CPAN distribution.

Report information
The Basics
Id: 58358
Status: stalled
Priority: 0/
Queue: DBD-Pg

People
Owner: Nobody in particular
Requestors: martijn [...] youngguns.nl
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Unable to compile on OpenSolaris b134
Date: Sun, 13 Jun 2010 13:59:03 +0200
To: bug-DBD-Pg [...] rt.cpan.org
From: Martijn de Munnik <martijn [...] youngguns.nl>
Hi, I'm trying to compile DBD::Pg on Opensolaris but it seems the compilation just hangs after a warning. I've been waiting for 30 minutes but nothing seems to happen anymore. iropt is using cpu time and seems to be running but I don't think it's doing anything, maybe an endless loop? I'm using the http://pkg.opensolaris/dev/ 5.10.0 Perl release and already installed DBI successfully. Output of the compilation: ===================================================== Configuring DBD::Pg 2.17.1 PostgreSQL version: 80309 (default port: 5432) POSTGRES_HOME: /usr/postgres/8.3 POSTGRES_INCLUDE: /usr/postgres/8.3/include POSTGRES_LIB: /usr/postgres/8.3/lib -lssl -lcrypto OS: solaris Checking if your kit is complete... Looks good Using DBI 1.611 (for perl 5.010000 on sun4-solaris-64int) installed in /usr/perl5/site_perl/5.10.0/sun4-solaris-64int/auto/DBI/ Writing Makefile for DBD::Pg cp lib/Bundle/DBD/Pg.pm blib/lib/Bundle/DBD/Pg.pm cp Pg.pm blib/lib/DBD/Pg.pm /usr/perl5/5.10.0/bin/perl -p -e "s/~DRIVER~/Pg/g; s/^do\(/dontdo\(/" / usr/perl5/site_perl/5.10.0/sun4-solaris-64int/auto/DBI/Driver.xst > Pg.xsi /usr/perl5/5.10.0/bin/perl /usr/perl5/5.10.0/lib/ExtUtils/xsubpp - typemap /usr/perl5/5.10.0/lib/ExtUtils/typemap Pg.xs > Pg.xsc && mv Pg.xsc Pg.c cc -c -I/usr/postgres/8.3/include -I/usr/perl5/site_perl/5.10.0/sun4- solaris-64int/auto/DBI -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 - xarch=v8 -D_TS_ERRNO -DPGLIBVERSION=80309 -DPGDEFPORT=5432 -xO3 - xspace -xildoff -DPERL_EXTMALLOC_DEF -Dmalloc=Perl_malloc - Dfree=Perl_mfree -Drealloc=Perl_realloc -Dcalloc=Perl_calloc -DVERSION= \"2.17.1\" -DXS_VERSION=\"2.17.1\" -KPIC "-I/usr/perl5/5.10.0/lib/ sun4-solaris-64int/CORE" Pg.c cc -c -I/usr/postgres/8.3/include -I/usr/perl5/site_perl/5.10.0/sun4- solaris-64int/auto/DBI -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 - xarch=v8 -D_TS_ERRNO -DPGLIBVERSION=80309 -DPGDEFPORT=5432 -xO3 - xspace -xildoff -DPERL_EXTMALLOC_DEF -Dmalloc=Perl_malloc - Dfree=Perl_mfree -Drealloc=Perl_realloc -Dcalloc=Perl_calloc -DVERSION= \"2.17.1\" -DXS_VERSION=\"2.17.1\" -KPIC "-I/usr/perl5/5.10.0/lib/ sun4-solaris-64int/CORE" dbdimp.c cc -c -I/usr/postgres/8.3/include -I/usr/perl5/site_perl/5.10.0/sun4- solaris-64int/auto/DBI -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 - xarch=v8 -D_TS_ERRNO -DPGLIBVERSION=80309 -DPGDEFPORT=5432 -xO3 - xspace -xildoff -DPERL_EXTMALLOC_DEF -Dmalloc=Perl_malloc - Dfree=Perl_mfree -Drealloc=Perl_realloc -Dcalloc=Perl_calloc -DVERSION= \"2.17.1\" -DXS_VERSION=\"2.17.1\" -KPIC "-I/usr/perl5/5.10.0/lib/ sun4-solaris-64int/CORE" quote.c "quote.c", line 334: warning: assignment type mismatch: pointer to char "=" pointer to const char ===================================================== Running processes: ===================================================== munnik 6973 6364 0 13:21:33 pts/1 0:00 cc -c -I/usr/ postgres/8.3/include -I/usr/perl5/site_perl/5.10.0/sun4-solaris-64 munnik 6119 17600 0 13:20:46 pts/1 0:00 /usr/bin/ksh ./ build_perl_dbd_pg.ksh munnik 6364 6119 0 13:20:59 pts/1 0:00 make munnik 7004 6973 5 13:21:34 pts/1 32:54 /opt/ SunStudioExpress/prod/bin/iropt -Qy -O3 -xarch=v8 -m32 -xchip=generic - xca ===================================================== System: ===================================================== SunOS duane 5.11 snv_134 sun4v sparc SUNW,SPARC-Enterprise-T5120 Solaris ===================================================== I don't know what to do. I try to keep it running for some time... Thanks, Martijn
From: mark [...] ibiblio.org
This behaviour is also seen on Solaris 10 SPARC 64 using the SUNWspro Sun Studio 12.2 compiler. # /usr/local/bin/perl -V Summary of my perl5 (revision 5 version 12 subversion 3) configuration: Platform: osname=solaris, osvers=2.10, archname=sun4-solaris-64 DBI-1.616 host:/var/tmp root# cd DBD-Pg-2.99.9_2 host:/var/tmp/DBD-Pg-2.99.9_2 root# /usr/local/bin/perl Makefile.PL WARNING! This is a test version (2.99.9_2) and should not be used in production! Configuring DBD::Pg 2.99.9_2 PostgreSQL version: 90102 (default port: 5432) POSTGRES_HOME: (not set) POSTGRES_INCLUDE: /usr/local/include POSTGRES_LIB: /usr/local/lib OS: solaris Checking if your kit is complete... Looks good Using DBI 1.616 (for perl 5.012003 on sun4-solaris-64) installed in /usr/local/lib/perl5/site_perl/5.12.3/sun4-solaris-64/auto/DBI/ Writing Makefile for DBD::Pg radband01:/var/tmp/DBD-Pg-2.99.9_2 root# gmake cp testme.tmp.pl blib/lib/DBD/testme.tmp.pl cp lib/Bundle/DBD/Pg.pm blib/lib/Bundle/DBD/Pg.pm cp Pg.pm blib/lib/DBD/Pg.pm /usr/local/bin/perl -p -e "s/~DRIVER~/Pg/g; s/^do\(/dontdo\(/" /usr/local/lib/perl5/site_perl/5.12.3/sun4-solaris-64/auto/DBI/Driver.xst > Pg.xsi /usr/local/bin/perl /usr/local/lib/perl5/5.12.3/ExtUtils/xsubpp -typemap /usr/local/lib/perl5/5.12.3/ExtUtils/typemap Pg.xs > Pg.xsc && mv Pg.xsc Pg.c cc -xtarget=ultra -m64 -xcode=pic32 -c -I/usr/local/include -I/usr/local/lib/perl5/site_perl/5.12.3/sun4-solaris-64/auto/DBI -I/usr/local/include -I/opt/local/include -xarch=generic64 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -DPGLIBVERSION=90102 -DPGDEFPORT=5432 -O -DPERL_EXTMALLOC_DEF -Dmalloc=Perl_malloc -Dfree=Perl_mfree -Drealloc=Perl_realloc -Dcalloc=Perl_calloc -DVERSION=\"2.99.9_2\" -DXS_VERSION=\"2.99.9_2\" -KPIC "-I/usr/local/lib/perl5/5.12.3/sun4-solaris-64/CORE" Pg.c cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs cc -xtarget=ultra -m64 -xcode=pic32 -c -I/usr/local/include -I/usr/local/lib/perl5/site_perl/5.12.3/sun4-solaris-64/auto/DBI -I/usr/local/include -I/opt/local/include -xarch=generic64 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -DPGLIBVERSION=90102 -DPGDEFPORT=5432 -O -DPERL_EXTMALLOC_DEF -Dmalloc=Perl_malloc -Dfree=Perl_mfree -Drealloc=Perl_realloc -Dcalloc=Perl_calloc -DVERSION=\"2.99.9_2\" -DXS_VERSION=\"2.99.9_2\" -KPIC "-I/usr/local/lib/perl5/5.12.3/sun4-solaris-64/CORE" dbdimp.c cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs cc -xtarget=ultra -m64 -xcode=pic32 -c -I/usr/local/include -I/usr/local/lib/perl5/site_perl/5.12.3/sun4-solaris-64/auto/DBI -I/usr/local/include -I/opt/local/include -xarch=generic64 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -DPGLIBVERSION=90102 -DPGDEFPORT=5432 -O -DPERL_EXTMALLOC_DEF -Dmalloc=Perl_malloc -Dfree=Perl_mfree -Drealloc=Perl_realloc -Dcalloc=Perl_calloc -DVERSION=\"2.99.9_2\" -DXS_VERSION=\"2.99.9_2\" -KPIC "-I/usr/local/lib/perl5/5.12.3/sun4-solaris-64/CORE" quote.c cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs root 337 0.0 0.0 2920 2536 pts/45 S 16:27:31 0:00 gmake root 1102 0.0 0.0 1728 1448 pts/45 S 16:27:55 0:00 /bin/sh -c cc -xtarget=ultra -m64 -xcode=pic32 -c -I/usr/local/include -I/usr/ root 1103 0.0 0.0 2304 2040 pts/45 S 16:27:55 0:00 cc -xtarget=ultra -m64 -xcode=pic32 -c -I/usr/local/include -I/usr/local/lib/perl5/site_perl/5.12.3/sun4-solaris-64/auto/DBI -I/usr/local/include -I/opt/local/include -xarch=generic64 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -DPGLIBVERSION=90102 -DPGDEFPORT=5432 -O -DPERL_EXTMALLOC_DEF -Dmalloc=Perl_malloc -Dfree=Perl_mfree -Drealloc=Perl_realloc -Dcalloc=Perl_calloc -DVERSION="2.99.9_2" -DXS_VERSION="2.99.9_2" -KPIC -I/usr/local/lib/perl5/5.12.3/sun4-solaris-64/CORE quote.c root 1187 0.6 0.02810426984 pts/45 O 16:27:56 0:36 /opt/solstudio12.2/prod/bin/iropt -Qy -O3 -xarch=sparc -m64 -xchip=ultra -xcache=16/32/1:512/64/1 -fsimple=0 -depend -k -xbuiltin=%none -I -xprefetch=auto,explicit -xprefetch_level=1 -xprefetch_auto_type=%none -xvector=no%lib -F -o /tmp/iropt.1328678875.1103.03.ir -is /tmp/acomp.1328678875.1103.02.sd /tmp/acomp.1328678875.1103.01.ir The iropt process never exits, it just keeps consuming CPU. This also occurs with DBD-Pg 2.18.1 On Sun Jun 13 07:59:21 2010, martijn@youngguns.nl wrote: Show quoted text
> Hi, > > I'm trying to compile DBD::Pg on Opensolaris but it seems the > compilation just hangs after a warning. I've been waiting for 30 > minutes but nothing seems to happen anymore. iropt is using cpu time > and seems to be running but I don't think it's doing anything, maybe > an endless loop?
From: mark [...] ibiblio.org
Show quoted text
> The iropt process never exits, it just keeps consuming CPU. > > This also occurs with DBD-Pg 2.18.1
It finally compiled quote.c after 40 minutes.
On Wed Feb 08 01:05:06 2012, markbit wrote: Show quoted text
> >
> > The iropt process never exits, it just keeps consuming CPU. > > > > This also occurs with DBD-Pg 2.18.1
> > It finally compiled quote.c after 40 minutes.
I want to say that it sounds like a problem with the compiler. However, after looking at the code in quote.c (and allowing time for my eyes to stop bleeding :)), I wonder if the compiler is trying to be smart with bad code? If so, I don't know if I can fault the compiler... To test my theory, could you try commenting out/removing the bulk of is_keyword() in quote.c? Specifically, cut out the code that lives between /* Check for each reserved word */ and /* We made it! */ -r
Is it just quote.c that takes longer than expected?