Skip to content

Exporting by any Makefile based fails to build #175

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
SeppoTakalo opened this issue Mar 7, 2018 · 5 comments
Closed

Exporting by any Makefile based fails to build #175

SeppoTakalo opened this issue Mar 7, 2018 · 5 comments

Comments

@SeppoTakalo
Copy link
Contributor

I did a quick exporter test using K64F

Tool Result
uvision5 PASS
iar PASS
make_armc5 FAIL
make_gcc_arm FAIL
make_iar FAIL

So all Makefile based exporters fails to build.

Manually testing the make_armc5 looks like the failure happens at the linkin phase

link: mbed-os-example-mesh-minimal.elf
process_begin: CreateProcess(C:\Keil_v5\ARM\ARMCC\bin\armlink.exe, armlink --show_full_path --scatter .././.link_script.sct --output mbed-os-example-mesh-minimal.elf atmel-rf-driver/source/NanostackRfPhyAtmel.o atmel-rf-driver/source/at24mac.o main.o mbed-os/drivers/AnalogIn.o mbed-os/drivers/BusIn.o mbed-os/drivers/BusInOut.o mbed-os/drivers/BusOut.o mbed-os/drivers/CAN.o mbed-os/drivers/Ethernet.o mbed-os/drivers/FlashIAP.o mbed-os/drivers/I2C.o mbed-os/drivers/I2CSlave.o mbed-os/drivers/InterruptIn.o mbed-os/drivers/InterruptManager.o mbed-os/drivers/MbedCRC.o mbed-os/drivers/RawSerial.o mbed-os/drivers/SPI.o mbed-os/drivers/SPISlave.o mbed-os/drivers/Serial.o mbed-os/drivers/SerialBase.o mbed-os/drivers/TableCRC.o mbed-os/drivers/Ticker.o mbed-os/drivers/Timeout.o mbed-os/drivers/Timer.o mbed-os/drivers/TimerEvent.o mbed-os/drivers/UARTSerial.o mbed-os/events/EventQueue.o mbed-os/events/equeue/equeue.o mbed-os/events/equeue/equeue_mbed.o mbed-os/events/equeue/equeue_posix.o mbed-os/events/mbed_shared_queues.o mbed-os/features/FEATURE_COMMON_PAL/mbed-client-randlib/source/randLIB.o mbed-os/features/FEATURE_COMMON_PAL/mbed-coap/source/sn_coap_builder.o mbed-os/features/FEATURE_COMMON_PAL/mbed-coap/source/sn_coap_header_check.o mbed-os/features/FEATURE_COMMON_PAL/mbed-coap/source/sn_coap_parser.o mbed-os/features/FEATURE_COMMON_PAL/mbed-coap/source/sn_coap_protocol.o mbed-os/features/FEATURE_COMMON_PAL/mbed-trace/source/mbed_trace.o mbed-os/features/FEATURE_COMMON_PAL/nanostack-hal-mbed-cmsis-rtos/arm_hal_interrupt.o mbed-os/features/FEATURE_COMMON_PAL/nanostack-hal-mbed-cmsis-rtos/arm_hal_random.o mbed-os/features/FEATURE_COMMON_PAL/nanostack-hal-mbed-cmsis-rtos/arm_hal_timer.o mbed-os/features/FEATURE_COMMON_PAL/nanostack-hal-mbed-cmsis-rtos/cs_nvm/cs_nvm.o mbed-os/features/FEATURE_COMMON_PAL/nanostack-hal-mbed-cmsis-rtos/ns_event_loop.o mbed-os/features/FEATURE_COMMON_PAL/nanostack-hal-mbed-cmsis-rtos/ns_hal_init.o mbed-os/features/FEATURE_COMMON_PAL/nanostack-hal-mbed-cmsis-rtos/nvm/nvm_ram.o mbed-os/features/FEATURE_COMMON_PAL/nanostack-libservice/source/IPv6_fcf_lib/ip_fsc.o mbed-os/features/FEATURE_COMMON_PAL/nanostack-libservice/source/libBits/common_functions
... clipped ...
make (e=87): The parameter is incorrect.
make[1]: *** [mbed-os-example-mesh-minimal.elf] Virhe 87
make: *** [all] Virhe 2

@SeppoTakalo
Copy link
Contributor Author

Googling the error code make (e=87) looks like this might be Windows issue
https://stackoverflow.com/questions/12598933/ndk-build-createprocess-make-e-87-the-parameter-is-incorrect

@SeppoTakalo
Copy link
Contributor Author

SeppoTakalo commented Mar 7, 2018

Conclusion: Windows CreateProcess() only accepts command line maximum length to be 32,768 characters. See here.

In this case the final link command is 44,252 characters long.

So not an issue that could be fixed here.

@SeppoTakalo SeppoTakalo changed the title Exporting to any Makefile based fails to build Exporting by any Makefile based fails to build Mar 7, 2018
@ciarmcom
Copy link
Member

ciarmcom commented Mar 7, 2018

ARM Internal Ref: ONME-3528

@adbridge
Copy link
Contributor

@SeppoTakalo Looks like this should be moved to an mbed-os issue (against the tools) ?

@SeppoTakalo
Copy link
Contributor Author

Reported here: ARMmbed/mbed-os#6335

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants