FYI, on Linux "./tests/runner.py test_freetype" works fine for me, but on 
OSX 10.12 beta4 I'm getting an error which seems to have to do with 
creating temporary files under /var:

Here's the culprit:

    assert os.path.exists(output_filename), 'emcc could not create output 
file: ' + output_filename
AssertionError: emcc could not create output file: 
/var/folders/_v/kn9t9hrj3kb7kjxckv3zh3hm0000gn/T/emscripten_test_default_xjSDoU/src.cpp.o.js

The file path exists down to the 'T' directory, but the 
emscripten_test_default_xjSDoU directory under T is missing, I guess there 
are some subtle differences between python's tmpfile behaviour on Linux and 
OSX.

The full output:

➜  incoming (incoming) tests/runner.py test_freetype
WARNING:root:use EM_ALL_ENGINES=1 in the env to run against all JS engines, 
which is slower but provides more coverage
Test suites:
['test_core']
Running test_core: (1 tests)
test_freetype (test_core.default) ... (checking sanity from test runner)
INFO:root:(Emscripten: Running sanity checks)
outlining: 0
<building and saving freetype_97f0209d6ac182738168327c99d0f9fd into cache>
Traceback (most recent call last):
  File 
"/Users/floh/projects/fips-sdks/osx/emsdk_portable/emscripten/incoming/emcc", 
line 13, in <module>
    emcc.run()
  File 
"/Users/floh/projects/fips-sdks/osx/emsdk_portable/emscripten/incoming/emcc.py",
 
line 1792, in run
    JSOptimizer.flush()
  File 
"/Users/floh/projects/fips-sdks/osx/emsdk_portable/emscripten/incoming/emcc.py",
 
line 1689, in flush
    run_passes(chunks[0], title, just_split=False, just_concat=False)
  File 
"/Users/floh/projects/fips-sdks/osx/emsdk_portable/emscripten/incoming/emcc.py",
 
line 1662, in run_passes
    final = shared.Building.js_optimizer(final, passes, debug_level >= 4, 
JSOptimizer.extra_info, just_split=just_split, just_concat=just_concat)
  File 
"/Users/floh/projects/fips-sdks/osx/emsdk_portable/emscripten/incoming/tools/shared.py",
 
line 1754, in js_optimizer
    ret = js_optimizer.run(filename, passes, NODE_JS, debug, extra_info, 
just_split, just_concat)
  File 
"/Users/floh/projects/fips-sdks/osx/emsdk_portable/emscripten/incoming/tools/js_optimizer.py",
 
line 550, in run
    return temp_files.run_and_clean(lambda: run_on_js(filename, passes, 
js_engine, source_map, extra_info, just_split, just_concat))
  File 
"/Users/floh/projects/fips-sdks/osx/emsdk_portable/emscripten/incoming/tools/tempfiles.py",
 
line 64, in run_and_clean
    return func()
  File 
"/Users/floh/projects/fips-sdks/osx/emsdk_portable/emscripten/incoming/tools/js_optimizer.py",
 
line 550, in <lambda>
    return temp_files.run_and_clean(lambda: run_on_js(filename, passes, 
js_engine, source_map, extra_info, just_split, just_concat))
  File 
"/Users/floh/projects/fips-sdks/osx/emsdk_portable/emscripten/incoming/tools/js_optimizer.py",
 
line 446, in run_on_js
    filenames = pool.map(run_on_chunk, commands, chunksize=1)
  File 
"/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/multiprocessing/pool.py",
 
line 251, in map
    return self.map_async(func, iterable, chunksize).get()
  File 
"/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/multiprocessing/pool.py",
 
line 567, in get
    raise self._value
OSError: [Errno 2] No such file or directory
FAIL

======================================================================
FAIL: test_freetype (test_core.default)
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/Users/floh/projects/fips-sdks/osx/emsdk_portable/emscripten/incoming/tests/test_core.py",
 
line 26, in decorated
    return func(self)
  File 
"/Users/floh/projects/fips-sdks/osx/emsdk_portable/emscripten/incoming/tests/test_core.py",
 
line 6267, in test_freetype
    post_build=post)
  File 
"/Users/floh/projects/fips-sdks/osx/emsdk_portable/emscripten/incoming/tests/runner.py",
 
line 617, in do_run
    build_ll_hook=build_ll_hook, 
extra_emscripten_args=extra_emscripten_args, post_build=post_build)
  File 
"/Users/floh/projects/fips-sdks/osx/emsdk_portable/emscripten/incoming/tests/runner.py",
 
line 331, in build
    self.ll_to_js(filename, extra_emscripten_args, post_build)
  File 
"/Users/floh/projects/fips-sdks/osx/emsdk_portable/emscripten/incoming/tests/runner.py",
 
line 270, in ll_to_js
    Building.emcc(filename + '.o', Settings.serialize() + emcc_args + 
transform_args + Building.COMPILER_TEST_OPTS, filename + '.o.js')
  File 
"/Users/floh/projects/fips-sdks/osx/emsdk_portable/emscripten/incoming/tools/shared.py",
 
line 1668, in emcc
    assert os.path.exists(output_filename), 'emcc could not create output 
file: ' + output_filename
AssertionError: emcc could not create output file: 
/var/folders/_v/kn9t9hrj3kb7kjxckv3zh3hm0000gn/T/emscripten_test_default_xjSDoU/src.cpp.o.js

----------------------------------------------------------------------
Ran 1 test in 30.090s

FAILED (failures=1)

Am Donnerstag, 4. August 2016 18:46:07 UTC+2 schrieb Alon Zakai:
>
> Not sure what's going wrong, but that code should build properly from the 
> test suite, so you might look through the python code there to see what it 
> does, test_freetype in tests/test_core.py. You can also verify it works by 
> running ./tests/runner.py test_freetype
>
> On Thu, Aug 4, 2016 at 1:51 AM, 李永 <[email protected] <javascript:>> 
> wrote:
>
>> under mac osx 11
>>
>> in tests/freetype directory
>>
>> emconfigure ./configure
>>
>> error
>> ./ftconfig.in:152:10: fatal error: 'AvailabilityMacros.h' file not found
>> #include "AvailabilityMacros.h"
>>          ^
>> 1 error generated.
>>
>> then emmake make
>> no .bc, .a or .so file generated
>>
>>
>> thanks
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "emscripten-discuss" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to