[vbox-dev] Patch for x86_64 build and a question

Larry Finger Larry.Finger at lwfinger.net
Tue Apr 17 19:10:02 GMT 2007


I know that building VBox in x86_64 isn't supported, but I have gotten most of the way. So far, the 
only change I have needed was the following patch to configure.

Index: configure
===================================================================
--- configure	(revision 2071)
+++ configure	(working copy)
@@ -194,10 +194,12 @@
    case "$CPU" in
      i[3456789]86|x86)
        MACHINE='x86'
+      LIBDIR='lib'
        ;;
      x86_64|amd64)
        MACHINE='amd64'
        CPU='k8'
+      LIBDIR='lib64'

        echo ""
        echo ""
@@ -495,7 +497,7 @@
      else
        log_success "found version $libidl_ver"
        cnf_append "VBOX_LIBIDL_CONFIG" \
-        "PKG_CONFIG_PATH=`libIDL-config-2 --prefix`/lib/pkgconfig `which_wrapper libIDL-config-2`"
+        "PKG_CONFIG_PATH=`libIDL-config-2 --prefix`/$LIBDIR/pkgconfig `which_wrapper libIDL-config-2`"
      fi
    elif check_avail "libIDL-config" libIDL-config; then
      libidl_ver=`libIDL-config --version`


My question concerns setting the proper path for libstdc++. My build goes fine up to building the 
tests, where I get the following:

kmk[4]: Entering directory `/home/finger/vbox/src/VBox/VMM/testcase'
kBuild: Linking tstVMStructGC
/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld: skipping incompatible 
/usr/lib64/gcc/x86_64-suse-linux/4.1.2/libstdc++.so when searching for -lstdc++
/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld: skipping incompatible 
/usr/lib64/gcc/x86_64-suse-linux/4.1.2/libstdc++.a when searching for -lstdc++
/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld: cannot find -lstdc++
collect2: ld returned 1 exit status

Which version of libstdc++ does the build need? Mine is /usr/lib64/libstdc++.so.6.0.8.

Any suggestions on what I need to change?

Thanks,

Larry





More information about the vbox-dev mailing list