GNU gmp--build and corruption bugs--Ubuntu 11.04, c++
joshua.r.marshall.1991 at gmail.com
Sun Jul 3 23:33:45 CEST 2011
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.
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro
--program-suffix=-4.5 --enable-shared --enable-multiarch
--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
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
./configfsf.guess requires sudo permissions, then cannot be found to run.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1877 bytes
Desc: not available
More information about the gmp-bugs