ARMmbed / mbed-client-example-6lowpan

DEPRECATED: Example demonstrating 6LoWPAN mesh networking
https://cloud.mbed.com/docs/current
Other
19 stars 13 forks source link

armcc build fails #4

Closed BlackstoneEngineering closed 9 years ago

BlackstoneEngineering commented 9 years ago

Error from yt target frdm-k64f-gcc

C:\Users\arm\mbed\oobBeta\mbed-client-example-6lowpan>yt build
info: generate for target: frdm-k64f-armcc 0.0.13 at C:\Users\arm\mbed\oobBeta\mbed-client-example-6lowpan\yotta_targets\frdm-k64f-armcc
CMake Warning at C:/Users/arm/mbed/oobBeta/mbed-client-example-6lowpan/yotta_modules/uvisor-lib/source/CMakeLists.txt:22 (message):

           *******************************************************************
           * WARNING (uvisor-lib): unsupported platform; your code will still
           *                       work but no security feature is provided;
           *                       UVISOR_DISABLED is set by default
           *******************************************************************

-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/arm/mbed/oobBeta/mbed-client-example-6lowpan/build/frdm-k64f-armcc
[1/1] Linking CXX executable source/mbed-client-example-6lowpan
FAILED: cmd.exe /C "cd . && C:\Users\arm\Downloads\ARMCompiler_5.03_117_Windows\bin64\armlink.exe -o source/mbed-client-example-6lowpan --via=CMakeFiles/mbed-cl
ient-example-6lowpan.rsp   --scatter C:/Users/arm/mbed/oobBeta/mbed-client-example-6lowpan/yotta_targets/frdm-k64f-armcc/CMake/../ld/MK64F.sct && cmd.exe /C "cd
 /D C:/Users/arm/mbed/oobBeta/mbed-client-example-6lowpan/build/frdm-k64f-armcc/source && C:/Users/arm/Downloads/ARMCompiler_5.03_117_Windows/bin64/fromelf.exe
--bin mbed-client-example-6lowpan --output mbed-client-example-6lowpan.bin && cd /D C:/Users/arm/mbed/oobBeta/mbed-client-example-6lowpan/build/frdm-k64f-armcc/
source && C:/Users/arm/Downloads/ARMCompiler_5.03_117_Windows/bin64/fromelf.exe --bin mbed-client-example-6lowpan --output mbed-client-example-6lowpan.bin""
Warning: L6304W: Duplicate input file ym/mbed-mesh-api/source/mbed-mesh-api.ar ignored.
Warning: L6304W: Duplicate input file ym/sal-iface-6lowpan/source/sal-iface-6lowpan.ar ignored.
Warning: L6304W: Duplicate input file ym/atmel-rf-driver/source/atmel-rf-driver.ar ignored.
Warning: L6304W: Duplicate input file ym/sal-stack-nanostack/source/sal-stack-nanostack.ar ignored.
Warning: L6304W: Duplicate input file ym/coap-service/source/coap-service.ar ignored.
Warning: L6304W: Duplicate input file ym/sal-stack-nanostack-eventloop/source/sal-stack-nanostack-eventloop.ar ignored.
Warning: L6304W: Duplicate input file ym/mbed-6lowpan-eventloop-adaptor/source/mbed-6lowpan-eventloop-adaptor.ar ignored.
Warning: L6304W: Duplicate input file ym/sal/source/sal.ar ignored.
Warning: L6304W: Duplicate input file ym/sal-stack-lwip/source/sal-stack-lwip.ar ignored.
Warning: L6304W: Duplicate input file ym/sal-driver-lwip-k64f-eth/source/sal-driver-lwip-k64f-eth.ar ignored.
Warning: L6304W: Duplicate input file ym/sal-iface-eth/source/sal-iface-eth.ar ignored.
Warning: L6304W: Duplicate input file ym/mbed-drivers/source/mbed-drivers.ar ignored.
Warning: L6304W: Duplicate input file ym/mbed-hal/yotta_dummy_lib_mbed_hal/mbed-hal.ar ignored.
Warning: L6304W: Duplicate input file ym/minar/source/minar.ar ignored.
Warning: L6304W: Duplicate input file ym/core-util/source/core-util.ar ignored.
Warning: L6304W: Duplicate input file ym/mbed-hal-freescale/yotta_dummy_lib_mbed_hal_freescale/mbed-hal-freescale.ar ignored.
Warning: L6304W: Duplicate input file ym/minar-platform/yotta_dummy_lib_minar_platform/minar-platform.ar ignored.
Warning: L6304W: Duplicate input file ym/mbed-hal-ksdk-mcu/source/mbed-hal-ksdk-mcu.ar ignored.
Warning: L6304W: Duplicate input file ym/minar-platform-mbed/source/minar-platform-mbed.ar ignored.
Warning: L6304W: Duplicate input file ym/mbed-hal-k64f/source/mbed-hal-k64f.ar ignored.
Warning: L6304W: Duplicate input file ym/mbed-hal-frdm-k64f/source/mbed-hal-frdm-k64f.ar ignored.
Warning: L6304W: Duplicate input file ym/cmsis-core/yotta_dummy_lib_cmsis_core/cmsis-core.ar ignored.
Warning: L6304W: Duplicate input file ym/cmsis-core-freescale/yotta_dummy_lib_cmsis_core_freescale/cmsis-core-freescale.ar ignored.
Warning: L6304W: Duplicate input file ym/cmsis-core-k64f/source/cmsis-core-k64f.ar ignored.
Error: L6242E: Cannot link object protocol_data_interface.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object protocol_interface_driver.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object buffer_dyn.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object net.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object mac_data_interface.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object protocol_core.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object network_lib.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object protocol_6lowpan.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object protocol_6lowpan_bootstrap.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object cipv6_fragmenter.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object 6lowpan_iphc.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object lowpan_context.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object nd_router_object.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object rpl.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object rpl_obj.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object thread.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object thread_bootstrap.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object border_router.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object icmpv6_radv.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object ipv6_fragmentation.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object address.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object routing_table.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object socket.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object ipv6_routing_table.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object protocol_ipv6.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object mac_data_poll.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object mac_lib.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object mac_mlme.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object mac_pairwise_key.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object mac_security_interface.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object mac_timer.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object mle.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object multicast.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object nap_config.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object protocol_stats.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object protocol_timer.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object security_lib.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object pana.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object tls_lib.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object ccm_security.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object neighbor_cache.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object protocol_6lowpan_interface.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object cudp.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object iphc_compress.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object iphc_decompress.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object mesh.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object icmp_rpl_nd.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object thread_beacon.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object thread_dhcpv6_client.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object thread_dynamic_reed.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object thread_joiner_application.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object thread_management_client.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object thread_management_if.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object thread_management_server.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object thread_nd.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object thread_network_data_lib.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object thread_network_data_storage.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object thread_network_synch.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object thread_routerid_server.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object thread_routing.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object thread_test_api.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object icmpv6.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object icmpv6_prefix.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object ipv6.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object tcp.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object udp.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object libDHCPv6_server.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object socket_api.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object mac_indirect_data.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object mle_challenge_data.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object mle_header.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object mle_tlv.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object aes_mbedtls_adapter.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object shalib.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object whiteboard.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object thread_commissioning_if.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object thread_meshcop_lib.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object thread_resolution_client.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object thread_resolution_server.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object thread_service_api.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object DHCPv6_Server_service.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object dhcp_service_api.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object libDHCPv6.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object trickle.o as its attributes are incompatible with the image attributes.
   ... wchart-16 clashes with wchart-32.
Finished: 84 information, 24 warning and 84 error messages.
ninja: build stopped: subcommand failed.
error: command ['ninja'] failed
artokin commented 9 years ago

This is valid error. NanoStack is published as a binary repository and at the moment NanoStack binary repository (https://github.com/ARMmbed/sal-stack-nanostack) is build by using gcc compiler. Therefore linking fails when building with armcc.

0xc0170 commented 9 years ago

@artokin Is there a plan to resolve those errors and make it EABI compatible?

artokin commented 9 years ago

The plan is to proceed now without armcc support as it is not blocking the Beta release. Anyway, we are investigating how this could be resolved. @SeppoTakalo, how do you see this issue?

hasnainvirk commented 9 years ago

There had been instructions for OOB testers where it was explicitly mentioned that for this example, use only arm-gcc.

hasnainvirk commented 9 years ago

For reference: https://docs.google.com/document/d/1FAUkN9PYw13En59A3kGn_T1Ep3TCy0r52DjWFbx5ju4/edit#

SeppoTakalo commented 9 years ago

Build is already fixed:

$ yt build                                                                                                            
info: generate for target: frdm-k64f-armcc 0.0.15 at c:\Users\septak01\git\mbed-client-example-6lowpan\yotta_targets\f
rdm-k64f-armcc                                                                                                        
WARNING: preprocessing of .S files is not supported by ARMCC on windows.                                              
CMake Warning at c:/Users/septak01/git/mbed-client-example-6lowpan/yotta_modules/uvisor-lib/source/CMakeLists.txt:27 (
message):                                                                                                             

           *******************************************************************                                        
           * WARNING (uvisor-lib): unsupported platform; your code will still                                         
           *                       work but no security feature is provided;                                          
           *                       UVISOR_DISABLED is set by default                                                  
           *******************************************************************                                        

-- Configuring done                                                                                                   
-- Generating done                                                                                                    
-- Build files have been written to: C:/Users/septak01/git/mbed-client-example-6lowpan/build/frdm-k64f-armcc          
ninja: no work to do.