{"action":"created","issue":{"url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/6954","repository_url":"https://api.github.com/repos/ARMmbed/mbed-os","labels_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/6954/labels{/name}","comments_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/6954/comments","events_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/6954/events","html_url":"https://github.com/ARMmbed/mbed-os/issues/6954","id":324410158,"number":6954,"title":"EV_COG_AD4050LZ mbed projects fails to build with CrossCore Embedded Studio","user":{"login":"andrew-mclachlan","id":1851406,"avatar_url":"https://avatars1.githubusercontent.com/u/1851406?v=4","gravatar_id":"","url":"https://api.github.com/users/andrew-mclachlan","html_url":"https://github.com/andrew-mclachlan","followers_url":"https://api.github.com/users/andrew-mclachlan/followers","following_url":"https://api.github.com/users/andrew-mclachlan/following{/other_user}","gists_url":"https://api.github.com/users/andrew-mclachlan/gists{/gist_id}","starred_url":"https://api.github.com/users/andrew-mclachlan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrew-mclachlan/subscriptions","organizations_url":"https://api.github.com/users/andrew-mclachlan/orgs","repos_url":"https://api.github.com/users/andrew-mclachlan/repos","events_url":"https://api.github.com/users/andrew-mclachlan/events{/privacy}","received_events_url":"https://api.github.com/users/andrew-mclachlan/received_events","type":"User","site_admin":false},"labels":[{"id":515347909,"url":"https://api.github.com/repos/ARMmbed/mbed-os/labels/component:%20export","name":"component: export","color":"5319e7","default":false},{"id":28847979,"url":"https://api.github.com/repos/ARMmbed/mbed-os/labels/type:%20bug","name":"type: bug","color":"b60205","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-05-18T13:26:18Z","updated_at":"2018-05-30T08:00:10Z","closed_at":null,"author_association":"NONE","body":"### Description\r\n\r\nLD scripts for EV_COG_AD4050LZ (and 3029) require preprocessing but this does not work for all toolchains.\r\n\r\nSteps to reproduce:\r\npip install mbed-cli\r\nmbed import mbed-os-example-blinky\r\ncd mbed-os-example-blinky\r\nmbed export -i cces -m EV_COG_AD4050LZ\r\nOpen CCES, import mbed-os-example-blinky/cces project.\r\nBuild\r\nFirst build error is because `softfp` is not found. Remove it from Libraries.\r\nBuild\r\n\r\nBuilding target: mbed-os-example-blinky\r\nInvoking: CrossCore GCC ARM Embedded C++ Linker\r\narm-none-eabi-g++ -T/home/amclach/mbed-os-example-blinky/cces/../mbed-os/targets/TARGET_Analog_Devices/TARGET_ADUCM4X50/TARGET_ADUCM4050/TOOLCHAIN_GCC_ARM/ADuCM4050.ld -Wl,--gc-sections -Wl,--wrap,main -Wl,--wrap,_malloc_r -Wl,--wrap,_free_r -Wl,--wrap,_realloc_r -Wl,--wrap,_memalign_r -Wl,--wrap,_calloc_r -Wl,--wrap,exit -Wl,--wrap,atexit -Wl,-n -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -lstdc++ -lsupc++ -lm -lc -lgcc -lnosys -mcpu=cortex-m4 -mthumb -specs=nosys.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -o  \"mbed-os-example-blinky\" @input-file.txt -lm\r\nmakefile:128: recipe for target 'mbed-os-example-blinky' failed\r\n/opt/analog/cces/2.8.0/ARM/gcc-arm-embedded/bin/../lib/gcc/arm-none-eabi/6.3.1/../../../../arm-none-eabi/bin/ld:/home/amclach/mbed-os-example-blinky/cces/../mbed-os/targets/TARGET_Analog_Devices/TARGET_ADUCM4X50/TARGET_ADUCM4050/TOOLCHAIN_GCC_ARM/ADuCM4050.ld:8: ignoring invalid character `#' in expression\r\n/opt/analog/cces/2.8.0/ARM/gcc-arm-embedded/bin/../lib/gcc/arm-none-eabi/6.3.1/../../../../arm-none-eabi/bin/ld:/home/amclach/mbed-os-example-blinky/cces/../mbed-os/targets/TARGET_Analog_Devices/TARGET_ADUCM4X50/TARGET_ADUCM4050/TOOLCHAIN_GCC_ARM/ADuCM4050.ld:8: syntax error\r\ncollect2: error: ld returned 1 exit status\r\nmake: *** [mbed-os-example-blinky] Error 1\r\n\r\n#defines in LD scripts are not pre-processed and a separate tool is not run.\r\n\r\nIf you export to a Makefile `mbed export -i make_gcc_arm -m EV_COG_AD4050LZ`, then you'll notice a pre-processor step:\r\n\r\n$(PROJECT).link_script.ld: $(LINKER_SCRIPT)\r\n        @$(PREPROC) $< -o $@\r\n\r\n### Issue request type\r\n    [X ] Bug"},"comment":{"url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/comments/393067400","html_url":"https://github.com/ARMmbed/mbed-os/issues/6954#issuecomment-393067400","issue_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/6954","id":393067400,"user":{"login":"0xc0170","id":2963726,"avatar_url":"https://avatars0.githubusercontent.com/u/2963726?v=4","gravatar_id":"","url":"https://api.github.com/users/0xc0170","html_url":"https://github.com/0xc0170","followers_url":"https://api.github.com/users/0xc0170/followers","following_url":"https://api.github.com/users/0xc0170/following{/other_user}","gists_url":"https://api.github.com/users/0xc0170/gists{/gist_id}","starred_url":"https://api.github.com/users/0xc0170/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0xc0170/subscriptions","organizations_url":"https://api.github.com/users/0xc0170/orgs","repos_url":"https://api.github.com/users/0xc0170/repos","events_url":"https://api.github.com/users/0xc0170/events{/privacy}","received_events_url":"https://api.github.com/users/0xc0170/received_events","type":"User","site_admin":false},"created_at":"2018-05-30T08:00:10Z","updated_at":"2018-05-30T08:00:10Z","author_association":"MEMBER","body":"I read the long discussion in 6690 PR but do not see there the solution to this issue"}}
{"actor":{"display_login":"0xc0170"}}