Skip to content

Cannot build example/js/helloregexp/main.js for esp #119

Description

@horihiro

I got following error when building %MODDABLE%/example/js/helloregexp/main.js for esp (not esp32) on Windows.

moddable\examples\js\helloregexp>mcconfig -d -m -p esp
# xsc time.xsb
# xsc timer.xsb
# xsc Resource.xsb
# xsc instrumentation.xsb
# xsc main.xsb
# xsc mc\config.xsb
# xsid modTime.c.xsi
# xsid modTimer.c.xsi
# xsid timer.c.xsi
# xsid Resource.c.xsi
# xsid modInstrumentation.c.xsi
# xsid modTimer.h.xsi
# xsid modInstrumentation.h.xsi
# xsl modules
# mcrez resources
Total resource size: 0 bytes
# cc modTime.c.o (strings in flash)
# cc modTimer.c.o (strings in flash)
# cc timer.c.o
# cc Resource.c.o (strings in flash)
# cc modInstrumentation.c.o (strings in flash)
# cc xsHost.o
# cc xsPlatform.o
# cc main.o
# archive C:\Users\horihiro\Projects\moddable\build\bin\esp\debug\helloregexp\libxsar.a
# ld main.bin
C:\Users\horihiro\Projects\moddable\build\tmp\esp\debug\lib/libxslib.a(xsRegExp.o):(.text.fxInitializeRegExp+0x4): undefined reference to `fxCompileRegExp'
C:\Users\horihiro\Projects\moddable\build\tmp\esp\debug\lib/libxslib.a(xsRegExp.o): In function `fxInitializeRegExp':
C:\Users\horihiro\Projects\moddable\xs\sources/xsRegExp.c:75: undefined reference to `fxCompileRegExp'
C:\Users\horihiro\Projects\moddable\build\tmp\esp\debug\lib/libxslib.a(xsRegExp.o): In function `fxExecuteRegExp':
C:\Users\horihiro\Projects\moddable\xs\sources/xsRegExp.c:75: undefined reference to `fxMatchRegExp'
C:\Users\horihiro\Projects\moddable\build\tmp\esp\debug\lib/libxslib.a(xsRegExp.o): In function `fx_RegExp_prototype_exec':
C:\Users\horihiro\Projects\moddable\xs\sources/xsRegExp.c:75: undefined reference to `fxMatchRegExp'
collect2: error: ld returned 1 exit status
NMAKE : fatal error U1077: 'C:\Users\horihiro\esp\xtensa-lx106-elf\bin\xtensa-lx106-elf-g++.EXE' : リターン コード '0x1'
Stop.

Could you please help me to build esp app which uses RegExp on Windows?

It seems a code including regexp can't be built for esp on windows ...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions