{"action":"opened","issue":{"url":"https://api.github.com/repos/elua/elua/issues/119","repository_url":"https://api.github.com/repos/elua/elua","labels_url":"https://api.github.com/repos/elua/elua/issues/119/labels{/name}","comments_url":"https://api.github.com/repos/elua/elua/issues/119/comments","events_url":"https://api.github.com/repos/elua/elua/issues/119/events","html_url":"https://github.com/elua/elua/issues/119","id":283305166,"number":119,"title":"src/fatfs/ff.c: error: conflicting types for 'sync'","user":{"login":"drauschenbach","id":1109387,"avatar_url":"https://avatars2.githubusercontent.com/u/1109387?v=4","gravatar_id":"","url":"https://api.github.com/users/drauschenbach","html_url":"https://github.com/drauschenbach","followers_url":"https://api.github.com/users/drauschenbach/followers","following_url":"https://api.github.com/users/drauschenbach/following{/other_user}","gists_url":"https://api.github.com/users/drauschenbach/gists{/gist_id}","starred_url":"https://api.github.com/users/drauschenbach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drauschenbach/subscriptions","organizations_url":"https://api.github.com/users/drauschenbach/orgs","repos_url":"https://api.github.com/users/drauschenbach/repos","events_url":"https://api.github.com/users/drauschenbach/events{/privacy}","received_events_url":"https://api.github.com/users/drauschenbach/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-12-19T17:09:19Z","updated_at":"2017-12-19T17:09:19Z","closed_at":null,"author_association":"NONE","body":"Does anyone have a Dockerfile for a reference Linux build env? I'm struggling to achieve a build.\r\n\r\nUsing:\r\n\r\n```docker\r\nFROM ubuntu:16.04\r\n\r\n# ============================================================\r\n# Install package prerequisites\r\n# ============================================================\r\nRUN apt-get -y update && apt-get -y install software-properties-common\r\nRUN add-apt-repository ppa:team-gcc-arm-embedded/ppa\r\nRUN apt-get -y update && apt-get -y install \\\r\n  build-essential \\\r\n  gcc-arm-embedded \\\r\n  git \\\r\n  libreadline-dev \\\r\n  ncurses-dev \\\r\n  wget \\\r\n  unzip\r\n\r\n# Lua 5.1\r\nRUN wget -q http://www.lua.org/ftp/lua-5.1.4.tar.gz \\\r\n  && tar zxvf lua-5.1.4.tar.gz \\\r\n  && cd lua-5.1.4 \\\r\n  && make linux \\\r\n  && make install\r\n\r\n# LuaRocks\r\nARG LUAROCKS_VERSION=2.3.0\r\nRUN wget -q http://luarocks.github.io/luarocks/releases/luarocks-$LUAROCKS_VERSION.tar.gz \\     \r\n  && tar zxvf luarocks-$LUAROCKS_VERSION.tar.gz \\\r\n  && cd luarocks-$LUAROCKS_VERSION \\\r\n  && ./configure \\\r\n  && make \\\r\n  && make install\r\n\r\n# eLua build script dependencies\r\nRUN luarocks install luafilesystem \\\r\n  && luarocks install lpack \\\r\n  && luarocks install md5\r\n\r\n# ============================================================\r\n# Download eLua sources, and checkout a stable tag\r\n# ============================================================\r\nRUN git clone https://github.com/elua/elua.git /elua\r\nWORKDIR /elua\r\nARG ELUA_GIT_VERSION=2e6a3af\r\nRUN git checkout $ELUA_GIT_VERSION\r\n\r\n# ============================================================\r\n# Build eLua\r\n# ============================================================\r\nARG BOARD=STM3210E-EVAL\r\nRUN lua build_elua.lua board=$BOARD\r\n```\r\n\r\nWhen run:\r\n\r\n```sh\r\n$ docker build -t elua .\r\nStep 14/15 : ARG BOARD=STM3210E-EVAL\r\n ---> Running in 102b03003924\r\n ---> 81c8a95ad2ef\r\nRemoving intermediate container 102b03003924\r\nStep 15/15 : RUN lua build_elua.lua board=$BOARD\r\n ---> Running in cd5a0750e0e3\r\n[CONFIG] Found board description file at boards/known/stm3210e-eval.lua\r\n[CONFIG] Generated board header file at boards/headers/board_stm3210e-eval.h\r\nIn file included from src/modules/luarpc.c:43:0:\r\ninc/luarpc_rpc.h:4:2: warning: #warning Not sure which of the two serial.h this should include [-Wcpp]\r\n #warning Not sure which of the two serial.h this should include\r\n  ^~~~~~~\r\nIn file included from src/luarpc_elua_uart.c:6:0:\r\ninc/luarpc_rpc.h:4:2: warning: #warning Not sure which of the two serial.h this should include [-Wcpp]\r\n #warning Not sure which of the two serial.h this should include\r\n  ^~~~~~~\r\nsrc/fatfs/ff.c:288:9: error: conflicting types for 'sync'\r\n FRESULT sync ( /* FR_OK: successful, FR_DISK_ERR: failed */\r\n         ^~~~\r\nIn file included from /usr/arm-none-eabi/include/sys/reent.h:13:0,\r\n                 from /usr/arm-none-eabi/include/reent.h:93,\r\n                 from inc/newlib/devman.h:7,\r\n                 from src/fatfs/ffconf.h:14,\r\n                 from src/fatfs/ff.h:20,\r\n                 from src/fatfs/ff.c:79:\r\n/usr/arm-none-eabi/include/sys/unistd.h:289:9: note: previous declaration of 'sync' was here\r\n void    _EXFUN(sync, (void));\r\n         ^\r\n\r\n*********************************\r\nCompiling eLua ...\r\nCPU:            \tSTM32F103ZE\r\nBoard:          \tstm3210e-eval\r\nPlatform:       \tstm32\r\nAllocator:      \tnewlib\r\nBoot Mode:      \tstandard\r\nTarget:         \tlua\r\nToolchain:      \tcodesourcery\r\nROMFS mode:     \tverbatim\r\nVersion:        \tv0.9-349-g2e6a3af\r\n*********************************\r\n\r\n[PHONY] #phony:romfs\r\nBuilding ROM file system ...\r\nDone, total size is 1 bytes\r\n[COMPILE] .build/stm3210e-eval/src__semifs.o\r\n[COMPILE] .build/stm3210e-eval/src__common.o\r\n[COMPILE] .build/stm3210e-eval/src__modules__uart.o\r\n[COMPILE] .build/stm3210e-eval/src__modules__net.o\r\n[COMPILE] .build/stm3210e-eval/src__modules__bit.o\r\n[COMPILE] .build/stm3210e-eval/src__modules__pwm.o\r\n[COMPILE] .build/stm3210e-eval/src__modules__pd.o\r\n[COMPILE] .build/stm3210e-eval/src__modules__can.o\r\n[COMPILE] .build/stm3210e-eval/src__modules__bitarray.o\r\n[COMPILE] .build/stm3210e-eval/src__modules__adc.o\r\n[COMPILE] .build/stm3210e-eval/src__modules__luarpc.o\r\n[COMPILE] .build/stm3210e-eval/src__modules__elua.o\r\n[COMPILE] .build/stm3210e-eval/src__modules__pio.o\r\n[COMPILE] .build/stm3210e-eval/src__modules__lpack.o\r\n[COMPILE] .build/stm3210e-eval/src__modules__cpu.o\r\n[COMPILE] .build/stm3210e-eval/src__modules__tmr.o\r\n[COMPILE] .build/stm3210e-eval/src__modules__term.o\r\n[COMPILE] .build/stm3210e-eval/src__modules__i2c.o\r\n[COMPILE] .build/stm3210e-eval/src__modules__spi.o\r\n[COMPILE] .build/stm3210e-eval/src__elua_mmc.o\r\n[COMPILE] .build/stm3210e-eval/src__buf.o\r\n[COMPILE] .build/stm3210e-eval/src__luarpc_elua_uart.o\r\n[COMPILE] .build/stm3210e-eval/src__romfs.o\r\n[COMPILE] .build/stm3210e-eval/src__common_fs.o\r\n[COMPILE] .build/stm3210e-eval/src__common_uart.o\r\n[COMPILE] .build/stm3210e-eval/src__main.o\r\n[COMPILE] .build/stm3210e-eval/src__elua_uip.o\r\n[COMPILE] .build/stm3210e-eval/src__common_tmr.o\r\n[COMPILE] .build/stm3210e-eval/src__eluarpc.o\r\n[COMPILE] .build/stm3210e-eval/src__dlmalloc.o\r\n[COMPILE] .build/stm3210e-eval/src__elua_mmc_sim.o\r\n[COMPILE] .build/stm3210e-eval/src__xmodem.o\r\n[COMPILE] .build/stm3210e-eval/src__shell__shell_adv_rm.o\r\n[COMPILE] .build/stm3210e-eval/src__shell__shell_ls.o\r\n[COMPILE] .build/stm3210e-eval/src__shell__shell_mkdir.o\r\n[COMPILE] .build/stm3210e-eval/src__shell__shell_adv_cp_mv.o\r\n[COMPILE] .build/stm3210e-eval/src__shell__shell_help.o\r\n[COMPILE] .build/stm3210e-eval/src__shell__shell_ver.o\r\n[COMPILE] .build/stm3210e-eval/src__shell__shell_lua.o\r\n[COMPILE] .build/stm3210e-eval/src__shell__shell_cat.o\r\n[COMPILE] .build/stm3210e-eval/src__shell__shell_recv.o\r\n[COMPILE] .build/stm3210e-eval/src__shell__shell_wofmt.o\r\n[COMPILE] .build/stm3210e-eval/src__shell__shell.o\r\n[COMPILE] .build/stm3210e-eval/src__elua_adc.o\r\n[COMPILE] .build/stm3210e-eval/src__fatfs__ccsbcs.o\r\n[COMPILE] .build/stm3210e-eval/src__fatfs__ff.o\r\n[builder] Error building target\r\n[builder] Last executed command was: \r\narm-none-eabi-gcc -DELUA_CPU_HEADER=\"\\\"cpu_stm32f103ze.h\\\"\" -DELUA_BOARD_HEADER=\"\\\"board_stm3210e-eval.h\\\"\" -DUSE_GIT_REVISION -DELUA_CPU=STM32F103ZE -DELUA_BOARD=STM3210E-EVAL -DELUA_PLATFORM=STM32 -D__BUFSIZ__=128 -DELUA_CPU_STM32F103ZE -DELUA_BOARD_STM3210EEVAL -DELUA_PLATFORM_STM32 -DLUA_PACK_VALUE -DELUA_ENDIAN_LITTLE -DLUA_OPTIMIZE_MEMORY=2 -DFORSTM32F103ZE -DFORSTM3210EEVAL -Dgcc -DCORTEX_M3 -Iboards/headers -Iinc -Iinc/newlib -Iinc/remotefs -Isrc/platform -Isrc/lua -Isrc/modules -Isrc/platform/stm32 -Isrc/platform/stm32/cpus -Isrc/uip -Isrc/fatfs -Isrc/platform/stm32/FWLib/library/inc -Os -fomit-frame-pointer -ffunction-sections -fdata-sections -fno-strict-aliasing -Wall -mcpu=cortex-m3 -mthumb -mlittle-endian -c -MD -MF .build/stm3210e-eval/src__fatfs__ff.d -o .build/stm3210e-eval/src__fatfs__ff.o src/fatfs/ff.c\r\nThe command '/bin/sh -c lua build_elua.lua board=$BOARD' returned a non-zero code: 1\r\n```"}}
{"actor":{"display_login":"drauschenbach"}}