Sender: peon AT tc DOT umn DOT edu Message-Id: <36DE2F9D.894AB6C@tc.umn.edu> Date: Thu, 04 Mar 1999 07:00:45 +0000 From: Seth Van Oort X-Mailer: Mozilla 4.5 [en] (X11; I; Linux 2.0.36 i686) X-Accept-Language: en MIME-Version: 1.0 To: pgcc AT delorie DOT com Subject: (no subject) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: pgcc AT delorie DOT com the sanity test fails when compiling bzip2 with pgcc. All the information you need should be obvious from the text below. Maybe it's something in bzip2 but other compilers didn't fail the test and pgcc with the default CFLAGS (-Wall -O2 -fomit-frame-pointer -fno-strength-reduce) passed too. pgcc version: Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/pgcc-2.91.60/specs gcc version pgcc-2.91.60 19981201 (egcs-1.1.1 release) [root AT x139-199 bzip2-0.9.0c]# make CC=/usr/local/bin/gcc CFLAGS='-O6' /usr/local/bin/gcc -O6 -c blocksort.c -o blocksort.o /usr/local/bin/gcc -O6 -c huffman.c -o huffman.o /usr/local/bin/gcc -O6 -c crctable.c -o crctable.o /usr/local/bin/gcc -O6 -c randtable.c -o randtable.o /usr/local/bin/gcc -O6 -c compress.c -o compress.o /usr/local/bin/gcc -O6 -c decompress.c -o decompress.o /usr/local/bin/gcc -O6 -c bzlib.c -o bzlib.o rm -f libbz2.a ar clq libbz2.a blocksort.o huffman.o crctable.o randtable.o compress.o decompress.o bzlib.o /usr/local/bin/gcc -O6 -c bzip2.c /usr/local/bin/gcc -O6 -o bzip2 bzip2.o -L. -lbz2 /usr/local/bin/gcc -O6 -o bzip2recover bzip2recover.c Doing 4 tests (2 compress, 2 uncompress) ... If there's a problem, things might stop at this point. ./bzip2 -1 < sample1.ref > sample1.rb2 ./bzip2 -2 < sample2.ref > sample2.rb2 ./bzip2 -d < sample1.bz2 > sample1.tst ./bzip2 -d < sample2.bz2 > sample2.tst Checking test results. If any of the four "cmp"s which follow report any differences, something is wrong. If you can't easily figure out what, please let me know (jseward AT acm DOT org). cmp sample1.bz2 sample1.rb2 sample1.bz2 sample1.rb2 differ: char 20, line 1 make: *** [test] Error 1 [root AT x139-199 bzip2-0.9.0c]#