delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/01/03/03:52:35

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
From: Karl Robillard <krobillard AT cox DOT net>
To: cygwin AT cygwin DOT com
Subject: bzip2-1.0.2 from official home page not working with Cygwin
Date: Sat, 3 Jan 2004 00:47:31 -0800
User-Agent: KMail/1.5.3
MIME-Version: 1.0
Message-Id: <200401030047.31578.krobillard@cox.net>

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019