{"action":"created","issue":{"url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/2448","repository_url":"https://api.github.com/repos/ARMmbed/mbed-os","labels_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/2448/labels{/name}","comments_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/2448/comments","events_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/2448/events","html_url":"https://github.com/ARMmbed/mbed-os/issues/2448","id":171156214,"number":2448,"title":"[exporter] LPCXpresso exporter broken","user":{"login":"toyowata","id":4926755,"avatar_url":"https://avatars.githubusercontent.com/u/4926755?v=3","gravatar_id":"","url":"https://api.github.com/users/toyowata","html_url":"https://github.com/toyowata","followers_url":"https://api.github.com/users/toyowata/followers","following_url":"https://api.github.com/users/toyowata/following{/other_user}","gists_url":"https://api.github.com/users/toyowata/gists{/gist_id}","starred_url":"https://api.github.com/users/toyowata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toyowata/subscriptions","organizations_url":"https://api.github.com/users/toyowata/orgs","repos_url":"https://api.github.com/users/toyowata/repos","events_url":"https://api.github.com/users/toyowata/events{/privacy}","received_events_url":"https://api.github.com/users/toyowata/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ARMmbed/mbed-os/labels/devices:%20nxp","name":"devices: nxp","color":"0052cc"},{"url":"https://api.github.com/repos/ARMmbed/mbed-os/labels/mirrored","name":"mirrored","color":"ededed"},{"url":"https://api.github.com/repos/ARMmbed/mbed-os/labels/tracking","name":"tracking","color":"b60205"},{"url":"https://api.github.com/repos/ARMmbed/mbed-os/labels/type:%20bug","name":"type: bug","color":"b60205"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":15,"created_at":"2016-08-15T11:51:56Z","updated_at":"2016-10-03T18:52:50Z","closed_at":null,"body":"Exported project for LPCXpresso broken from mbed library Rev.122 and onward.\r\n\r\n## Step to reproduce:\r\n\r\n1. Create blinky project for LPC1768 (or other LPC) target\r\n2. Set mbed library Rev. 122 or 123\r\n3. Export to LPCXpresso\r\n4. Open the project by LPCXpresso IDE (I used LPCXpresso v8.1.4)\r\n5. Build the project file\r\n\r\n```\r\nBuilding target: mbed_blinky.axf\r\nInvoking: MCU C++ Linker\r\narm-none-eabi-c++ -nostdlib -L\"/Users/toyowata/Documents/LPCXpresso_8.1.4/workspace/mbed_blinky\" -L\"/Users/toyowata/Documents/LPCXpresso_8.1.4/workspace/mbed_blinky/mbed\" -L\"/Users/toyowata/Documents/LPCXpresso_8.1.4/workspace/mbed_blinky/mbed/TARGET_LPC1768\" -L\"/Users/toyowata/Documents/LPCXpresso_8.1.4/workspace/mbed_blinky/mbed/TARGET_LPC1768/TARGET_NXP\" -L\"/Users/toyowata/Documents/LPCXpresso_8.1.4/workspace/mbed_blinky/mbed/TARGET_LPC1768/TARGET_NXP/TARGET_LPC176X\" -L\"/Users/toyowata/Documents/LPCXpresso_8.1.4/workspace/mbed_blinky/mbed/TARGET_LPC1768/TARGET_NXP/TARGET_LPC176X/TARGET_MBED_LPC1768\" -Xlinker -Map=\"mbed_blinky.map\" -Xlinker --gc-sections -mcpu=cortex-m3 -mthumb -T \"\" -o \"mbed_blinky.axf\"  ./main.o   \r\n/Applications/lpcxpresso_8.1.4_606/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/5.2.1/../../../../arm-none-eabi/bin/ld: read in flex scanner failed\r\ncollect2: error: ld returned 1 exit status\r\nmake: *** [mbed_blinky.axf] Error 1\r\n```\r\n\r\nWhen I use Rev. 121 mbed library, it worked fine (I could build a project by LPCXpresso).  The exporter doesn't seem to generate pre-build object files for target.  See below:\r\n\r\n## mbed library Rev.122 and onward\r\n![lpcxpresso_exporter](https://cloud.githubusercontent.com/assets/4926755/17663894/1246c8c2-632b-11e6-96eb-899a89b110d0.png)\r\n\r\n## mbed library Rev.121 and upward\r\n![lpcxpresso_exporter_no-error](https://cloud.githubusercontent.com/assets/4926755/17663716/7c174e68-6329-11e6-976c-214035b6e975.png)\r\n\r\nI also tried to export other target such as LPC1114FN28 anr LPCXpresso11U68, they are same result."},"comment":{"url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/comments/251192631","html_url":"https://github.com/ARMmbed/mbed-os/issues/2448#issuecomment-251192631","issue_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/2448","id":251192631,"user":{"login":"Carl-M","id":13088360,"avatar_url":"https://avatars.githubusercontent.com/u/13088360?v=3","gravatar_id":"","url":"https://api.github.com/users/Carl-M","html_url":"https://github.com/Carl-M","followers_url":"https://api.github.com/users/Carl-M/followers","following_url":"https://api.github.com/users/Carl-M/following{/other_user}","gists_url":"https://api.github.com/users/Carl-M/gists{/gist_id}","starred_url":"https://api.github.com/users/Carl-M/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Carl-M/subscriptions","organizations_url":"https://api.github.com/users/Carl-M/orgs","repos_url":"https://api.github.com/users/Carl-M/repos","events_url":"https://api.github.com/users/Carl-M/events{/privacy}","received_events_url":"https://api.github.com/users/Carl-M/received_events","type":"User","site_admin":false},"created_at":"2016-10-03T18:52:50Z","updated_at":"2016-10-03T18:52:50Z","body":"Sorry this is the error \r\n`arm-none-eabi-c++ -nostdlib -L\"\\LPCXpresso_8.2.2_650\\workspace\\mbed_blinky\" -L\"\\LPCXpresso_8.2.2_650\\workspace\\mbed_blinky\\mbed\" -L\"\\LPCXpresso_8.2.2_650\\workspace\\mbed_blinky\\mbed\\TARGET_LPC1768\" -L\"\\LPCXpresso_8.2.2_650\\workspace\\mbed_blinky\\mbed\\TARGET_LPC1768\\TARGET_NXP\" -L\"\\LPCXpresso_8.2.2_650\\workspace\\mbed_blinky\\mbed\\TARGET_LPC1768\\TARGET_NXP\\TARGET_LPC176X\" -L\"\\LPCXpresso_8.2.2_650\\workspace\\mbed_blinky\\mbed\\TARGET_LPC1768\\TARGET_NXP\\TARGET_LPC176X\\TARGET_MBED_LPC1768\" -Xlinker -Map=\"mbed_blinky.map\" -Xlinker --gc-sections -mcpu=cortex-m3 -mthumb -T \"\" -o \"mbed_blinky.axf\"  ./main.o   \r\ne:/dev/nxp/lpcxpresso_8.2.2_650/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/bin/ld.exe: unrecognized option '-T'\r\ne:/dev/nxp/lpcxpresso_8.2.2_650/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/bin/ld.exe: use the --help option for usage information`"}}
{"actor":{"display_login":"Carl-M"}}