Search
Thursday, 24th of June 2021, 1:24:20 UTC
2:08:44
drmeister
I'm trying llvm libunwind again. I realized that I had not configured llvm to use the patch properly
2:09:10
drmeister
I was explaining it to Lang on discord and I realized I probably made a mistake.
2:16:44
drmeister
He says that patch is what we need in the short term and he's talking to people at Apple about a long term fix.
3:02:23
beach
Good morning everyone!
3:14:15
drmeister
Bike: I have a solution for libunwind on linux.
3:14:49
drmeister
That patch was not correct for us because it only worked with the old memory manager - we are bleeding edge - using JITLink.
3:15:41
drmeister
Lang suggested I apply the same patch to this file: llvm/lib/ExecutionEngine/Orc/TargetProcess/RegisterEHFrames.cpp
3:17:55
drmeister
He's talking with the libunwind people to come up with a better solution.
3:21:08
drmeister
Think about how to use libunwind to get the frame pointers - then we can get rid of the frame pointer dereferencing code.
3:24:30
Bike
we can get it from RBP easily. if we have to worry about frame pointer omitting i don't think that's exposd by libunwind and we'd have to get into the dwarf
3:27:58
drmeister
We only need RBP for our own frames and we don't eliminate RBP.
3:28:12
drmeister
I build cclasp successfully with the patch.
3:37:02
drmeister
I'm going to build this again from scratch and if it works I'll push it.
5:14:44
drmeister
::notify Bike I got clasp to look in the /opt/clasp/lib directory using -rpath
5:14:45
Colleen
drmeister: Got it. I'll let Bike know as soon as possible.
13:04:14
Colleen
Bike: drmeister said 7 hours, 49 minutes ago: I got clasp to look in the /opt/clasp/lib directory using -rpath
13:14:09
Bike
drmeister: oh, did you actually push this? i can't build on hermes now
13:14:48
drmeister
Hi - I just pushed it.
13:15:10
Bike
no, it's bigmac where the build failed
13:15:20
Bike
"Checking for library unwind : no"
13:15:35
drmeister
Huh - I didn't think I broke that.
13:15:39
drmeister
Hang on - I'll check...
13:16:19
drmeister
If you pull the new changes you should be able to build on hermes.
13:18:55
drmeister
We were linking on bigmac using libunwind weren't we?
13:19:19
drmeister
I thought the test for libunwind passed on bigmac - but now it's not.
13:19:26
drmeister
Or were we linking but not testing.
13:19:35
Bike
we were linking but not testing, i think
13:22:46
drmeister
I pushed a fix for macOS
13:22:53
drmeister
I removed the test for libunwind.
13:23:08
drmeister
The deploy script now builds llvm libunwind and installs it in /opt/clasp
13:23:51
drmeister
I'll check and see if this libunwind works on macOS and if it does then we can just use that.
Thursday, 24th of June 2021, 13:24:20 UTC