{"action":"created","issue":{"url":"https://api.github.com/repos/cnlohr/ws2812esp8266/issues/2","labels_url":"https://api.github.com/repos/cnlohr/ws2812esp8266/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/cnlohr/ws2812esp8266/issues/2/comments","events_url":"https://api.github.com/repos/cnlohr/ws2812esp8266/issues/2/events","html_url":"https://github.com/cnlohr/ws2812esp8266/issues/2","id":51422897,"number":2,"title":"Libgcc Error","user":{"login":"rupin","id":460081,"avatar_url":"https://avatars.githubusercontent.com/u/460081?v=3","gravatar_id":"","url":"https://api.github.com/users/rupin","html_url":"https://github.com/rupin","followers_url":"https://api.github.com/users/rupin/followers","following_url":"https://api.github.com/users/rupin/following{/other_user}","gists_url":"https://api.github.com/users/rupin/gists{/gist_id}","starred_url":"https://api.github.com/users/rupin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rupin/subscriptions","organizations_url":"https://api.github.com/users/rupin/orgs","repos_url":"https://api.github.com/users/rupin/repos","events_url":"https://api.github.com/users/rupin/events{/privacy}","received_events_url":"https://api.github.com/users/rupin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2014-12-09T12:42:35Z","updated_at":"2015-02-10T06:25:52Z","closed_at":null,"body":"So after my last issue, I installed the three libraries that were missing, but I came across a different error now.\r\n\r\nHere is what it looks like\r\n\r\n\r\nchecking for xtensa-lx106-elf-gcc...  /home/pi/esp8266/xtensa-toolchain-build/build-lx106/gcc-4.9.1-elf/./gcc/xgcc -B/home/pi/esp8266/xtensa-toolchain-build/build-lx106/gcc-4.9.1-elf/./gcc/ -B/home/pi/esp8266/xtensa-toolchain-build/build-lx106/root/xtensa-lx106-elf/bin/ -B/home/pi/esp8266/xtensa-toolchain-build/build-lx106/root/xtensa-lx106-elf/lib/ -isystem /home/pi/esp8266/xtensa-toolchain-build/build-lx106/root/xtensa-lx106-elf/include -isystem /home/pi/esp8266/xtensa-toolchain-build/build-lx106/root/xtensa-lx106-elf/sys-include\r\nchecking for suffix of object files... configure: error: in `/home/pi/esp8266/xtensa-toolchain-build/build-lx106/gcc-4.9.1-elf/xtensa-lx106-elf/libgcc':\r\nconfigure: error: cannot compute suffix of object files: cannot compile\r\nSee `config.log' for more details.\r\nMakefile:9900: recipe for target 'configure-target-libgcc' failed\r\nmake: *** [configure-target-libgcc] Error 1\r\n\r\n\r\nIs libgcc missing?\r\n"},"comment":{"url":"https://api.github.com/repos/cnlohr/ws2812esp8266/issues/comments/73650854","html_url":"https://github.com/cnlohr/ws2812esp8266/issues/2#issuecomment-73650854","issue_url":"https://api.github.com/repos/cnlohr/ws2812esp8266/issues/2","id":73650854,"user":{"login":"gravikumar","id":10935767,"avatar_url":"https://avatars.githubusercontent.com/u/10935767?v=3","gravatar_id":"","url":"https://api.github.com/users/gravikumar","html_url":"https://github.com/gravikumar","followers_url":"https://api.github.com/users/gravikumar/followers","following_url":"https://api.github.com/users/gravikumar/following{/other_user}","gists_url":"https://api.github.com/users/gravikumar/gists{/gist_id}","starred_url":"https://api.github.com/users/gravikumar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gravikumar/subscriptions","organizations_url":"https://api.github.com/users/gravikumar/orgs","repos_url":"https://api.github.com/users/gravikumar/repos","events_url":"https://api.github.com/users/gravikumar/events{/privacy}","received_events_url":"https://api.github.com/users/gravikumar/received_events","type":"User","site_admin":false},"created_at":"2015-02-10T06:25:52Z","updated_at":"2015-02-10T06:25:52Z","body":"I am using SDK 0.9.3 on ubuntu 14.04, compiling blinky app the compiler says,\r\nCC user/user_main.c\r\nAR build/app_app.a\r\nLD build/app.out\r\n/opt/Espressif/crosstool-NG/builds/xtensa-lx106-elf/lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: read in flex scanner failed\r\ncollect2: error: ld returned 1 exit status\r\nmake: *** [build/app.out] Error 1\r\n\r\nand my Makefile is as below,\r\n# tnx to mamalala\r\n# Changelog\r\n# Changed the variables to include the header file directory\r\n# Added global var for the XTENSA tool root\r\n#\r\n# This make file still needs some work.\r\n#\r\n#\r\n# Output directors to store intermediate compiled files\r\n# relative to the project directory\r\nBUILD_BASE\t= build\r\nFW_BASE\t\t= firmware\r\n\r\n# Base directory for the compiler\r\nXTENSA_TOOLS_ROOT ?= /opt/Espressif/crosstool-NG/builds/xtensa-lx106-elf/bin\r\n\r\n# base directory of the ESP8266 SDK package, absolute\r\nSDK_BASE\t?= /opt/Espressif/ESP8266_SDK\r\n\r\n#Esptool.py path and port\r\nESPTOOL\t\t?= esptool.py\r\nESPPORT\t\t?= /dev/ttyUSB0\r\n\r\n# name for the target project\r\nTARGET\t\t= app\r\n\r\n# which modules (subdirectories) of the project to include in compiling\r\nMODULES\t\t= driver user\r\n#EXTRA_INCDIR    = include /opt/Espressif/include\r\nEXTRA_INCDIR    = include /opt/Espressif/ESP8266_SDK/esp_iot_sdk_v0.9.3/include\r\n\r\n# libraries used in this project, mainly provided by the SDK\r\nLIBS\t\t= c gcc hal pp phy net80211 lwip wpa main\r\n\r\n# compiler flags using during compilation of source files\r\nCFLAGS\t\t= -Os -g -O2 -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals  -D__ets__ -DICACHE_FLASH\r\n\r\n# linker flags used to generate the main object file\r\nLDFLAGS\t\t= -nostdlib -Wl,--no-check-sections -u call_user_start -Wl,-static\r\n\r\n# linker script used for the above linkier step\r\n#LD_SCRIPT\t= eagle.app.v6.ld\r\nLD_SCRIPT\t= eagle.app.v6.app2.ld\r\n\r\n# various paths from the SDK used in this project\r\nSDK_LIBDIR\t= lib\r\nSDK_LDDIR\t= ld /opt/Espressif/ESP8266_SDK/esp_iot_sdk_v0.9.3/ld\r\nSDK_INCDIR\t= include include/json\r\n\r\n# we create two different files for uploading into the flash\r\n# these are the names and options to generate them\r\nFW_FILE_1\t= 0x00000\r\nFW_FILE_1_ARGS\t= -bo $@ -bs .text -bs .data -bs .rodata -bc -ec\r\nFW_FILE_2\t= 0x40000\r\nFW_FILE_2_ARGS\t= -es .irom0.text $@ -ec\r\n\r\n# select which tools to use as compiler, librarian and linker\r\nCC\t\t:= $(XTENSA_TOOLS_ROOT)/xtensa-lx106-elf-gcc\r\nAR\t\t:= $(XTENSA_TOOLS_ROOT)/xtensa-lx106-elf-ar\r\nLD\t\t:= $(XTENSA_TOOLS_ROOT)/xtensa-lx106-elf-gcc\r\n\r\n\r\n\r\n####\r\n#### no user configurable options below here\r\n####\r\nFW_TOOL\t\t?= /usr/bin/esptool\r\nSRC_DIR\t\t:= $(MODULES)\r\nBUILD_DIR\t:= $(addprefix $(BUILD_BASE)/,$(MODULES))\r\n\r\nSDK_LIBDIR\t:= $(addprefix $(SDK_BASE)/,$(SDK_LIBDIR))\r\nSDK_INCDIR\t:= $(addprefix -I$(SDK_BASE)/,$(SDK_INCDIR))\r\n\r\nSRC\t\t:= $(foreach sdir,$(SRC_DIR),$(wildcard $(sdir)/*.c))\r\nOBJ\t\t:= $(patsubst %.c,$(BUILD_BASE)/%.o,$(SRC))\r\nLIBS\t\t:= $(addprefix -l,$(LIBS))\r\nAPP_AR\t\t:= $(addprefix $(BUILD_BASE)/,$(TARGET)_app.a)\r\nTARGET_OUT\t:= $(addprefix $(BUILD_BASE)/,$(TARGET).out)\r\n\r\nLD_SCRIPT\t:= $(addprefix -T$(SDK_BASE)/$(SDK_LDDIR)/,$(LD_SCRIPT))\r\n\r\nINCDIR\t:= $(addprefix -I,$(SRC_DIR))\r\nEXTRA_INCDIR\t:= $(addprefix -I,$(EXTRA_INCDIR))\r\nMODULE_INCDIR\t:= $(addsuffix /include,$(INCDIR))\r\n\r\nFW_FILE_1\t:= $(addprefix $(FW_BASE)/,$(FW_FILE_1).bin)\r\nFW_FILE_2\t:= $(addprefix $(FW_BASE)/,$(FW_FILE_2).bin)\r\n\r\nV ?= $(VERBOSE)\r\nifeq (\"$(V)\",\"1\")\r\nQ :=\r\nvecho := @true\r\nelse\r\nQ := @\r\nvecho := @echo\r\nendif\r\n\r\nvpath %.c $(SRC_DIR)\r\n\r\ndefine compile-objects\r\n$1/%.o: %.c\r\n\t$(vecho) \"CC $$<\"\r\n\t$(Q) $(CC) $(INCDIR) $(MODULE_INCDIR) $(EXTRA_INCDIR) $(SDK_INCDIR) $(CFLAGS)  -c $$< -o $$@\r\nendef\r\n\r\n.PHONY: all checkdirs flash clean\r\n\r\nall: checkdirs $(TARGET_OUT) $(FW_FILE_1) $(FW_FILE_2)\r\n\r\n$(FW_FILE_1): $(TARGET_OUT)\r\n\t$(vecho) \"FW $@\"\r\n\t$(Q) $(FW_TOOL) -eo $(TARGET_OUT) $(FW_FILE_1_ARGS)\r\n\r\n$(FW_FILE_2): $(TARGET_OUT)\r\n\t$(vecho) \"FW $@\"\r\n\t$(Q) $(FW_TOOL) -eo $(TARGET_OUT) $(FW_FILE_2_ARGS)\r\n\r\n$(TARGET_OUT): $(APP_AR)\r\n\t$(vecho) \"LD $@\"\r\n\t$(Q) $(LD) -L$(SDK_LIBDIR) $(LD_SCRIPT) $(LDFLAGS) -Wl,--start-group $(LIBS) $(APP_AR) -Wl,--end-group -o $@\r\n\r\n$(APP_AR): $(OBJ)\r\n\t$(vecho) \"AR $@\"\r\n\t$(Q) $(AR) cru $@ $^\r\n\r\ncheckdirs: $(BUILD_DIR) $(FW_BASE)\r\n\r\n$(BUILD_DIR):\r\n\t$(Q) mkdir -p $@\r\n\r\nfirmware:\r\n\t$(Q) mkdir -p $@\r\n\r\nflash: firmware/0x00000.bin firmware/0x40000.bin\r\n\t-$(ESPTOOL) --port $(ESPPORT) write_flash 0x00000 firmware/0x00000.bin 0x40000 firmware/0x40000.bin\r\n\r\nclean:\r\n\t$(Q) rm -f $(APP_AR)\r\n\t$(Q) rm -f $(TARGET_OUT)\r\n\t$(Q) rm -rf $(BUILD_DIR)\r\n\t$(Q) rm -rf $(BUILD_BASE)\r\n\r\n\r\n\t$(Q) rm -f $(FW_FILE_1)\r\n\t$(Q) rm -f $(FW_FILE_2)\r\n\t$(Q) rm -rf $(FW_BASE)\r\n\r\n$(foreach bdir,$(BUILD_DIR),$(eval $(call compile-objects,$(bdir))))\r\n\r\n\r\nwhat could be the problem?"}}