Skip to content

Makefile - lpc1768 does not build #2460

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
0xc0170 opened this issue Aug 16, 2016 · 4 comments
Closed

Makefile - lpc1768 does not build #2460

0xc0170 opened this issue Aug 16, 2016 · 4 comments

Comments

@0xc0170
Copy link
Contributor

0xc0170 commented Aug 16, 2016

python tools\project.py -m LPC1768 -i gcc_arm -n MBED_10 -b

Error output:

arm-none-eabi-g++ -c -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -fmessage-length=0 -fno-exceptions -fno-builtin -ffunction-sections -fdata-sections -funsigned-char -MMD -fno-delete-null-pointer-checks -fomit-frame-p
ointer -mcpu=cortex-m3 -mthumb -Os -std=gnu++98 -fno-rtti -Wvla -DDEVICE_ERROR_PATTERN=1 -D__MBED__=1 -DDEVICE_I2CSLAVE=
1 -DTARGET_LIKE_MBED -DTARGET_NXP -DTARGET_LPC176X -D__MBED_CMSIS_RTOS_CM -DDEVICE_RTC=1 -DTOOLCHAIN_object -DMBED_USERN
AME=Kojto -D__CMSIS_RTOS -DTOOLCHAIN_GCC -DDEVICE_CAN=1 -DTARGET_LIKE_CORTEX_M3 -DTARGET_CORTEX_M -DARM_MATH_CM3 -DDEVIC
E_ANALOGOUT=1 -DTARGET_UVISOR_UNSUPPORTED -DTARGET_M3 -DDEVICE_PWMOUT=1 -DDEVICE_INTERRUPTIN=1 -DDEVICE_I2C=1 -DDEVICE_P
ORTOUT=1 -D__CORTEX_M3 -DDEVICE_STDIO_MESSAGES=1 -DTARGET_LPC1768 -DTARGET_RELEASE -DDEVICE_PORTINOUT=1 -DDEVICE_SERIAL_
FC=1 -DMBED_BUILD_TIMESTAMP=1471343151.62 -DTARGET_MBED_LPC1768 -DDEVICE_PORTIN=1 -DDEVICE_SLEEP=1 -DTOOLCHAIN_GCC_ARM -
DDEVICE_SPI=1 -DDEVICE_ETHERNET=1 -DDEVICE_SPISLAVE=1 -DDEVICE_ANALOGIN=1 -DDEVICE_SERIAL=1 -DDEVICE_SEMIHOST=1 -DDEVICE
_DEBUG_AWARENESS=1 -DDEVICE_LOCALFILESYSTEM=1 -include mbed_config.h -MMD -MP  -I. -I./env -I./mbed -I./mbed/TARGET_LPC1
768 -I./mbed/TARGET_LPC1768/TARGET_NXP -I./mbed/TARGET_LPC1768/TARGET_NXP/TARGET_LPC176X -I./mbed/TARGET_LPC1768/TARGET_
NXP/TARGET_LPC176X/TARGET_MBED_LPC1768 -I./mbed/TARGET_LPC1768/TOOLCHAIN_GCC_ARM -I.  -o main.o ../main.cpp
process_begin: CreateProcess(NULL, arm-none-eabi-g++ -c -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializ
ers -fmessage-length=0 -fno-exceptions -fno-builtin -ffunction-sections -fdata-sections -funsigned-char -MMD -fno-delete
-null-pointer-checks -fomit-frame-pointer -mcpu=cortex-m3 -mthumb -Os -std=gnu++98 -fno-rtti -Wvla -DDEVICE_ERROR_PATTER
N=1 -D__MBED__=1 -DDEVICE_I2CSLAVE=1 -DTARGET_LIKE_MBED -DTARGET_NXP -DTARGET_LPC176X -D__MBED_CMSIS_RTOS_CM -DDEVICE_RT
C=1 -DTOOLCHAIN_object -DMBED_USERNAME=Kojto -D__CMSIS_RTOS -DTOOLCHAIN_GCC -DDEVICE_CAN=1 -DTARGET_LIKE_CORTEX_M3 -DTAR
GET_CORTEX_M -DARM_MATH_CM3 -DDEVICE_ANALOGOUT=1 -DTARGET_UVISOR_UNSUPPORTED -DTARGET_M3 -DDEVICE_PWMOUT=1 -DDEVICE_INTE
RRUPTIN=1 -DDEVICE_I2C=1 -DDEVICE_PORTOUT=1 -D__CORTEX_M3 -DDEVICE_STDIO_MESSAGES=1 -DTARGET_LPC1768 -DTARGET_RELEASE -D
DEVICE_PORTINOUT=1 -DDEVICE_SERIAL_FC=1 -DMBED_BUILD_TIMESTAMP=1471343151.62 -DTARGET_MBED_LPC1768 -DDEVICE_PORTIN=1 -DD
EVICE_SLEEP=1 -DTOOLCHAIN_GCC_ARM -DDEVICE_SPI=1 -DDEVICE_ETHERNET=1 -DDEVICE_SPISLAVE=1 -DDEVICE_ANALOGIN=1 -DDEVICE_SE
RIAL=1 -DDEVICE_SEMIHOST=1 -DDEVICE_DEBUG_AWARENESS=1 -DDEVICE_LOCALFILESYSTEM=1 -include mbed_config.h -MMD -MP -I. -I.
/env -I./mbed -I./mbed/TARGET_LPC1768 -I./mbed/TARGET_LPC1768/TARGET_NXP -I./mbed/TARGET_LPC1768/TARGET_NXP/TARGET_LPC17
6X -I./mbed/TARGET_LPC1768/TARGET_NXP/TARGET_LPC176X/TARGET_MBED_LPC1768 -I./mbed/TARGET_LPC1768/TOOLCHAIN_GCC_ARM -I. -
o main.o ../main.cpp, ...) failed.
make (e=2): The system cannot find the file specified.
make[1]: *** [main.o] Error 2
make: *** [all] Error 2

Looks like the paths are wrong (VPATH is set to ..) and -I paths are referencing not valid paths.

cc @sarahmarshy @theotherjimmy

@sarahmarshy
Copy link
Contributor

I wasn't able to replicate this issue.

@theotherjimmy
Copy link
Contributor

I was not able to reproduce this issue.

@0xc0170
Copy link
Contributor Author

0xc0170 commented Aug 17, 2016

False alarm, my paths were corrupted thus arm-none-eabi-gcc was not found - I found once I was trying to use gcc in the command line (in the above was g++). Can we add a check if gcc/g++ is in present and fail prematurely in the Makefile?

@theotherjimmy
Copy link
Contributor

Can we add a check if gcc/g++ is in present and fail prematurely in the Makefile?

From a performance perspective, this is not going to make any difference. This is actually a bit difficult, as there is no cross platform which/where and the errors returned on multiple platforms are very different.

@0xc0170 0xc0170 closed this as completed Aug 18, 2016
artokin pushed a commit to artokin/mbed-os that referenced this issue Oct 5, 2020
…..09d9e24

09d9e24 Merge branch 'release_internal' into release_external
9a3278a Removed Black list reject from wi-sun neighbour request function
76fc9d7 Support SLAAC addressing method for Wi-SUN Border router
71c8bde Modified Wi-SUN etx to wait for Probes
b720fbd Wi-SUN discovery and address registration update
e73c808 Merge pull request ARMmbed#2460 from ARMmbed/sync_with_mbed_os
7994d95 If PMK and PTK are not set do not store keys to NVM
f8813e2 Follow Mbed OS coding style
f6ed877 (via mbedos) Possible invalid memory access on memcpy
40dc215 Set frame counter increment to 1000000
a57acc8 ETX update
5373de2 EAPOL parent TX feilure is reorder candidate list.
6b0e264 Allowed separate default settings in WS API
850252b Fixed EAPOL brodcast synch at border router device.
2c1c077 Corrected unit test
16e38ce Changed EAPOL negotiation limit on small nw to 20
21af923 Wi-sun ETX update
80e13f4 Changed EAP-TLS retry trace to info trace level
52a5018 WS: Use special retry configuration when discovery is started (ARMmbed#2450)

git-subtree-dir: features/nanostack/sal-stack-nanostack
git-subtree-split: 09d9e24
artokin pushed a commit to artokin/mbed-os that referenced this issue Oct 5, 2020
…879e6d..09d9e24

09d9e24 Merge branch 'release_internal' into release_external
9a3278a Removed Black list reject from wi-sun neighbour request function
76fc9d7 Support SLAAC addressing method for Wi-SUN Border router
71c8bde Modified Wi-SUN etx to wait for Probes
b720fbd Wi-SUN discovery and address registration update
e73c808 Merge pull request ARMmbed#2460 from ARMmbed/sync_with_mbed_os
7994d95 If PMK and PTK are not set do not store keys to NVM
f8813e2 Follow Mbed OS coding style
f6ed877 (via mbedos) Possible invalid memory access on memcpy
40dc215 Set frame counter increment to 1000000
a57acc8 ETX update
5373de2 EAPOL parent TX feilure is reorder candidate list.
6b0e264 Allowed separate default settings in WS API
850252b Fixed EAPOL brodcast synch at border router device.
2c1c077 Corrected unit test
16e38ce Changed EAPOL negotiation limit on small nw to 20
21af923 Wi-sun ETX update
80e13f4 Changed EAP-TLS retry trace to info trace level
52a5018 WS: Use special retry configuration when discovery is started (ARMmbed#2450)
7e3b99c Merge branch 'release_internal' into release_external
50b7a64 Key update to MAC is forced when nw name changes
f1f46f3 Corrected identifier range alloc and added define for timeout
f836d1d FHSS WS: spread broadcast messages better on BC channel (ARMmbed#2449)
9a1b353 Merge branch 'release_internal' into release_external
5e40cb3 Fix 0 length domain search list
f0f5131 Fixed coverity issue.
81b94e5 Added test harness API for set temporary neighbour lifetime longer
b969fa3 Merge branch 'release_internal' into release_external
b66b834 Timed parent selection update

git-subtree-dir: connectivity/nanostack/sal-stack-nanostack
git-subtree-split: 09d9e24
artokin pushed a commit to artokin/mbed-os that referenced this issue Oct 5, 2020
…..09d9e24

09d9e24 Merge branch 'release_internal' into release_external
9a3278a Removed Black list reject from wi-sun neighbour request function
76fc9d7 Support SLAAC addressing method for Wi-SUN Border router
71c8bde Modified Wi-SUN etx to wait for Probes
b720fbd Wi-SUN discovery and address registration update
e73c808 Merge pull request ARMmbed#2460 from ARMmbed/sync_with_mbed_os
7994d95 If PMK and PTK are not set do not store keys to NVM
f8813e2 Follow Mbed OS coding style
f6ed877 (via mbedos) Possible invalid memory access on memcpy
40dc215 Set frame counter increment to 1000000
a57acc8 ETX update
5373de2 EAPOL parent TX feilure is reorder candidate list.
6b0e264 Allowed separate default settings in WS API
850252b Fixed EAPOL brodcast synch at border router device.
2c1c077 Corrected unit test
16e38ce Changed EAPOL negotiation limit on small nw to 20
21af923 Wi-sun ETX update
80e13f4 Changed EAP-TLS retry trace to info trace level
52a5018 WS: Use special retry configuration when discovery is started (ARMmbed#2450)
7e3b99c Merge branch 'release_internal' into release_external
50b7a64 Key update to MAC is forced when nw name changes
f1f46f3 Corrected identifier range alloc and added define for timeout
f836d1d FHSS WS: spread broadcast messages better on BC channel (ARMmbed#2449)
9a1b353 Merge branch 'release_internal' into release_external
5e40cb3 Fix 0 length domain search list
f0f5131 Fixed coverity issue.
81b94e5 Added test harness API for set temporary neighbour lifetime longer
b969fa3 Merge branch 'release_internal' into release_external
b66b834 Timed parent selection update

git-subtree-dir: features/nanostack/sal-stack-nanostack
git-subtree-split: 09d9e24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants