OpenWrt Forum Archive

Topic: error building CC and BB

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

Hi,
While building openwrt for my easybox 802 I get
undefined reference to `vpe1_wdog_timeout'
and
undefined reference to `vpe1_wdog_ctr'
which leads to Error2 and Error1

  CHK     include/generated/compile.h
  UPD     include/generated/compile.h
  CC      init/version.o
  LD      init/built-in.o
arch/mips/built-in.o:/media/dysk2/openwrt14.7/openwrt/build_dir/target-mips_34kc+dsp_uClibc-0.9.33.2/linux-lantiq_xway/linux-3.10.49/arch/mips/lantiq/softdog_vpe.c:75: undefined reference to `vpe1_wdog_ctr'
arch/mips/built-in.o:/media/dysk2/openwrt14.7/openwrt/build_dir/target-mips_34kc+dsp_uClibc-0.9.33.2/linux-lantiq_xway/linux-3.10.49/arch/mips/lantiq/softdog_vpe.c:75: undefined reference to `vpe1_wdog_ctr'
arch/mips/built-in.o: In function `keep_alive_vpe0':
/media/dysk2/openwrt14.7/openwrt/build_dir/target-mips_34kc+dsp_uClibc-0.9.33.2/linux-lantiq_xway/linux-3.10.49/arch/mips/lantiq/softdog_vpe.c:69: undefined reference to `vpe1_wdog_timeout'
/media/dysk2/openwrt14.7/openwrt/build_dir/target-mips_34kc+dsp_uClibc-0.9.33.2/linux-lantiq_xway/linux-3.10.49/arch/mips/lantiq/softdog_vpe.c:69: undefined reference to `vpe1_wdog_timeout'
arch/mips/built-in.o:/media/dysk2/openwrt14.7/openwrt/build_dir/target-mips_34kc+dsp_uClibc-0.9.33.2/linux-lantiq_xway/linux-3.10.49/arch/mips/lantiq/softdog_vpe.c:47: undefined reference to `vpe1_wdog_ctr'
arch/mips/built-in.o:/media/dysk2/openwrt14.7/openwrt/build_dir/target-mips_34kc+dsp_uClibc-0.9.33.2/linux-lantiq_xway/linux-3.10.49/arch/mips/lantiq/softdog_vpe.c:47: undefined reference to `vpe1_wdog_ctr'
arch/mips/built-in.o: In function `keep_alive_vpe0':
/media/dysk2/openwrt14.7/openwrt/build_dir/target-mips_34kc+dsp_uClibc-0.9.33.2/linux-lantiq_xway/linux-3.10.49/arch/mips/lantiq/softdog_vpe.c:69: undefined reference to `vpe1_wdog_timeout'
/media/dysk2/openwrt14.7/openwrt/build_dir/target-mips_34kc+dsp_uClibc-0.9.33.2/linux-lantiq_xway/linux-3.10.49/arch/mips/lantiq/softdog_vpe.c:69: undefined reference to `vpe1_wdog_timeout'
make[5]: *** [vmlinux] Error 1
make[5]: Leaving directory `/media/dysk2/openwrt14.7/openwrt/build_dir/target-mips_34kc+dsp_uClibc-0.9.33.2/linux-lantiq_xway/linux-3.10.49'
make[4]: *** [/media/dysk2/openwrt14.7/openwrt/build_dir/target-mips_34kc+dsp_uClibc-0.9.33.2/linux-lantiq_xway/linux-3.10.49/.image] Error 2
make[4]: Leaving directory `/media/dysk2/openwrt14.7/openwrt/target/linux/lantiq'
make[3]: *** [install] Error 2
make[3]: Leaving directory `/media/dysk2/openwrt14.7/openwrt/target/linux'
make[2]: *** [target/linux/install] Error 2
make[2]: Leaving directory `/media/dysk2/openwrt14.7/openwrt'
make[1]: *** [/media/dysk2/openwrt14.7/openwrt/staging_dir/target-mips_34kc+dsp_uClibc-0.9.33.2/stamp/.target_install] Error 2
make[1]: Leaving directory `/media/dysk2/openwrt14.7/openwrt'
make: *** [world] Error 2
ja@ja-VirtualBox:/media/dysk2/openwrt14.7/openwrt$

Can anyone tell me how to fix this?

it is normal for some packages to fail during compliation, especially if you build everything.  If that particular package failed and you specifically want it, try posting to the developer forum here or on the lede board.

If it isn't one you need, either deselect it in make menuconfig, or do your make with ignore errors.

IGNORE_ERRORS=nn make

where nn is some positive integer

Thank for the info.
I've run make with "-i" parameter and it has compiled it to the end.

But, now I have another problem with the compiled file and the one downloaded from openwrt.org side.
I get kernel panic wile running squashfs from the router.

ROM VER: 1.0.3                                                                                                                
CFG 01                                                                                                                        
Read EEPROMX                                                                                                                  
 X                                                                                                                            
                                                                                                                              
                                                                                                                              
U-Boot 2013.10-openwrt4 (Dec 18 2017 - 21:58:48) ARV752DPW                                                                    
                                                                                                                              
Board: Arcadyan ARV752DPW                                                                                                     
SoC:   Lantiq Danube-S v1.5                                                                                                   
CPU:   333.333 MHz                                                                                                            
IO:    166.667 MHz                                                                                                            
BUS:   83.333 MHz                                                                                                             
BOOT:  NOR                                                                                                                    
DRAM:  64 MiB                                                                                                                 
Flash: 8 MiB                                                                                                                  
*** Warning - bad CRC, using default environment                                                                              
                                                                                                                              
In:    serial                                                                                                                 
Out:   serial                                                                                                                 
Err:   serial                                                                                                                 
Net:   Board Net Initialization Failed                                                                                        
ltq-eth                                                                                                                       
Hit any key to stop autoboot:  0                                                                                              
## Booting kernel from Legacy Image at b0040000 ...                                                                           
   Image Name:   MIPS OpenWrt Linux-3.18.23                                                                                   
   Created:      2016-02-02  12:41:47 UTC                                                                                     
   Image Type:   MIPS Linux Kernel Image (lzma compressed)                                                                    
   Data Size:    1530227 Bytes = 1.5 MiB                                                                                      
   Load Address: 80002000                                                                                                     
   Entry Point:  80002000                                                                                                     
   Verifying Checksum ... OK                                                                                                  
   Uncompressing Kernel Image ... OK                                                                                          
                                                                                                                              
Starting kernel ...                                                                                                           
                                                                                                                              
[    0.000000] Linux version 3.18.23 (buildbot@builder1) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r47269) ) #1 Sun 6
[    0.000000] SoC: Danube rev 1.5                                                                                            
[    0.000000] bootconsole [early0] enabled                                                                                   
[    0.000000] CPU0 revision is: 00019641 (MIPS 24KEc)                                                                        
[    0.000000] MIPS: machine is ARV752DPW - Arcor 802                                                                         
[    0.000000] Determined physical RAM map:                                                                                   
[    0.000000]  memory: 04000000 @ 00000000 (usable)                                                                          
[    0.000000] Initrd not found or empty - disabling initrd                                                                   
[    0.000000] Zone ranges:                                                                                                   
[    0.000000]   Normal   [mem 0x00000000-0x03ffffff]                                                                         
[    0.000000] Movable zone start for each node                                                                               
[    0.000000] Early memory node ranges                                                                                       
[    0.000000]   node   0: [mem 0x00000000-0x03ffffff]                                                                        
[    0.000000] Initmem setup node 0 [mem 0x00000000-0x03ffffff]                                                               
[    0.000000] Primary instruction cache 16kB, VIPT, 4-way, linesize 32 bytes.                                                
[    0.000000] Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 32 bytes                                            
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256                                     
[    0.000000] Kernel command line: console=ttyLTQ0,115200 init=/etc/preinit                                                  
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)                                                            
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)                                                  
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)                                                   
[    0.000000] Writing ErrCtl register=0007fd38                                                                               
[    0.000000] Readback ErrCtl register=0007fd38                                                                              
[    0.000000] Memory: 60144K/65536K available (3433K kernel code, 151K rwdata, 768K rodata, 172K init, 194K bss, 5392K reser)
[    0.000000] NR_IRQS:256                                                                                                    
[    0.000000] CPU Clock: 333MHz                                                                                              
[    0.000000] Calibrating delay loop... 221.18 BogoMIPS (lpj=442368)                                                         
[    0.040000] pid_max: default: 32768 minimum: 301                                                                           
[    0.044000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)                                                    
[    0.048000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)                                               
[    0.056000] pinctrl core: initialized pinctrl subsystem                                                                    
[    0.064000] NET: Registered protocol family 16                                                                             
[    0.076000] pinctrl-xway 1e100b10.pinmux: Init done                                                                        
[    0.080000] dma-xway 1e104100.dma: Init done - hw rev: 3, ports: 5, channels: 20                                           
[    0.088000] PCI host bridge /fpi@10000000/pci@E105400 ranges:                                                              
[    0.092000]  MEM 0x0000000018000000..0x0000000019ffffff                                                                    
[    0.096000]   IO 0x000000001ae00000..0x000000001affffff                                                                    
[    0.112000] usbcore: registered new interface driver usbfs                                                                 
[    0.116000] usbcore: registered new interface driver hub                                                                   
[    0.120000] usbcore: registered new device driver usb                                                                      
[    0.124000] PCI host bridge to bus 0000:00                                                                                 
[    0.128000] pci_bus 0000:00: root bus resource [mem 0x18000000-0x19ffffff]                                                 
[    0.132000] pci_bus 0000:00: root bus resource [io  0xffffffff]                                                            
[    0.136000] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]                                     
[    0.140000] pci 0000:00:0e.0: BAR 0: assigned [mem 0x18000000-0x1800ffff]                                                  
[    0.144000] Switched to clocksource MIPS                                                                                   
[    0.148000] NET: Registered protocol family 2                                                                              
[    0.156000] TCP established hash table entries: 1024 (order: 0, 4096 bytes)                                                
[    0.164000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)                                                       
[    0.168000] TCP: Hash tables configured (established 1024 bind 1024)                                                       
[    0.176000] TCP: reno registered                                                                                           
[    0.180000] UDP hash table entries: 256 (order: 0, 4096 bytes)                                                             
[    0.184000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)                                                        
[    0.192000] NET: Registered protocol family 1                                                                              
[    0.196000] gptu: totally 6 16-bit timers/counters                                                                         
[    0.200000] gptu: misc_register on minor 63                                                                                
[    0.204000] gptu: succeeded to request irq 126                                                                             
[    0.212000] gptu: succeeded to request irq 127                                                                             
[    0.216000] gptu: succeeded to request irq 128                                                                             
[    0.220000] gptu: succeeded to request irq 129                                                                             
[    0.224000] gptu: succeeded to request irq 130                                                                             
[    0.228000] gptu: succeeded to request irq 131                                                                             
[    0.240000] lantiq,vmmc 1f103000.vmmc: requested GPIO 465                                                                  
[    0.244000] lantiq,vmmc 1f103000.vmmc: reserved 1MB at 0x03a00000                                                          
[    0.252000] ralink,eeprom ralink_eep: using RT2860.eeprom as eeprom                                                        
[    0.260000] futex hash table entries: 256 (order: -1, 3072 bytes)                                                          
[    0.268000] squashfs: version 4.0 (2009/01/31) Phillip Lougher                                                             
[    0.276000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.                
[    0.304000] msgmni has been set to 117                                                                                     
[    0.312000] io scheduler noop registered                                                                                   
[    0.316000] io scheduler deadline registered (default)                                                                     
[    0.324000] 1e100c00.serial: ttyLTQ0 at MMIO 0x1e100c00 (irq = 112, base_baud = 0) is a lantiq,asc                         
[    0.332000] console [ttyLTQ0] enabled                                                                                      
[    0.332000] console [ttyLTQ0] enabled                                                                                      
[    0.340000] bootconsole [early0] disabled                                                                                  
[    0.340000] bootconsole [early0] disabled                                                                                  
[    0.348000] lantiq nor flash device: 00800000 at 10000000                                                                  
[    0.352000] ltq_nor: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x0000c2 Chip ID 0x0022cb                  
[    0.360000] Amd/Fujitsu Extended Query Table at 0x0040                                                                     
[    0.368000]   Amd/Fujitsu Extended Query version 1.1.                                                                      
[    0.372000] number of CFI chips: 1                                                                                         
[    0.376000] 4 ofpart partitions found on MTD device ltq_nor                                                                
[    0.380000] Creating 4 MTD partitions on "ltq_nor":                                                                        
[    0.384000] 0x000000000000-0x000000010000 : "uboot"                                                                        
[    0.392000] 0x000000010000-0x000000020000 : "uboot_env"                                                                    
[    0.396000] 0x000000020000-0x0000007f0000 : "firmware"                                                                     
[    0.540000] 0x0000007f0000-0x000000800000 : "board_config"                                                                 
[    0.572000] libphy: ltq_mii: probed                                                                                        
[    0.668000] Registering RTL8306SDM switch with Chip ID: 0x5988, version: 0x0000                                            
[    0.672000] eth0: attached PHY [Realtek RTL8306S] (phy_addr=1e180000.etop-ff:00, irq=-1)                                   
[    0.684000] wdt 1f8803f0.watchdog: Init done                                                                               
[    0.692000] TCP: cubic registered                                                                                          
[    0.692000] NET: Registered protocol family 17                                                                             
[    0.696000] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter.
[    0.708000] Bridge firewalling registered                                                                                  
[    0.712000] 8021q: 802.1Q VLAN Support v1.8                                                                                
[    0.724000] UBIFS error (pid 1): ubifs_mount: cannot open "ubi0:rootfs", error -19                                         
[    0.728000] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6                                          
[    0.736000] Please append a correct "root=" boot option; here are the available partitions:                                
[    0.744000] 1f00              64 mtdblock0  (driver?)                                                                      
[    0.748000] 1f01              64 mtdblock1  (driver?)                                                                      
[    0.756000] 1f02            8000 mtdblock2  (driver?)                                                                      
[    0.760000] 1f03              64 mtdblock3  (driver?)                                                                      
[    0.764000] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)                                 
[    0.764000] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)                        
[   33.088000] random: nonblocking pool is initialized        

The discussion might have continued from here.