-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Open
Description
I'm working on an updated freetype port to update it to upstream's 2.12.1 and it doesn't seem to be able to compile with either emcmake, emmake, or by updating the file list in the ports file.
For emmake, it's failing because of a permission denied error on execvp. This consistently fails with and without running autogen.sh. It also consistently fails when running emconfigure ./configure, followed by emmake make.
Is this a missing function in emmake?
Please include the following in your bug report:
Version of emscripten/emsdk:
3.1.8
Failing command line in full:
$ sh autogen.sh
FreeType 2.12.1:
generating `configure.ac'
running `aclocal -I . --force'
running `libtoolize --force --copy --install'
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./config.guess'
libtoolize: copying file `./config.sub'
libtoolize: copying file `./install-sh'
libtoolize: copying file `./ltmain.sh'
libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and
libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
running `autoconf --force'
$ emmake make
make: make
FreeType build system -- automatic system detection
The following settings are used:
platform unix
compiler /local/emsdk/upstream/emscripten/emcc
configuration directory ./builds/unix
configuration rules ./builds/unix/unix.mk
If this does not correspond to your system or settings please remove the file
`config.mk' from this directory then read the INSTALL file for help.
Otherwise, simply type `make' again to build the library,
or `make refdoc' to build the API reference (this needs Python >= 3.5).
Generating modules list in ./objs/ftmodule.h...
done.
* module: truetype (Windows/Mac font files with extension *.ttf or *.ttc)
* module: type1 (Postscript font files with extension *.pfa or *.pfb)
* module: cff (OpenType fonts with extension *.otf)
* module: cid (Postscript CID-keyed fonts, no known extension)
* module: pfr (PFR/TrueDoc font files with extension *.pfr)
* module: type42 (Type 42 font files with no known extension)
* module: winfnt (Windows bitmap fonts with extension *.fnt or *.fon)
* module: pcf (pcf bitmap fonts)
* module: bdf (bdf bitmap fonts)
* module: sfnt (helper module for TrueType & OpenType formats)
* module: autofit (automatic hinting module)
* module: pshinter (Postscript hinter module)
* module: smooth (anti-aliased bitmap renderer)
* module: raster (monochrome bitmap renderer)
* module: ot-svg (OT-SVG glyph renderer module)
* module: sdf (signed distance field renderer)
* module: bsdf (bitmap to signed distance field converter)
* module: psaux (Postscript Type 1 & Type 2 helper module)
* module: psnames (Postscript & Unicode Glyph name handling)
cd builds/unix; \
./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for gcc... /local/emsdk/upstream/emscripten/emcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /local/emsdk/upstream/emscripten/emcc accepts -g... yes
checking for /local/emsdk/upstream/emscripten/emcc option to accept ISO C89... none needed
checking how to run the C preprocessor... /local/emsdk/upstream/emscripten/emcc -E
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.24... yes
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by /local/emsdk/upstream/emscripten/emcc... /local/emsdk/upstream/emscripten/emcc
checking if the linker (/local/emsdk/upstream/emscripten/emcc) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /local/emsdk/upstream/bin/llvm-nm
checking the name lister (/local/emsdk/upstream/bin/llvm-nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /local/emsdk/upstream/emscripten/emcc option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... /local/emsdk/upstream/emscripten/emranlib
checking for gawk... gawk
checking command to parse /local/emsdk/upstream/bin/llvm-nm output from /local/emsdk/upstream/emscripten/emcc object... ok
checking for sysroot... no
checking for mt... no
checking if : is a manifest tool... no
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if /local/emsdk/upstream/emscripten/emcc supports -fno-rtti -fno-exceptions... yes
checking for /local/emsdk/upstream/emscripten/emcc option to produce PIC... -fPIC -DPIC
checking if /local/emsdk/upstream/emscripten/emcc PIC flag -fPIC -DPIC works... yes
checking if /local/emsdk/upstream/emscripten/emcc static flag -static works... yes
checking if /local/emsdk/upstream/emscripten/emcc supports -c -o file.o... yes
checking if /local/emsdk/upstream/emscripten/emcc supports -c -o file.o... (cached) yes
checking whether the /local/emsdk/upstream/emscripten/emcc linker (/local/emsdk/upstream/emscripten/emcc) supports shared libraries... yes
checking whether -lc should be explicitly linked in... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking windows.h usability... no
checking windows.h presence... no
checking for windows.h... no
checking for a BSD-compatible install... /usr/bin/install -c
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/param.h... yes
checking for getpagesize... yes
checking for working mmap... no
checking for memcpy... yes
checking for memmove... yes
checking /local/emsdk/upstream/emscripten/emcc compiler flag -pedantic to assure ANSI C99 works correctly... ok, adding to XX_ANSIFLAGS
checking /local/emsdk/upstream/emscripten/emcc compiler flag -std=c99 to assure ANSI C99 works correctly... ok, adding to XX_ANSIFLAGS
checking for -fvisibility=hidden compiler flag... yes
checking for ZLIB... no
checking for gzsetparams in -lz... no
checking for BZIP2... no
checking for BZ2_bzDecompress in -lbz2... no
checking for LIBPNG... no
checking for libpng-config... no
checking for HARFBUZZ... no
checking for BROTLI... no
checking for library containing clock_gettime... none required
checking for LIBRSVG... no
checking target system type... x86_64-unknown-linux-gnu
checking whether /local/emsdk/upstream/emscripten/emcc is Clang... yes
checking whether pthreads work with "-pthread" and "-lpthread"... yes
checking whether Clang needs flag to prevent "argument unused" warning when linking with -pthread... unknown
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking whether more special flags are required for pthreads... no
checking for PTHREAD_PRIO_INHERIT... yes
checking for python3... python3
checking for python version... 3.7.10
checking for `docwriter' Python module... no
configure: creating ./config.status
config.status: creating ftoption.h
config.status: creating unix-cc.mk
config.status: creating unix-def.mk
config.status: creating ftconfig.h
config.status: executing libtool commands
configure:
Library configuration:
external zlib: no
bzip2: no
libpng: no
harfbuzz: no
brotli: no
pthread: yes
configure: WARNING:
`make refdoc' will fail since pip package `docwriter' is not installed.
To install, run `python3 -m pip install docwriter', or to use a Python
virtual environment, run `make refdoc-venv' (requires pip package
`virtualenv'). These operations require Python >= 3.5.
$ emmake make
make: make
./builds/unix/libtool --mode=compile /local/emsdk/upstream/emscripten/emcc -pedantic -std=c99 -I/home/jason/freetype-2.12.1/objs -I./builds/unix -I/home/jason/freetype-2.12.1/include -c -Wall -g -O2 -fvisibility=hidden -pthread -DFT_CONFIG_CONFIG_H="<ftconfig.h>" -DFT_CONFIG_MODULES_H="<ftmodule.h>" -DFT_CONFIG_OPTIONS_H="<ftoption.h>" -DFT2_BUILD_LIBRARY -o /home/jason/freetype-2.12.1/objs/ftsystem.lo /home/jason/freetype-2.12.1/src/base/ftsystem.c
libtool: compile: /local/emsdk/upstream/emscripten/emcc -pedantic -std=c99 -I/home/jason/freetype-2.12.1/objs -I./builds/unix -I/home/jason/freetype-2.12.1/include -c -Wall -g -O2 -fvisibility=hidden -pthread "-DFT_CONFIG_CONFIG_H=<ftconfig.h>" "-DFT_CONFIG_MODULES_H=<ftmodule.h>" "-DFT_CONFIG_OPTIONS_H=<ftoption.h>" -DFT2_BUILD_LIBRARY /home/jason/freetype-2.12.1/src/base/ftsystem.c -fPIC -DPIC -o /home/jason/freetype-2.12.1/objs/.libs/ftsystem.o
libtool: compile: /local/emsdk/upstream/emscripten/emcc -pedantic -std=c99 -I/home/jason/freetype-2.12.1/objs -I./builds/unix -I/home/jason/freetype-2.12.1/include -c -Wall -g -O2 -fvisibility=hidden -pthread "-DFT_CONFIG_CONFIG_H=<ftconfig.h>" "-DFT_CONFIG_MODULES_H=<ftmodule.h>" "-DFT_CONFIG_OPTIONS_H=<ftoption.h>" -DFT2_BUILD_LIBRARY /home/jason/freetype-2.12.1/src/base/ftsystem.c -o /home/jason/freetype-2.12.1/objs/ftsystem.o >/dev/null 2>&1
<trim a bunch of other files>
/local/emsdk/upstream/emscripten/emcc -o /home/jason/freetype-2.12.1/objs/apinames /home/jason/freetype-2.12.1/src/tools/apinames.c
/home/jason/freetype-2.12.1/objs/apinames -o/home/jason/freetype-2.12.1/objs/ftexport.sym /home/jason/freetype-2.12.1/include/freetype/tttables.h /home/jason/freetype-2.12.1/include/freetype/ftcid.h /home/jason/freetype-2.12.1/include/freetype/ftstroke.h /home/jason/freetype-2.12.1/include/freetype/t1tables.h /home/jason/freetype-2.12.1/include/freetype/fterrors.h /home/jason/freetype-2.12.1/include/freetype/ftparams.h /home/jason/freetype-2.12.1/include/freetype/ftdriver.h /home/jason/freetype-2.12.1/include/freetype/ftbitmap.h /home/jason/freetype-2.12.1/include/freetype/ftmodapi.h /home/jason/freetype-2.12.1/include/freetype/ftsystem.h /home/jason/freetype-2.12.1/include/freetype/ftfntfmt.h /home/jason/freetype-2.12.1/include/freetype/ftsynth.h /home/jason/freetype-2.12.1/include/freetype/ftlcdfil.h /home/jason/freetype-2.12.1/include/freetype/ftpfr.h /home/jason/freetype-2.12.1/include/freetype/ftsizes.h /home/jason/freetype-2.12.1/include/freetype/ftlogging.h /home/jason/freetype-2.12.1/include/freetype/ftrender.h /home/jason/freetype-2.12.1/include/freetype/ftlzw.h /home/jason/freetype-2.12.1/include/freetype/ftoutln.h /home/jason/freetype-2.12.1/include/freetype/ftglyph.h /home/jason/freetype-2.12.1/include/freetype/ftlist.h /home/jason/freetype-2.12.1/include/freetype/ftincrem.h /home/jason/freetype-2.12.1/include/freetype/ftchapters.h /home/jason/freetype-2.12.1/include/freetype/ftbdf.h /home/jason/freetype-2.12.1/include/freetype/ftcache.h /home/jason/freetype-2.12.1/include/freetype/ttnameid.h /home/jason/freetype-2.12.1/include/freetype/ftgzip.h /home/jason/freetype-2.12.1/include/freetype/ftbzip2.h /home/jason/freetype-2.12.1/include/freetype/fttypes.h /home/jason/freetype-2.12.1/include/freetype/ftwinfnt.h /home/jason/freetype-2.12.1/include/freetype/freetype.h /home/jason/freetype-2.12.1/include/freetype/ftcolor.h /home/jason/freetype-2.12.1/include/freetype/ftbbox.h /home/jason/freetype-2.12.1/include/freetype/ftmm.h /home/jason/freetype-2.12.1/include/freetype/ftadvanc.h /home/jason/freetype-2.12.1/include/freetype/ftmoderr.h /home/jason/freetype-2.12.1/include/freetype/ftgasp.h /home/jason/freetype-2.12.1/include/freetype/ftgxval.h /home/jason/freetype-2.12.1/include/freetype/ftsnames.h /home/jason/freetype-2.12.1/include/freetype/tttags.h /home/jason/freetype-2.12.1/include/freetype/ftotval.h /home/jason/freetype-2.12.1/include/freetype/otsvg.h /home/jason/freetype-2.12.1/include/freetype/fterrdef.h /home/jason/freetype-2.12.1/include/freetype/fttrigon.h /home/jason/freetype-2.12.1/include/freetype/ftimage.h
make: execvp: /home/jason/freetype-2.12.1/objs/apinames: Permission denied
make: *** [/home/jason/freetype-2.12.1/objs/ftexport.sym] Error 127
emmake: error: 'make' failed (returned 2)\
Metadata
Metadata
Assignees
Labels
No labels