Russ Whitaker wrote:
On Thu, 25 Jan 2007, Corey Osgood wrote: [..]
BTW, if you still want/need it, here's the error log compiled under Ubuntu 6.10 x64, with ubuntu's gcc 4.1.2:
According to the gcc home page gcc-4.1.2 will be released any day now.
Russ
It's a prerelease, but I guess officially it would still be 4.1.1: $ gcc -v Using built-in specs. Target: x86_64-linux-gnu Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --enable-checking=release x86_64-linux-gnu Thread model: posix gcc version 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)
Segher Boessenkool wrote:
gcc -m32 -nostdlib -nostartfiles -static -o linuxbios_ram -T /home/amp/LinuxBIOSv2/src/config/linuxbios_ram.ld linuxbios_ram.o linuxbios_ram.o: In function `idiv_long': (.text+0x11cb7): undefined reference to `__divdi3' linuxbios_ram.o: In function `idiv_long': (.text+0x11ccd): undefined reference to `__moddi3' linuxbios_ram.o: In function `div_long': (.text+0x11e1c): undefined reference to `__udivdi3' linuxbios_ram.o: In function `div_long': (.text+0x11e32): undefined reference to `__umoddi3' collect2: ld returned 1 exit status
with 3.3.6, also from the repos, it's a bit different:
That's different, [i]div_long is asking for a 64-bit division, which isn't a native instruction but implemented by the GCC support lib (libgcc), and you're explicitly building without it.
I've done nothing different than with any other build, except change the symlinks in /usr/bin to point to gcc-3.3, etc (ubuntu doesn't have any gcc-config style setup for easy changing of gcc versions). It could be I just missed something, but I didn't pass any extra options to make.
-Corey
P.S. Sorry for the gross mis-quote in my previous post