MATLAB Answers

Simulink model for BeagleboneBlack doesn't build: 'unknown type __uint64_t'

2 views (last 30 days)
Arthur Krauß
Arthur Krauß on 11 Aug 2016
Answered: Wei Wang on 4 May 2017
We're currently working at a project were we use a beaglebone black to control a system. However, even the most simple simulink models won't compile for the beaglebone anymore. The full error message is at the end of the post. Apparently the type '__uint64_t' is unknown. Search results for a solution hint at a problem with the compiler version, however I haven't updated it since it last worked.
Does anyone know this issue or have an idea on how to solve it? Thanks!
Build log:
### Invoking Target Language Compiler on bbbPWMtest.rtw
### Using System Target File: C:\Program Files\MATLAB\R2016a\rtw\c\ert\ert.tlc
### Loading TLC function libraries
### Initial pass through model to cache user defined code
### Caching model source code
### Writing header file bbbPWMtest.h
### Writing header file bbbPWMtest_types.h
### Writing header file rtwtypes.h
.
### Writing header file multiword_types.h
### Writing source file bbbPWMtest.c
### Writing header file bbbPWMtest_private.h
### Writing source file bbbPWMtest_data.c
### Writing header file rtmodel.h
.
### Writing source file ert_main.c
### TLC code generation complete.
### Generating TLC interface API.
.
### Creating data type transition file bbbPWMtest_dt.h
### Evaluating PostCodeGenCommand specified in the model
### Using toolchain: Linaro Toolchain v4.8 | gmake (64-bit Windows)
### 'C:\Users\Arthur\Documents\MATLAB\bbbPWMtest_ert_rtw\bbbPWMtest.mk' is up to date
### Building 'bbbPWMtest': C:\PROGRA~1\MATLAB\R2016a\bin\win64\gmake -f bbbPWMtest.mk all
C:/MATLAB/SUPPOR~1/R2016a/LINARO~1.8/bin/arm-linux-gnueabihf-gcc -c -MMD -MP -MF"bbbPWMtest.c.dep" -MT"bbbPWMtest.c.o" -O0 -march=armv7-a -mfloat-abi=hard -mfpu=neon -mtune=cortex-a8 --sysroot="C:\MATLAB\SupportPackages\R2016a\toolbox\target\supportpackages\beaglebone\libc" -DMODEL=bbbPWMtest -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DON_TARGET_WAIT_FOR_START=1 -DONESTEPFCN=1 -DEXT_MODE=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DARM_PROJECT -DRT -DSTACK_SIZE=64 -DONESTEPFCN=1 -DEXT_MODE=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DON_TARGET_WAIT_FOR_START=1 -DARM_PROJECT -DRT -DSTACK_SIZE=64 -DMODEL=bbbPWMtest -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/MATLAB/SupportPackages/R2016a/toolbox/target/supportpackages/arm_cortex_a/blocks/sfcn/include -IC:/PROGRA~1/MATLAB/R2016a/simulink/include/sf_runtime -IC:/Users/Arthur/Documents/MATLAB/bbbPWMtest_ert_rtw -IC:/Users/Arthur/Documents/MATLAB -IC:/PROGRA~1/MATLAB/R2016a/extern/include -IC:/PROGRA~1/MATLAB/R2016a/simulink/include -IC:/PROGRA~1/MATLAB/R2016a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2016a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2016a/rtw/c/ert -IC:/PROGRA~1/MATLAB/R2016a/toolbox/coder/rtiostream/src/utils -IC:/MATLAB/SupportPackages/R2016a/toolbox/target/supportpackages/arm_cortex_a/blocks/sfcn/src -IC:/MATLAB/SupportPackages/R2016a/toolbox/target/supportpackages/beaglebone/registry/../include -IC:/MATLAB/SupportPackages/R2016a/toolbox/target/supportpackages/arm_cortex_a/include -IC:/PROGRA~1/MATLAB/R2016a/toolbox/target/codertarget/rtos/inc -o "bbbPWMtest.c.o" "bbbPWMtest.c"
C:/MATLAB/SUPPOR~1/R2016a/LINARO~1.8/bin/arm-linux-gnueabihf-gcc -c -MMD -MP -MF"bbbPWMtest_data.c.dep" -MT"bbbPWMtest_data.c.o" -O0 -march=armv7-a -mfloat-abi=hard -mfpu=neon -mtune=cortex-a8 --sysroot="C:\MATLAB\SupportPackages\R2016a\toolbox\target\supportpackages\beaglebone\libc" -DMODEL=bbbPWMtest -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DON_TARGET_WAIT_FOR_START=1 -DONESTEPFCN=1 -DEXT_MODE=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DARM_PROJECT -DRT -DSTACK_SIZE=64 -DONESTEPFCN=1 -DEXT_MODE=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DON_TARGET_WAIT_FOR_START=1 -DARM_PROJECT -DRT -DSTACK_SIZE=64 -DMODEL=bbbPWMtest -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/MATLAB/SupportPackages/R2016a/toolbox/target/supportpackages/arm_cortex_a/blocks/sfcn/include -IC:/PROGRA~1/MATLAB/R2016a/simulink/include/sf_runtime -IC:/Users/Arthur/Documents/MATLAB/bbbPWMtest_ert_rtw -IC:/Users/Arthur/Documents/MATLAB -IC:/PROGRA~1/MATLAB/R2016a/extern/include -IC:/PROGRA~1/MATLAB/R2016a/simulink/include -IC:/PROGRA~1/MATLAB/R2016a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2016a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2016a/rtw/c/ert -IC:/PROGRA~1/MATLAB/R2016a/toolbox/coder/rtiostream/src/utils -IC:/MATLAB/SupportPackages/R2016a/toolbox/target/supportpackages/arm_cortex_a/blocks/sfcn/src -IC:/MATLAB/SupportPackages/R2016a/toolbox/target/supportpackages/beaglebone/registry/../include -IC:/MATLAB/SupportPackages/R2016a/toolbox/target/supportpackages/arm_cortex_a/include -IC:/PROGRA~1/MATLAB/R2016a/toolbox/target/codertarget/rtos/inc -o "bbbPWMtest_data.c.o" "bbbPWMtest_data.c"
C:/MATLAB/SUPPOR~1/R2016a/LINARO~1.8/bin/arm-linux-gnueabihf-gcc -c -MMD -MP -MF"ext_svr.c.dep" -MT"ext_svr.c.o" -O0 -march=armv7-a -mfloat-abi=hard -mfpu=neon -mtune=cortex-a8 --sysroot="C:\MATLAB\SupportPackages\R2016a\toolbox\target\supportpackages\beaglebone\libc" -DMODEL=bbbPWMtest -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DON_TARGET_WAIT_FOR_START=1 -DONESTEPFCN=1 -DEXT_MODE=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DARM_PROJECT -DRT -DSTACK_SIZE=64 -DONESTEPFCN=1 -DEXT_MODE=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DON_TARGET_WAIT_FOR_START=1 -DARM_PROJECT -DRT -DSTACK_SIZE=64 -DMODEL=bbbPWMtest -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/MATLAB/SupportPackages/R2016a/toolbox/target/supportpackages/arm_cortex_a/blocks/sfcn/include -IC:/PROGRA~1/MATLAB/R2016a/simulink/include/sf_runtime -IC:/Users/Arthur/Documents/MATLAB/bbbPWMtest_ert_rtw -IC:/Users/Arthur/Documents/MATLAB -IC:/PROGRA~1/MATLAB/R2016a/extern/include -IC:/PROGRA~1/MATLAB/R2016a/simulink/include -IC:/PROGRA~1/MATLAB/R2016a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2016a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2016a/rtw/c/ert -IC:/PROGRA~1/MATLAB/R2016a/toolbox/coder/rtiostream/src/utils -IC:/MATLAB/SupportPackages/R2016a/toolbox/target/supportpackages/arm_cortex_a/blocks/sfcn/src -IC:/MATLAB/SupportPackages/R2016a/toolbox/target/supportpackages/beaglebone/registry/../include -IC:/MATLAB/SupportPackages/R2016a/toolbox/target/supportpackages/arm_cortex_a/include -IC:/PROGRA~1/MATLAB/R2016a/toolbox/target/codertarget/rtos/inc -o "ext_svr.c.o" "C:/PROGRA~1/MATLAB/R2016a/rtw/c/src/ext_mode/common/ext_svr.c"
In file included from c:\matlab\supportpackages\r2016a\toolbox\target\supportpackages\beaglebone\libc\usr\include\endian.h:60:0,
from c:\matlab\supportpackages\r2016a\toolbox\target\supportpackages\beaglebone\libc\usr\include\bits\waitstatus.h:64,
from c:\matlab\supportpackages\r2016a\toolbox\target\supportpackages\beaglebone\libc\usr\include\stdlib.h:42,
from C:/PROGRA~1/MATLAB/R2016a/rtw/c/src/ext_mode/common/ext_svr.c:32:
c:\matlab\supportpackages\r2016a\toolbox\target\supportpackages\beaglebone\libc\usr\include\bits\byteswap.h:75:1: error: unknown type name '__uint64_t'
__bswap_64 (__uint64_t __bsx)
^
c:\matlab\supportpackages\r2016a\toolbox\target\supportpackages\beaglebone\libc\usr\include\bits\byteswap.h:75:13: error: unknown type name '__uint64_t'
__bswap_64 (__uint64_t __bsx)
^
gmake: *** [ext_svr.c.o] Error 1
### Creating HTML report file bbbPWMtest_codegen_rpt.html
### Build procedure for model: 'bbbPWMtest' aborted due to an error.
Error(s) encountered while building "bbbPWMtest":
### Failed to generate all binary outputs.

Answers (2)

Satishkumar Aruljothi
Satishkumar Aruljothi on 12 Aug 2016

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!