• Resolved

BeagleBone bsp compilation error

Hi all,


I got following error while compiling the BSP [ BSP_WINWEC7_ARM_A8 01.18.00.00 ].

Platform is : AM33x_BBB

BUILD: [03:0000000891:INFO  ] oali2c.c
BUILD: [04:0000000892:INFO  ] oalrtc.c
BUILD: [01:0000000893:INFO  ] intr.c
BUILD: [02:0000000894:INFO  ] warning A0048: multiple use of the same option: -arch
BUILD: [02:0000000895:INFO  ] ASSEMBLER_ARM_ARCH7_SUPPORT SETA 1
BUILD: [02:0000000896:INFO  ] warning A0242: -cpu option overiding -arch option
BUILD: [02:0000000897:INFO  ] ASSEMBLER_ARM_ARCH7_SUPPORT SETA 1
BUILD: [02:0000000898:ERRORE] Error(s) in directory "C:\WINCE700\Platform\AM33X_BBB_BSP\SRC\CSP\AM33X\OAL\CPUIDLE\".
BUILD: [02:0000000899:ERRORE] C:\WINCE700\Platform\AM33X_BBB_BSP\SRC\CSP\AM33X\OAL\CPUIDLE\cpu.s(930) : error A0034: undefined symbol: CONTROL_DDR_CMD_IOCTRL_0_OFFSET
BUILD: [02:0000000900:INFO  ]       ldr        r2, [r0, #CONTROL_DDR_CMD_IOCTRL_0_OFFSET]    
BUILD: [02:0000000901:ERRORE] C:\WINCE700\Platform\AM33X_BBB_BSP\SRC\CSP\AM33X\OAL\CPUIDLE\cpu.s(933) : error A0034: undefined symbol: CONTROL_DDR_CMD_IOCTRL_0_OFFSET
BUILD: [02:0000000902:INFO  ]       str        r2, [r0, #CONTROL_DDR_CMD_IOCTRL_0_OFFSET]    
BUILD: [02:0000000903:ERRORE] C:\WINCE700\Platform\AM33X_BBB_BSP\SRC\CSP\AM33X\OAL\CPUIDLE\cpu.s(936) : error A0034: undefined symbol: CONTROL_DDR_CMD_IOCTRL_1_OFFSET
BUILD: [02:0000000904:INFO  ]       ldr        r2, [r0, #CONTROL_DDR_CMD_IOCTRL_1_OFFSET]    
BUILD: [02:0000000905:ERRORE] C:\WINCE700\Platform\AM33X_BBB_BSP\SRC\CSP\AM33X\OAL\CPUIDLE\cpu.s(939) : error A0034: undefined symbol: CONTROL_DDR_CMD_IOCTRL_1_OFFSET
BUILD: [02:0000000906:INFO  ]       str        r2, [r0, #CONTROL_DDR_CMD_IOCTRL_1_OFFSET]    
BUILD: [02:0000000907:ERRORE] C:\WINCE700\Platform\AM33X_BBB_BSP\SRC\CSP\AM33X\OAL\CPUIDLE\cpu.s(942) : error A0034: undefined symbol: CONTROL_DDR_CMD_IOCTRL_2_OFFSET
BUILD: [02:0000000908:INFO  ]       ldr        r2, [r0, #CONTROL_DDR_CMD_IOCTRL_2_OFFSET]    
BUILD: [02:0000000909:ERRORE] C:\WINCE700\Platform\AM33X_BBB_BSP\SRC\CSP\AM33X\OAL\CPUIDLE\cpu.s(945) : error A0034: undefined symbol: CONTROL_DDR_CMD_IOCTRL_2_OFFSET
BUILD: [02:0000000910:INFO  ]       str        r2, [r0, #CONTROL_DDR_CMD_IOCTRL_2_OFFSET]    
BUILD: [02:0000000911:ERRORE] C:\WINCE700\Platform\AM33X_BBB_BSP\SRC\CSP\AM33X\OAL\CPUIDLE\cpu.s(948) : error A0034: undefined symbol: CONTROL_DDR_DATA_IOCTRL_0_OFFSET
BUILD: [02:0000000912:INFO  ]       ldr        r2, [r0, #CONTROL_DDR_DATA_IOCTRL_0_OFFSET]    
BUILD: [02:0000000913:ERRORE] C:\WINCE700\Platform\AM33X_BBB_BSP\SRC\CSP\AM33X\OAL\CPUIDLE\cpu.s(951) : error A0034: undefined symbol: CONTROL_DDR_DATA_IOCTRL_0_OFFSET
BUILD: [02:0000000914:INFO  ]       str        r2, [r0, #CONTROL_DDR_DATA_IOCTRL_0_OFFSET]    
BUILD: [02:0000000915:ERRORE] C:\WINCE700\Platform\AM33X_BBB_BSP\SRC\CSP\AM33X\OAL\CPUIDLE\cpu.s(954) : error A0034: undefined symbol: CONTROL_DDR_DATA_IOCTRL_1_OFFSET
BUILD: [02:0000000916:INFO  ]       ldr        r2, [r0, #CONTROL_DDR_DATA_IOCTRL_1_OFFSET]    
BUILD: [02:0000000917:ERRORE] C:\WINCE700\Platform\AM33X_BBB_BSP\SRC\CSP\AM33X\OAL\CPUIDLE\cpu.s(957) : error A0034: undefined symbol: CONTROL_DDR_DATA_IOCTRL_1_OFFSET
BUILD: [02:0000000918:INFO  ]       str        r2, [r0, #CONTROL_DDR_DATA_IOCTRL_1_OFFSET]    
BUILD: [02:0000000919:ERRORE] C:\WINCE700\Platform\AM33X_BBB_BSP\SRC\CSP\AM33X\OAL\CPUIDLE\cpu.s(1346) : error A0034: undefined symbol: CONTROL_DDR_CMD_IOCTRL_0_OFFSET
BUILD: [02:0000000920:INFO  ]        ldr        r2, [r0, #CONTROL_DDR_CMD_IOCTRL_0_OFFSET]    
BUILD: [02:0000000921:ERRORE] C:\WINCE700\Platform\AM33X_BBB_BSP\SRC\CSP\AM33X\OAL\CPUIDLE\cpu.s(1349) : error A0034: undefined symbol: CONTROL_DDR_CMD_IOCTRL_0_OFFSET
BUILD: [02:0000000922:INFO  ]        str        r2, [r0, #CONTROL_DDR_CMD_IOCTRL_0_OFFSET]    
BUILD: [02:0000000923:ERRORE] C:\WINCE700\Platform\AM33X_BBB_BSP\SRC\CSP\AM33X\OAL\CPUIDLE\cpu.s(1352) : error A0034: undefined symbol: CONTROL_DDR_CMD_IOCTRL_1_OFFSET
BUILD: [02:0000000924:INFO  ]        ldr        r2, [r0, #CONTROL_DDR_CMD_IOCTRL_1_OFFSET]    
BUILD: [02:0000000925:ERRORE] C:\WINCE700\Platform\AM33X_BBB_BSP\SRC\CSP\AM33X\OAL\CPUIDLE\cpu.s(1355) : error A0034: undefined symbol: CONTROL_DDR_CMD_IOCTRL_1_OFFSET
BUILD: [02:0000000926:INFO  ]        str        r2, [r0, #CONTROL_DDR_CMD_IOCTRL_1_OFFSET]    
BUILD: [02:0000000927:ERRORE] C:\WINCE700\Platform\AM33X_BBB_BSP\SRC\CSP\AM33X\OAL\CPUIDLE\cpu.s(1358) : error A0034: undefined symbol: CONTROL_DDR_CMD_IOCTRL_2_OFFSET
BUILD: [02:0000000928:INFO  ]        ldr        r2, [r0, #CONTROL_DDR_CMD_IOCTRL_2_OFFSET]    
BUILD: [02:0000000929:ERRORE] C:\WINCE700\Platform\AM33X_BBB_BSP\SRC\CSP\AM33X\OAL\CPUIDLE\cpu.s(1361) : error A0034: undefined symbol: CONTROL_DDR_CMD_IOCTRL_2_OFFSET
BUILD: [02:0000000930:INFO  ]        str        r2, [r0, #CONTROL_DDR_CMD_IOCTRL_2_OFFSET]    
BUILD: [02:0000000931:ERRORE] C:\WINCE700\Platform\AM33X_BBB_BSP\SRC\CSP\AM33X\OAL\CPUIDLE\cpu.s(1364) : error A0034: undefined symbol: CONTROL_DDR_DATA_IOCTRL_0_OFFSET
BUILD: [02:0000000932:INFO  ]        ldr        r2, [r0, #CONTROL_DDR_DATA_IOCTRL_0_OFFSET]    
BUILD: [02:0000000933:ERRORE] C:\WINCE700\Platform\AM33X_BBB_BSP\SRC\CSP\AM33X\OAL\CPUIDLE\cpu.s(1367) : error A0034: undefined symbol: CONTROL_DDR_DATA_IOCTRL_0_OFFSET
BUILD: [02:0000000934:INFO  ]        str        r2, [r0, #CONTROL_DDR_DATA_IOCTRL_0_OFFSET]    
BUILD: [02:0000000935:ERRORE] C:\WINCE700\Platform\AM33X_BBB_BSP\SRC\CSP\AM33X\OAL\CPUIDLE\cpu.s(1370) : error A0034: undefined symbol: CONTROL_DDR_DATA_IOCTRL_0_OFFSET
BUILD: [02:0000000936:INFO  ]        ldr        r2, [r0, #CONTROL_DDR_DATA_IOCTRL_0_OFFSET]    
BUILD: [02:0000000937:ERRORE] C:\WINCE700\Platform\AM33X_BBB_BSP\SRC\CSP\AM33X\OAL\CPUIDLE\cpu.s(1373) : error A0034: undefined symbol: CONTROL_DDR_DATA_IOCTRL_0_OFFSET
BUILD: [02:0000000938:INFO  ]        str        r2, [r0, #CONTROL_DDR_DATA_IOCTRL_0_OFFSET]    
BUILD: [02:0000000939:INFO  ] Assembly terminated, errors: 20, warnings: 2
BUILD: [02:0000000940:ERRORE] NMAKE : fatal error U1077: 'C:\WINCE700\sdk\bin\i386\ARM\armasm.EXE' : return code '0x1'
BUILD: [02:0000000941:INFO  ] Stop.
BUILD: [02:0000000942:ERRORE]  clean TargetCompilePass  -nologo BUILDMSG=Stop.  BUILDROOT=C:\WINCE700\Platform\AM33X_BBB_BSP CLEANBUILD=1 NOLINK=1 NOPASS0=1 failed - rc = 2.
BUILD: [00:0000000943:PROGC ]                        Files  Warnings  Errors
BUILD: [00:0000000944:PROGC ] Midl                       0         0       0
BUILD: [00:0000000945:PROGC ] Message                    0         0       0
BUILD: [00:0000000946:PROGC ] Precomp Header             0         0       0
BUILD: [00:0000000947:PROGC ] Resource                   0         0       0
BUILD: [00:0000000948:PROGC ] XRPack                     0         0       0
BUILD: [00:0000000949:PROGC ] MASM                       0         0       0
BUILD: [00:0000000950:PROGC ] SHASM                      0         0       0
BUILD: [00:0000000951:PROGC ] ARMASM                     0         0      21
BUILD: [00:0000000952:PROGC ] MIPSASM                    0         0       0
BUILD: [00:0000000953:PROGC ] C++                        0         0       0
BUILD: [00:0000000954:PROGC ] C                          4        30       0
BUILD: [00:0000000955:PROGC ] CheckLibs                  0         0       0
BUILD: [00:0000000956:PROGC ] Static Libraries           0         0       0
BUILD: [00:0000000957:PROGC ] Exe's                      0         0       0
BUILD: [00:0000000958:PROGC ] Dll's                      0         0       0
BUILD: [00:0000000959:PROGC ] Preprocess deffile         0         0       0
BUILD: [00:0000000960:PROGC ] Resx                       0         0       0
BUILD: [00:0000000961:PROGC ] CSharp Compile             0         0       0
BUILD: [00:0000000962:PROGC ] VCProj Compile             0         0       0
BUILD: [00:0000000963:PROGC ] Other                      0       305       1
BUILD: [00:0000000964:PROGC ]
BUILD: [00:0000000965:PROGC ] Total                      4       335      22
BUILD: [00:0000000966:PROGC ]
BUILD: [00:0000000967:PROGC ] 335 Warnings,  22 Errors
BUILD: [00:0000000968:PROGC ] GetSystemTimes (seconds): Idle: 42    Kernel: 49    User: 24   
BUILD: [00:0000000969:PROGC ] Elapsed  time  (seconds): 18   
CEBUILD: BUILDMSG: There were errors building. Check C:\WINCE700\build.err

Can you tell me, any thing that I am doing wrong.

  • I am also getting this error.
  • In the file ./AM33X_BBB_BSP/SRC/CSP/AM33X/INC/am33x_const.inc

    You will find that the definitions for CONTROL_DDR_CMD_IOCTRL_0_OFFSET etc. are misspelled
  • In reply to Rob Shields:

    I also have this problem.

    Could you perhaps give an example of the misspelled definitions or how to resolve this?
    Thank you!
  • In reply to Josh Tee:

    The way I fixed it was changing the constants' names in AM33X_BBB_BSP\SRC\CSP\AM33X\OAL\CPUIDLE\cpu.s to match those in the file Rob mentioned.

    For example, on line 1370 change CONTROL_DDR_DATA_IOCTRL_0_OFFSET to CONTROL_DDR_DATA0_IOCTRL_OFFSET.

  • In reply to Edward McKee:

    Ahh, that solved it pretty much. I'm compiling it now, hopefully that'll work
  • In reply to Edward McKee:

    The previous errors have disappeared, but now I get:

    BUILD: [02:0000006847:ERRORE] Error(s) in directory "Y:\Programs\WCE700\platform\AM33X_BBB_BSP\SRC\DRIVERS\USB\USBH\". {log="Y:\Programs\WCE700\build.log(50863)"}
    BUILD: [02:0000006848:ERRORE] NMAKE : fatal error U1073: don't know how to make 'C:\WinCE_pr\AM33X_BBB\AM33X_BBB\Wince700\AM33X_BBB_BSP_ARMV7_Debug\cesysgen\platform\AM33X_BBB_BSP\lib\ARMV7\debug\am33x_usbcdma.lib' {log="Y:\Programs\WCE700\build.log(50864)"}
  • In reply to Josh Tee:

    Oh I remember that one! For a long time I couldn't get it to compile reliably, but it would sometimes compile if I started a build, and then when it error-ed out on USBH, right-clicked on the USBH sub-project and clicked "Build", and then built the full solution again.

    What I did to make it compile much more reliably is Tools -> Options -> Platform Builder -> Manually specify number of processors: 1.

    I read something about Windows CE having a system for specifying which sub-projects depend on which others, and thought that if a dependency were missing, the compilation might be failing or succeeding based on a race condition between 2 threads. I didn't fully understand it, so I tried disabling multiple processors. It may not be the "right" way, but software isn't my main job, so this workaround was good enough for me.
  • In reply to Edward McKee:

    AH IT WORKED! Thank you! Without you I would've given up.

    I might make a quick write up on this, it seems to be a common problem