"inlinable function call" build error with llvm

25 views
Skip to first unread message

Brian Craft

unread,
Jan 22, 2020, 1:08:27 PM1/22/20
to emscripten-discuss
After updating to latest sdk to get the new backend, I'm getting compile failures like this:

inlinable function call in a function with debug info must have a !dbg location
  tail call void @free(i8* %32)
inlinable function call in a function with debug info must have a !dbg location
  tail call void @free(i8* %50)
inlinable function call in a function with debug info must have a !dbg location
  tail call void @free(i8* %20)


while compiling the check unit test library (file check_run.c).

Anyone know what causes this?

Relevant lines from the build log:

/bin/bash ../libtool  --tag=CC   --mode=compile /home/ubuntu/emsdk/upstream/emscripten/emcc -DHAVE_CONFIG_H -I. -I../../../check-0.13.0/src -I..     -g -O2 -Wextra -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wno-variadic-macros -Wimport -Wfatal-errors -Wformat=2 -Winit-self -Wmissing-include-dirs -Wswitch-default -Wunknown-pragmas -MT check_run.lo -MD -MP -MF .deps/check_run.Tpo -c -o check_run.lo ../../../check-0.13.0/src/check_run.c
libtool: compile:  /home/ubuntu/emsdk/upstream/emscripten/emcc -DHAVE_CONFIG_H -I. -I../../../check-0.13.0/src -I.. -g -O2 -Wextra -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wno-variadic-macros -Wimport -Wfatal-errors -Wformat=2 -Winit-self -Wmissing-include-dirs -Wswitch-default -Wunknown-pragmas -MT check_run.lo -MD -MP -MF .deps/check_run.Tpo -c ../../../check-0.13.0/src/check_run.c  -o .libs/check_run.o
inlinable function call in a function with debug info must have a !dbg location
  tail call void @free(i8* %32)


Brian Craft

unread,
Jan 22, 2020, 1:11:46 PM1/22/20
to emscripten-discuss
looks like maybe it's a bug in the llvm version that's in the latest sdk.

Sam Clegg

unread,
Jan 22, 2020, 1:40:00 PM1/22/20
to emscripte...@googlegroups.com
Is that code open source?  It does look like it's probably a compiler bug.   

Does it result in failed compilation or is it just a warning?

Would you mind opening an issue in the emscripten tracker with reproduction steps?

--
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 emscripten-disc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/34dd9115-8d16-42d9-8b3d-6391479bbcbc%40googlegroups.com.

Brian Craft

unread,
Jan 22, 2020, 3:00:08 PM1/22/20
to emscripten-discuss
yeah, it's open source, a standard test runner for C. apt install check, on debian systems.


The compile fails. I'll try to compose simplified steps for reproduction.
Reply all
Reply to author
Forward
0 new messages