What is it with clang/llvm on #FreeBSD not compiling? I'm using 12.1-RELEASE and the 12.1-RELEASE source and still it goes nuts, eating all of RAM before getting a kill. Compile the same file a couple of times more and suddenly it works.
It's always CLANG! What am I missing?
-
-
Replying to @extremecompute
If you're using poudriere, then consider disabling or reducing tmpfs use - llvm uses both lots of disk space (and therefore mem/swap if tmpfs is used) and lots of working RAM for compile/link.
1 reply 0 retweets 0 likes -
Replying to @RhodiumToad @extremecompute
If you have sufficient swap space but still get OOM kills that DON'T have a "swap_pager_getswapspace" error, also try increasing vm.pageout_oom_seq a lot. (OOM kills can be triggered not by lack of swap space but by slowness in pageouts)
1 reply 0 retweets 0 likes -
Replying to @RhodiumToad
Thanks for the thoughts. I isolated the problem part of the build and ran the compiler directly from the shell. After a while it starts eating core at 50MB/second until its all gone. It's pretty obviously a leak in the compiler somewhere.
1 reply 0 retweets 0 likes -
Replying to @extremecompute @RhodiumToad
Worth mentioning this is a clean CD install of 12.1-R -> check out 12.1-R -> source -> buildworld. Only oddness is /usr/src and /usr/obj on ZFS datasets.
1 reply 0 retweets 0 likes -
Replying to @extremecompute @RhodiumToad
c++ -target x86_64-unknown-freebsd12.1 [...] -c /usr/src/contrib/llvm/tools/clang/lib/ASTMatchers/Dynamic/Registry.cpp -o ASTMatchers/Dynamic/Registry.o
1 reply 0 retweets 0 likes -
Replying to @extremecompute
Can't reproduce. Installed a 12.1 system with zfs in a 3GB bhyve vm, and tried a buildworld at -j4; it's still running (maybe ~45 min to go), but it compiled that file ok
1 reply 0 retweets 1 like -
Replying to @RhodiumToad
Thanks for the experiment. The totally weird thing about this is that it passed that file and then broke on another one later. And repeat. Its like an uninitialised variable is making the results random. Always with llvm/clang though.
2 replies 0 retweets 0 likes
That does not seem plausible.
-
-
Replying to @RhodiumToad
Exactly. Yet I'm seeing it. (I've been using Unix heavily since 1983 and FreeBSD since 2002 so it's probably not a newbie error, although I can't rule that out).
0 replies 0 retweets 0 likesThanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.