Broadway icon indicating copy to clipboard operation
Broadway copied to clipboard

Unknown file type when running make.py

Open rbrt opened this issue 5 years ago • 3 comments

I am currently on the latest version of emsdk (2.0.1) and after upgrading make.py to work correctly with python3, I encounter the following error after building all of the object files and attempting to link:

error: unknown file type: obj\h264bsd_transform.o

I had previously encountered this error when running emsdk 1.35.xx and hoped that upgrading would resolve the issue. Any insights here would be appreciated!

rbrt avatar Aug 26 '20 15:08 rbrt

i dont think i experienced that with 1.35.x are you sure you have to use python3? did the error also occur with the original make.py?

soliton4 avatar Aug 26 '20 15:08 soliton4

2.0.0 onward requires python3 (it will fail with a message stating as much), but with the earlier emsdk version and an unmodified make.py, I had encountered the same error. Perhaps it's an environment issue?

There are some warnings thrown when building the objects, but I haven't yet looked into the flags suggested by the warnings. The warnings are thrown for each object, and are as follows:

emcc h264bsd_transform.c -> h264bsd_transform.o emcc:WARNING: --llvm-lto ignored when using llvm backend emcc: warning: assuming object file output, based on output filename alone. Add an explict -c, -ror-shared to avoid this warning [-Wemcc]

rbrt avatar Aug 26 '20 15:08 rbrt

i will have to give it a try myself. will let you know how it goes

soliton4 avatar Aug 26 '20 16:08 soliton4