<div dir="ltr"><div>Hi Dave</div><div><br></div><div>the default configure will have option for library find path, here is the config.log<br></div><div><br></div><div>['/home/hongbo/Developer/Embedded/rtems/5/bin/arm-rtems5-gcc', '-qrtems', '-B/home/hongbo/Developer/Embedded/rtems/5/arm-rtems5/lib/', '-B/home/hongbo/Developer/Embedded/rtems/5/arm-rtems5/tms570lc4357_launchxl/lib/', '--specs', 'bsp_specs', '-march=armv7-r', '-mthumb', '-mbig-endian', '-mfpu=vfpv3-d16', '-mfloat-abi=hard', '-ffunction-sections', '-fdata-sections', '-MMD', '../test.c', '-c', '-o/home/hongbo/Developer/Embedded/rtems/app/hello/build/.conf_check_261484d99ea5da27480d47dee9a30c04/testbuild/test.c.1.o']<br>[2/2] Linking ^[[33mbuild/.conf_check_261484d99ea5da27480d47dee9a30c04/testbuild/testprog^[[0m<br><br>['/home/hongbo/Developer/Embedded/rtems/5/bin/arm-rtems5-gcc', '-qrtems', '-B/home/hongbo/Developer/Embedded/rtems/5/arm-rtems5/lib/', '-B/home/hongbo/Developer/Embedded/rtems/5/arm-rtems5/tms570lc4357_launchxl/lib/', '--specs', 'bsp_specs', '-march=armv7-r', '-mthumb', '-mbig-endian', '-mfpu=vfpv3-d16', '-mfloat-abi=hard', '-ffunction-sections', '-fdata-sections', '-MMD', 'test.c.1.o', '-o/home/hongbo/Developer/Embedded/rtems/app/hello/build/.conf_check_261484d99ea5da27480d47dee9a30c04/testbuild/testprog', '-Wl,-Bstatic', '-Wl,-Bdynamic', '-Bstatic -lm']<br>err: /home/hongbo/Developer/Embedded/rtems/5/lib/gcc/arm-rtems5/7.5.0/../../../../arm-rtems5/bin/ld: /home/hongbo/Developer/Embedded/rtems/5/arm-rtems5/tms570lc4357_launchxl/lib/librtemsbsp.a(HL_sci.o): in function `sciSetBaudrate':<br>/home/hongbo/Developer/Embedded/rtems/build/tms570lc4357/arm-rtems5/c/tms570lc4357_launchxl/lib/libbsp/arm/tms570/../../../../../../../../../rtems-master/c/src/lib/libbsp/arm/tms570/../../../../../../bsps/arm/tms570/start/tms570lc4357/source/HL_sci.c:284: undefined reference to `floor'<br>collect2: error: ld returned 1 exit status<br><br>from /home/hongbo/Developer/Embedded/rtems/app/hello: Test does not build: Traceback (most recent call last):<br> File "/home/hongbo/Developer/Embedded/rtems/app/hello/.waf3-2.0.19-1f3c580272b15a03d2566843c5fe872a/waflib/Configure.py", line 333, in run_build<br> bld.compile()<br> File "/home/hongbo/Developer/Embedded/rtems/app/hello/.waf3-2.0.19-1f3c580272b15a03d2566843c5fe872a/waflib/Build.py", line 176, in compile<br> raise Errors.BuildError(self.producer.error)<br>waflib.Errors.BuildError: Build failed<br> -> task in 'testprog' failed with exit status 1 (run with -v to display more information)</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jul 25, 2022 at 10:33 PM DAVE ERICKSON <<a href="mailto:daveerickson@shaw.ca">daveerickson@shaw.ca</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div style="font-family:arial,helvetica,sans-serif;font-size:10pt;color:rgb(0,0,0)"><div>Hongbo;<br></div><div><br></div><div>In a phrase, "There are a number of libm.a inside the toolchain,"<br></div><div><br></div><div>is exactly your problem. Your poor ld is finding the WRONG libm.* and linking it into the archive. autotools have no internal logic, they can't double check configurations for you. </div><div><br></div><div>They don't stop to confirm all functions wanted are in the linked archive UNLESS YOU EXPRESS THAT. autotools are mindless automatons.<br></div><div><br></div><div>Do you see? That's why you need to, one by one, find all libm.* it can possibly find then rule each one out as the cause. If you <br></div><div><br></div><div>nm -D <br></div><div><br></div><div>or </div><div><br></div><div>nm<br></div><div><br></div><div>for every one you will find a faulty libm.* that doesn't have floor() / ceiling() in it. That is / are the ones ld linker is finding first.<br></div><div><br></div><div>You NEED to, not optional, use the linker flag <br></div><div><br></div><div><br></div><div>-L/path/to/correct/libm.a<br></div><div><br></div><div>in exactly the right configuration folder to allow ld to find the RIGHT libm.* before it finds the WRONG libm.*<br></div><div><br></div><div><br></div><div><div>Dave<br></div><div><div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div style="font-family:"arial","helvetica",sans-serif;font-size:10pt;color:rgb(0,0,0)"><br><br><div>Cheers!<br></div><br><div>Daemondave on github<br></div><br><div>Check out my new book Untrapped Value on LeanPub: <span id="gmail-m_6293298689980267843gmail-m_6852354183798068440OBJ_PREFIX_DWT646_com_zimbra_url"><a href="https://leanpub.com/untrappedvalue" rel="nofollow noopener noreferrer nofollow noopener noreferrer nofollow noopener noreferrer" target="_blank">https://leanpub.com/untrappedvalue</a></span><br></div></div></div></blockquote></div></div></div></div><hr id="gmail-m_6293298689980267843zwchr"><div><b>From: </b>"Y. HB" <<a href="mailto:sprhawk@gmail.com" target="_blank">sprhawk@gmail.com</a>><br><b>To: </b>"DAVE ERICKSON" <<a href="mailto:daveerickson@shaw.ca" target="_blank">daveerickson@shaw.ca</a>><br><b>Cc: </b>"<a href="mailto:rtems-users@rtems.org" target="_blank">rtems-users@rtems.org</a>" <<a href="mailto:users@rtems.org" target="_blank">users@rtems.org</a>><br><b>Sent: </b>Monday, July 25, 2022 8:12:46 AM<br><b>Subject: </b>Re: How can I add LDFLAGS for bsp build?<br></div><div><br></div><div><div dir="ltr"><div>Hi Dave,</div><br><div>I believe the build system will find the libm.a in rtems toolchain, which I used arm-rtems-5,</div><div>There are a number of libm.a inside the toolchain, specific to soft / hard VFP features</div><br><div>here is the configure command line to build the rtems bsp:</div><br><div>../../rtems-master/configure --prefix=$RTEMS_ROOT/5 --target=arm-rtems5 --enable-rtemsbsp=tms570lc4357_launchxl --enable-posix --disable-networking --enable-rtems-debug --enable-maintainer-mode --enable-rdbg --enable-rtems-inlines --disable-multiprocessing --enable-cxx --enable-itron --disable-ada --disable-expada --disable-multilib --disable-docs TMS570_USE_HWINIT_STARTUP=1 ARM_TMS570LC4357=1</div><br><div>Remember that I have added LIBS = -lm inside my tms570lc4357.inc config file<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jul 25, 2022 at 10:05 PM DAVE ERICKSON <<a href="mailto:daveerickson@shaw.ca" rel="nofollow noopener noreferrer" target="_blank">daveerickson@shaw.ca</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div style="font-family:"arial","helvetica",sans-serif;font-size:10pt;color:rgb(0,0,0)"><div>Hi Hongbo (Is that right?);<br></div><br><br><div>I have no experience with waf so I can't help there...over to joel...<br></div><br><div>What I want to see is the output from the exact same shell (terminal, BASH) that you are compiling with and may have environmental variables set, is the computer's reply to you executing the <br></div><br><div>which libm.* <br></div><br><div>command. that will give you the list of libm.a, libm.so, <a href="http://libm.la" rel="nofollow noopener noreferrer" target="_blank">libm.la</a> files that the bash shell / or c shell can find. <br></div><br><div>It is important that it come from the identical shell because some of the programs you are using may have set global scope environmental variables in that shell that are trampling on other setup in makefiles variables. <br></div><br><div>you can also use command:<br></div><br><div>locate libm.*<br></div><br><div>and then list all the contents here that would help rule out environmental setup as the cause of the failed build. <br></div><br><div>If you do either of these two things I can diagnose where the problem is. <br></div><br><div>Also, after you have done that, try this command in that same shell:<br></div><br><br><div>sudo updatedb<br></div><br><br><div>that updates the /var/lib/plocate/plocate.db database used to locate files. On most systems that is what is searching for files you want on behalf of ggc, ar, ld, and so on. Then try compiling again. <br></div><br><br><div>Dave<br></div><div><div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div style="font-family:"arial","helvetica",sans-serif;font-size:10pt;color:rgb(0,0,0)"><br><br><div>Cheers!<br></div><br><div>Daemondave on github<br></div><br><div>Check out my new book Untrapped Value on LeanPub: <span id="gmail-m_6293298689980267843gmail-m_6852354183798068440OBJ_PREFIX_DWT646_com_zimbra_url"><a href="https://leanpub.com/untrappedvalue" rel="nofollow noopener noreferrer nofollow noopener noreferrer nofollow noopener noreferrer" target="_blank">https://leanpub.com/untrappedvalue</a></span><br></div></div></div></blockquote></div></div></div><br><hr id="gmail-m_6293298689980267843gmail-m_6852354183798068440zwchr"><div><b>From: </b>"Y. HB" <<a href="mailto:sprhawk@gmail.com" rel="nofollow noopener noreferrer" target="_blank">sprhawk@gmail.com</a>><br><b>To: </b>"joel" <<a href="mailto:joel@rtems.org" rel="nofollow noopener noreferrer" target="_blank">joel@rtems.org</a>><br><b>Cc: </b>"DAVE ERICKSON" <<a href="mailto:daveerickson@shaw.ca" rel="nofollow noopener noreferrer" target="_blank">daveerickson@shaw.ca</a>>, "<a href="mailto:rtems-users@rtems.org" rel="nofollow noopener noreferrer" target="_blank">rtems-users@rtems.org</a>" <<a href="mailto:users@rtems.org" rel="nofollow noopener noreferrer" target="_blank">users@rtems.org</a>><br><b>Sent: </b>Sunday, July 24, 2022 9:35:37 PM<br><b>Subject: </b>Re: How can I add LDFLAGS for bsp build?<br></div><br><div><div dir="ltr"><div id="gmail-m_6293298689980267843gmail-m_6852354183798068440gmail-:yi" style="display:block"><div id="gmail-m_6293298689980267843gmail-m_6852354183798068440gmail-:ye" style="direction:ltr;min-height:85px"><div dir="ltr"><div>Hi Dave & Joel:<br></div><br><div>Thanks for your replies.</div><br><div>I'm building RTEMS bsp, I think it should not find libm.so or <a href="http://lib.la" rel="nofollow noopener noreferrer nofollow noopener noreferrer" target="_blank">lib.la</a> in LD_LIBRARY_PATH in configure script of RTEMS (5.1), <br></div><div>In fact, the compiling has -lm added, but still missing floor references:</div><br><div>arm-rtems5-gcc -march=armv7-r -mthumb -mbig-endian -mfpu=vfpv3-d16 -mfloat-abi=hard -Og -ggdb -ffunction-sections -fdata-sections -Wall -Wmissing-prototypes -Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs -B./../../lib/libbsp/arm/tms570 -B/home/hongbo/Developer/Embedded/rtems/rtems-master/bsps/arm/tms570/start -specs bsp_specs -qrtems -L./../../cpukit -L/home/hongbo/Developer/Embedded/rtems/rtems-master/bsps/arm/shared/start -Wl,--wrap=printf -Wl,--wrap=puts -Wl,--wrap=putchar -Wl,--gc-sections -lm -o base_sp.exe base_sp/base_sp-init.o base_sp/base_sp-apptask.o ./../../lib/libbsp/arm/tms570/librtemsbsp.a ./../../cpukit/librtemscpu.a ./../../cpukit/librtemstest.a<br>/home/hongbo/Developer/Embedded/rtems/5/lib/gcc/arm-rtems5/7.5.0/../../../../arm-rtems5/bin/ld: ./../../lib/libbsp/arm/tms570/librtemsbsp.a(HL_sci.o): in function `sciSetBaudrate':<br>/home/hongbo/Developer/Embedded/rtems/build/tms570lc4357/arm-rtems5/c/tms570lc4357_launchxl/lib/libbsp/arm/tms570/../../../../../../../../../rtems-master/c/src/lib/libbsp/arm/tms570/../../../../../../bsps/arm/tms570/start/tms570lc4357/source/HL_sci.c:284: undefined reference to `floor'<br></div><br><div>I added LIBS=-lm in bsps/arm/tms570/config/tms570lc4357.inc (which is I added for a new BSP), it passed build bsp, <br></div><br><div>however, in application build, I'm building application with waf, but ./waf configure did not pass "test c program", due to the link flags for application still has no -lm, which reported again undefined reference to floor<br></div><br><div>following is config.log</div><br></div># project configured on Mon Jul 25 11:30:44 2022 by<br># waf 2.0.19 (abi 20, python 30902f0 on linux)<br># using ./waf configure --rtems=/home/hongbo/Developer/Embedded/rtems/5 --rtems-bsp=arm/tms570lc4357_launchxl<br>#<br>----------------------------------------<br>Setting top to<br>/home/hongbo/Developer/Embedded/rtems/app/hello<br>----------------------------------------<br>Setting out to<br>/home/hongbo/Developer/Embedded/rtems/app/hello/build<br>-----------------------------------------<br>----------------------------------------<br>RTEMS Version<br>5<br>----------------------------------------<br>Architectures<br>arm-rtems5<br>----------------------------------------<br>Board Support Package (BSP)<br>arm-rtems5-tms570lc4357_launchxl<br>----------------------------------------<br>Show commands<br>no<br>----------------------------------------<br>Long commands<br>no<br>----------------------------------------<br>Checking for program 'arm-rtems5-gcc'<br>/home/hongbo/Developer/Embedded/rtems/5/bin/arm-rtems5-gcc<br>find program=['arm-rtems5-gcc'] paths=['/home/hongbo/Developer/Embedded/rtems/5/bin'] var='ARM_RTEMS5_GCC' -> ['/home/hongbo/Developer/Embedded/rtems/5/bin/arm-rtems5-gcc']<br>----------------------------------------<br>Checking for program 'arm-rtems5-g++'<br>/home/hongbo/Developer/Embedded/rtems/5/bin/arm-rtems5-g++<br>find program=['arm-rtems5-g++'] paths=['/home/hongbo/Developer/Embedded/rtems/5/bin'] var='ARM_RTEMS5_G++' -> ['/home/hongbo/Developer/Embedded/rtems/5/bin/arm-rtems5-g++']<br>----------------------------------------<br>Checking for program 'arm-rtems5-gcc'<br>/home/hongbo/Developer/Embedded/rtems/5/bin/arm-rtems5-gcc<br>find program=['arm-rtems5-gcc'] paths=['/home/hongbo/Developer/Embedded/rtems/5/bin'] var='ARM_RTEMS5_GCC' -> ['/home/hongbo/Developer/Embedded/rtems/5/bin/arm-rtems5-gcc']<br>----------------------------------------<br>Checking for program 'arm-rtems5-ld'<br>/home/hongbo/Developer/Embedded/rtems/5/bin/arm-rtems5-ld<br>find program=['arm-rtems5-ld'] paths=['/home/hongbo/Developer/Embedded/rtems/5/bin'] var='ARM_RTEMS5_LD' -> ['/home/hongbo/Developer/Embedded/rtems/5/bin/arm-rtems5-ld']<br>----------------------------------------<br>Checking for program 'arm-rtems5-ar'<br>/home/hongbo/Developer/Embedded/rtems/5/bin/arm-rtems5-ar<br>find program=['arm-rtems5-ar'] paths=['/home/hongbo/Developer/Embedded/rtems/5/bin'] var='ARM_RTEMS5_AR' -> ['/home/hongbo/Developer/Embedded/rtems/5/bin/arm-rtems5-ar']<br>----------------------------------------<br>Checking for program 'arm-rtems5-nm'<br>/home/hongbo/Developer/Embedded/rtems/5/bin/arm-rtems5-nm<br>find program=['arm-rtems5-nm'] paths=['/home/hongbo/Developer/Embedded/rtems/5/bin'] var='ARM_RTEMS5_NM' -> ['/home/hongbo/Developer/Embedded/rtems/5/bin/arm-rtems5-nm']<br>-----------------------------------------<br>Checking for program 'arm-rtems5-objdump'<br>/home/hongbo/Developer/Embedded/rtems/5/bin/arm-rtems5-objdump<br>find program=['arm-rtems5-objdump'] paths=['/home/hongbo/Developer/Embedded/rtems/5/bin'] var='ARM_RTEMS5_OBJDUMP' -> ['/home/hongbo/Developer/Embedded/rtems/5/bin/arm-rtems5-objdump']<br>-----------------------------------------<br>Checking for program 'arm-rtems5-objcopy'<br>/home/hongbo/Developer/Embedded/rtems/5/bin/arm-rtems5-objcopy<br>find program=['arm-rtems5-objcopy'] paths=['/home/hongbo/Developer/Embedded/rtems/5/bin'] var='ARM_RTEMS5_OBJCOPY' -> ['/home/hongbo/Developer/Embedded/rtems/5/bin/arm-rtems5-objcopy']<br>-----------------------------------------<br>Checking for program 'arm-rtems5-readelf'<br>/home/hongbo/Developer/Embedded/rtems/5/bin/arm-rtems5-readelf<br>find program=['arm-rtems5-readelf'] paths=['/home/hongbo/Developer/Embedded/rtems/5/bin'] var='ARM_RTEMS5_READELF' -> ['/home/hongbo/Developer/Embedded/rtems/5/bin/arm-rtems5-readelf']<br>-----------------------------------------<br>Checking for program 'arm-rtems5-strip'<br>/home/hongbo/Developer/Embedded/rtems/5/bin/arm-rtems5-strip<br>find program=['arm-rtems5-strip'] paths=['/home/hongbo/Developer/Embedded/rtems/5/bin'] var='ARM_RTEMS5_STRIP' -> ['/home/hongbo/Developer/Embedded/rtems/5/bin/arm-rtems5-strip']<br>-----------------------------------------<br>Checking for program 'arm-rtems5-ranlib'<br>/home/hongbo/Developer/Embedded/rtems/5/bin/arm-rtems5-ranlib<br>find program=['arm-rtems5-ranlib'] paths=['/home/hongbo/Developer/Embedded/rtems/5/bin'] var='ARM_RTEMS5_RANLIB' -> ['/home/hongbo/Developer/Embedded/rtems/5/bin/arm-rtems5-ranlib']<br>-----------------------------------------<br>Checking for program 'rtems-ld'<br>/home/hongbo/Developer/Embedded/rtems/5/bin/rtems-ld<br>find program=['rtems-ld'] paths=['/home/hongbo/Developer/Embedded/rtems/5/bin'] var='RTEMS_LD' -> ['/home/hongbo/Developer/Embedded/rtems/5/bin/rtems-ld']<br>-----------------------------------------<br>Checking for program 'rtems-tld'<br>/home/hongbo/Developer/Embedded/rtems/5/bin/rtems-tld<br>find program=['rtems-tld'] paths=['/home/hongbo/Developer/Embedded/rtems/5/bin'] var='RTEMS_TLD' -> ['/home/hongbo/Developer/Embedded/rtems/5/bin/rtems-tld']<br>-----------------------------------------<br>Checking for program 'rtems-syms'<br>/home/hongbo/Developer/Embedded/rtems/5/bin/rtems-syms<br>find program=['rtems-syms'] paths=['/home/hongbo/Developer/Embedded/rtems/5/bin'] var='RTEMS_SYMS' -> ['/home/hongbo/Developer/Embedded/rtems/5/bin/rtems-syms']<br>-----------------------------------------<br>Checking for program 'rtems-bin2c'<br>/home/hongbo/Developer/Embedded/rtems/5/bin/rtems-bin2c<br>find program=['rtems-bin2c'] paths=['/home/hongbo/Developer/Embedded/rtems/5/bin'] var='RTEMS_BIN2C' -> ['/home/hongbo/Developer/Embedded/rtems/5/bin/rtems-bin2c']<br>-----------------------------------------<br>Checking for program 'tar'<br>/usr/bin/tar<br>find program=['tar'] paths=['/home/hongbo/Developer/Embedded/rtems/5/bin', '/home/hongbo/Developer/Embedded/local/bin', '/opt/wine-devel/bin', '/home/hongbo/Developer/Android/sdk/platform-tools', '/home/hongbo/.yarn/bin', '/home/hongbo/.local/node-v14.17.4-linux-x64//bin', '/home/hongbo/.local/go/bin', '/home/hongbo/.local/bin', '/home/hongbo/.cargo/bin', '/usr/lib/postgresql/14/bin', '/usr/local/bin', '/usr/bin', '/bin', '/usr/local/games', '/usr/games', '/home/hongbo/.local/go/bin'] var='TAR' -> ['/usr/bin/tar']<br>-----------------------------------------<br>Checking for program 'gcc, cc'<br>/home/hongbo/Developer/Embedded/rtems/5/bin/arm-rtems5-gcc<br>find program=['gcc', 'cc'] paths=['/home/hongbo/Developer/Embedded/rtems/5/bin', '/home/hongbo/Developer/Embedded/local/bin', '/opt/wine-devel/bin', '/home/hongbo/Developer/Android/sdk/platform-tools', '/home/hongbo/.yarn/bin', '/home/hongbo/.local/node-v14.17.4-linux-x64//bin', '/home/hongbo/.local/go/bin', '/home/hongbo/.local/bin', '/home/hongbo/.cargo/bin', '/usr/lib/postgresql/14/bin', '/usr/local/bin', '/usr/bin', '/bin', '/usr/local/games', '/usr/games', '/home/hongbo/.local/go/bin'] var='CC' -> ['/home/hongbo/Developer/Embedded/rtems/5/bin/arm-rtems5-gcc']<br>['/home/hongbo/Developer/Embedded/rtems/5/bin/arm-rtems5-gcc', '-dM', '-E', '-']<br>out: #define __DBL_MIN_EXP__ (-1021)<br>#define __HQ_FBIT__ 15<br>#define __FLT32X_MAX_EXP__ 1024<br>#define __UINT_LEAST16_MAX__ 0xffff<br>#define __ARM_SIZEOF_WCHAR_T 4<br>#define __ATOMIC_ACQUIRE 2<br>#define __SFRACT_IBIT__ 0<br>#define __FLT_MIN__ 1.1754943508222875e-38F<br>#define __GCC_IEC_559_COMPLEX 0<br>#define __UFRACT_MAX__ 0XFFFFP-16UR<br>#define __UINT_LEAST8_TYPE__ unsigned char<br>#define __DQ_FBIT__ 63<br>#define __INTMAX_C(c) c ## LL<br>#define __ULFRACT_FBIT__ 32<br>#define __SACCUM_EPSILON__ 0x1P-7HK<br>#define __CHAR_BIT__ 8<br>#define __USQ_IBIT__ 0<br>#define __UINT8_MAX__ 0xff<br>#define __ACCUM_FBIT__ 15<br>#define __WINT_MAX__ 0xffffffffU<br>#define __FLT32_MIN_EXP__ (-125)<br>#define __USFRACT_FBIT__ 8<br>#define __ORDER_LITTLE_ENDIAN__ 1234<br>#define __SIZE_MAX__ 0xffffffffU<br>#define __ARM_ARCH_ISA_ARM 1<br>#define __WCHAR_MAX__ 0xffffffffU<br>#define __LACCUM_IBIT__ 32<br>#define __DBL_DENORM_MIN__ ((double)4.9406564584124654e-324L)<br>#define __GCC_ATOMIC_CHAR_LOCK_FREE 1<br>#define __GCC_IEC_559 0<br>#define __FLT32X_DECIMAL_DIG__ 17<br>#define __FLT_EVAL_METHOD__ 0<br>#define __LLACCUM_MAX__ 0X7FFFFFFFFFFFFFFFP-31LLK<br>#define __FLT64_DECIMAL_DIG__ 17<br>#define __GCC_ATOMIC_CHAR32_T_LOCK_FREE 1<br>#define __FRACT_FBIT__ 15<br>#define __UINT_FAST64_MAX__ 0xffffffffffffffffULL<br>#define __SIG_ATOMIC_TYPE__ int<br>#define __UACCUM_FBIT__ 16<br>#define __DBL_MIN_10_EXP__ (-307)<br>#define __FINITE_MATH_ONLY__ 0<br>#define __ARMEL__ 1<br>#define __LFRACT_IBIT__ 0<br>#define __GNUC_PATCHLEVEL__ 0<br>#define __FLT32_HAS_DENORM__ 1<br>#define __LFRACT_MAX__ 0X7FFFFFFFP-31LR<br>#define __UINT_FAST8_MAX__ 0xffffffffU<br>#define __has_include(STR) __has_include__(STR)<br>#define __DEC64_MAX_EXP__ 385<br>#define __INT8_C(c) c<br>#define __INT_LEAST8_WIDTH__ 8<br>#define __UINT_LEAST64_MAX__ 0xffffffffffffffffULL<br>#define __SA_FBIT__ 15<br>#define __SHRT_MAX__ 0x7fff<br>#define __LDBL_MAX__ 1.7976931348623157e+308L<br>#define __FRACT_MAX__ 0X7FFFP-15R<br>#define __UFRACT_FBIT__ 16<br>#define __UFRACT_MIN__ 0.0UR<br>#define __UINT_LEAST8_MAX__ 0xff<br>#define __GCC_ATOMIC_BOOL_LOCK_FREE 1<br>#define __UINTMAX_TYPE__ long long unsigned int<br>#define __LLFRACT_EPSILON__ 0x1P-63LLR<br>#define __DEC32_EPSILON__ 1E-6DF<br>#define __FLT_EVAL_METHOD_TS_18661_3__ 0<br>#define __CHAR_UNSIGNED__ 1<br>#define __UINT32_MAX__ 0xffffffffU<br>#define __ULFRACT_MAX__ 0XFFFFFFFFP-32ULR<br>#define __TA_IBIT__ 64<br>#define __LDBL_MAX_EXP__ 1024<br>#define __WINT_MIN__ 0U<br>#define __INT_LEAST16_WIDTH__ 16<br>#define __ULLFRACT_MIN__ 0.0ULLR<br>#define __SCHAR_MAX__ 0x7f<br>#define __WCHAR_MIN__ 0U<br>#define __INT64_C(c) c ## LL<br>#define __DBL_DIG__ 15<br>#define __GCC_ATOMIC_POINTER_LOCK_FREE 1<br>#define __LLACCUM_MIN__ (-0X1P31LLK-0X1P31LLK)<br>#define __SIZEOF_INT__ 4<br>#define __SIZEOF_POINTER__ 4<br>#define __USACCUM_IBIT__ 8<br>#define __USER_LABEL_PREFIX__ <br>#define __STDC_HOSTED__ 1<br>#define __LDBL_HAS_INFINITY__ 1<br>#define __LFRACT_MIN__ (-0.5LR-0.5LR)<br>#define __HA_IBIT__ 8<br>#define __FLT32_DIG__ 6<br>#define __TQ_IBIT__ 0<br>#define __FLT_EPSILON__ 1.1920928955078125e-7F<br>#define __APCS_32__ 1<br>#define __SHRT_WIDTH__ 16<br>#define __USFRACT_IBIT__ 0<br>#define __LDBL_MIN__ 2.2250738585072014e-308L<br>#define __STDC_UTF_16__ 1<br>#define __FRACT_MIN__ (-0.5R-0.5R)<br>#define __DEC32_MAX__ 9.999999E96DF<br>#define __DA_IBIT__ 32<br>#define __ARM_SIZEOF_MINIMAL_ENUM 4<br>#define __FLT32X_HAS_INFINITY__ 1<br>#define __INT32_MAX__ 0x7fffffff<br>#define __UQQ_FBIT__ 8<br>#define __INT_WIDTH__ 32<br>#define __SIZEOF_LONG__ 4<br>#define __UACCUM_MAX__ 0XFFFFFFFFP-16UK<br>#define __UINT16_C(c) c<br>#define __PTRDIFF_WIDTH__ 32<br>#define __DECIMAL_DIG__ 17<br>#define __LFRACT_EPSILON__ 0x1P-31LR<br>#define __FLT64_EPSILON__ 2.2204460492503131e-16F64<br>#define __ULFRACT_MIN__ 0.0ULR<br>#define __INTMAX_WIDTH__ 64<br>#define __has_include_next(STR) __has_include_next__(STR)<br>#define __LDBL_HAS_QUIET_NAN__ 1<br>#define __ULACCUM_IBIT__ 32<br>#define __FLT64_MANT_DIG__ 53<br>#define __UACCUM_EPSILON__ 0x1P-16UK<br>#define __GNUC__ 7<br>#define __ULLACCUM_MAX__ 0XFFFFFFFFFFFFFFFFP-32ULLK<br>#define __HQ_IBIT__ 0<br>#define __FLT_HAS_DENORM__ 1<br>#define __SIZEOF_LONG_DOUBLE__ 8<br>#define __BIGGEST_ALIGNMENT__ 8<br>#define __FLT64_MAX_10_EXP__ 308<br>#define __GNUC_STDC_INLINE__ 1<br>#define __DQ_IBIT__ 0<br>#define __DBL_MAX__ ((double)1.7976931348623157e+308L)<br>#define __ULFRACT_IBIT__ 0<br>#define __INT_FAST32_MAX__ 0x7fffffff<br>#define __DBL_HAS_INFINITY__ 1<br>#define __ACCUM_IBIT__ 16<br>#define __DEC32_MIN_EXP__ (-94)<br>#define __THUMB_INTERWORK__ 1<br>#define __INTPTR_WIDTH__ 32<br>#define __LACCUM_MAX__ 0X7FFFFFFFFFFFFFFFP-31LK<br>#define __FLT32X_HAS_DENORM__ 1<br>#define __INT_FAST16_TYPE__ int<br>#define __LDBL_HAS_DENORM__ 1<br>#define __DEC128_MAX__ 9.999999999999999999999999999999999E6144DL<br>#define __INT_LEAST32_MAX__ 0x7fffffff<br>#define __ARM_PCS 1<br>#define __DEC32_MIN__ 1E-95DF<br>#define __ACCUM_MAX__ 0X7FFFFFFFP-15K<br>#define __DBL_MAX_EXP__ 1024<br>#define __USACCUM_EPSILON__ 0x1P-8UHK<br>#define __WCHAR_WIDTH__ 32<br>#define __FLT32_MAX__ 3.4028234663852886e+38F32<br>#define __DEC128_EPSILON__ 1E-33DL<br>#define __SFRACT_MAX__ 0X7FP-7HR<br>#define __FRACT_IBIT__ 0<br>#define __PTRDIFF_MAX__ 0x7fffffff<br>#define __UACCUM_MIN__ 0.0UK<br>#define __UACCUM_IBIT__ 16<br>#define __FLT32_HAS_QUIET_NAN__ 1<br>#define __LONG_LONG_MAX__ 0x7fffffffffffffffLL<br>#define __SIZEOF_SIZE_T__ 4<br>#define __ULACCUM_MAX__ 0XFFFFFFFFFFFFFFFFP-32ULK<br>#define __SIZEOF_WINT_T__ 4<br>#define __LONG_LONG_WIDTH__ 64<br>#define __FLT32_MAX_EXP__ 128<br>#define __SA_IBIT__ 16<br>#define __ULLACCUM_MIN__ 0.0ULLK<br>#define __GXX_ABI_VERSION 1011<br>#define __UTA_FBIT__ 64<br>#define __SOFTFP__ 1<br>#define __FLT_MIN_EXP__ (-125)<br>#define __USFRACT_MAX__ 0XFFP-8UHR<br>#define __UFRACT_IBIT__ 0<br>#define __INT_FAST64_TYPE__ long long int<br>#define __FLT64_DENORM_MIN__ 4.9406564584124654e-324F64<br>#define __DBL_MIN__ ((double)2.2250738585072014e-308L)<br>#define __USE_INIT_FINI__ 1<br>#define __FLT32X_EPSILON__ 2.2204460492503131e-16F32x<br>#define __FLT64_MIN_EXP__ (-1021)<br>#define __LACCUM_MIN__ (-0X1P31LK-0X1P31LK)<br>#define __ULLACCUM_FBIT__ 32<br>#define __GXX_TYPEINFO_EQUALITY_INLINE 0<br>#define __FLT64_MIN_10_EXP__ (-307)<br>#define __ULLFRACT_EPSILON__ 0x1P-64ULLR<br>#define __USES_INITFINI__ 1<br>#define __DEC128_MIN__ 1E-6143DL<br>#define __REGISTER_PREFIX__ <br>#define __UINT16_MAX__ 0xffff<br>#define __DBL_HAS_DENORM__ 1<br>#define __ACCUM_MIN__ (-0X1P15K-0X1P15K)<br>#define __SQ_IBIT__ 0<br>#define __FLT32_MIN__ 1.1754943508222875e-38F32<br>#define __UINT8_TYPE__ unsigned char<br>#define __UHA_FBIT__ 8<br>#define __NO_INLINE__ 1<br>#define __SFRACT_MIN__ (-0.5HR-0.5HR)<br>#define __UTQ_FBIT__ 128<br>#define __FLT_MANT_DIG__ 24<br>#define __LDBL_DECIMAL_DIG__ 17<br>#define __VERSION__ "7.5.0 20191114 (RTEMS 5, RSB 5.1, Newlib 7947581)"<br>#define __UINT64_C(c) c ## ULL<br>#define __ULLFRACT_FBIT__ 64<br>#define __FRACT_EPSILON__ 0x1P-15R<br>#define __ULACCUM_MIN__ 0.0ULK<br>#define __UDA_FBIT__ 32<br>#define __LLACCUM_EPSILON__ 0x1P-31LLK<br>#define __GCC_ATOMIC_INT_LOCK_FREE 1<br>#define __FLT32_MANT_DIG__ 24<br>#define __FLOAT_WORD_ORDER__ __ORDER_LITTLE_ENDIAN__<br>#define __USFRACT_MIN__ 0.0UHR<br>#define __UQQ_IBIT__ 0<br>#define __SCHAR_WIDTH__ 8<br>#define __INT32_C(c) c<br>#define __DEC64_EPSILON__ 1E-15DD<br>#define __ORDER_PDP_ENDIAN__ 3412<br>#define __DEC128_MIN_EXP__ (-6142)<br>#define __UHQ_FBIT__ 16<br>#define __LLACCUM_FBIT__ 31<br>#define __FLT32_MAX_10_EXP__ 38<br>#define __INT_FAST32_TYPE__ int<br>#define __UINT_LEAST16_TYPE__ short unsigned int<br>#define __INT16_MAX__ 0x7fff<br>#define __SIZE_TYPE__ unsigned int<br>#define __UINT64_MAX__ 0xffffffffffffffffULL<br>#define __UDQ_FBIT__ 64<br>#define __INT8_TYPE__ signed char<br>#define __ELF__ 1<br>#define __ULFRACT_EPSILON__ 0x1P-32ULR<br>#define __LLFRACT_FBIT__ 63<br>#define __rtems__ 1<br>#define __FLT_RADIX__ 2<br>#define __INT_LEAST16_TYPE__ short int<br>#define __LDBL_EPSILON__ 2.2204460492503131e-16L<br>#define __UINTMAX_C(c) c ## ULL<br>#define __SACCUM_MAX__ 0X7FFFP-7HK<br>#define __SIG_ATOMIC_MAX__ 0x7fffffff<br>#define __GCC_ATOMIC_WCHAR_T_LOCK_FREE 1<br>#define __VFP_FP__ 1<br>#define __SIZEOF_PTRDIFF_T__ 4<br>#define __FLT32X_MANT_DIG__ 53<br>#define __LACCUM_EPSILON__ 0x1P-31LK<br>#define __FLT32X_MIN_EXP__ (-1021)<br>#define __DEC32_SUBNORMAL_MIN__ 0.000001E-95DF<br>#define __INT_FAST16_MAX__ 0x7fffffff<br>#define __FLT64_DIG__ 15<br>#define __UINT_FAST32_MAX__ 0xffffffffU<br>#define __UINT_LEAST64_TYPE__ long long unsigned int<br>#define __USACCUM_MAX__ 0XFFFFP-8UHK<br>#define __SFRACT_EPSILON__ 0x1P-7HR<br>#define __FLT_HAS_QUIET_NAN__ 1<br>#define __FLT_MAX_10_EXP__ 38<br>#define __LONG_MAX__ 0x7fffffffL<br>#define __DEC128_SUBNORMAL_MIN__ 0.000000000000000000000000000000001E-6143DL<br>#define __FLT_HAS_INFINITY__ 1<br>#define __USA_FBIT__ 16<br>#define __UINT_FAST16_TYPE__ unsigned int<br>#define __DEC64_MAX__ 9.999999999999999E384DD<br>#define __ARM_32BIT_STATE 1<br>#define __INT_FAST32_WIDTH__ 32<br>#define __CHAR16_TYPE__ short unsigned int<br>#define __PRAGMA_REDEFINE_EXTNAME 1<br>#define __SIZE_WIDTH__ 32<br>#define __INT_LEAST16_MAX__ 0x7fff<br>#define __DEC64_MANT_DIG__ 16<br>#define __INT64_MAX__ 0x7fffffffffffffffLL<br>#define __UINT_LEAST32_MAX__ 0xffffffffU<br>#define __SACCUM_FBIT__ 7<br>#define __FLT32_DENORM_MIN__ 1.4012984643248171e-45F32<br>#define __GCC_ATOMIC_LONG_LOCK_FREE 1<br>#define __SIG_ATOMIC_WIDTH__ 32<br>#define __INT_LEAST64_TYPE__ long long int<br>#define __INT16_TYPE__ short int<br>#define __INT_LEAST8_TYPE__ signed char<br>#define __STDC_VERSION__ 201112L<br>#define __SQ_FBIT__ 31<br>#define __DEC32_MAX_EXP__ 97<br>#define __ARM_ARCH_ISA_THUMB 1<br>#define __INT_FAST8_MAX__ 0x7fffffff<br>#define __ARM_ARCH 4<br>#define __INTPTR_MAX__ 0x7fffffff<br>#define __QQ_FBIT__ 7<br>#define __UTA_IBIT__ 64<br>#define __FLT64_HAS_QUIET_NAN__ 1<br>#define __FLT32_MIN_10_EXP__ (-37)<br>#define __FLT32X_DIG__ 15<br>#define __LDBL_MANT_DIG__ 53<br>#define __SFRACT_FBIT__ 7<br>#define __SACCUM_MIN__ (-0X1P7HK-0X1P7HK)<br>#define __DBL_HAS_QUIET_NAN__ 1<br>#define __FLT64_HAS_INFINITY__ 1<br>#define __SIG_ATOMIC_MIN__ (-__SIG_ATOMIC_MAX__ - 1)<br>#define __INTPTR_TYPE__ int<br>#define __UINT16_TYPE__ short unsigned int<br>#define __WCHAR_TYPE__ unsigned int<br>#define __SIZEOF_FLOAT__ 4<br>#define __USQ_FBIT__ 32<br>#define __UINTPTR_MAX__ 0xffffffffU<br>#define __INT_FAST64_WIDTH__ 64<br>#define __DEC64_MIN_EXP__ (-382)<br>#define __ULLACCUM_IBIT__ 32<br>#define __FLT32_DECIMAL_DIG__ 9<br>#define __INT_FAST64_MAX__ 0x7fffffffffffffffLL<br>#define __GCC_ATOMIC_TEST_AND_SET_TRUEVAL 1<br>#define __FLT_DIG__ 6<br>#define __FLT32_HAS_INFINITY__ 1<br>#define __UINT_FAST64_TYPE__ long long unsigned int<br>#define __INT_MAX__ 0x7fffffff<br>#define __LACCUM_FBIT__ 31<br>#define __USACCUM_MIN__ 0.0UHK<br>#define __UHA_IBIT__ 8<br>#define __INT64_TYPE__ long long int<br>#define __FLT_MAX_EXP__ 128<br>#define __UTQ_IBIT__ 0<br>#define __DBL_MANT_DIG__ 53<br>#define __INT_LEAST64_MAX__ 0x7fffffffffffffffLL<br>#define __GCC_ATOMIC_CHAR16_T_LOCK_FREE 1<br>#define __DEC64_MIN__ 1E-383DD<br>#define __WINT_TYPE__ unsigned int<br>#define __UINT_LEAST32_TYPE__ unsigned int<br>#define __SIZEOF_SHORT__ 2<br>#define __ULLFRACT_IBIT__ 0<br>#define __LDBL_MIN_EXP__ (-1021)<br>#define __arm__ 1<br>#define __FLT64_MAX__ 1.7976931348623157e+308F64<br>#define __UDA_IBIT__ 32<br>#define __WINT_WIDTH__ 32<br>#define __INT_LEAST8_MAX__ 0x7f<br>#define __FLT32X_MAX_10_EXP__ 308<br>#define __LFRACT_FBIT__ 31<br>#define __LDBL_MAX_10_EXP__ 308<br>#define __ATOMIC_RELAXED 0<br>#define __DBL_EPSILON__ ((double)2.2204460492503131e-16L)<br>#define __UINT8_C(c) c<br>#define __FLT64_MAX_EXP__ 1024<br>#define __INT_LEAST32_TYPE__ int<br>#define __SIZEOF_WCHAR_T__ 4<br>#define __UINT64_TYPE__ long long unsigned int<br>#define __LLFRACT_MAX__ 0X7FFFFFFFFFFFFFFFP-63LLR<br>#define __TQ_FBIT__ 127<br>#define __INT_FAST8_TYPE__ int<br>#define __ULLACCUM_EPSILON__ 0x1P-32ULLK<br>#define __UHQ_IBIT__ 0<br>#define __LLACCUM_IBIT__ 32<br>#define __FLT64_HAS_DENORM__ 1<br>#define __FLT32_EPSILON__ 1.1920928955078125e-7F32<br>#define __DBL_DECIMAL_DIG__ 17<br>#define __STDC_UTF_32__ 1<br>#define __INT_FAST8_WIDTH__ 32<br>#define __DEC_EVAL_METHOD__ 2<br>#define __FLT32X_MAX__ 1.7976931348623157e+308F32x<br>#define __TA_FBIT__ 63<br>#define __UDQ_IBIT__ 0<br>#define __ORDER_BIG_ENDIAN__ 4321<br>#define __ACCUM_EPSILON__ 0x1P-15K<br>#define __UINT32_C(c) c ## U<br>#define __INTMAX_MAX__ 0x7fffffffffffffffLL<br>#define __BYTE_ORDER__ __ORDER_LITTLE_ENDIAN__<br>#define __FLT_DENORM_MIN__ 1.4012984643248171e-45F<br>#define __LLFRACT_IBIT__ 0<br>#define __INT8_MAX__ 0x7f<br>#define __LONG_WIDTH__ 32<br>#define __UINT_FAST32_TYPE__ unsigned int<br>#define __CHAR32_TYPE__ unsigned int<br>#define __FLT_MAX__ 3.4028234663852886e+38F<br>#define __USACCUM_FBIT__ 8<br>#define __INT32_TYPE__ int<br>#define __SIZEOF_DOUBLE__ 8<br>#define __FLT_MIN_10_EXP__ (-37)<br>#define __UFRACT_EPSILON__ 0x1P-16UR<br>#define __FLT64_MIN__ 2.2250738585072014e-308F64<br>#define __INT_LEAST32_WIDTH__ 32<br>#define __INTMAX_TYPE__ long long int<br>#define __DEC128_MAX_EXP__ 6145<br>#define __FLT32X_HAS_QUIET_NAN__ 1<br>#define __ATOMIC_CONSUME 1<br>#define __GNUC_MINOR__ 5<br>#define __INT_FAST16_WIDTH__ 32<br>#define __UINTMAX_MAX__ 0xffffffffffffffffULL<br>#define __DEC32_MANT_DIG__ 7<br>#define __FLT32X_DENORM_MIN__ 4.9406564584124654e-324F32x<br>#define __HA_FBIT__ 7<br>#define __DBL_MAX_10_EXP__ 308<br>#define __LDBL_DENORM_MIN__ 4.9406564584124654e-324L<br>#define __INT16_C(c) c<br>#define __STDC__ 1<br>#define __ARM_ARCH_4T__ 1<br>#define __PTRDIFF_TYPE__ int<br>#define __LLFRACT_MIN__ (-0.5LLR-0.5LLR)<br>#define __ATOMIC_SEQ_CST 5<br>#define __DA_FBIT__ 31<br>#define __UINT32_TYPE__ unsigned int<br>#define __FLT32X_MIN_10_EXP__ (-307)<br>#define __UINTPTR_TYPE__ unsigned int<br>#define __USA_IBIT__ 16<br>#define __DEC64_SUBNORMAL_MIN__ 0.000000000000001E-383DD<br>#define __ARM_EABI__ 1<br>#define __DEC128_MANT_DIG__ 34<br>#define __LDBL_MIN_10_EXP__ (-307)<br>#define __SIZEOF_LONG_LONG__ 8<br>#define __ULACCUM_EPSILON__ 0x1P-32ULK<br>#define __SACCUM_IBIT__ 8<br>#define __GCC_ATOMIC_LLONG_LOCK_FREE 1<br>#define __FLT32X_MIN__ 2.2250738585072014e-308F32x<br>#define __LDBL_DIG__ 15<br>#define __FLT_DECIMAL_DIG__ 9<br>#define __UINT_FAST16_MAX__ 0xffffffffU<br>#define __GCC_ATOMIC_SHORT_LOCK_FREE 1<br>#define __INT_LEAST64_WIDTH__ 64<br>#define __ULLFRACT_MAX__ 0XFFFFFFFFFFFFFFFFP-64ULLR<br>#define __UINT_FAST8_TYPE__ unsigned int<br>#define __USFRACT_EPSILON__ 0x1P-8UHR<br>#define __ULACCUM_FBIT__ 32<br>#define __QQ_IBIT__ 0<br>#define __ATOMIC_ACQ_REL 4<br>#define __ATOMIC_RELEASE 3<br><br>-----------------------------------------<br>Checking for program 'ar'<br>/home/hongbo/Developer/Embedded/rtems/5/bin/arm-rtems5-ar<br>find program=['ar'] paths=['/home/hongbo/Developer/Embedded/rtems/5/bin', '/home/hongbo/Developer/Embedded/local/bin', '/opt/wine-devel/bin', '/home/hongbo/Developer/Android/sdk/platform-tools', '/home/hongbo/.yarn/bin', '/home/hongbo/.local/node-v14.17.4-linux-x64//bin', '/home/hongbo/.local/go/bin', '/home/hongbo/.local/bin', '/home/hongbo/.cargo/bin', '/usr/lib/postgresql/14/bin', '/usr/local/bin', '/usr/bin', '/bin', '/usr/local/games', '/usr/games', '/home/hongbo/.local/go/bin'] var='AR' -> ['/home/hongbo/Developer/Embedded/rtems/5/bin/arm-rtems5-ar']<br>-----------------------------------------<br>Checking for program 'g++, c++'<br>/home/hongbo/Developer/Embedded/rtems/5/bin/arm-rtems5-g++<br>find program=['g++', 'c++'] paths=['/home/hongbo/Developer/Embedded/rtems/5/bin', '/home/hongbo/Developer/Embedded/local/bin', '/opt/wine-devel/bin', '/home/hongbo/Developer/Android/sdk/platform-tools', '/home/hongbo/.yarn/bin', '/home/hongbo/.local/node-v14.17.4-linux-x64//bin', '/home/hongbo/.local/go/bin', '/home/hongbo/.local/bin', '/home/hongbo/.cargo/bin', '/usr/lib/postgresql/14/bin', '/usr/local/bin', '/usr/bin', '/bin', '/usr/local/games', '/usr/games', '/home/hongbo/.local/go/bin'] var='CXX' -> ['/home/hongbo/Developer/Embedded/rtems/5/bin/arm-rtems5-g++']<br>['/home/hongbo/Developer/Embedded/rtems/5/bin/arm-rtems5-g++', '-dM', '-E', '-']<br>out: #define __DBL_MIN_EXP__ (-1021)<br>#define __HQ_FBIT__ 15<br>#define __FLT32X_MAX_EXP__ 1024<br>#define __UINT_LEAST16_MAX__ 0xffff<br>#define __ARM_SIZEOF_WCHAR_T 4<br>#define __ATOMIC_ACQUIRE 2<br>#define __SFRACT_IBIT__ 0<br>#define __FLT_MIN__ 1.1754943508222875e-38F<br>#define __GCC_IEC_559_COMPLEX 0<br>#define __UFRACT_MAX__ 0XFFFFP-16UR<br>#define __UINT_LEAST8_TYPE__ unsigned char<br>#define __DQ_FBIT__ 63<br>#define __INTMAX_C(c) c ## LL<br>#define __ULFRACT_FBIT__ 32<br>#define __SACCUM_EPSILON__ 0x1P-7HK<br>#define __CHAR_BIT__ 8<br>#define __USQ_IBIT__ 0<br>#define __UINT8_MAX__ 0xff<br>#define __ACCUM_FBIT__ 15<br>#define __WINT_MAX__ 0xffffffffU<br>#define __FLT32_MIN_EXP__ (-125)<br>#define __USFRACT_FBIT__ 8<br>#define __ORDER_LITTLE_ENDIAN__ 1234<br>#define __SIZE_MAX__ 0xffffffffU<br>#define __ARM_ARCH_ISA_ARM 1<br>#define __WCHAR_MAX__ 0xffffffffU<br>#define __LACCUM_IBIT__ 32<br>#define __DBL_DENORM_MIN__ ((double)4.9406564584124654e-324L)<br>#define __GCC_ATOMIC_CHAR_LOCK_FREE 1<br>#define __GCC_IEC_559 0<br>#define __FLT32X_DECIMAL_DIG__ 17<br>#define __FLT_EVAL_METHOD__ 0<br>#define __LLACCUM_MAX__ 0X7FFFFFFFFFFFFFFFP-31LLK<br>#define __FLT64_DECIMAL_DIG__ 17<br>#define __GCC_ATOMIC_CHAR32_T_LOCK_FREE 1<br>#define __FRACT_FBIT__ 15<br>#define __UINT_FAST64_MAX__ 0xffffffffffffffffULL<br>#define __SIG_ATOMIC_TYPE__ int<br>#define __UACCUM_FBIT__ 16<br>#define __DBL_MIN_10_EXP__ (-307)<br>#define __FINITE_MATH_ONLY__ 0<br>#define __ARMEL__ 1<br>#define __LFRACT_IBIT__ 0<br>#define __GNUC_PATCHLEVEL__ 0<br>#define __FLT32_HAS_DENORM__ 1<br>#define __LFRACT_MAX__ 0X7FFFFFFFP-31LR<br>#define __UINT_FAST8_MAX__ 0xffffffffU<br>#define __has_include(STR) __has_include__(STR)<br>#define __DEC64_MAX_EXP__ 385<br>#define __INT8_C(c) c<br>#define __INT_LEAST8_WIDTH__ 8<br>#define __UINT_LEAST64_MAX__ 0xffffffffffffffffULL<br>#define __SA_FBIT__ 15<br>#define __SHRT_MAX__ 0x7fff<br>#define __LDBL_MAX__ 1.7976931348623157e+308L<br>#define __FRACT_MAX__ 0X7FFFP-15R<br>#define __UFRACT_FBIT__ 16<br>#define __UFRACT_MIN__ 0.0UR<br>#define __UINT_LEAST8_MAX__ 0xff<br>#define __GCC_ATOMIC_BOOL_LOCK_FREE 1<br>#define __UINTMAX_TYPE__ long long unsigned int<br>#define __LLFRACT_EPSILON__ 0x1P-63LLR<br>#define __DEC32_EPSILON__ 1E-6DF<br>#define __FLT_EVAL_METHOD_TS_18661_3__ 0<br>#define __CHAR_UNSIGNED__ 1<br>#define __UINT32_MAX__ 0xffffffffU<br>#define __ULFRACT_MAX__ 0XFFFFFFFFP-32ULR<br>#define __TA_IBIT__ 64<br>#define __LDBL_MAX_EXP__ 1024<br>#define __WINT_MIN__ 0U<br>#define __INT_LEAST16_WIDTH__ 16<br>#define __ULLFRACT_MIN__ 0.0ULLR<br>#define __SCHAR_MAX__ 0x7f<br>#define __WCHAR_MIN__ 0U<br>#define __INT64_C(c) c ## LL<br>#define __DBL_DIG__ 15<br>#define __GCC_ATOMIC_POINTER_LOCK_FREE 1<br>#define __LLACCUM_MIN__ (-0X1P31LLK-0X1P31LLK)<br>#define __SIZEOF_INT__ 4<br>#define __SIZEOF_POINTER__ 4<br>#define __USACCUM_IBIT__ 8<br>#define __USER_LABEL_PREFIX__ <br>#define __STDC_HOSTED__ 1<br>#define __LDBL_HAS_INFINITY__ 1<br>#define __LFRACT_MIN__ (-0.5LR-0.5LR)<br>#define __HA_IBIT__ 8<br>#define __FLT32_DIG__ 6<br>#define __TQ_IBIT__ 0<br>#define __FLT_EPSILON__ 1.1920928955078125e-7F<br>#define __APCS_32__ 1<br>#define __SHRT_WIDTH__ 16<br>#define __USFRACT_IBIT__ 0<br>#define __LDBL_MIN__ 2.2250738585072014e-308L<br>#define __STDC_UTF_16__ 1<br>#define __FRACT_MIN__ (-0.5R-0.5R)<br>#define __DEC32_MAX__ 9.999999E96DF<br>#define __DA_IBIT__ 32<br>#define __ARM_SIZEOF_MINIMAL_ENUM 4<br>#define __FLT32X_HAS_INFINITY__ 1<br>#define __INT32_MAX__ 0x7fffffff<br>#define __UQQ_FBIT__ 8<br>#define __INT_WIDTH__ 32<br>#define __SIZEOF_LONG__ 4<br>#define __UACCUM_MAX__ 0XFFFFFFFFP-16UK<br>#define __UINT16_C(c) c<br>#define __PTRDIFF_WIDTH__ 32<br>#define __DECIMAL_DIG__ 17<br>#define __LFRACT_EPSILON__ 0x1P-31LR<br>#define __FLT64_EPSILON__ 2.2204460492503131e-16F64<br>#define __ULFRACT_MIN__ 0.0ULR<br>#define __INTMAX_WIDTH__ 64<br>#define __has_include_next(STR) __has_include_next__(STR)<br>#define __LDBL_HAS_QUIET_NAN__ 1<br>#define __ULACCUM_IBIT__ 32<br>#define __FLT64_MANT_DIG__ 53<br>#define __UACCUM_EPSILON__ 0x1P-16UK<br>#define __GNUC__ 7<br>#define __ULLACCUM_MAX__ 0XFFFFFFFFFFFFFFFFP-32ULLK<br>#define __HQ_IBIT__ 0<br>#define __FLT_HAS_DENORM__ 1<br>#define __SIZEOF_LONG_DOUBLE__ 8<br>#define __BIGGEST_ALIGNMENT__ 8<br>#define __FLT64_MAX_10_EXP__ 308<br>#define __GNUC_STDC_INLINE__ 1<br>#define __DQ_IBIT__ 0<br>#define __DBL_MAX__ ((double)1.7976931348623157e+308L)<br>#define __ULFRACT_IBIT__ 0<br>#define __INT_FAST32_MAX__ 0x7fffffff<br>#define __DBL_HAS_INFINITY__ 1<br>#define __ACCUM_IBIT__ 16<br>#define __DEC32_MIN_EXP__ (-94)<br>#define __THUMB_INTERWORK__ 1<br>#define __INTPTR_WIDTH__ 32<br>#define __LACCUM_MAX__ 0X7FFFFFFFFFFFFFFFP-31LK<br>#define __FLT32X_HAS_DENORM__ 1<br>#define __INT_FAST16_TYPE__ int<br>#define __LDBL_HAS_DENORM__ 1<br>#define __DEC128_MAX__ 9.999999999999999999999999999999999E6144DL<br>#define __INT_LEAST32_MAX__ 0x7fffffff<br>#define __ARM_PCS 1<br>#define __DEC32_MIN__ 1E-95DF<br>#define __ACCUM_MAX__ 0X7FFFFFFFP-15K<br>#define __DBL_MAX_EXP__ 1024<br>#define __USACCUM_EPSILON__ 0x1P-8UHK<br>#define __WCHAR_WIDTH__ 32<br>#define __FLT32_MAX__ 3.4028234663852886e+38F32<br>#define __DEC128_EPSILON__ 1E-33DL<br>#define __SFRACT_MAX__ 0X7FP-7HR<br>#define __FRACT_IBIT__ 0<br>#define __PTRDIFF_MAX__ 0x7fffffff<br>#define __UACCUM_MIN__ 0.0UK<br>#define __UACCUM_IBIT__ 16<br>#define __FLT32_HAS_QUIET_NAN__ 1<br>#define __LONG_LONG_MAX__ 0x7fffffffffffffffLL<br>#define __SIZEOF_SIZE_T__ 4<br>#define __ULACCUM_MAX__ 0XFFFFFFFFFFFFFFFFP-32ULK<br>#define __SIZEOF_WINT_T__ 4<br>#define __LONG_LONG_WIDTH__ 64<br>#define __FLT32_MAX_EXP__ 128<br>#define __SA_IBIT__ 16<br>#define __ULLACCUM_MIN__ 0.0ULLK<br>#define __GXX_ABI_VERSION 1011<br>#define __UTA_FBIT__ 64<br>#define __SOFTFP__ 1<br>#define __FLT_MIN_EXP__ (-125)<br>#define __USFRACT_MAX__ 0XFFP-8UHR<br>#define __UFRACT_IBIT__ 0<br>#define __INT_FAST64_TYPE__ long long int<br>#define __FLT64_DENORM_MIN__ 4.9406564584124654e-324F64<br>#define __DBL_MIN__ ((double)2.2250738585072014e-308L)<br>#define __USE_INIT_FINI__ 1<br>#define __FLT32X_EPSILON__ 2.2204460492503131e-16F32x<br>#define __FLT64_MIN_EXP__ (-1021)<br>#define __LACCUM_MIN__ (-0X1P31LK-0X1P31LK)<br>#define __ULLACCUM_FBIT__ 32<br>#define __GXX_TYPEINFO_EQUALITY_INLINE 0<br>#define __FLT64_MIN_10_EXP__ (-307)<br>#define __ULLFRACT_EPSILON__ 0x1P-64ULLR<br>#define __USES_INITFINI__ 1<br>#define __DEC128_MIN__ 1E-6143DL<br>#define __REGISTER_PREFIX__ <br>#define __UINT16_MAX__ 0xffff<br>#define __DBL_HAS_DENORM__ 1<br>#define __ACCUM_MIN__ (-0X1P15K-0X1P15K)<br>#define __SQ_IBIT__ 0<br>#define __FLT32_MIN__ 1.1754943508222875e-38F32<br>#define __UINT8_TYPE__ unsigned char<br>#define __UHA_FBIT__ 8<br>#define __NO_INLINE__ 1<br>#define __SFRACT_MIN__ (-0.5HR-0.5HR)<br>#define __UTQ_FBIT__ 128<br>#define __FLT_MANT_DIG__ 24<br>#define __LDBL_DECIMAL_DIG__ 17<br>#define __VERSION__ "7.5.0 20191114 (RTEMS 5, RSB 5.1, Newlib 7947581)"<br>#define __UINT64_C(c) c ## ULL<br>#define __ULLFRACT_FBIT__ 64<br>#define __FRACT_EPSILON__ 0x1P-15R<br>#define __ULACCUM_MIN__ 0.0ULK<br>#define __UDA_FBIT__ 32<br>#define __LLACCUM_EPSILON__ 0x1P-31LLK<br>#define __GCC_ATOMIC_INT_LOCK_FREE 1<br>#define __FLT32_MANT_DIG__ 24<br>#define __FLOAT_WORD_ORDER__ __ORDER_LITTLE_ENDIAN__<br>#define __USFRACT_MIN__ 0.0UHR<br>#define __UQQ_IBIT__ 0<br>#define __SCHAR_WIDTH__ 8<br>#define __INT32_C(c) c<br>#define __DEC64_EPSILON__ 1E-15DD<br>#define __ORDER_PDP_ENDIAN__ 3412<br>#define __DEC128_MIN_EXP__ (-6142)<br>#define __UHQ_FBIT__ 16<br>#define __LLACCUM_FBIT__ 31<br>#define __FLT32_MAX_10_EXP__ 38<br>#define __INT_FAST32_TYPE__ int<br>#define __UINT_LEAST16_TYPE__ short unsigned int<br>#define __INT16_MAX__ 0x7fff<br>#define __SIZE_TYPE__ unsigned int<br>#define __UINT64_MAX__ 0xffffffffffffffffULL<br>#define __UDQ_FBIT__ 64<br>#define __INT8_TYPE__ signed char<br>#define __ELF__ 1<br>#define __ULFRACT_EPSILON__ 0x1P-32ULR<br>#define __LLFRACT_FBIT__ 63<br>#define __rtems__ 1<br>#define __FLT_RADIX__ 2<br>#define __INT_LEAST16_TYPE__ short int<br>#define __LDBL_EPSILON__ 2.2204460492503131e-16L<br>#define __UINTMAX_C(c) c ## ULL<br>#define __SACCUM_MAX__ 0X7FFFP-7HK<br>#define __SIG_ATOMIC_MAX__ 0x7fffffff<br>#define __GCC_ATOMIC_WCHAR_T_LOCK_FREE 1<br>#define __VFP_FP__ 1<br>#define __SIZEOF_PTRDIFF_T__ 4<br>#define __FLT32X_MANT_DIG__ 53<br>#define __LACCUM_EPSILON__ 0x1P-31LK<br>#define __FLT32X_MIN_EXP__ (-1021)<br>#define __DEC32_SUBNORMAL_MIN__ 0.000001E-95DF<br>#define __INT_FAST16_MAX__ 0x7fffffff<br>#define __FLT64_DIG__ 15<br>#define __UINT_FAST32_MAX__ 0xffffffffU<br>#define __UINT_LEAST64_TYPE__ long long unsigned int<br>#define __USACCUM_MAX__ 0XFFFFP-8UHK<br>#define __SFRACT_EPSILON__ 0x1P-7HR<br>#define __FLT_HAS_QUIET_NAN__ 1<br>#define __FLT_MAX_10_EXP__ 38<br>#define __LONG_MAX__ 0x7fffffffL<br>#define __DEC128_SUBNORMAL_MIN__ 0.000000000000000000000000000000001E-6143DL<br>#define __FLT_HAS_INFINITY__ 1<br>#define __USA_FBIT__ 16<br>#define __UINT_FAST16_TYPE__ unsigned int<br>#define __DEC64_MAX__ 9.999999999999999E384DD<br>#define __ARM_32BIT_STATE 1<br>#define __INT_FAST32_WIDTH__ 32<br>#define __CHAR16_TYPE__ short unsigned int<br>#define __PRAGMA_REDEFINE_EXTNAME 1<br>#define __SIZE_WIDTH__ 32<br>#define __INT_LEAST16_MAX__ 0x7fff<br>#define __DEC64_MANT_DIG__ 16<br>#define __INT64_MAX__ 0x7fffffffffffffffLL<br>#define __UINT_LEAST32_MAX__ 0xffffffffU<br>#define __SACCUM_FBIT__ 7<br>#define __FLT32_DENORM_MIN__ 1.4012984643248171e-45F32<br>#define __GCC_ATOMIC_LONG_LOCK_FREE 1<br>#define __SIG_ATOMIC_WIDTH__ 32<br>#define __INT_LEAST64_TYPE__ long long int<br>#define __INT16_TYPE__ short int<br>#define __INT_LEAST8_TYPE__ signed char<br>#define __STDC_VERSION__ 201112L<br>#define __SQ_FBIT__ 31<br>#define __DEC32_MAX_EXP__ 97<br>#define __ARM_ARCH_ISA_THUMB 1<br>#define __INT_FAST8_MAX__ 0x7fffffff<br>#define __ARM_ARCH 4<br>#define __INTPTR_MAX__ 0x7fffffff<br>#define __QQ_FBIT__ 7<br>#define __UTA_IBIT__ 64<br>#define __FLT64_HAS_QUIET_NAN__ 1<br>#define __FLT32_MIN_10_EXP__ (-37)<br>#define __FLT32X_DIG__ 15<br>#define __LDBL_MANT_DIG__ 53<br>#define __SFRACT_FBIT__ 7<br>#define __SACCUM_MIN__ (-0X1P7HK-0X1P7HK)<br>#define __DBL_HAS_QUIET_NAN__ 1<br>#define __FLT64_HAS_INFINITY__ 1<br>#define __SIG_ATOMIC_MIN__ (-__SIG_ATOMIC_MAX__ - 1)<br>#define __INTPTR_TYPE__ int<br>#define __UINT16_TYPE__ short unsigned int<br>#define __WCHAR_TYPE__ unsigned int<br>#define __SIZEOF_FLOAT__ 4<br>#define __USQ_FBIT__ 32<br>#define __UINTPTR_MAX__ 0xffffffffU<br>#define __INT_FAST64_WIDTH__ 64<br>#define __DEC64_MIN_EXP__ (-382)<br>#define __ULLACCUM_IBIT__ 32<br>#define __FLT32_DECIMAL_DIG__ 9<br>#define __INT_FAST64_MAX__ 0x7fffffffffffffffLL<br>#define __GCC_ATOMIC_TEST_AND_SET_TRUEVAL 1<br>#define __FLT_DIG__ 6<br>#define __FLT32_HAS_INFINITY__ 1<br>#define __UINT_FAST64_TYPE__ long long unsigned int<br>#define __INT_MAX__ 0x7fffffff<br>#define __LACCUM_FBIT__ 31<br>#define __USACCUM_MIN__ 0.0UHK<br>#define __UHA_IBIT__ 8<br>#define __INT64_TYPE__ long long int<br>#define __FLT_MAX_EXP__ 128<br>#define __UTQ_IBIT__ 0<br>#define __DBL_MANT_DIG__ 53<br>#define __INT_LEAST64_MAX__ 0x7fffffffffffffffLL<br>#define __GCC_ATOMIC_CHAR16_T_LOCK_FREE 1<br>#define __DEC64_MIN__ 1E-383DD<br>#define __WINT_TYPE__ unsigned int<br>#define __UINT_LEAST32_TYPE__ unsigned int<br>#define __SIZEOF_SHORT__ 2<br>#define __ULLFRACT_IBIT__ 0<br>#define __LDBL_MIN_EXP__ (-1021)<br>#define __arm__ 1<br>#define __FLT64_MAX__ 1.7976931348623157e+308F64<br>#define __UDA_IBIT__ 32<br>#define __WINT_WIDTH__ 32<br>#define __INT_LEAST8_MAX__ 0x7f<br>#define __FLT32X_MAX_10_EXP__ 308<br>#define __LFRACT_FBIT__ 31<br>#define __LDBL_MAX_10_EXP__ 308<br>#define __ATOMIC_RELAXED 0<br>#define __DBL_EPSILON__ ((double)2.2204460492503131e-16L)<br>#define __UINT8_C(c) c<br>#define __FLT64_MAX_EXP__ 1024<br>#define __INT_LEAST32_TYPE__ int<br>#define __SIZEOF_WCHAR_T__ 4<br>#define __UINT64_TYPE__ long long unsigned int<br>#define __LLFRACT_MAX__ 0X7FFFFFFFFFFFFFFFP-63LLR<br>#define __TQ_FBIT__ 127<br>#define __INT_FAST8_TYPE__ int<br>#define __ULLACCUM_EPSILON__ 0x1P-32ULLK<br>#define __UHQ_IBIT__ 0<br>#define __LLACCUM_IBIT__ 32<br>#define __FLT64_HAS_DENORM__ 1<br>#define __FLT32_EPSILON__ 1.1920928955078125e-7F32<br>#define __DBL_DECIMAL_DIG__ 17<br>#define __STDC_UTF_32__ 1<br>#define __INT_FAST8_WIDTH__ 32<br>#define __DEC_EVAL_METHOD__ 2<br>#define __FLT32X_MAX__ 1.7976931348623157e+308F32x<br>#define __TA_FBIT__ 63<br>#define __UDQ_IBIT__ 0<br>#define __ORDER_BIG_ENDIAN__ 4321<br>#define __ACCUM_EPSILON__ 0x1P-15K<br>#define __UINT32_C(c) c ## U<br>#define __INTMAX_MAX__ 0x7fffffffffffffffLL<br>#define __BYTE_ORDER__ __ORDER_LITTLE_ENDIAN__<br>#define __FLT_DENORM_MIN__ 1.4012984643248171e-45F<br>#define __LLFRACT_IBIT__ 0<br>#define __INT8_MAX__ 0x7f<br>#define __LONG_WIDTH__ 32<br>#define __UINT_FAST32_TYPE__ unsigned int<br>#define __CHAR32_TYPE__ unsigned int<br>#define __FLT_MAX__ 3.4028234663852886e+38F<br>#define __USACCUM_FBIT__ 8<br>#define __INT32_TYPE__ int<br>#define __SIZEOF_DOUBLE__ 8<br>#define __FLT_MIN_10_EXP__ (-37)<br>#define __UFRACT_EPSILON__ 0x1P-16UR<br>#define __FLT64_MIN__ 2.2250738585072014e-308F64<br>#define __INT_LEAST32_WIDTH__ 32<br>#define __INTMAX_TYPE__ long long int<br>#define __DEC128_MAX_EXP__ 6145<br>#define __FLT32X_HAS_QUIET_NAN__ 1<br>#define __ATOMIC_CONSUME 1<br>#define __GNUC_MINOR__ 5<br>#define __INT_FAST16_WIDTH__ 32<br>#define __UINTMAX_MAX__ 0xffffffffffffffffULL<br>#define __DEC32_MANT_DIG__ 7<br>#define __FLT32X_DENORM_MIN__ 4.9406564584124654e-324F32x<br>#define __HA_FBIT__ 7<br>#define __DBL_MAX_10_EXP__ 308<br>#define __LDBL_DENORM_MIN__ 4.9406564584124654e-324L<br>#define __INT16_C(c) c<br>#define __STDC__ 1<br>#define __ARM_ARCH_4T__ 1<br>#define __PTRDIFF_TYPE__ int<br>#define __LLFRACT_MIN__ (-0.5LLR-0.5LLR)<br>#define __ATOMIC_SEQ_CST 5<br>#define __DA_FBIT__ 31<br>#define __UINT32_TYPE__ unsigned int<br>#define __FLT32X_MIN_10_EXP__ (-307)<br>#define __UINTPTR_TYPE__ unsigned int<br>#define __USA_IBIT__ 16<br>#define __DEC64_SUBNORMAL_MIN__ 0.000000000000001E-383DD<br>#define __ARM_EABI__ 1<br>#define __DEC128_MANT_DIG__ 34<br>#define __LDBL_MIN_10_EXP__ (-307)<br>#define __SIZEOF_LONG_LONG__ 8<br>#define __ULACCUM_EPSILON__ 0x1P-32ULK<br>#define __SACCUM_IBIT__ 8<br>#define __GCC_ATOMIC_LLONG_LOCK_FREE 1<br>#define __FLT32X_MIN__ 2.2250738585072014e-308F32x<br>#define __LDBL_DIG__ 15<br>#define __FLT_DECIMAL_DIG__ 9<br>#define __UINT_FAST16_MAX__ 0xffffffffU<br>#define __GCC_ATOMIC_SHORT_LOCK_FREE 1<br>#define __INT_LEAST64_WIDTH__ 64<br>#define __ULLFRACT_MAX__ 0XFFFFFFFFFFFFFFFFP-64ULLR<br>#define __UINT_FAST8_TYPE__ unsigned int<br>#define __USFRACT_EPSILON__ 0x1P-8UHR<br>#define __ULACCUM_FBIT__ 32<br>#define __QQ_IBIT__ 0<br>#define __ATOMIC_ACQ_REL 4<br>#define __ATOMIC_RELEASE 3<br><br>-----------------------------------------<br>Checking for program 'ar'<br>/home/hongbo/Developer/Embedded/rtems/5/bin/arm-rtems5-ar<br>find program=['ar'] paths=['/home/hongbo/Developer/Embedded/rtems/5/bin', '/home/hongbo/Developer/Embedded/local/bin', '/opt/wine-devel/bin', '/home/hongbo/Developer/Android/sdk/platform-tools', '/home/hongbo/.yarn/bin', '/home/hongbo/.local/node-v14.17.4-linux-x64//bin', '/home/hongbo/.local/go/bin', '/home/hongbo/.local/bin', '/home/hongbo/.cargo/bin', '/usr/lib/postgresql/14/bin', '/usr/local/bin', '/usr/bin', '/bin', '/usr/local/games', '/usr/games', '/home/hongbo/.local/go/bin'] var='AR' -> ['/home/hongbo/Developer/Embedded/rtems/5/bin/arm-rtems5-ar']<br>-----------------------------------------<br>Checking for program 'gas, gcc'<br>/home/hongbo/Developer/Embedded/rtems/5/bin/arm-rtems5-gcc<br>find program=['gas', 'gcc'] paths=['/home/hongbo/Developer/Embedded/rtems/5/bin', '/home/hongbo/Developer/Embedded/local/bin', '/opt/wine-devel/bin', '/home/hongbo/Developer/Android/sdk/platform-tools', '/home/hongbo/.yarn/bin', '/home/hongbo/.local/node-v14.17.4-linux-x64//bin', '/home/hongbo/.local/go/bin', '/home/hongbo/.local/bin', '/home/hongbo/.cargo/bin', '/usr/lib/postgresql/14/bin', '/usr/local/bin', '/usr/bin', '/bin', '/usr/local/games', '/usr/games', '/home/hongbo/.local/go/bin'] var='AS' -> ['/home/hongbo/Developer/Embedded/rtems/5/bin/arm-rtems5-gcc']<br>-----------------------------------------<br>Checking for program 'ar'<br>/home/hongbo/Developer/Embedded/rtems/5/bin/arm-rtems5-ar<br>find program=['ar'] paths=['/home/hongbo/Developer/Embedded/rtems/5/bin', '/home/hongbo/Developer/Embedded/local/bin', '/opt/wine-devel/bin', '/home/hongbo/Developer/Android/sdk/platform-tools', '/home/hongbo/.yarn/bin', '/home/hongbo/.local/node-v14.17.4-linux-x64//bin', '/home/hongbo/.local/go/bin', '/home/hongbo/.local/bin', '/home/hongbo/.cargo/bin', '/usr/lib/postgresql/14/bin', '/usr/local/bin', '/usr/bin', '/bin', '/usr/local/games', '/usr/games', '/home/hongbo/.local/go/bin'] var='AR' -> ['/home/hongbo/Developer/Embedded/rtems/5/bin/arm-rtems5-ar']<br>-----------------------------------------<br>Checking for c flags '-MMD'<br>==><br>int main() { return 0; }<br><==<br>[1/1] Compiling [32mbuild/.conf_check_509462851c9724c0a8dfb70e8a94563b/test.c [0m<br><br>['/home/hongbo/Developer/Embedded/rtems/5/bin/arm-rtems5-gcc', '-MMD', '../test.c', '-c', '-o/home/hongbo/Developer/Embedded/rtems/app/hello/build/.conf_check_509462851c9724c0a8dfb70e8a94563b/testbuild/test.c.1.o']<br>yes<br>-----------------------------------------<br>Checking for cxx flags '-MMD'<br>==><br>int main() { return 0; }<br><==<br>[1/1] Compiling [32mbuild/.conf_check_a483f89cb2b8760c1662d80180dd6fd4/test.cpp [0m<br><br>['/home/hongbo/Developer/Embedded/rtems/5/bin/arm-rtems5-g++', '-MMD', '../test.cpp', '-c', '-o/home/hongbo/Developer/Embedded/rtems/app/hello/build/.conf_check_a483f89cb2b8760c1662d80180dd6fd4/testbuild/test.cpp.1.o']<br>yes<br>['/home/hongbo/Developer/Embedded/rtems/5/bin/arm-rtems5-gcc', '--version']<br>out: arm-rtems5-gcc (GCC) 7.5.0 20191114 (RTEMS 5, RSB 5.1, Newlib 7947581)<br>Copyright (C) 2017 Free Software Foundation, Inc.<br>This is free software; see the source for copying conditions. There is NO<br>warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.<br><br><br>-----------------------------------------<br>Compiler version (arm-rtems5-gcc)<br>7.5.0 20191114 (RTEMS 5, RSB 5.1, Newlib 7947581)<br>Opening and load pkgconfig: /home/hongbo/Developer/Embedded/rtems/5/lib/pkgconfig/arm-rtems5-tms570lc4357_launchxl.pc<br>-----------------------------------------<br>CFLAGS -><br> -qrtems -B/home/hongbo/Developer/Embedded/rtems/5/arm-rtems5/lib/ -B/home/hongbo/Developer/Embedded/rtems/5/arm-rtems5/tms570lc4357_launchxl/lib/ --specs bsp_specs -march=armv7-r -mthumb -mbig-endian -mfpu=vfpv3-d16 -mfloat-abi=hard -Og -ggdb -ffunction-sections -fdata-sections -Wall -Wmissing-prototypes -Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs<br>LDFLAGS -><br>pkconfig warning: Label not found: LDFLAGS<br> <br>LIB -><br>pkconfig warning: Label not found: LIB<br> <br>-------------------------------------------<br>Checking for a valid RTEMS BSP installation<br>==><br>#include <rtems.h><br>void Init(rtems_task_argument arg) { (void)arg; }<br>#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER<br>#define CONFIGURE_MAXIMUM_TASKS 1<br>#define CONFIGURE_RTEMS_INIT_TASKS_TABLE<br>#define CONFIGURE_INIT<br>#include <rtems/confdefs.h><br><==<br>[1/2] Compiling [32mbuild/.conf_check_261484d99ea5da27480d47dee9a30c04/test.c [0m<br><br>['/home/hongbo/Developer/Embedded/rtems/5/bin/arm-rtems5-gcc', '-qrtems', '-B/home/hongbo/Developer/Embedded/rtems/5/arm-rtems5/lib/', '-B/home/hongbo/Developer/Embedded/rtems/5/arm-rtems5/tms570lc4357_launchxl/lib/', '--specs', 'bsp_specs', '-march=armv7-r', '-mthumb', '-mbig-endian', '-mfpu=vfpv3-d16', '-mfloat-abi=hard', '-ffunction-sections', '-fdata-sections', '-MMD', '../test.c', '-c', '-o/home/hongbo/Developer/Embedded/rtems/app/hello/build/.conf_check_261484d99ea5da27480d47dee9a30c04/testbuild/test.c.1.o']<br>[2/2] Linking [33mbuild/.conf_check_261484d99ea5da27480d47dee9a30c04/testbuild/testprog [0m<br><br>['/home/hongbo/Developer/Embedded/rtems/5/bin/arm-rtems5-gcc', '-qrtems', '-B/home/hongbo/Developer/Embedded/rtems/5/arm-rtems5/lib/', '-B/home/hongbo/Developer/Embedded/rtems/5/arm-rtems5/tms570lc4357_launchxl/lib/', '--specs', 'bsp_specs', '-march=armv7-r', '-mthumb', '-mbig-endian', '-mfpu=vfpv3-d16', '-mfloat-abi=hard', '-ffunction-sections', '-fdata-sections', '-MMD', 'test.c.1.o', '-o/home/hongbo/Developer/Embedded/rtems/app/hello/build/.conf_check_261484d99ea5da27480d47dee9a30c04/testbuild/testprog', '-Wl,-Bstatic', '-Wl,-Bdynamic']<br>err: /home/hongbo/Developer/Embedded/rtems/5/lib/gcc/arm-rtems5/7.5.0/../../../../arm-rtems5/bin/ld: /home/hongbo/Developer/Embedded/rtems/5/arm-rtems5/tms570lc4357_launchxl/lib/librtemsbsp.a(HL_sci.o): in function `sciSetBaudrate':<br>/home/hongbo/Developer/Embedded/rtems/build/tms570lc4357/arm-rtems5/c/tms570lc4357_launchxl/lib/libbsp/arm/tms570/../../../../../../../../../rtems-master/c/src/lib/libbsp/arm/tms570/../../../../../../bsps/arm/tms570/start/tms570lc4357/source/HL_sci.c:284: undefined reference to `floor'<br>collect2: error: ld returned 1 exit status<br><br>from /home/hongbo/Developer/Embedded/rtems/app/hello: Test does not build: Traceback (most recent call last):<br> File "/home/hongbo/Developer/Embedded/rtems/app/hello/.waf3-2.0.19-1f3c580272b15a03d2566843c5fe872a/waflib/Configure.py", line 333, in run_build<br> bld.compile()<br> File "/home/hongbo/Developer/Embedded/rtems/app/hello/.waf3-2.0.19-1f3c580272b15a03d2566843c5fe872a/waflib/Build.py", line 176, in compile<br> raise Errors.BuildError(self.producer.error)<br>waflib.Errors.BuildError: Build failed<br> -> task in 'testprog' failed with exit status 1 (run with -v to display more information)<br><br>no<br>from /home/hongbo/Developer/Embedded/rtems/app/hello: The configuration failed<br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jul 22, 2022 at 10:09 PM DAVE ERICKSON <<a href="mailto:daveerickson@shaw.ca" rel="nofollow noopener noreferrer nofollow noopener noreferrer" target="_blank">daveerickson@shaw.ca</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div style="font-family:"arial","helvetica",sans-serif;font-size:10pt;color:rgb(0,0,0)"><div><div style="font-family:"arial","helvetica",sans-serif;font-size:10pt;color:rgb(0,0,0)"><div>Hi Y.HB<br></div><br><div>LDFLAGS sets both the library kind to include in the archive build but it also uses the -L flags to know where to look for it. The -lm can mean the libm.a. libm.so <a href="http://libm.la" rel="nofollow noopener noreferrer nofollow noopener noreferrer" target="_blank">libm.la</a> so it searches the LD_LIBRARY_PATH environment variable to find one that fits. If you want expressly to include the libm.a you should specify it instead of -lm. The first thing I recommend is find the symbols inside the Makefile configured for the . Look for the LDFLAGS and then your LD_LIBRARY_PATH to see if it matches where that arm-rtems5/lib/libm.a is.<br></div><br><div>You can even use the flag argument: arm-rtems5/lib/libm.a or ./arm-rtems5/lib/libm.a to express the precise library and location to use. <br></div><br><div>This is one important distinction that many people confuse about how automake and autoconf work: There is no "internal logic" in the autotools way of creating recipes for Makefiles. m4 is used for pattern processing. You must express what you want it to make, it won't go looking anywhere else than what is specified. <br></div><br><div>It's not cmake, scons, or raw make. GNU Autotools creates recipe files, like config.status, that just hold environmental variables.<br></div><br><div>DaemonDave on github.<br></div><br><hr id="gmail-m_6293298689980267843gmail-m_6852354183798068440gmail-m_555679475687845038zwchr"><div><b>From: </b>"Y. HB" <<a href="mailto:sprhawk@gmail.com" rel="nofollow noopener noreferrer nofollow noopener noreferrer" target="_blank">sprhawk@gmail.com</a>><br><b>To: </b>"<a href="mailto:rtems-users@rtems.org" rel="nofollow noopener noreferrer nofollow noopener noreferrer" target="_blank">rtems-users@rtems.org</a>" <<a href="mailto:users@rtems.org" rel="nofollow noopener noreferrer nofollow noopener noreferrer" target="_blank">users@rtems.org</a>><br><b>Sent: </b>Friday, July 22, 2022 12:11:38 AM<br><b>Subject: </b>Re: How can I add LDFLAGS for bsp build?<br></div><br><div><div dir="ltr"><div>I added -lm in LDFLAGS in my custom bsps/arm/tms570/config/xxx.cfg</div><br><div>the flag is added to compiling arguments, but it still reported undefined reference to 'floor', but I see there is floor symbols in the arm-rtems5/lib/libm.a</div><br><div>Why is it?</div><br><div>Thanks<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jul 22, 2022 at 1:43 PM Y. HB <<a href="mailto:sprhawk@gmail.com" rel="nofollow noopener noreferrer nofollow noopener noreferrer nofollow noopener noreferrer nofollow noopener noreferrer" target="_blank">sprhawk@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hello</div><br><div>I'm working on a custom tms570 bsp upon RTEMS 5.1, but it depends on math lib (-lm), how can I add this flag to the bsp build?</div><br><div>Shall I add LDFLAGS="-lm" during configure or shall I change some variables in c/src/lib/libbsp/arm/xxxx/Makefile.am?</div><br><div>Thanks<br></div></div>
</blockquote></div>
<br>_______________________________________________<br>users mailing list<br><a href="mailto:users@rtems.org" rel="nofollow noopener noreferrer nofollow noopener noreferrer" target="_blank">users@rtems.org</a><br><a href="http://lists.rtems.org/mailman/listinfo/users" rel="nofollow noopener noreferrer nofollow noopener noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/users</a><br></div></div><br><br></div></div></div></blockquote></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jul 22, 2022 at 10:43 PM Joel Sherrill <<a href="mailto:joel@rtems.org" rel="nofollow noopener noreferrer nofollow noopener noreferrer" target="_blank">joel@rtems.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">This is an application matter and it all depends on what build system you are using.<br><div>If your build system is make, then something like this will probably work.<br><br><div>LDFLAGS += -lm </div></div><br><div>You may also want to ensure that the CFLAGS has the desired optimization, debug, and warning levels selected:</div><br><div>CFLAGS += -Og -g -Wall</div><div>CXXFLAGS += -Og -g -Wall</div><br><div>If using waf, cmake, etc, etc, you ultimately want to produce the same invocations of gcc but the mechanics are different.</div><br><div>--joel</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jul 22, 2022 at 9:09 AM DAVE ERICKSON <<a href="mailto:daveerickson@shaw.ca" rel="nofollow noopener noreferrer nofollow noopener noreferrer" target="_blank">daveerickson@shaw.ca</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div style="font-family:"arial","helvetica",sans-serif;font-size:10pt;color:rgb(0,0,0)"><div><div style="font-family:"arial","helvetica",sans-serif;font-size:10pt;color:rgb(0,0,0)"><div>Hi Y.HB<br></div><br><div>LDFLAGS sets both the library kind to include in the archive build but it also uses the -L flags to know where to look for it. The -lm can mean the libm.a. libm.so <a href="http://libm.la" rel="nofollow noopener noreferrer nofollow noopener noreferrer" target="_blank">libm.la</a> so it searches the LD_LIBRARY_PATH environment variable to find one that fits. If you want expressly to include the libm.a you should specify it instead of -lm. The first thing I recommend is find the symbols inside the Makefile configured for the . Look for the LDFLAGS and then your LD_LIBRARY_PATH to see if it matches where that arm-rtems5/lib/libm.a is.<br></div><br><div>You can even use the flag argument: arm-rtems5/lib/libm.a or ./arm-rtems5/lib/libm.a to express the precise library and location to use. <br></div><br><div>This is one important distinction that many people confuse about how automake and autoconf work: There is no "internal logic" in the autotools way of creating recipes for Makefiles. m4 is used for pattern processing. You must express what you want it to make, it won't go looking anywhere else than what is specified. <br></div><br><div>It's not cmake, scons, or raw make. GNU Autotools creates recipe files, like config.status, that just hold environmental variables.<br></div><br><div>DaemonDave on github.<br></div><br><hr id="gmail-m_6293298689980267843gmail-m_6852354183798068440gmail-m_6922556745622176534gmail-m_-2544163645520673777zwchr"><div><b>From: </b>"Y. HB" <<a href="mailto:sprhawk@gmail.com" rel="nofollow noopener noreferrer nofollow noopener noreferrer" target="_blank">sprhawk@gmail.com</a>><br><b>To: </b>"<a href="mailto:rtems-users@rtems.org" rel="nofollow noopener noreferrer nofollow noopener noreferrer" target="_blank">rtems-users@rtems.org</a>" <<a href="mailto:users@rtems.org" rel="nofollow noopener noreferrer nofollow noopener noreferrer" target="_blank">users@rtems.org</a>><br><b>Sent: </b>Friday, July 22, 2022 12:11:38 AM<br><b>Subject: </b>Re: How can I add LDFLAGS for bsp build?<br></div><br><div><div dir="ltr"><div>I added -lm in LDFLAGS in my custom bsps/arm/tms570/config/xxx.cfg</div><br><div>the flag is added to compiling arguments, but it still reported undefined reference to 'floor', but I see there is floor symbols in the arm-rtems5/lib/libm.a</div><br><div>Why is it?</div><br><div>Thanks<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jul 22, 2022 at 1:43 PM Y. HB <<a href="mailto:sprhawk@gmail.com" rel="nofollow noopener noreferrer nofollow noopener noreferrer nofollow noopener noreferrer nofollow noopener noreferrer" target="_blank">sprhawk@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hello</div><br><div>I'm working on a custom tms570 bsp upon RTEMS 5.1, but it depends on math lib (-lm), how can I add this flag to the bsp build?</div><br><div>Shall I add LDFLAGS="-lm" during configure or shall I change some variables in c/src/lib/libbsp/arm/xxxx/Makefile.am?</div><br><div>Thanks<br></div></div>
</blockquote></div>
<br>_______________________________________________<br>users mailing list<br><a href="mailto:users@rtems.org" rel="nofollow noopener noreferrer nofollow noopener noreferrer" target="_blank">users@rtems.org</a><br><a href="http://lists.rtems.org/mailman/listinfo/users" rel="nofollow noopener noreferrer nofollow noopener noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/users</a><br></div></div><br></div></div></div>_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@rtems.org" rel="nofollow noopener noreferrer nofollow noopener noreferrer" target="_blank">users@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/users" rel="noreferrer nofollow noopener noreferrer nofollow noopener noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/users</a><br></blockquote></div>
</blockquote></div></div></div></div></blockquote></div><br></div></div></div>_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@rtems.org" target="_blank">users@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/users</a></blockquote></div>