Skip to content

nightly: cannot open linker script file -Wl,--gc-sections #857

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
rtwfroody opened this issue Oct 31, 2017 · 8 comments
Closed

nightly: cannot open linker script file -Wl,--gc-sections #857

rtwfroody opened this issue Oct 31, 2017 · 8 comments

Comments

@rtwfroody
Copy link

I updated to the nightly to get the fix for #856. Now my older project will no longer build:

'Starting combiner'
"C:\sloeber\/arduinoPlugin/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-gcc" -g -Wall -Wextra -Os -nostdlib -Wl,--no-check-sections -u call_user_start -Wl,-static "-LC:\sloeber\/arduinoPlugin/packages/esp8266/hardware/esp8266/2.3.0/tools/sdk/lib" "-LC:\sloeber\/arduinoPlugin/packages/esp8266/hardware/esp8266/2.3.0/tools/sdk/ld" "-T" -Wl,--gc-sections -Wl,-wrap,system_restart_local -Wl,-wrap,register_chipv6_phy -o "C:\Users\tnewsome\Synced\projects\thermostat\eclipse-workspace\head-v1/V1/head-v1.elf" -Wl,--start-group    .\clockpage.cpp.o .\directpage.cpp.o .\gui.cpp.o .\mainpage.cpp.o .\state.cpp.o .\thermostat.cpp.o .\utils.cpp.o  .\libraries\Wire\Wire.cpp.o  .\libraries\WiFiManager\WiFiManager.cpp.o  .\libraries\SPI\SPI.cpp.o  .\libraries\SD\src\utility\Sd2Card.cpp.o .\libraries\SD\src\utility\SdFile.cpp.o .\libraries\SD\src\utility\SdVolume.cpp.o  .\libraries\SD\src\File.cpp.o .\libraries\SD\src\SD.cpp.o  .\libraries\RTClib\RTClib.cpp.o  .\libraries\JPEGDecoder\src\JPEGDecoder.cpp.o .\libraries\JPEGDecoder\src\picojpeg.c.o  .\libraries\ESP8266mDNS\ESP8266mDNS.cpp.o  .\libraries\ESP8266WiFi\src\ESP8266WiFi.cpp.o .\libraries\ESP8266WiFi\src\ESP8266WiFiAP.cpp.o .\libraries\ESP8266WiFi\src\ESP8266WiFiGeneric.cpp.o .\libraries\ESP8266WiFi\src\ESP8266WiFiMulti.cpp.o .\libraries\ESP8266WiFi\src\ESP8266WiFiSTA.cpp.o .\libraries\ESP8266WiFi\src\ESP8266WiFiScan.cpp.o .\libraries\ESP8266WiFi\src\WiFiClient.cpp.o .\libraries\ESP8266WiFi\src\WiFiClientSecure.cpp.o .\libraries\ESP8266WiFi\src\WiFiServer.cpp.o .\libraries\ESP8266WiFi\src\WiFiUdp.cpp.o  .\libraries\ESP8266WebServer\src\ESP8266WebServer.cpp.o .\libraries\ESP8266WebServer\src\Parsing.cpp.o  .\libraries\ESP8266HTTPClient\src\ESP8266HTTPClient.cpp.o  .\libraries\EEPROM\EEPROM.cpp.o  .\libraries\DNSServer\src\DNSServer.cpp.o  .\libraries\DHT_sensor_library\DHT.cpp.o .\libraries\DHT_sensor_library\DHT_U.cpp.o  .\libraries\ArduinoOTA\ArduinoOTA.cpp.o  .\libraries\Adafruit_STMPE610\Adafruit_STMPE610.cpp.o  .\libraries\Adafruit_MQTT_Library\Adafruit_MQTT.cpp.o .\libraries\Adafruit_MQTT_Library\Adafruit_MQTT_Client.cpp.o  .\libraries\Adafruit_ILI9341\Adafruit_ILI9341.cpp.o  .\libraries\Adafruit_GFX_Library\Adafruit_GFX.cpp.o .\libraries\Adafruit_GFX_Library\glcdfont.c.o  .\TFT_eSPI\Fonts\Font16.c.o .\TFT_eSPI\Fonts\Font32rle.c.o .\TFT_eSPI\Fonts\Font64rle.c.o .\TFT_eSPI\Fonts\Font72rle.c.o .\TFT_eSPI\Fonts\Font7srle.c.o .\TFT_eSPI\Fonts\glcdfont.c.o  .\TFT_eSPI\TFT_eSPI.cpp.o  .\HeatPump\src\HeatPump.cpp.o  .\GUIslice\src\GUIslice.c.o .\GUIslice\src\GUIslice_drv_adagfx.cpp.o .\GUIslice\src\GUIslice_drv_sdl.c.o .\GUIslice\src\GUIslice_drv_tft_espi.cpp.o .\GUIslice\src\GUIslice_ex.c.o   "C:\Users\tnewsome\Synced\projects\thermostat\eclipse-workspace\head-v1/V1/arduino.ar" -lm -lgcc -lhal -lphy -lpp -lnet80211 -lwpa -lcrypto -lmain -lwps -laxtls -lsmartconfig -lmesh -lwpa2 -llwip_gcc -lstdc++ -Wl,--end-group "-LC:\Users\tnewsome\Synced\projects\thermostat\eclipse-workspace\head-v1/V1" C:/Users/tnewsome/Synced/projects/thermostat/eclipse-workspace/head-v1/V1/arduino.ar
c:/sloeber/arduinoplugin/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: cannot open linker script file -Wl,--gc-sections: No such file or directory
collect2.exe: error: ld returned 1 exit status
makefile:126: recipe for target 'head-v1.elf' failed
make: *** [head-v1.elf] Error 1

Grepping around in .settings/org.eclipse.cdt.core.prefs finds mentions of -T${A.BUILD.FLASH_LD} which makes me think that that variable should be set but isn't. I tried adding it to the C/C++ Build Environment but that didn't help. I'm a bit stumped because I'm not familiar with how Eclipse manages projects and handles compilation.

@jantje
Copy link
Member

jantje commented Oct 31, 2017

Please provide all information to reproduce.

@rtwfroody
Copy link
Author

I don't know what all you need. Attached is a workspace containing just the project that doesn't build, as well as the full compile log (or at least what the console showed when it had failed).
workspace.zip
compile_log.txt

@rtwfroody
Copy link
Author

Note that this workspace is the way it is after attempting to build with the nightly. If I subsequently try to build with 4.1, it fails in the same way. So:

Starting with:
workspace-good.zip

  1. Build with 4.1: works
  2. Build with nightly: fails. The workspace now looks like workspace.zip from the previous comment.
  3. Build with 4.1: now also fails

@rtwfroody
Copy link
Author

Actually it's even worse than that. In step 2 above there's no need to build. Just opening the workspace with the nightly screws up the project to the point where it can no longer be built with either the nightly or with 4.1.

@jantje
Copy link
Member

jantje commented Nov 8, 2017

I havn't had time to take a look yet. But steps to reproduce should start from "any workspace" not "this workspace"

@wimjongman
Copy link
Member

Can this be closed?

@rtwfroody
Copy link
Author

Fine by me. I've stopped using Sloeber, largely because of this issue. I couldn't confirm that it's fixed even if you did fix it.

@wimjongman
Copy link
Member

Thanks for the uplifting comment.

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