This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

bzip2-1.0.2 from official home page not working with Cygwin


I'm trying to build a stand alone libbz2 compiled with -mno-cygwin so I 
grabbed the source from http://sources.redhat.com/bzip2/ rather than using 
the version that comes with Cygwin.

Running make produces warnings and one of the tests fails.  Below is the 
output using gcc 3.3.1-3.


-Karl


> $ make
>
> If compilation produces errors, or a large number of warnings,
> please read README.COMPILATION.PROBLEMS -- you might be able to
> adjust the flags in this Makefile to improve matters.
>
> gcc -Wall -Winline -O2 -fomit-frame-pointer -fno-strength-reduce  -c
> blocksort.c
>
> blocksort.c: In function `fallbackQSort3':
> blocksort.c:83: warning: inlining failed in call to `fallbackSimpleSort'
> blocksort.c:162: warning: called from here
> blocksort.c: In function `mainSimpleSort':
> blocksort.c:400: warning: inlining failed in call to `mainGtU'
> blocksort.c:561: warning: called from here
> blocksort.c:400: warning: inlining failed in call to `mainGtU'
> blocksort.c:575: warning: called from here
> blocksort.c:400: warning: inlining failed in call to `mainGtU'
> blocksort.c:589: warning: called from here
> gcc -Wall -Winline -O2 -fomit-frame-pointer -fno-strength-reduce  -c
> huffman.c gcc -Wall -Winline -O2 -fomit-frame-pointer -fno-strength-reduce 
> -c crctable.c
> gcc -Wall -Winline -O2 -fomit-frame-pointer -fno-strength-reduce  -c
> randtable.c
>
> gcc -Wall -Winline -O2 -fomit-frame-pointer -fno-strength-reduce  -c
> compress.c
> gcc -Wall -Winline -O2 -fomit-frame-pointer -fno-strength-reduce  -c
> decompress.
> c
> gcc -Wall -Winline -O2 -fomit-frame-pointer -fno-strength-reduce  -c
> bzlib.c rm -f libbz2.a
> ar cq libbz2.a blocksort.o huffman.o crctable.o randtable.o compress.o
> decompres
> s.o bzlib.o
> ranlib libbz2.a
> gcc -Wall -Winline -O2 -fomit-frame-pointer -fno-strength-reduce  -c
> bzip2.c bzip2.c: In function `uncompressStream':
> bzip2.c:557: warning: dereferencing type-punned pointer will break
> strict-aliasing rules
> bzip2.c: In function `testStream':
> bzip2.c:665: warning: dereferencing type-punned pointer will break
> strict-aliasi
> ng rules
> gcc -Wall -Winline -O2 -fomit-frame-pointer -fno-strength-reduce   -o bzip2
> bzip
> 2.o -L. -lbz2
> gcc -Wall -Winline -O2 -fomit-frame-pointer -fno-strength-reduce  -c
> bzip2recove
> r.c
> gcc -Wall -Winline -O2 -fomit-frame-pointer -fno-strength-reduce   -o
> bzip2recov
> er bzip2recover.o
>
> Doing 6 tests (3 compress, 3 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 -3  < sample3.ref > sample3.rb2
> ./bzip2 -d  < sample1.bz2 > sample1.tst
> ./bzip2 -d  < sample2.bz2 > sample2.tst
> ./bzip2 -ds < sample3.bz2 > sample3.tst
> cmp sample1.bz2 sample1.rb2
> cmp sample2.bz2 sample2.rb2
> cmp sample3.bz2 sample3.rb2
> sample3.bz2 sample3.rb2 differ: char 11, line 1
> make: *** [test] Error 1


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]