Skip to content
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

tests/drivers/adc/adc_api results into build failure on nRF platforms #10772

Closed
nniranjhana opened this issue Oct 23, 2018 · 1 comment
Closed
Labels
area: ADC Analog-to-Digital Converter (ADC) area: Tests Issues related to a particular existing or missing test bug The issue is a bug, or the PR is fixing a bug

Comments

@nniranjhana
Copy link

The test in tests/drivers/adc/adc_api results into build error on nRF boards.

Arch: ARM
Platforms: nrf51_pca10028, nrf52840_pca10056, nrf52_pca10040

Error log on console:

[ 26%] Building C object zephyr/CMakeFiles/zephyr.dir/misc/printk.c.obj
[ 27%] Building C object zephyr/CMakeFiles/zephyr.dir/misc/generated/configs.c.obj
In file included from /home/nj/zephyr/include/toolchain.h:21:0,
                 from /home/nj/zephyr/tests/drivers/adc/adc_api/build/zephyr/misc/generated/configs.c:3:
/home/nj/zephyr/tests/drivers/adc/adc_api/build/zephyr/misc/generated/configs.c: In function ‘_ConfigAbsSyms’:
/home/nj/zephyr/include/toolchain/gcc.h:341:51: error: expected expression before ‘)’ token
   "\n\t.type\t" #name ",%%object" :  : "n"(~(value)))
                                                   ^
/home/nj/zephyr/tests/drivers/adc/adc_api/build/zephyr/misc/generated/configs.c:322:1: note: in expansion of macro ‘GEN_ABSOLUTE_SYM’
 GEN_ABSOLUTE_SYM(CONFIG_NET_BUF_LOG_LEVEL, );
 ^~~~~~~~~~~~~~~~
make[2]: *** [zephyr/CMakeFiles/zephyr.dir/build.make:167: zephyr/CMakeFiles/zephyr.dir/misc/generated/configs.c.obj] Error 1
make[1]: *** [CMakeFiles/Makefile2:1026: zephyr/CMakeFiles/zephyr.dir/all] Error 2
make: *** [Makefile:84: all] Error 2

Steps to reproduce:

cd zephyr/tests/drivers/adc/adc_api
rm -rf build && mkdir build && cd build
cmake -D BOARD=nrf52_pca10040 ..
make

Check the build log.

@nniranjhana nniranjhana added bug The issue is a bug, or the PR is fixing a bug area: ADC Analog-to-Digital Converter (ADC) area: Tests Issues related to a particular existing or missing test labels Oct 23, 2018
@nniranjhana
Copy link
Author

Closing this, as reported in #10775 it is not just for drivers, but a build failure from the toolchain across many tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: ADC Analog-to-Digital Converter (ADC) area: Tests Issues related to a particular existing or missing test bug The issue is a bug, or the PR is fixing a bug
Projects
None yet
Development

No branches or pull requests

1 participant