https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100462
--- Comment #13 from Jakub Jelinek ---
The error is clear, the header you want to include doesn't exist, which is the
case.
Usually people use PCH as an optimization, have the header normally in search
path and have there also the precompiled ve
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100462
--- Comment #12 from Marco Trevisan ---
Well, I see...
At least the error should be a bit clearer though.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100462
Jakub Jelinek changed:
What|Removed |Added
Resolution|--- |INVALID
Status|UNCONFIRMED
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100462
Marco Trevisan changed:
What|Removed |Added
Status|RESOLVED|UNCONFIRMED
Resolution|INVALID
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100462
Jakub Jelinek changed:
What|Removed |Added
Resolution|--- |INVALID
Status|UNCONFIRMED
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100462
--- Comment #8 from Marco Trevisan ---
It's also relevant to say that just using
main.c:
#include "gjs_pch.h"
int main(int argc, char**argv)
{
std::string s = "Hi";
return 0;
}
fails with:
❯ g++ -I _build main.c -o main -include string
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100462
--- Comment #7 from Marco Trevisan ---
(In reply to Marco Trevisan from comment #6)
> # Works
> g++ -I _build main.c -o main -include string -include gjs_pch.h
Ouch, I forgot to delete an include after pasting
# Works
g++ -I _build main.c -o
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100462
--- Comment #6 from Marco Trevisan ---
(In reply to Jakub Jelinek from comment #5)
> As documented - see
> https://gcc.gnu.org/onlinedocs/gcc/Precompiled-Headers.html - PCH is only
> tried if no C token is seen before the #include directive (com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100462
Jakub Jelinek changed:
What|Removed |Added
CC||jakub at gcc dot gnu.org
--- Comment #5
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100462
--- Comment #4 from Marco Trevisan ---
(In reply to Marco Trevisan from comment #3)
> Created attachment 50775 [details]
> strace.log
>
> This is crazy, as even according to strace the file isn't there...
>
> But it is and it's valid.
> ❯ ls -
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100462
--- Comment #3 from Marco Trevisan ---
Created attachment 50775
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50775&action=edit
strace.log
This is crazy, as even according to strace the file isn't there...
But it is and it's valid.
❯ ls
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100462
--- Comment #2 from Andrew Pinski ---
Running GCC under strace (with -f option since GCC forks off to exec cc1plus).
Should be able to see where the files are being tested for.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100462
--- Comment #1 from Marco Trevisan ---
Some verbose logging:
unstable /data/GNOME/gjs
❯ echo $PWD
/data/GNOME/gjs
unstable /data/GNOME/gjs
❯ ls _build/libgjs.so.0.0.0.p -lht
total 119M
-rw-rw-r-- 1 m
13 matches
Mail list logo