<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>LPC Microcontrollers中的主题 Re: LPC804 Build Failed when enable link-time optimization</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC804-Build-Failed-when-enable-link-time-optimization/m-p/1394649#M47533</link>
    <description>&lt;P&gt;understood, thank you&lt;/P&gt;</description>
    <pubDate>Wed, 05 Jan 2022 07:39:19 GMT</pubDate>
    <dc:creator>wangjn-maxeye</dc:creator>
    <dc:date>2022-01-05T07:39:19Z</dc:date>
    <item>
      <title>LPC804 Build Failed when enable link-time optimization</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC804-Build-Failed-when-enable-link-time-optimization/m-p/1393907#M47523</link>
      <description>&lt;P&gt;The build log:&lt;/P&gt;&lt;P&gt;Building target: application.axf&lt;BR /&gt;Invoking: MCU Linker&lt;BR /&gt;arm-none-eabi-gcc -nostdlib -L"H:\gerrit\WLC_LPC804\v11\Maxeye\source" -Xlinker -Map="application.map" -Xlinker --gc-sections -Xlinker -print-memory-usage -mcpu=cortex-m0 -mthumb -T "App_USI141_Debug.ld" -o "application.axf" ./src/WlcDeviceApp.o ./src/WlcDeviceApp_Mcu.o&amp;nbsp; ./WlcDeviceLibrary/wlc_device/wlc_appproc.o ./WlcDeviceLibrary/wlc_device/wlc_chgproc.o ./WlcDeviceLibrary/wlc_device/wlc_crn120.o ./WlcDeviceLibrary/wlc_device/wlc_crn120cfg.o ./WlcDeviceLibrary/wlc_device/wlc_device.o ./WlcDeviceLibrary/wlc_device/wlc_ndef.o ./WlcDeviceLibrary/wlc_device/wlc_optional.o ./WlcDeviceLibrary/wlc_device/wlc_utility.o ./WlcDeviceLibrary/wlc_charge_rx/PCA943x/pca9430-charger.o ./WlcDeviceLibrary/wlc_charge_rx/PCA943x/pca9431-vout.o ./WlcDeviceLibrary/wlc_charge_rx/PCA943x/pca943x-adc.o ./WlcDeviceLibrary/wlc_charge_rx/PCA943x/pca943x-otp.o ./WlcDeviceLibrary/wlc_charge_rx/PCA943x/pca943x-rect.o ./WlcDeviceLibrary/wlc_charge_rx/PCA943x/pca943x-rxir.o ./WlcDeviceLibrary/wlc_charge_rx/PCA943x/pca943x-vpwr.o ./WlcDeviceLibrary/wlc_charge_rx/PCA943x/pca943x.o ./WlcDeviceLibrary/wlc_charge_rx/wlc_chg_rx_adc_pca.o ./WlcDeviceLibrary/wlc_charge_rx/wlc_chg_rx_charger_pca.o ./WlcDeviceLibrary/wlc_charge_rx/wlc_chg_rx_pca.o ./WlcDeviceLibrary/wlc_charge_rx/wlc_chg_rx_rxir_pca.o ./WlcDeviceLibrary/wlc_charge_rx/wlc_chg_rx_vout_pca.o ./WlcDeviceLibrary/wlc_charge_rx/wlc_chg_rx_vpwr_pca.o ./WlcDeviceLibrary/wlc_charge_rx/wlc_chg_rx_vrect_pca.o ./WlcDeviceLibrary/wlc_charge_rx/wlc_chg_rx_vtune_pca.o ./WlcDeviceLibrary/CRN120_1.0.0/HAL_CRN120/CRN120_driver.o ./SDK_2.7.0_LPC804/devices/LPC804/mcuxpresso/startup_lpc804.o ./SDK_2.7.0_LPC804/devices/LPC804/drivers/fsl_acomp.o ./SDK_2.7.0_LPC804/devices/LPC804/drivers/fsl_adc.o ./SDK_2.7.0_LPC804/devices/LPC804/drivers/fsl_capt.o ./SDK_2.7.0_LPC804/devices/LPC804/drivers/fsl_clock.o ./SDK_2.7.0_LPC804/devices/LPC804/drivers/fsl_common.o ./SDK_2.7.0_LPC804/devices/LPC804/drivers/fsl_crc.o ./SDK_2.7.0_LPC804/devices/LPC804/drivers/fsl_ctimer.o ./SDK_2.7.0_LPC804/devices/LPC804/drivers/fsl_dac.o ./SDK_2.7.0_LPC804/devices/LPC804/drivers/fsl_gpio.o ./SDK_2.7.0_LPC804/devices/LPC804/drivers/fsl_i2c.o ./SDK_2.7.0_LPC804/devices/LPC804/drivers/fsl_iap.o ./SDK_2.7.0_LPC804/devices/LPC804/drivers/fsl_mrt.o ./SDK_2.7.0_LPC804/devices/LPC804/drivers/fsl_pint.o ./SDK_2.7.0_LPC804/devices/LPC804/drivers/fsl_plu.o ./SDK_2.7.0_LPC804/devices/LPC804/drivers/fsl_power.o ./SDK_2.7.0_LPC804/devices/LPC804/drivers/fsl_reset.o ./SDK_2.7.0_LPC804/devices/LPC804/drivers/fsl_spi.o ./SDK_2.7.0_LPC804/devices/LPC804/drivers/fsl_swm.o ./SDK_2.7.0_LPC804/devices/LPC804/drivers/fsl_syscon.o ./SDK_2.7.0_LPC804/devices/LPC804/drivers/fsl_usart.o ./SDK_2.7.0_LPC804/devices/LPC804/drivers/fsl_wkt.o ./SDK_2.7.0_LPC804/devices/LPC804/drivers/fsl_wwdt.o ./SDK_2.7.0_LPC804/devices/LPC804/system_LPC804.o ./OSAL/src/LPC804SDK/phOsal_GPIO_LPC804.o ./OSAL/src/LPC804SDK/phOsal_I2C_LPC804.o ./OSAL/src/LPC804SDK/phOsal_IRQ_LPC804.o ./OSAL/src/phOsal_DbgPrintf.o ./OSAL/src/phOsal_Mutex.o ./OSAL/src/phOsal_Timer.o ./Maxeye/source/app_debug.o&amp;nbsp;&amp;nbsp;&lt;BR /&gt;C:\Users\MAXEYE\AppData\Local\Temp\cceiCvFj.s: Assembler messages:&lt;BR /&gt;C:\Users\MAXEYE\AppData\Local\Temp\cceiCvFj.s:7286: Error: invalid offset, value too big (0x000017E8)&lt;BR /&gt;lto-wrapper.exe: fatal error: arm-none-eabi-gcc returned 1 exit status&lt;BR /&gt;compilation terminated.&lt;BR /&gt;c:/nxp/mcuxpressoide_11.3.1_5262/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.3.0.202008311133/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld.exe: error: lto-wrapper failed&lt;BR /&gt;collect2.exe: error: ld returned 1 exit status&lt;BR /&gt;make: *** [makefile:53: application.axf] Error 1&lt;BR /&gt;"make -r -j6 all" terminated with exit code 2. Build might be incomplete.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jan 2022 02:08:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC804-Build-Failed-when-enable-link-time-optimization/m-p/1393907#M47523</guid>
      <dc:creator>wangjn-maxeye</dc:creator>
      <dc:date>2022-01-04T02:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: LPC804 Build Failed when enable link-time optimization</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC804-Build-Failed-when-enable-link-time-optimization/m-p/1394644#M47532</link>
      <description>&lt;P&gt;Hi, Wang,&lt;/P&gt;
&lt;P&gt;I do not suggest you check the "Link-time Optimization". This is the description for the " Link-time Optimization option" in MCUXpresso tools help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3 class="section"&gt;7.5 Support for testing link-time optimizations&lt;/H3&gt;
&lt;P&gt;Tests for link-time optimizations usually require multiple source files that are compiled separately, perhaps with different sets of options. There are several special-purpose test directives used for these tests.&lt;/P&gt;
&lt;DL compact="compact"&gt;
&lt;DT&gt;&lt;CODE&gt;{ dg-lto-do &lt;VAR&gt;do-what-keyword&lt;/VAR&gt; }&lt;/CODE&gt;&lt;/DT&gt;
&lt;DD&gt;
&lt;P&gt;&lt;VAR&gt;do-what-keyword&lt;/VAR&gt; specifies how the test is compiled and whether it is executed. It is one of:&lt;/P&gt;
&lt;DL compact="compact"&gt;
&lt;DT&gt;&lt;CODE&gt;assemble&lt;/CODE&gt;&lt;/DT&gt;
&lt;DD&gt;
&lt;P&gt;Compile with &lt;SAMP&gt;-c&lt;/SAMP&gt; to produce a relocatable object file.&lt;/P&gt;
&lt;/DD&gt;
&lt;DT&gt;&lt;CODE&gt;link&lt;/CODE&gt;&lt;/DT&gt;
&lt;DD&gt;
&lt;P&gt;Compile, assemble, and link to produce an executable file.&lt;/P&gt;
&lt;/DD&gt;
&lt;DT&gt;&lt;CODE&gt;run&lt;/CODE&gt;&lt;/DT&gt;
&lt;DD&gt;
&lt;P&gt;Produce and run an executable file, which is expected to return an exit code of 0.&lt;/P&gt;
&lt;/DD&gt;
&lt;/DL&gt;
&lt;P&gt;The default is &lt;CODE&gt;assemble&lt;/CODE&gt;. That can be overridden for a set of tests by redefining &lt;CODE&gt;dg-do-what-default&lt;/CODE&gt; within the &lt;CODE&gt;.exp&lt;/CODE&gt; file for those tests.&lt;/P&gt;
&lt;P&gt;Unlike &lt;CODE&gt;dg-do&lt;/CODE&gt;, &lt;CODE&gt;dg-lto-do&lt;/CODE&gt; does not support an optional ‘&lt;SAMP&gt;target&lt;/SAMP&gt;’ or ‘&lt;SAMP&gt;xfail&lt;/SAMP&gt;’ list. Use &lt;CODE&gt;dg-skip-if&lt;/CODE&gt;, &lt;CODE&gt;dg-xfail-if&lt;/CODE&gt;, or &lt;CODE&gt;dg-xfail-run-if&lt;/CODE&gt;.&lt;/P&gt;
&lt;/DD&gt;
&lt;DT&gt;&lt;CODE&gt;{ dg-lto-options { { &lt;VAR&gt;options&lt;/VAR&gt; } [{ &lt;VAR&gt;options&lt;/VAR&gt; }] } [{ target &lt;VAR&gt;selector&lt;/VAR&gt; }]}&lt;/CODE&gt;&lt;/DT&gt;
&lt;DD&gt;
&lt;P&gt;This directive provides a list of one or more sets of compiler options to override &lt;VAR&gt;LTO_OPTIONS&lt;/VAR&gt;. Each test will be compiled and run with each of these sets of options.&lt;/P&gt;
&lt;/DD&gt;
&lt;DT&gt;&lt;CODE&gt;{ dg-extra-ld-options &lt;VAR&gt;options&lt;/VAR&gt; [{ target &lt;VAR&gt;selector&lt;/VAR&gt; }]}&lt;/CODE&gt;&lt;/DT&gt;
&lt;DD&gt;
&lt;P&gt;This directive adds &lt;VAR&gt;options&lt;/VAR&gt; to the linker options used.&lt;/P&gt;
&lt;/DD&gt;
&lt;DT&gt;&lt;CODE&gt;{ dg-suppress-ld-options &lt;VAR&gt;options&lt;/VAR&gt; [{ target &lt;VAR&gt;selector&lt;/VAR&gt; }]}&lt;/CODE&gt;&lt;/DT&gt;
&lt;DD&gt;
&lt;P&gt;This directive removes &lt;VAR&gt;options&lt;/VAR&gt; from the set of linker options used.&lt;/P&gt;
&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xiangjun_rong_0-1641367647127.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/166734i1FADD2EE7734AC54/image-size/medium?v=v2&amp;amp;px=400" role="button" title="xiangjun_rong_0-1641367647127.png" alt="xiangjun_rong_0-1641367647127.png" /&gt;&lt;/span&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;
&lt;/DD&gt;
&lt;/DL&gt;</description>
      <pubDate>Wed, 05 Jan 2022 07:28:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC804-Build-Failed-when-enable-link-time-optimization/m-p/1394644#M47532</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2022-01-05T07:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: LPC804 Build Failed when enable link-time optimization</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC804-Build-Failed-when-enable-link-time-optimization/m-p/1394649#M47533</link>
      <description>&lt;P&gt;understood, thank you&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jan 2022 07:39:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC804-Build-Failed-when-enable-link-time-optimization/m-p/1394649#M47533</guid>
      <dc:creator>wangjn-maxeye</dc:creator>
      <dc:date>2022-01-05T07:39:19Z</dc:date>
    </item>
  </channel>
</rss>

