Page 1 of 1

Large ULP project build problem IDF V4.0 beta1

Posted: Mon Nov 11, 2019 1:48 pm
by ginodecock
Hi,

I have a project that compiles fine under IDF V3.3.

When building under IDF V4.0 beta 1 I got the following error:
e/GitHub/esp-idf-v4.0-beta1/components/unity/include -IY:/VM/Share/GitHub/esp-idf-v4.0-beta1/components/ulp/cmake/-IY:/VM/Share/GitHub/esp-idf-v4.0-beta1/components/unity/unity/src -IY:/VM/Share/GitHub/esp-idf-v4.0-beta1/components/ulp/cmake/-IY:/VM/Share/GitHub/esp-idf-v4.0-beta1/components/wifi_provisioning/include -IY:/VM/Share/GitHub/esp-idf-v4.0-beta1/components/ulp/cmake/-IY:/VM/eclipse-workspace/tmp108logger/components/esp-si7021/include -o CMakeFiles/ulp_main.dir/sensor.ulp.S.obj -c sensor.ulp.S
sensor.ulp.S: Assembler messages:
sensor.ulp.S:230: Error: rel too far BFD_JUMPR_STEP
sensor.ulp.S:236: Error: rel too far BFD_JUMPR_STEP
sensor.ulp.S:251: Error: rel too far BFD_JUMPR_STEP
sensor.ulp.S:260: Error: rel too far BFD_JUMPR_STEP
sensor.ulp.S:271: Error: rel too far BFD_JUMPR_STEP
sensor.ulp.S:280: Error: rel too far BFD_JUMPR_STEP
sensor.ulp.S:293: Error: rel too far BFD_JUMPR_STEP
sensor.ulp.S:307: Error: rel too far BFD_JUMPR_STEP
ninja: build stopped: subcommand failed.
[641/687] Building CXX object esp-idf/asio/CMakeFiles/__idf_asio.dir/asio/asio/src/asio.cpp.obj
ninja: build stopped: subcommand failed.
ninja failed with exit code 1


Is there a way under IDF V4.0 to build ULP code using seperate assembler files?

Re: Large ULP project build problem IDF V4.0 beta1

Posted: Mon Nov 11, 2019 11:04 pm
by WiFive
Are you using latest ulp toolchain?

Re: Large ULP project build problem IDF V4.0 beta1

Posted: Tue Nov 12, 2019 5:32 pm
by ginodecock
When using the cmake idf v4.0 the ulp toolchain is embedded.
If you have already set up ESP-IDF with CMake build system according to the Getting Started Guide, then the ULP toolchain is already installed.
Building using legacy GNU make build is older and works.

Any idea how to use multiple assembler files using CMake? That could also solve the problem.

Re: Large ULP project build problem IDF V4.0 beta1

Posted: Wed Nov 13, 2019 1:58 am
by WiFive

Code: Select all

rel too far BFD_JUMPR_STEP
message only exists in the old toolchain. It was removed here https://github.com/espressif/binutils-e ... 8bff1e18e1 Do you have an older version installed that may still be in PATH?

https://github.com/espressif/esp-iot-so ... xt#L17-L22

Re: Large ULP project build problem IDF V4.0 beta1

Posted: Wed Nov 13, 2019 5:52 pm
by ginodecock
Hi,

Yes the esp32ulp toolchain was configured twice in PATH.

I builds now using CMake.

Thanks