RE: 64 bit Debian Linux/PowerPC OK but very noisy
Michael G Schwern: # On Sat, Mar 16, 2002 at 02:36:45PM -0800, Hong Zhang wrote: # # Can you check what is the sizeof(INTVAL) and sizeof(void*)? # Some warnings should not have happened. # # (Note: Not a C programmer) # # INTVAL? I can't find where its defined. INTVAL is in config.h. Make sure you #define PARROT_IN_CORE--or you can just test Parrot_Int, which should be the same thing and is publicly defined. --Brent Dax [EMAIL PROTECTED] @roles=map {Parrot $_} qw(embedding regexen Configure) #define private public --Spotted in a C++ program just before a #include
RE: 64 bit Debian Linux/PowerPC OK but very noisy
It looks like you are running in 32-bit environment, but using 64-bit INTVAL. The INTVAL must be the same size as void* in order to cast between them without warning. Please try to reconfig using 32-bit INTVAL, or running process in 64-bit mode. Hong -Original Message- From: Michael G Schwern [mailto:[EMAIL PROTECTED]] Sent: Saturday, March 16, 2002 2:54 PM To: Hong Zhang Cc: [EMAIL PROTECTED] Subject: Re: 64 bit Debian Linux/PowerPC OK but very noisy On Sat, Mar 16, 2002 at 02:36:45PM -0800, Hong Zhang wrote: Can you check what is the sizeof(INTVAL) and sizeof(void*)? Some warnings should not have happened. (Note: Not a C programmer) INTVAL? I can't find where its defined. int main (void) { printf(int %d, long long %d, void %d\n, sizeof(int), sizeof(long long), sizeof(void*)); } int 4, long long 8, void 4. From perl -V: intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=87654321 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8 ivtype='long long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=8, usemymalloc=n, prototype=define -- Michael G. Schwern [EMAIL PROTECTED] http://www.pobox.com/~schwern/ Perl Quality Assurance[EMAIL PROTECTED] Kwalitee Is Job One The key, my friend, is hash browns. http://www.goats.com/archive/980402.html
Re: 64 bit Debian Linux/PowerPC OK but very noisy
On Sun, Mar 17, 2002 at 10:16:13AM -0800, Brent Dax wrote: Michael G Schwern: # On Sat, Mar 16, 2002 at 02:36:45PM -0800, Hong Zhang wrote: # # Can you check what is the sizeof(INTVAL) and sizeof(void*)? # Some warnings should not have happened. # # (Note: Not a C programmer) # # INTVAL? I can't find where its defined. INTVAL is in config.h. Make sure you #define PARROT_IN_CORE--or you can just test Parrot_Int, which should be the same thing and is publicly defined. From config.h typedef long long INTVAL; typedef unsigned long long UINTVAL; -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One Out of ammunition. God save the King.
Re: 64 bit Debian Linux/PowerPC OK but very noisy
On Sun, Mar 17, 2002 at 12:50:57PM -0800, Hong Zhang wrote: It looks like you are running in 32-bit environment, but using 64-bit INTVAL. The INTVAL must be the same size as void* in order to cast between them without warning. Please try to reconfig using 32-bit INTVAL, or running process in 64-bit mode. Huh? Remember, I am not a C programmer. I just took my perl 5.6.1 that's compiled with 64 bit ints and ran Configure.pl with it. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One Out of ammunition. God save the King.
Re: 64 bit Debian Linux/PowerPC OK but very noisy
On Saturday 16 March 2002 13:24, Michael G Schwern wrote: This is parrot built using a 5.6.1 with 64 bit integers. The tests pass ok, but there's a heap of warnings in the build. Here's the complete make output. Known problem. We currently suck at most things not long or double. My stomping grounds for after 0.0.4, I think. (Or before, if I can get to them. But I'd rather just caveat that it doesn't work, because, in general, it doesn't. )-: -- Bryan C. Warnock [EMAIL PROTECTED]
RE: 64 bit Debian Linux/PowerPC OK but very noisy
Michael G Schwern: # On Sun, Mar 17, 2002 at 12:50:57PM -0800, Hong Zhang wrote: # # It looks like you are running in 32-bit environment, but # using 64-bit INTVAL. The INTVAL must be the same size as # void* in order to cast between them without warning. # Please try to reconfig using 32-bit INTVAL, or running # process in 64-bit mode. # # Huh? # # Remember, I am not a C programmer. I just took my perl 5.6.1 that's # compiled with 64 bit ints and ran Configure.pl with it. Okay. When Configure asks: How big would you like integers to be? [long long] just type 'long' (without quotes) and hit enter. You won't get 64-bit support, but you will get a building Parrot, which is usually a good thing. ;^) --Brent Dax [EMAIL PROTECTED] @roles=map {Parrot $_} qw(embedding regexen Configure) #define private public --Spotted in a C++ program just before a #include
Re: 64 bit Debian Linux/PowerPC OK but very noisy
On Sun, Mar 17, 2002 at 09:21:12PM -0800, Brent Dax wrote: # Remember, I am not a C programmer. I just took my perl 5.6.1 that's # compiled with 64 bit ints and ran Configure.pl with it. Okay. When Configure asks: How big would you like integers to be? [long long] just type 'long' (without quotes) and hit enter. You won't get 64-bit support, but you will get a building Parrot, which is usually a good thing. ;^) Well, the point isn't that Parrot builds. The point is that Configure should DWIM when I throw it Interesting (in the Chinese sense) perl configurations. Currently it doesn't. If Parrot is busted wrt 64 bit ints on 32 bit platforms, could Configure just throw a warning? -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One rocking chairIn the old days (say, Amiga :-) we had only kilobytes of stack. And the road to school was surrounded by hungry wolves. And it was steep uphill. Both ways./rocking chair -- Jarkko Hietaniemi in [EMAIL PROTECTED]
RE: 64 bit Debian Linux/PowerPC OK but very noisy
Michael G Schwern: # On Sun, Mar 17, 2002 at 09:21:12PM -0800, Brent Dax wrote: # # Remember, I am not a C programmer. I just took my perl # 5.6.1 that's # # compiled with 64 bit ints and ran Configure.pl with it. # # Okay. When Configure asks: # # How big would you like integers to be? [long long] # # just type 'long' (without quotes) and hit enter. You won't # get 64-bit # support, but you will get a building Parrot, which is usually a good # thing. ;^) # # Well, the point isn't that Parrot builds. The point is that Configure # should DWIM when I throw it Interesting (in the Chinese sense) perl # configurations. Currently it doesn't. # # If Parrot is busted wrt 64 bit ints on 32 bit platforms, could # Configure just throw a warning? How do we detect if you've chosen a 64-bit int type? How do we detect if we're on a 32-bit platform? Actually, I may have just figured out how to do this. Nevermind. ;^) --Brent Dax [EMAIL PROTECTED] @roles=map {Parrot $_} qw(embedding regexen Configure) #define private public --Spotted in a C++ program just before a #include
RE: 64 bit Debian Linux/PowerPC OK but very noisy
Can you check what is the sizeof(INTVAL) and sizeof(void*)? Some warnings should not have happened. Hong -Original Message- From: Michael G Schwern [mailto:[EMAIL PROTECTED]] Sent: Saturday, March 16, 2002 10:24 AM To: [EMAIL PROTECTED] Subject: 64 bit Debian Linux/PowerPC OK but very noisy This is parrot built using a 5.6.1 with 64 bit integers. The tests pass ok, but there's a heap of warnings in the build. Here's the complete make output. perl5.6.1 vtable_h.pl perl5.6.1 make_vtable_ops.pl vtable.ops perl5.6.1 ops2c.pl C core.ops io.ops rx.ops vtable.ops include/parrot/oplib/core_ops.hperl5.6.1 ops2c.pl CPrederef core.ops io.ops rx.ops vtable.ops include/parrot/oplib/core_ops_prederef.hcc -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -Wstrict-prototypes -Wmissing-prototypes -Winline -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion -Waggregate-return -Winline -W -Wno-unused -Wsign-compare -I./include -o test_main.o -c test_main.c cc -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -Wstrict-prototypes -Wmissing-prototypes -Winline -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion -Waggregate-return -Winline -W -Wno-unused -Wsign-compare-I./include -o exceptions.o -c exceptions.c cc -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -Wstrict-prototypes -Wmissing-prototypes -Winline -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion -Waggregate-return -Winline -W -Wno-unused -Wsign-compare-I./include -o global_setup.o -c global_setup.c global_setup.c: In function `init_world': global_setup.c:23: warning: passing arg 1 of `Parrot_Array_class_init' with different width due to prototype global_setup.c:24: warning: passing arg 1 of `Parrot_PerlUndef_class_init' with different width due to prototype global_setup.c:25: warning: passing arg 1 of `Parrot_PerlInt_class_init' with different width due to prototype global_setup.c:26: warning: passing arg 1 of `Parrot_PerlNum_class_init' with different width due to prototype global_setup.c:27: warning: passing arg 1 of `Parrot_PerlString_class_init' with different width due to prototype global_setup.c:28: warning: passing arg 1 of `Parrot_PerlArray_class_init' with different width due to prototype global_setup.c:29: warning: passing arg 1 of `Parrot_PerlHash_class_init' with different width due to prototype global_setup.c:30: warning: passing arg 1 of `Parrot_ParrotPointer_class_init' with different width due to prototype global_setup.c:31: warning: passing arg 1 of `Parrot_IntQueue_class_init' with different width due to prototype cc -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -Wstrict-prototypes -Wmissing-prototypes -Winline -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion -Waggregate-return -Winline -W -Wno-unused -Wsign-compare-I./include -o interpreter.o -c interpreter.c interpreter.c: In function `make_interpreter': interpreter.c:481: warning: passing arg 1 of `mem_sys_allocate' with different width due to prototype interpreter.c:501: warning: passing arg 2 of `pmc_new' with different width due to prototype interpreter.c:577: warning: passing arg 3 of `Parrot_string_make' with different width due to prototype interpreter.c:577: warning: passing arg 5 of `Parrot_string_make' with different width due to prototype interpreter.c:579: warning: passing arg 3 of `Parrot_string_make' with different width due to prototype interpreter.c:579: warning: passing arg 5 of `Parrot_string_make' with different width due to prototype cc -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -Wstrict-prototypes -Wmissing-prototypes -Winline -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion -Waggregate-return -Winline -W -Wno-unused -Wsign-compare-I./include -o parrot.o -c parrot.c cc -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -Wstrict-prototypes -Wmissing-prototypes -Winline -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion -Waggregate-return -Winline -W -Wno-unused -Wsign-compare-I./include -o register.o -c register.c cc -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -Wstrict-prototypes -Wmissing-prototypes -Winline -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion -Waggregate-return -Winline -W -Wno-unused -Wsign-compare-I./include -o core_ops.o -c core_ops.c core.ops: In function `Parrot_close_i': core.ops:93: warning: cast to pointer from integer of different size core.ops
Re: 64 bit Debian Linux/PowerPC OK but very noisy
On Sat, Mar 16, 2002 at 02:36:45PM -0800, Hong Zhang wrote: Can you check what is the sizeof(INTVAL) and sizeof(void*)? Some warnings should not have happened. (Note: Not a C programmer) INTVAL? I can't find where its defined. int main (void) { printf(int %d, long long %d, void %d\n, sizeof(int), sizeof(long long), sizeof(void*)); } int 4, long long 8, void 4. From perl -V: intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=87654321 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8 ivtype='long long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=8, usemymalloc=n, prototype=define -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One The key, my friend, is hash browns. http://www.goats.com/archive/980402.html