Opened 9 years ago

Last modified 8 months ago

#13680 new defect

unset BZIP2 in the build process

Reported by: zieglerk Owned by: GeorgSWeber
Priority: minor Milestone: sage-6.4
Component: build Keywords: bzip2, build, environment variable
Cc: mjo Merged in:
Authors: Reviewers:
Report Upstream: Reported upstream. No feedback yet. Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description

Building Sage 5.3 (and also 4.8 and 5.2) on Ubuntu 12.04 (32-bit and 64-bit) will abort during the tests for building bzip2, if the user has set the environment variable BZIP2 -- although bzip2's man page permits that to specify default options.

The relevant part of the log (given 'export BZIP2="-9"') reads

bzip2-1.0.6
====================================================
Extracting package /home/zieglerk/local/share/sage/spkg/standard/bzip2-1.0.6.spkg
-rw-r--r-- 1 zieglerk zieglerk 796422 May 14 14:56 /home/zieglerk/local/share/sage/spkg/standard/bzip2-1.0.6.spkg
Finished extraction
****************************************************
Host system:
Linux ulysses 3.2.0-31-generic-pae #50-Ubuntu SMP Fri Sep 7 16:39:45 UTC 2012 i686 i686 i386 GNU/Linux
****************************************************
C compiler: gcc
C compiler version:
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-linux-gnu/4.6/lto-wrapper
Target: i686-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.6.3-1ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --enable-objc-gc --enable-targets=all --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=i686-linux-gnu --host=i686-linux-gnu --target=i686-linux-gnu
Thread model: posix
gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)
****************************************************
make[2]: Entering directory `/home/zieglerk/local/share/sage/spkg/build/bzip2-1.0.6/src'
gcc -fPIC -O2 -g  -c huffman.c
gcc -fPIC -O2 -g  -c blocksort.c
gcc -fPIC -O2 -g  -c crctable.c
gcc -fPIC -O2 -g  -c randtable.c
gcc -fPIC -O2 -g  -c compress.c
gcc -fPIC -O2 -g  -c decompress.c
gcc -fPIC -O2 -g  -c bzlib.c
gcc -fPIC -O2 -g  -c bzip2.c
bzip2.c: In function ‘applySavedFileAttrToOutputFile’:
bzip2.c:1073:4: warning: ignoring return value of ‘fchown’, declared with attribute warn_unused_result [-Wunused-result]
gcc -fPIC -O2 -g  -c bzip2recover.c
gcc -fPIC -O2 -g   -o bzip2recover bzip2recover.o
rm -f libbz2.a
ar cq libbz2.a blocksort.o huffman.o crctable.o randtable.o compress.o decompress.o bzlib.o
ranlib libbz2.a
gcc -fPIC -O2 -g   -o bzip2 bzip2.o -L. -lbz2

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: Can't open input file bzip2-1.0.6: No such file or directory.
make[2]: *** [test] Error 1
make[2]: Leaving directory `/home/zieglerk/local/share/sage/spkg/build/bzip2-1.0.6/src'
Error building bzip2
************************************************************************
Error installing package bzip2-1.0.6

After 'unset BZIP2' the installation runs straight through.

This was discussed on https://groups.google.com/forum/?fromgroups=#!topic/sage-devel/GI3t5CQEz54 and Volker Braun suggested to "unset BZIP2 in the build process" (and also that I file this ticket).

Change History (6)

comment:1 Changed 8 years ago by jdemeyer

  • Milestone changed from sage-5.11 to sage-5.12

comment:2 Changed 7 years ago by vbraun_spam

  • Milestone changed from sage-6.1 to sage-6.2

comment:3 Changed 7 years ago by vbraun_spam

  • Milestone changed from sage-6.2 to sage-6.3

comment:4 Changed 7 years ago by vbraun_spam

  • Milestone changed from sage-6.3 to sage-6.4

comment:5 Changed 8 months ago by mjo

  • Report Upstream changed from N/A to Reported upstream. No feedback yet.

This is an upstream issue, not necessarily a sage problem:

https://gitlab.com/federicomenaquintero/bzip2/-/issues/31

comment:6 Changed 8 months ago by mjo

  • Cc mjo added
Note: See TracTickets for help on using tickets.