OpenWrt Forum Archive

Topic: Compile / make problem

The content of this topic has been archived on 24 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Trying to compile 7.07 on my system but it keeps failing the check for a working copy of make. Says I need 3.81 but I HAVE 3.81.....

Build dependency: Please install GNU make v3.81 or later. (This version has bugs)

Prerequisite check failed. Use FORCE=1 to override.
make: *** [tmp/.prereq-build] Error 1
[nathaniel@nathaniel kamikaze_7.07]$ make --v
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for x86_64-redhat-linux-gnu

Fedora Core 6 kernel 2.6.22.2-42 x86_64

Any ideas?

Am tempted to just force it and see what happens but not sure if I would/ should trust any firmware that it makes.

do you have multiple version of GCC installed ? I had a similar issue when I had several versions of gcc installed with another program awhile ago, I think you can change which version of GCC you can compile with something like 'export CC=/usr/bin/gcc-3.81' or where you have installed 3.81

If you Google selecting different versions of GCC im sure it will come up with something.

I could be way off the mark though

-Cheers
Rip

Does the fact you use a 64 bit Linux have anything to do with the problem? I am no expert on this, but I thought the buildroot provided by OpenWRT was designed to run on x86.

I don't know one way or the other if it was designed to run on x86, but it works just fine on 64-bit Debian 4.0.

Ok... Scratch my remark then.

The comment about the x86-64 was my next question as well.

I have checked and seem to only have one version of gcc installed. At least there is only one gcc file in the directory you mentioned. I have the latest versions both gcc and make available through Yum....

Seems a bit wierd....

I might be off the mark here, but Fedora splits very package up in regular program & headers (usually called $package-dev.blabla.rpm). Did you install the headers for make and gcc, if there are any? I cannot imagine they'd split out headers out of development packages, but it's worth a try...

At least Kamikaze 7.07 release compiles on 32bit and 64bit hosts fine. I'm using Ubuntu Feisty Fawn 7.04. 32bit host is a Intel Core 2 Duo. 64bit host is a AMD Turion64.

Btw. You can check with 'make prereq' if you have all required host apps installed.

I am really not sure what fixd it but deleteing the tmp directory that make creates when you try to compile fixed it....... *shrugs*
Thanks all for your suggestions and help.

The discussion might have continued from here.