Hi Olive. I followed the instructions word for word on this page: http://virtualbox.org/wiki/Linux%20build%20instructions
All packages have been installed with no errors as required by that page according to aptitude. Here is the output of slocate: $ slocate stdc++.a /home/brphelps/windrive/yagarto/arm-elf/lib/be/fpu/interwork/libstdc++.a /home/brphelps/windrive/yagarto/arm-elf/lib/be/fpu/nofmult/libstdc++.a /home/brphelps/windrive/yagarto/arm-elf/lib/be/fpu/libstdc++.a /home/brphelps/windrive/yagarto/arm-elf/lib/be/interwork/libstdc++.a /home/brphelps/windrive/yagarto/arm-elf/lib/be/nofmult/libstdc++.a /home/brphelps/windrive/yagarto/arm-elf/lib/be/libstdc++.a /home/brphelps/windrive/yagarto/arm-elf/lib/fpu/interwork/libstdc++.a /home/brphelps/windrive/yagarto/arm-elf/lib/fpu/nofmult/libstdc++.a /home/brphelps/windrive/yagarto/arm-elf/lib/fpu/libstdc++.a /home/brphelps/windrive/yagarto/arm-elf/lib/interwork/libstdc++.a /home/brphelps/windrive/yagarto/arm-elf/lib/nofmult/libstdc++.a /home/brphelps/windrive/yagarto/arm-elf/lib/libstdc++.a /home/brphelps/windrive/yagarto/arm-elf/lib/thumb/be/interwork/libstdc ++.a /home/brphelps/windrive/yagarto/arm-elf/lib/thumb/be/libstdc++.a /home/brphelps/windrive/yagarto/arm-elf/lib/thumb/interwork/libstdc++.a /home/brphelps/windrive/yagarto/arm-elf/lib/thumb/libstdc++.a /home/brphelps/My_Documents/ARM_Atmel_Sam7X256/gnuarm-3.4.3/arm-elf/lib/be/fpu/interwork/libstdc++.a /home/brphelps/My_Documents/ARM_Atmel_Sam7X256/gnuarm-3.4.3/arm-elf/lib/be/fpu/nofmult/libstdc++.a /home/brphelps/My_Documents/ARM_Atmel_Sam7X256/gnuarm-3.4.3/arm-elf/lib/be/fpu/libstdc++.a /home/brphelps/My_Documents/ARM_Atmel_Sam7X256/gnuarm-3.4.3/arm-elf/lib/be/interwork/libstdc++.a /home/brphelps/My_Documents/ARM_Atmel_Sam7X256/gnuarm-3.4.3/arm-elf/lib/be/nofmult/libstdc++.a /home/brphelps/My_Documents/ARM_Atmel_Sam7X256/gnuarm-3.4.3/arm-elf/lib/be/libstdc++.a /home/brphelps/My_Documents/ARM_Atmel_Sam7X256/gnuarm-3.4.3/arm-elf/lib/fpu/interwork/libstdc++.a /home/brphelps/My_Documents/ARM_Atmel_Sam7X256/gnuarm-3.4.3/arm-elf/lib/fpu/nofmult/libstdc++.a /home/brphelps/My_Documents/ARM_Atmel_Sam7X256/gnuarm-3.4.3/arm-elf/lib/fpu/libstdc++.a /home/brphelps/My_Documents/ARM_Atmel_Sam7X256/gnuarm-3.4.3/arm-elf/lib/interwork/libstdc++.a /home/brphelps/My_Documents/ARM_Atmel_Sam7X256/gnuarm-3.4.3/arm-elf/lib/nofmult/libstdc++.a /home/brphelps/My_Documents/ARM_Atmel_Sam7X256/gnuarm-3.4.3/arm-elf/lib/libstdc++.a /home/brphelps/My_Documents/ARM_Atmel_Sam7X256/gnuarm-3.4.3/arm-elf/lib/thumb/be/interwork/libstdc++.a /home/brphelps/My_Documents/ARM_Atmel_Sam7X256/gnuarm-3.4.3/arm-elf/lib/thumb/be/libstdc++.a /home/brphelps/My_Documents/ARM_Atmel_Sam7X256/gnuarm-3.4.3/arm-elf/lib/thumb/interwork/libstdc++.a /home/brphelps/My_Documents/ARM_Atmel_Sam7X256/gnuarm-3.4.3/arm-elf/lib/thumb/libstdc++.a /root/ext_usbdrive_bak/fs-root-debian-etch-modd/usr/lib/gcc/i486-linux-gnu/4.1.2/64/libstdc++.a /root/ext_usbdrive_bak/fs-root-debian-etch-modd/usr/lib/gcc/i486-linux-gnu/4.1.2/libstdc++.a /root/ext_usbdrive_bak/usr/lib/gcc/i486-linux-gnu/4.1.2/64/libstdc++.a /root/ext_usbdrive_bak/usr/lib/gcc/i486-linux-gnu/4.1.2/libstdc++.a /usr/lib/gcc/i586-mingw32msvc/3.4.5/libstdc++.a /usr/lib/gcc/x86_64-linux-gnu/4.1/libstdc++.a /usr/lib/gcc/x86_64-linux-gnu/3.4.6/32/libstdc++.a /usr/lib/gcc/x86_64-linux-gnu/3.4.6/libstdc++.a It looks like I have it. What next? On Sat, 2008-01-05 at 16:20 +0100, Olive wrote: > Brian Phelps wrote: > > I asked this question in the IRC channel and verified that I have all > > required libraries installed. I am running ubuntu gutsy-gibbon on intel > > core 2 duo (x86_64 arch) and using the stock ubuntu real time kernel. I > > am just trying to build the kernel module to work with the real-time > > kernel, since an appropriate module is not in the repository. > > > > I am using the RT kernel so I can do Pro-Audio stuff > > Code: > > > > $ uname -r > > 2.6.22-14-rt > > > > > > The errors: > > > > Code: > > kBuild: Linking tstVMStructGC > > /usr/bin/ld: cannot find -lstdc++ > > collect2: ld returned 1 exit status > > kmk[3]: *** > > [/usr/src/VirtualBox-1.5.4_OSE/out/linux.amd64/release/obj/src/VBox/VMM/tstVMStructGC/tstVMStructGC] > > Error 1 > > The failing command: > > @g++ -m32 -g -g > > -o > > /usr/src/VirtualBox-1.5.4_OSE/out/linux.amd64/release/obj/src/VBox/VMM/tstVMStructGC/tstVMStructGC > > > > /usr/src/VirtualBox-1.5.4_OSE/out/linux.amd64/release/obj/src/VBox/VMM/tstVMStructGC/tstVMStructGC.o > > /usr/lib/gcc/x86_64-linux-gnu/4.1.3/32/libgcc.a -Wl,-Map > > -Wl,/usr/src/VirtualBox-1.5.4_OSE/out/linux.amd64/release/obj/src/VBox/VMM/tstVMStructGC/tstVMStructGC.map > > -Wl,--cref > > > > Also, It makes it far enough so that a kernel module is created, but it > > will not load with insmod, it gives format errors. > > > > Thanks for any help > > > > > > ld looks for stdc++.a. Have installed (the package) containing this > file? In a directory which gcc / ld looks for (look at the -L option of > gcc). I think it is possible to pass options to gcc by settings the > CFLAGS environment variable. > > Olive > > > _______________________________________________ > vbox-users mailing list > [email protected] > http://vbox.innotek.de/mailman/listinfo/vbox-users -- Brian Phelps <[EMAIL PROTECTED]> _______________________________________________ vbox-users mailing list [email protected] http://vbox.innotek.de/mailman/listinfo/vbox-users
