GNU gmp--build and corruption bugs--Ubuntu 11.04, c++

Josh Marshall joshua.r.marshall.1991 at gmail.com
Sun Jul 3 23:33:45 CEST 2011


Hello,
     I ran into what I believe are two separate bugs within gmp 5.0.2 on my
Ubuntu 11.04 x64 system.

    First, the build bug occurred when I tried to install gmp 5.0.2 from
source at the final install cli step, "sudo make install".  When I looked
through the output, I noticed that at some point that because one of the
directories in the install path had a space, it did not correctly recognize
the escape sequence, and broke off after the first space, which then
referred to a directory which did not exist and the installation failed.

     The second bug I think is more complex.  I'm making a proof of concept
program for a compression algorithm which reads in a whole file as a single
number, then uses primes to shrink it down.  Every time I run the program,
different primes are indicated as being important and relevant to shrinking
the number as divisors with no remainder.  I've tried using the program on
filed which are larger than 1MB, but my machine takes too long to load it
into RAM as a single number--this is not the issue.  The issue is that it
appears that the number is somehow corrupted each time its read in.  I have
source of the program which causes this issue attached to this email.  The
cli commands I use to build the program are: "g++ ~/Ubuntu\
One/research/oppf/v1.cpp -lgmp -lgmpxx -std=c++0x"  and " ./a.out
/home/anadon/Downloads/CIS\ 255\ MTE\ REVIEW\ 2\ by\ WEIRAUCH.docx".

My system: g++ -v outputs:

Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro
4.5.2-8ubuntu4' --with-bugurl=file:///usr/share/doc/gcc-4.5/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-4.5 --enable-shared --enable-multiarch
--with-multiarch-defaults=x86_64-linux-gnu --enable-linker-build-id
--with-system-zlib --libexecdir=/usr/lib/x86_64-linux-gnu
--without-included-gettext --enable-threads=posix
--with-gxx-include-dir=/usr/include/c++/4.5
--libdir=/usr/lib/x86_64-linux-gnu --enable-nls --with-sysroot=/
--enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes
--enable-plugin --enable-gold --enable-ld=default --with-plugin-ld=ld.gold
--enable-objc-gc --disable-werror --with-arch-32=i686 --with-tune=generic
--enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu
--target=x86_64-linux-gnu
Thread model: posix
gcc version 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu4)

Linux anadon-W860CU 2.6.38-10-generic #46-Ubuntu SMP Tue Jun 28 15:07:17 UTC
2011 x86_64 x86_64 x86_64 GNU/Linux

./config.guess outputs:

corei-unknown-linux-gnu

./configfsf.guess requires sudo permissions, then cannot be found to run.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: v1.cpp
Type: text/x-c++src
Size: 1877 bytes
Desc: not available
URL: <http://gmplib.org/list-archives/gmp-bugs/attachments/20110703/6a5f5497/attachment.bin>


More information about the gmp-bugs mailing list