building image

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.

building image

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.
building image
building image
2020-02-04 06:49:33
Model: Archer A6  
Hardware Version: V2
Firmware Version: 1.1.0 Build 20190115 rel.71848(4555)

Hi,

 

i want to build a custom image for tp-link ac1200 wifi router, downloaded GPL code from your website, while i am building image i am getting 

 

gutils.c:(.text+0x0): multiple definition of `g_bit_nth_lsf'
testglib.o:testglib.c:(.text+0x120): first defined here
./.libs/libglib.a(gutils.o): In function `g_bit_nth_msf':
gutils.c:(.text+0x30): multiple definition of `g_bit_nth_msf'
testglib.o:testglib.c:(.text+0x150): first defined here
./.libs/libglib.a(gutils.o): In function `g_bit_storage':
gutils.c:(.text+0x70): multiple definition of `g_bit_storage'
testglib.o:testglib.c:(.text+0x190): first defined here
collect2: error: ld returned 1 exit status
Makefile:456: recipe for target 'testglib' failed
make[9]: *** [testglib] Error 1
make[9]: Leaving directory '/home/kube-edge/tp-link/C6V2_EU_GPL/openwrt/build_dir/host/pkg-config-0.25/glib-1.2.10'
Makefile:531: recipe for target 'all-recursive' failed
make[8]: *** [all-recursive] Error 1
make[8]: Leaving directory '/home/kube-edge/tp-link/C6V2_EU_GPL/openwrt/build_dir/host/pkg-config-0.25/glib-1.2.10'
Makefile:364: recipe for target 'all' failed
make[7]: *** [all] Error 2
make[7]: Leaving directory '/home/kube-edge/tp-link/C6V2_EU_GPL/openwrt/build_dir/host/pkg-config-0.25/glib-1.2.10'
Makefile:536: recipe for target 'all-recursive' failed
make[6]: *** [all-recursive] Error 1
make[6]: Leaving directory '/home/kube-edge/tp-link/C6V2_EU_GPL/openwrt/build_dir/host/pkg-config-0.25'
Makefile:309: recipe for target 'all' failed
make[5]: *** [all] Error 2
make[5]: Leaving directory '/home/kube-edge/tp-link/C6V2_EU_GPL/openwrt/build_dir/host/pkg-config-0.25'
Makefile:34: recipe for target '/home/kube-edge/tp-link/C6V2_EU_GPL/openwrt/build_dir/host/pkg-config-0.25/.built' failed
make[4]: *** [/home/kube-edge/tp-link/C6V2_EU_GPL/openwrt/build_dir/host/pkg-config-0.25/.built] Error 2
make[4]: Leaving directory '/home/kube-edge/tp-link/C6V2_EU_GPL/openwrt/tools/pkg-config'
tools/Makefile:142: recipe for target 'tools/pkg-config/compile' failed
make[3]: *** [tools/pkg-config/compile] Error 2
make[3]: Leaving directory '/home/kube-edge/tp-link/C6V2_EU_GPL/openwrt'
tools/Makefile:141: recipe for target '/home/kube-edge/tp-link/C6V2_EU_GPL/openwrt/staging_dir/target-mips_r2_uClibc-0.9.33.2/stamp/.tools_install_nnnnn' failed
make[2]: *** [/home/kube-edge/tp-link/C6V2_EU_GPL/openwrt/staging_dir/target-mips_r2_uClibc-0.9.33.2/stamp/.tools_install_nnnnn] Error 2
make[2]: Leaving directory '/home/kube-edge/tp-link/C6V2_EU_GPL/openwrt'
/home/kube-edge/tp-link/C6V2_EU_GPL/openwrt/include/toplevel.mk:156: recipe for target 'world' failed
make[1]: *** [world] Error 2
make[1]: Leaving directory '/home/kube-edge/tp-link/C6V2_EU_GPL/openwrt'
Makefile:20: recipe for target 'build' failed
make: *** [build] Error 2
 

 

did not change or edit any file on source code, i just tried to check its building or not.

 

can you please help me to resolve this errors.

 

Host OS : ubuntu 16.04

 

 

Thanks,

Chandra.

  0      
  0      
#1
Options
2 Reply
Re:building image
2020-04-13 08:32:46 - last edited 2020-04-13 08:35:45

Hi Chandra,

I met the same problem on ubuntu16.04 (server 32bit) and fixed it by downgrade gcc version to 4.8.5

 

Here is what i do:

1. check your gcc version

    gcc --version # default is 5.4.0 on my side

 

2. install gcc 4.8

    sudo apt-get install gcc-4.8

 

3. replace the system gcc with the new install one

    sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 100

    # do the same to gcc-nm/gcc-ar/gcc-ranlib

 

4. check gcc version again

    gcc --version # 4.8.5

 

ps: downgrade g++ to the same version is helpful.

  0  
  0  
#2
Options
Re:building image
2020-08-26 10:18:01

@jji315 

 

Im same issue. 

  0  
  0  
#3
Options