-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
llvm-cbe generates missing l_fptr_1 from .ll ouput from clang++-10 (plzip-1.9 dec_stdout.c) #132
Comments
I recently fixed another issue involving missing I wonder if this is a similar type of issue. Edit: In fact it sounds very similar, so I am surprised it is happening. I will probably have a look at it soon. |
@hikari-no-yume Looks like so. Still reproducible in current master. By the way, I figured out simple examples how to get these errors. This one (
Building (specifying or skipping
Other one is now moved to #138, as you proposed. Clang and gcc versions:
|
Thanks for the reproducers. The pthread one works for getting the unknown type name error for me, even though I am on macOS. I guess this works because pthreads is a common POSIX API. (Edit: #135 should fix it.) I haven't tried the second reproducer yet. If it is not too much hassle, could you make a separate issue for that one? Though the errors may seem similar, I think it is likely to be caused by a different part of the CBE code. |
Sorry for late reply, I was on kind of vacation and had no access to host where I was experimenting with this. Now I got back to this. Created #138, and edited this issue to focus on pthread-related stuff. |
Say, we have LLVM 10.0.0, and just have built
llvm-cbe
in current directory.Trying to build
dec_stdout.cc
fromplzip-1.9
withlzlib-1.12
:I have the following output then (among the message caused by #138):
If we grep
dec_stdout.cbe.c
forl_fptr_1
, we'll figure out it's not declared (and, since it's in declaration ofpthread_create()
, this function appears undeclared after a while):I expected hacking first call to
clang++-10
with something like-pthread
,-include /usr/include/pthread.h
would help with that; but I had no success (and aboutLLVMMul_uov
, I really have no idea--there is no such declaration in the whole/usr/include
).Of course, calling clang to compile instead of generate
.ll
succeeds. Called like this:The text was updated successfully, but these errors were encountered: