Skip to content

Worker example fails with "fatal error: 'malloc.h' file not found" #49

@rwaldron

Description

@rwaldron

On macOS 10.13.4, with Xcode 9.3

rwaldron in ~/clonez/moddable/examples/base/worker on public
$ mcconfig -d -m -p mac
# cc xsAPI.c
# cc xsAll.c
# cc mac_xs.c
# cc xsArray.c
# cc xsAtomics.c
# cc xsBoolean.c
# cc xsCommon.c
# cc xsDataView.c
# cc xsDate.c
# cc xsDebug.c
# cc xsError.c
# cc xsFunction.c
# cc xsGenerator.c
# cc xsGlobal.c
# cc xsJSON.c
# cc xsMapSet.c
# cc xsMarshall.c
# cc xsMath.c
# cc xsMemory.c
# cc xsModule.c
# cc xsNumber.c
# cc xsObject.c
# cc xsPlatforms.c
# cc xsProfile.c
# cc xsPromise.c
# cc xsProperty.c
# cc xsProxy.c
# cc xsRegExp.c
# cc xsRun.c
# cc xsString.c
# cc xsSymbol.c
# cc xsType.c
# cc xsdtoa.c
# cc xsmc.c
# cc xsre.c
# xsc Resource.xsb
# xsc instrumentation.xsb
# xsc screen.xsb
# xsc time.xsb
# xsc timer.xsb
# xsc main.xsb
# xsc simpleworker.xsb
# xsc worker.xsb
# xsc mc/config.xsb
# xsid Resource.c.xsi
# xsid modInstrumentation.c.xsi
# xsid screen.c.xsi
# xsid modTime.c.xsi
# xsid modTimer.c.xsi
# xsid timer.c.xsi
# xsid modWorker.c.xsi
# xsid modInstrumentation.h.xsi
# xsid screen.h.xsi
# xsid modTimer.h.xsi
# mcrez resources
# xsl modules
# cc mc.resources.c
# cc mc.xs.c
# cc Resource.c.o
# cc modInstrumentation.c.o
# cc screen.c.o
# cc modTime.c.o
# cc modTimer.c.o
# cc timer.c.o
# cc modWorker.c.o
In file included from /Users/rwaldron/clonez/moddable/modules/base/worker/modWorker.c:24:
/Users/rwaldron/clonez/moddable/xs/includes/xsesp.h:31:10: fatal error: 'malloc.h' file
      not found
#include "malloc.h"
         ^~~~~~~~~~
1 error generated.
make: *** [/Users/rwaldron/clonez/moddable/build/tmp/mac/debug/mc/worker/modWorker.c.o] Error 1
make: *** Waiting for unfinished jobs....

My local clone is at the current HEAD on public: c1b4efd

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