Re: [gentoo-user] Perl Guru's? Having isssues recompiling perl
Strange, that in your bad config.pm there is for example -DPERL5 missing, but this is set in the ebuild, I can only imagine, that something is wrong with your installation and you don't have all tools onboard which are needed by emerge to in order to create the right Config.pm. Have you uninstalled single packages, thinking that they might not be needed by other packages? I'd re-emerge all basic packages and then try to emerge perl again. - Original Message - From: Paul Varner [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 29, 2003 3:40 AM Subject: Re: [gentoo-user] Perl Guru's? Having isssues recompiling perl On Mon, 2003-10-27 at 10:35, SN wrote: How about showing us the diff? Attached is a diff of the good and bad Config.pm files. I have narrowed the issue down to the perl statement keys %Config I have created the following test program which has the same issue with allocating memory and never prints anything. BEGIN { @INC = './lib'; } use Config; foreach $key (keys %Config) { print Key: $key\n; } Regards, Paul -- [EMAIL PROTECTED] mailing list -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] Perl Guru's? Having isssues recompiling perl
On Fri, 2003-10-31 at 09:19, SN wrote: Strange, that in your bad config.pm there is for example -DPERL5 missing, but this is set in the ebuild, I can only imagine, that something is wrong with your installation and you don't have all tools onboard which are needed by emerge to in order to create the right Config.pm. Have you uninstalled single packages, thinking that they might not be needed by other packages? I'd re-emerge all basic packages and then try to emerge perl again. I saw the -DPERL5 missing and I have noted that it was strange. I may get there. I haven't uninstalled anything that I didn't explicitly load myself. Additionally, if there is something missing, it isn't being caught by portage's dependency checking. I have noted that compiling perl manually without any of the patches applied by the ebuild process compiles correctly. I'm in the process of modifying the ebuild (I copied it to /usr/local/portage, bumped it to -r13 and masked it) and back tracking through the patches and defines that are enabled during the ebuild process. The other thing that I discovered is that perl on my other Gentoo box exhibits the same behavior if I run my test program against the bad Config.pm So it doesn't look to me like a machine specific problem. Regards, Paul -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] Perl Guru's? Having isssues recompiling perl
How about showing us the diff? - Original Message - From: Paul Varner [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, October 26, 2003 11:49 PM Subject: [gentoo-user] Perl Guru's? Having isssues recompiling perl [Also sent to the gentoo-dev mailing list] Are there any perl guru's on this list? I having problems recompiling perl on my Gentoo box and I'm trying to determine what the problem is and how to fix it. Basically, I decided to recompile the software on my box to use the -O2 optimization flag instead of -O3. However, whenever I do an 'emerge =dev-lang/perl-5.8.0-r12', the compiling process ends up crashing my system. I have narrowed it down to the 'make test' portion of the process and the test that is crashing the box is lib/Config. When perl runs that test it appears to go into an infinite loop allocating memory, eventually the box runs out of swap space and the kernel starts killing off processes and I end up having to reboot the box. As as test I temporarily created a 2 gig swap file and the emerge still ran out of memory. I tried changing my cflags back to the original setiing and I still get the same results. By running the test manually from the /var/tmp/portage/perl*/work directory, I have determined that the test doesn't like the Config.pm file that was configured. If I copy over my existing Config.pm and run the test manually it works, but if I use the one created during the configure and compile process, I get the problem listed above. A diff of the two Config.pm files doesn't show anything that jumps out at me. I have google'd high and low and I can't find anything with somebody having a similar issue I'm hesitant to create a bug in bugzilla at this time as I don't have any other information to determine problem. So if there is anyone that has any pointers on where to start debugging further, I would highly appreciate it. I can supply copies of the Config.pm files on request. This one is really bugging me as there should be no reason for perl to compile successfully at install and then fail to compile properly on the same box. Regards, Paul -- [EMAIL PROTECTED] mailing list -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] Perl Guru's? Having isssues recompiling perl
On Mon, 2003-10-27 at 10:35, SN wrote: How about showing us the diff? Attached is a diff of the good and bad Config.pm files. I have narrowed the issue down to the perl statement keys %Config I have created the following test program which has the same issue with allocating memory and never prints anything. BEGIN { @INC = './lib'; } use Config; foreach $key (keys %Config) { print Key: $key\n; } Regards, Paul --- Config.pm.bad 2003-10-28 20:18:01.0 -0600 +++ Config.pm.good 2003-10-28 20:18:09.0 -0600 @@ -34,9 +34,9 @@ # ## Package name : perl5 ## Source directory : . -## Configuration time: Tue Oct 28 19:57:10 CST 2003 +## Configuration time: Sun Aug 31 09:12:50 Local time zone must be set--see zic manual page 2003 ## Configured by : root -## Target system : linux garath 2.4.20-gentoo-r7 #2 thu oct 16 22:07:55 cdt 2003 i686 intel(r) pentium(r) 4 cpu 1.80ghz genuineintel gnulinux +## Target system : linux cdimage 2.4.21-gss #1 mon jul 21 00:38:59 local time zone must be set--see zic manu i686 intel(r) pentium(r) 4 cpu 1.80ghz genuineintel gnulinux # ## Configure command line arguments. #PERL_PATCHLEVEL= @@ -45,17 +45,17 @@ archlibexp='/usr/lib/perl5/5.8.0/i686-linux' archname='i686-linux' cc='gcc' -ccflags='-fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64' -cppflags='-fno-strict-aliasing' +ccflags='-DPERL5 -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64' +cppflags='-DPERL5 -fno-strict-aliasing' dlsrc='dl_dlopen.xs' dynamic_ext='B ByteLoader Cwd DB_File Data/Dumper Devel/DProf Devel/PPPort Devel/Peek Digest/MD5 Encode Fcntl File/Glob Filter/Util/Call GDBM_File I18N/Langinfo IO IPC/SysV List/Util MIME/Base64 NDBM_File Opcode POSIX PerlIO/encoding PerlIO/scalar PerlIO/via SDBM_File Socket Storable Sys/Hostname Sys/Syslog Time/HiRes Unicode/Normalize XS/APItest XS/Typemap attrs re threads threads/shared' extensions='B ByteLoader Cwd DB_File Data/Dumper Devel/DProf Devel/PPPort Devel/Peek Digest/MD5 Encode Fcntl File/Glob Filter/Util/Call GDBM_File I18N/Langinfo IO IPC/SysV List/Util MIME/Base64 NDBM_File Opcode POSIX PerlIO/encoding PerlIO/scalar PerlIO/via SDBM_File Socket Storable Sys/Hostname Sys/Syslog Time/HiRes Unicode/Normalize XS/APItest XS/Typemap attrs re threads threads/shared Errno' -installarchlib='/var/tmp/portage/perl-5.8.0-r12/image//usr/lib/perl5/5.8.0/i686-linux' -installprivlib='/var/tmp/portage/perl-5.8.0-r12/image//usr/lib/perl5/5.8.0' +installarchlib='/usr/lib/perl5/5.8.0/i686-linux' +installprivlib='/usr/lib/perl5/5.8.0' libpth='/usr/local/lib /lib /usr/lib' libs='-lpthread -lnsl -lndbm -lgdbm -ldb -ldl -lm -lc -lcrypt -lutil' osname='linux' -osvers='2.4.20-gentoo-r7' +osvers='2.4.21-gss' prefix='/usr' privlibexp='/usr/lib/perl5/5.8.0' sharpbang='#!' @@ -121,9 +121,8 @@ ccsymbols='__GNUC_MINOR__=2 __GNUC_PATCHLEVEL__=3 __GXX_ABI_VERSION=102 __NO_INLINE__=1 __STDC_HOSTED__=1 __gnu_linux__=1 __i386=1 __i386__=1 __linux=1 __linux__=1 __tune_i686__=1 __tune_pentiumpro__=1 __unix=1 __unix__=1 cpu=i386 machine=i386 system=posix' ccversion='' cf_by='root' [EMAIL PROTECTED] -homelinux.org' -cf_time='Tue Oct 28 19:57:10 CST 2003' +cf_email='[EMAIL PROTECTED]' +cf_time='Sun Aug 31 09:12:50 Local time zone must be set--see zic manual page 2003' charsize='1' chgrp='' chmod='chmod' @@ -148,10 +147,10 @@ config_arg5='-Dvendorprefix=/usr' config_arg6='-Dsiteprefix=/usr' config_arg7='-Dlocincpth= ' -config_arg8='-Doptimize=-march=pentium4 -O2 -pipe' +config_arg8='-Doptimize=-O3 -march=pentium4 -funroll-loops -pipe' config_arg9='-Duselargefiles' config_argc='18' -config_args='-des -Darchname=i686-linux -Dcc=gcc -Dprefix=/usr -Dvendorprefix=/usr -Dsiteprefix=/usr -Dlocincpth= -Doptimize=-march=pentium4 -O2 -pipe -Duselargefiles -Dd_dosuid -Dd_semctl_semun -Dscriptdir=/usr/bin -Dman3ext=3pm -Dcf_by=Gentoo -Ud_csh -Di_gdbm -Di_db -Di_ndbm' +config_args='-des -Darchname=i686-linux -Dcc=gcc -Dprefix=/usr -Dvendorprefix=/usr -Dsiteprefix=/usr -Dlocincpth= -Doptimize=-O3 -march=pentium4 -funroll-loops -pipe -Duselargefiles -Dd_dosuid -Dd_semctl_semun -Dscriptdir=/usr/bin -Dman3ext=3pm -Dcf_by=Gentoo -Ud_csh -Di_gdbm -Di_db -Di_ndbm' contains='grep' cp='cp' cpio='' @@ -563,9 +562,9 @@ date='date' db_hashtype='u_int32_t' db_prefixtype='size_t' -db_version_major='4' -db_version_minor='0' -db_version_patch='14' +db_version_major='3' +db_version_minor='2' +db_version_patch='9' defvoidused='15' direntrytype='struct dirent' dlext='so' @@ -597,10 +596,10 @@ freetype='void' from=':' full_ar='/usr/bin/ar' -full_csh='/bin/csh' +full_csh='csh' full_sed='/bin/sed' gccosandvers='' -gccversion='3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r2, propolice)' +gccversion='3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r1, propolice)' getgrent_r_proto='0' getgrgid_r_proto='0' getgrnam_r_proto='0' @@ -732,22 +731,22 @@ inc_version_list_init='0' incpath='' inews=''
Re: [gentoo-user] Perl Guru's? Having isssues recompiling perl
On Sun, Oct 26, 2003 at 04:49:15PM -0600, Paul Varner wrote: By running the test manually from the /var/tmp/portage/perl*/work directory, I have determined that the test doesn't like the Config.pm file that was configured. If I copy over my existing Config.pm and run the test manually it works, but if I use the one created during the configure and compile process, I get the problem listed above. A diff of the two Config.pm files doesn't show anything that jumps out at me. Since you can compile it if you substitute in your Config.pm file, are you aware of the process to step through the ebuild steps one at a time to install a package? You can use ebuild to unpack the package (ebuild perl*.ebuild unpack), then configure and compile it manually, create an empty file named .compiled somewhere in /var/tmp/perl*/ (I think it would be /var/tmp/perl*/work/, but I'm not 100% sure that's right), and then run ebuild perl*.ebuild merge. There is a FAQ on doing this that would have all the details. - richard -- Richard Kilgore [EMAIL PROTECTED] -- [EMAIL PROTECTED] mailing list