max2950
25-02-2005, 10:19
I tried to compile Olegs firmware, but i stuck on an error... What am i doing wrong? I followed the instructions he gives here (http://oleg.wl500g.info/#recompiling).
Everything went fine until kernel patching.... After that doing a make in the wl500g-1.9.2.7-3c directory fails with Error 77.
Here is what the screen outputs gives me
[root@localhost wl500g-1.9.2.7-3c]# make
tar xjf busybox-1.00.tar.bz2 -C /root/broadcom/src/gateway
patch -d /root/broadcom/src/gateway/busybox-1.00 -p1 < busybox-1.00.patch
patching file include/applets.h
patching file include/usage.h
patching file shell/ash.c
patching file sysklogd/syslogd.c
cp busybox-1.00.config /root/broadcom/src/gateway/busybox-1.00/sysdeps/linux/defconfig
mv /root/broadcom/src/gateway/busybox-1.00 /root/broadcom/src/gateway/busybox
tar xjf dropbear-0.44test4.tar.bz2 -C /root/broadcom/src/gateway
patch -d /root/broadcom/src/gateway/dropbear-0.44test4 -p1 < dropbear-0.44test4.patch
patching file options.h
cd /root/broadcom/src/gateway/dropbear-0.44test4 && \
CC=mipsel-uclibc-gcc ./configure --host=mipsel-linux --disable-zlib --disable-shadow \
--disable-lastlog --disable-utmp --disable-utmpx --disable-wtmp --disable-wtmpx \
--disable-libutil --disable-loginfunc --disable-pututline --disable-pututxline
configure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used.
checking for mipsel-linux-gcc... mipsel-uclibc-gcc
checking for C compiler default output... configure: error: C compiler cannot create executables
See `config.log' for more details.
make: *** [/root/broadcom/src/gateway/dropbear/config.h] Erreur 77
And here is the log file
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.57. Invocation command line was
$ ./configure --host=mipsel-linux --disable-zlib --disable-shadow --disable-lastlog --disable-utmp --disable-utmpx --disable-wtmp --disable-wtmpx --disable-libutil --disable-loginfunc --disable-pututline --disable-pututxline
## --------- ##
## Platform. ##
## --------- ##
hostname = localhost
uname -m = i686
uname -r = 2.6.8.1-10mdksmp
uname -s = Linux
uname -v = #1 SMP Wed Sep 8 16:41:52 CEST 2004
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = i686
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /sbin
PATH: /usr/sbin
PATH: /bin
PATH: /usr/bin
PATH: /usr/X11R6/bin
PATH: /usr/local/bin
PATH: /usr/local/sbin
PATH: /root/broadcom/opt/brcm/hndtools-mipsel-linux/bin
PATH: /root/broadcom/opt/brcm/hndtools-mipsel-uclibc/bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:1293: checking for mipsel-linux-gcc
configure:1319: result: mipsel-uclibc-gcc
configure:1601: checking for C compiler version
configure:1604: mipsel-uclibc-gcc --version </dev/null >&5
configure:1607: $? = 255
configure:1609: mipsel-uclibc-gcc -v </dev/null >&5
Invoked as mipsel-uclibc-gcc
arg[ 0] = /opt/brcm/hndtools-mipsel-linux-3.2.3/bin/mipsel-linux-gcc
arg[ 1] = -v
configure:1612: $? = 255
configure:1614: mipsel-uclibc-gcc -V </dev/null >&5
configure:1617: $? = 255
configure:1641: checking for C compiler default output
configure:1644: mipsel-uclibc-gcc conftest.c >&5
configure:1647: $? = 255
configure: failed program was:
| #line 1620 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:1686: error: C compiler cannot create executables
See `config.log' for more details.
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_env_CC_set=set
ac_cv_env_CC_value=mipsel-uclibc-gcc
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=mipsel-linux
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_prog_CC=mipsel-uclibc-gcc
## ----------------- ##
## Output variables. ##
## ----------------- ##
AR=''
CC='mipsel-uclibc-gcc'
CFLAGS=''
CPP=''
CPPFLAGS=''
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
INSTALL=''
LD=''
LDFLAGS=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
OBJEXT=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
RANLIB=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
ac_ct_AR=''
ac_ct_CC=''
ac_ct_INSTALL=''
ac_ct_RANLIB=''
ac_ct_STRIP=''
bindir='${exec_prefix}/bin'
build=''
build_alias=''
build_cpu=''
build_os=''
build_vendor=''
datadir='${prefix}/share'
exec_prefix='NONE'
host='mipsel-linux'
host_alias='mipsel-linux'
host_cpu=''
host_os=''
host_vendor=''
includedir='${prefix}/include'
infodir='${prefix}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
oldincludedir='/usr/include'
prefix='NONE'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME ""
#define PACKAGE_STRING ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
configure: exit 77
So what's wrong? :confused:
Everything went fine until kernel patching.... After that doing a make in the wl500g-1.9.2.7-3c directory fails with Error 77.
Here is what the screen outputs gives me
[root@localhost wl500g-1.9.2.7-3c]# make
tar xjf busybox-1.00.tar.bz2 -C /root/broadcom/src/gateway
patch -d /root/broadcom/src/gateway/busybox-1.00 -p1 < busybox-1.00.patch
patching file include/applets.h
patching file include/usage.h
patching file shell/ash.c
patching file sysklogd/syslogd.c
cp busybox-1.00.config /root/broadcom/src/gateway/busybox-1.00/sysdeps/linux/defconfig
mv /root/broadcom/src/gateway/busybox-1.00 /root/broadcom/src/gateway/busybox
tar xjf dropbear-0.44test4.tar.bz2 -C /root/broadcom/src/gateway
patch -d /root/broadcom/src/gateway/dropbear-0.44test4 -p1 < dropbear-0.44test4.patch
patching file options.h
cd /root/broadcom/src/gateway/dropbear-0.44test4 && \
CC=mipsel-uclibc-gcc ./configure --host=mipsel-linux --disable-zlib --disable-shadow \
--disable-lastlog --disable-utmp --disable-utmpx --disable-wtmp --disable-wtmpx \
--disable-libutil --disable-loginfunc --disable-pututline --disable-pututxline
configure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used.
checking for mipsel-linux-gcc... mipsel-uclibc-gcc
checking for C compiler default output... configure: error: C compiler cannot create executables
See `config.log' for more details.
make: *** [/root/broadcom/src/gateway/dropbear/config.h] Erreur 77
And here is the log file
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.57. Invocation command line was
$ ./configure --host=mipsel-linux --disable-zlib --disable-shadow --disable-lastlog --disable-utmp --disable-utmpx --disable-wtmp --disable-wtmpx --disable-libutil --disable-loginfunc --disable-pututline --disable-pututxline
## --------- ##
## Platform. ##
## --------- ##
hostname = localhost
uname -m = i686
uname -r = 2.6.8.1-10mdksmp
uname -s = Linux
uname -v = #1 SMP Wed Sep 8 16:41:52 CEST 2004
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = i686
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /sbin
PATH: /usr/sbin
PATH: /bin
PATH: /usr/bin
PATH: /usr/X11R6/bin
PATH: /usr/local/bin
PATH: /usr/local/sbin
PATH: /root/broadcom/opt/brcm/hndtools-mipsel-linux/bin
PATH: /root/broadcom/opt/brcm/hndtools-mipsel-uclibc/bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:1293: checking for mipsel-linux-gcc
configure:1319: result: mipsel-uclibc-gcc
configure:1601: checking for C compiler version
configure:1604: mipsel-uclibc-gcc --version </dev/null >&5
configure:1607: $? = 255
configure:1609: mipsel-uclibc-gcc -v </dev/null >&5
Invoked as mipsel-uclibc-gcc
arg[ 0] = /opt/brcm/hndtools-mipsel-linux-3.2.3/bin/mipsel-linux-gcc
arg[ 1] = -v
configure:1612: $? = 255
configure:1614: mipsel-uclibc-gcc -V </dev/null >&5
configure:1617: $? = 255
configure:1641: checking for C compiler default output
configure:1644: mipsel-uclibc-gcc conftest.c >&5
configure:1647: $? = 255
configure: failed program was:
| #line 1620 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:1686: error: C compiler cannot create executables
See `config.log' for more details.
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_env_CC_set=set
ac_cv_env_CC_value=mipsel-uclibc-gcc
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=mipsel-linux
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_prog_CC=mipsel-uclibc-gcc
## ----------------- ##
## Output variables. ##
## ----------------- ##
AR=''
CC='mipsel-uclibc-gcc'
CFLAGS=''
CPP=''
CPPFLAGS=''
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
INSTALL=''
LD=''
LDFLAGS=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
OBJEXT=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
RANLIB=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
ac_ct_AR=''
ac_ct_CC=''
ac_ct_INSTALL=''
ac_ct_RANLIB=''
ac_ct_STRIP=''
bindir='${exec_prefix}/bin'
build=''
build_alias=''
build_cpu=''
build_os=''
build_vendor=''
datadir='${prefix}/share'
exec_prefix='NONE'
host='mipsel-linux'
host_alias='mipsel-linux'
host_cpu=''
host_os=''
host_vendor=''
includedir='${prefix}/include'
infodir='${prefix}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
oldincludedir='/usr/include'
prefix='NONE'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME ""
#define PACKAGE_STRING ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
configure: exit 77
So what's wrong? :confused: