News:

Latest versions:
Server plugin: 0.5.1
MVP dongle: 0.5.2
Raspberry Pi client: 0.5.2
Windows client: 0.5.2-1

Main Menu

Error building vomp client

Started by stu-e, April 21, 2008, 23:58:13

Previous topic - Next topic

stu-e

I am trying to use the makedevenv-5 script to build the latest Vomp client but I get this error:

applying patch /home/stuart/vompbuild/crosstool/crosstool-0.43/patches/glibc-2.2.5/glibc-2.2.5-allow-gcc-4.0-configure.patch
patching file configure
Hunk #1 FAILED at 1476.
1 out of 1 hunk FAILED -- saving rejects to file configure.rej
patch /home/stuart/vompbuild/crosstool/crosstool-0.43/patches/glibc-2.2.5/glibc-2.2.5-allow-gcc-4.0-configure.patch failed

The patch file concerned contains only 1 patch:

Fixes
checking version of powerpc-405-linux-gnu-gcc ... 4.0.0, bad
checking for gnumake... no
checking for gmake... no
checking for make... make
checking version of make... 3.80, ok
configure: error:
*** These critical programs are missing or too old:gcc


--- glibc-2.2.5/configure.old   2005-03-10 00:23:46.374213600 -0800
+++ glibc-2.2.5/configure   2005-03-10 00:25:13.313996744 -0800
@@ -1476,7 +1476,7 @@
   ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustpi-]*[0-9.]*\).*$/\1/p'`
   case $ac_prog_version in
     '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
-    *gcc-2.9[5-9].*|*2.8.[1-9]*|*2.9|*2.9.[0-9]*|2.9[5-9]*|3.[0-9]*|cygnus-2.9[1-9]*|gcc-2.9[5-9]|gcc-2.1[0-9][0-9]|sgicc-*)
+    *gcc-2.9[5-9].*|*2.8.[1-9]*|*2.9|*2.9.[0-9]*|2.9[5-9]*|3.[0-9]*|4.[012]*|cygnus-2.9[1-9]*|gcc-2.9[5-9]|gcc-2.1[0-9][0-9]|sgicc-*)
        ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
     *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;

Anybody know what is wrong here?

I compared the file gcc-3.4.5-glibc-2.2.5/glibc-2.2.5/configure to the patch file and I cannot see why the patch does not work.

Stu

davep

As it's only a one-line patch, could you make the change manually?

Dave

stu-e

Won't that get overwritten when I run the makedevenv-5 script?

I was wondering why the patch file refers to file configure.old which does not exist. Could that be the problem?
I tried editing the patch file to refer to file configure instead of configure.old, but the editied patch file got overwritten when I ran the makedevenv-5 script again. As a result I got the error again.

Maybe I should try upgrading my compiler, perhaps that way it would use a different set of patch files?


stu-e

I have managed to succeed in building a vomp dongle using the makedevenv-5 script.
I had to edit some of the packages to avoid the patch failure I reported earlier.
In brief, running the script for the first time goes something like this:

Execute the makedevenv-5 script. The script will stop at the patch failure, but will have managed
to download some packges to the pacakages directory in your vomp build directory.

cd into the packages directory and unpack compiler-2 and crosstool-0.43 archives.

The compiler-2 archive will unpack to a directory called crosstool. In there edit the script called prepare,
commenting out the last two lines. (These two lines delete and copy over a modified version of the
glibc-2.2.5-allow-gcc4.0-configure.patch.) Open the file glibc-2.2.5-allow-gcc4.0-configure.patch and
copy the single line of code that this patch applies.

Go into the crosstool-0.43/patches/glibc-2.2.5 directory and open the file
glibc-2.2.5-allow-gcc4.0-configure.patch. Replace the single line of code this patch applies with the
line copied from the compiler-2 archive version of glibc-2.2.5-allow-gcc4.0-configure.patch.

Move the original compiler-2.tar.gz and crosstool-0.43.tar.gz archives somewhere safe and
re-archive the modified versions maintaining the orignal archive file names.

Run the makedevenv-5 script again. The script will not download the packages again so it will not
overwrite the changes made to the packages.

Stuart