Modify

Opened 3 years ago

Closed 3 years ago

#19529 closed defect (invalid)

mconf.o: file not recognized: File format not recognized

Reported by: ikisaanindia@… Owned by: developers
Priority: highest Milestone: Features Paradise
Component: packages Version: Trunk
Keywords: Compilation error Cc:

Description

Hi,
I am new in OpenWRT. When I compile "make menuconfig" then I am getting below mentioned error :

make[1]: Entering directory `/home/yay/hhh/i686/OpenWrt-SDK-ar71xx-for-Linux-i686-gcc-4.3.3+cs_uClibc-0.9.30.1/scripts/config'
mconf.o: file not recognized: File format not recognized
collect2: ld returned 1 exit status
make[1]: * [mconf] Error 1
make[1]: Leaving directory `/home/yay/hhh/i686/OpenWrt-SDK-ar71xx-for-Linux-i686-gcc-4.3.3+cs_uClibc-0.9.30.1/scripts/config'
make:
* [scripts/config/mconf] Error 2

I am using image from http://downloads.openwrt.org/attitude_adjustment/12.09/brcm47xx/generic/OpenWrt-SDK-brcm47xx-for-linux-i486-gcc-4.6-linaro_uClibc-0.9.33.2.tar.bz2 this path.
Downloaded from http://wiki.openwrt.org/doc/howto/obtain.firmware.sdk#download.

Please help me out.

Attachments (0)

Change History (11)

comment:1 Changed 3 years ago by jow

  • Resolution set to worksforme
  • Status changed from new to closed

Try a "make -C scripts/config/ clean". You probably try to use some precompiled object files for i686 on an amd64 machine.

comment:2 Changed 3 years ago by anonymous

Can you please give me link for recompiled image. I want to flash on x86 platform. and host is also x86.
I dont know how to set CC, Target and Host.
Please help me out.

comment:4 Changed 3 years ago by ikisaanindia@…

When I use "make -C scripts/config/ clean" then I am getting

/i686/OpenWrt-SDK-ar71xx-for-Linux-i686-gcc-4.3.3+cs_uClibc-0.9.30.1$ make -C scripts/config/clean

make: * scripts/config/clean: No such file or directory. Stop.

I have set
make host="x86"
make target="x86"
make CC= "/bini686-cm-Linux-gcc"

I don't know how to set target, host and compiler.

comment:5 Changed 3 years ago by ikisaanindia@…

when I run after setting Host and target as x86 from command line then I get below mentioned error:

desktop:~/vabhav/i686/OpenWrt-SDK-ar71xx-for-Linux-i686-gcc-4.3.3+cs_uClibc-0.9.30.1$ make menuconfig V=99
make[1]: Entering directory `/home/i686/OpenWrt-SDK-ar71xx-for-Linux-i686-gcc-4.3.3+cs_uClibc-0.9.30.1/scripts/config'
mconf.o: file not recognized: File format not recognized
collect2: ld returned 1 exit status
make[1]: * [mconf] Error 1
make[1]: Leaving directory `/home/i686/OpenWrt-SDK-ar71xx-for-Linux-i686-gcc-4.3.3+cs_uClibc-0.9.30.1/scripts/config'
make:
* [scripts/config/mconf] Error 2
desktop:~/i686/OpenWrt-SDK-ar71xx-for-Linux-i686-gcc-4.3.3+cs_uClibc-0.9.30.1$

comment:6 Changed 3 years ago by nbd

I think you're missing a whitespace between "scripts/config" and "clean". Also, this SDK is very old, you may want to just build something recent.

comment:7 Changed 3 years ago by ikisaanindia@…

  • Resolution worksforme deleted
  • Status changed from closed to reopened

I am compiling this code for i686 platform and image name consists i686. that is why I downloaded this image.
I have complied stable also but I got same error.

stable image :
http://downloads.openwrt.org/attitude_adjustment/12.09/brcm47xx/generic/OpenWrt-SDK-brcm47xx-for-linux-i486-gcc-4.6-linaro_uClibc-0.9.33.2.tar.bz2

I am using space between "scripts/config" and "clean"

comment:8 Changed 3 years ago by nbd

  • Resolution set to worksforme
  • Status changed from reopened to closed

You're still using an old version. Either you're picking the wrong SDK (i486 one on a x86_64 host), or your host is just incompatible with the pre-build SDK files.
I suggest you drop the use of the SDK and just build from source instead.

comment:9 Changed 3 years ago by ikisaanindia@…

  • Resolution worksforme deleted
  • Status changed from closed to reopened

Can you please give me path of latest source code.
and steps that how to set host, target and CC. and other steps so that I can compile without any error.

I am stuck in this task since one week.

comment:10 Changed 3 years ago by jow

  • Resolution set to invalid
  • Status changed from reopened to closed

comment:11 Changed 3 years ago by anonymous

  • Resolution invalid deleted
  • Status changed from closed to reopened

Hi Jow,

Could you please let me know path of latest OpenWRT code which is stable.

comment:12 Changed 3 years ago by nbd

  • Resolution set to invalid
  • Status changed from reopened to closed

Please stop reopening this ticket.

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.