LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-09-2018, 02:46 PM   #1
toodr
Member
 
Registered: Jul 2004
Location: Haskovo, Bulgaria
Distribution: Slackware64-current
Posts: 61

Rep: Reputation: 16
Libreoffice, llvm, mesa problem on AMD Graphics


After the Slackware64-current update on 4.10.2018, I have a problem on one of my boxes. It has two display controllers:

Intel Corporation HD Graphics 620 (rev 02) and
Advanced Micro Devices, Inc. [AMD/ATI] Topaz XT [Radeon R7 M260/M265 / M340/M360 / M440/M445] (rev c3)

Now Libreoffice won't start - (neither libreoffice-6.1.2-x86_64-1alien, nor libreoffice-6.1.0-x86_64-1alien, nor Slackbuild's lbreoffice).
At the console I get the following messages:

Intrinsic has incorrect return type!
i8 addrspace(2)* ()* @llvm.amdgcn.dispatch.ptr
Intrinsic has incorrect return type!
i8 addrspace(2)* ()* @llvm.amdgcn.dispatch.ptr
Intrinsic has incorrect return type!
i8 addrspace(2)* ()* @llvm.amdgcn.dispatch.ptr
Intrinsic has incorrect return type!
i8 addrspace(2)* ()* @llvm.amdgcn.implicitarg.ptr
LLVM ERROR: Broken function found, compilation aborted!

The only considerable change on 4.10.2018 was mesa-18.2.2-x86_64-1.txz
So it seems to me that there maybe is an incompatible change concerning current's llvm, or AMDGPU or Libreoffice is at fault (perhaps didn't catch up quickly enough). Interesting that no other program is affected, and on my other 2 boxes (one with intell graphics, and another with nvidia) libreoffice is starting just fine...

I went back to the previous version of mesa (mesa-18.2.1-x86_64-1.txz) for Slackware64-current to test this. And everything went back to normal again !

Is this a bug with Libreoffice ?
 
Old 10-09-2018, 02:52 PM   #2
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,950

Rep: Reputation: Disabled
I don't have a solution, but you're not the only one. Check out this thread.

https://www.linuxquestions.org/quest...7/#post5911007

Would it be possible to bisect mesa with git and find out when this issue was introduced?
 
Old 10-09-2018, 04:23 PM   #3
Hooks123
Member
 
Registered: Aug 2014
Location: Ohio
Distribution: Slackware64 Current
Posts: 69

Rep: Reputation: 10
Quote:
Originally Posted by toodr View Post
I went back to the previous version of mesa (mesa-18.2.1-x86_64-1.txz) for Slackware64-current to test this. And everything went back to normal again !
Where did you find this package? I have googled and can't seem to find it. i would love to be able to load this previous version and get libreoffice working again.

Thanks a bunch
 
Old 10-09-2018, 05:40 PM   #4
toodr
Member
 
Registered: Jul 2004
Location: Haskovo, Bulgaria
Distribution: Slackware64-current
Posts: 61

Original Poster
Rep: Reputation: 16
I have a router with usb storage attached, where I keep some of the latest updates for Slackware64-current.
It's easier when updating the rest of my computers.
If you are interested , it can be reached here - ftp://109.199.241.108:59461/usb/SYSTEM/20180922/

May I ask, just out of curiosity, what is your graphics adaptor?
 
1 members found this post helpful.
Old 10-09-2018, 06:06 PM   #5
toodr
Member
 
Registered: Jul 2004
Location: Haskovo, Bulgaria
Distribution: Slackware64-current
Posts: 61

Original Poster
Rep: Reputation: 16
Quote:
Would it be possible to bisect mesa with git and find out when this issue was introduced?
Sorry ,I don't know how to do this.
I feel ashamed, but I've never done this before, at least not with git!
And I imagine that it's not a simple job to compile mesa.
It is on my list with packages, that I don't have the courage to deal with compiling, like libreoffice, qt, VirtualBox, and such.
 
Old 10-09-2018, 06:14 PM   #6
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,950

Rep: Reputation: Disabled
Its not really hard as it is tedious, you can use Pat's slackbuild as a template for building mesa, except you want to clone their git master instead of extracting the stable tarballs.

The steps are roughly.

1. Test the mesa git master to make sure its not already fixed.
2. Find a good working commit.
3. Find a bad not working commit.
4. Now inside the mesa git clone...
- git bisect start
- git bisect bad >bad commit hash here<
- git bisect good >good commit hash here<
- Build the commit that it points out and test the issue.
- If it works: 'git bisect good'
- If it doesn't work: 'git bisect bad'
- If it fails for an unrelated reason making it not possible to test: 'git bisect skip'
5. Build the commits it points out repeating the above until it tells you the first bad commit.

If you have any specific questions on the process I can try to help, but it will need to be done by someone that can reproduce the issue.
 
1 members found this post helpful.
Old 10-09-2018, 06:19 PM   #7
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,039

Rep: Reputation: 7218Reputation: 7218Reputation: 7218Reputation: 7218Reputation: 7218Reputation: 7218Reputation: 7218Reputation: 7218Reputation: 7218Reputation: 7218Reputation: 7218
Quote:
Originally Posted by Hooks123 View Post
Where did you find this package? I have googled and can't seem to find it. i would love to be able to load this previous version and get libreoffice working again.

Thanks a bunch
You might try here, http://slackmirror.cbpf.br/pub/slack...slackware64/x/

(Thanks to Darth Vader)
 
1 members found this post helpful.
Old 10-09-2018, 06:19 PM   #8
Hooks123
Member
 
Registered: Aug 2014
Location: Ohio
Distribution: Slackware64 Current
Posts: 69

Rep: Reputation: 10
Quote:
Originally Posted by toodr View Post
I have a router with usb storage attached, where I keep some of the latest updates for Slackware64-current.
It's easier when updating the rest of my computers.
If you are interested , it can be reached here - ftp://109.199.241.108:59461/usb/SYSTEM/20180922/

May I ask, just out of curiosity, what is your graphics adaptor?
Code:
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Baffin [Radeon RX 550 640SP / RX 560] (rev cf)
        Subsystem: Micro-Star International Co., Ltd. [MSI] Baffin [Radeon RX 550 640SP / RX 560/560X]
        Kernel driver in use: amdgpu
        Kernel modules: amdgpu
is that what you are asking?
 
Old 10-09-2018, 07:26 PM   #9
Hooks123
Member
 
Registered: Aug 2014
Location: Ohio
Distribution: Slackware64 Current
Posts: 69

Rep: Reputation: 10
I did the same thing that toodr did. I went back to the previous version of mesa (mesa-18.2.1-x86_64-1.txz) for Slackware64-current and it didn't work for me.

I went back to the previous version of llvm-6.0.1-x86_64-2.txz. libreoffice worked. I then upgradepkg llvm-7.0.0-x86_64-1.txz so now i am back to the current llvm-7.0.0-x86_64-1.txz and libreoffice still works. Very strange. Im just happy to have libreoffice in my life again. lol

Last edited by Hooks123; 10-09-2018 at 09:42 PM.
 
1 members found this post helpful.
Old 10-10-2018, 09:13 AM   #10
toodr
Member
 
Registered: Jul 2004
Location: Haskovo, Bulgaria
Distribution: Slackware64-current
Posts: 61

Original Poster
Rep: Reputation: 16
to orbea: Thanks for the explanation, I'll have to dive in git when I have more free time.
Although if I get it right, the people at mesa have done some changes (which affect only the amdgpu driver for cards newer than 4xxx) and the people at libreoffice development didn't sensed that a change was made, or did not have a machine with newer AMD GPU (which is almost unbelievable) or could not react in time for some reason, or it is a simple coincidence - mesa update came out 1-2 days before libreoffices update. Anyway, libreoffice will have to cope with the changes in mesa (so we'll see it updated in the next release) and it's not the other way around, right?
So I would rather wait for libreoffice to be updated to cover the changes in mesa, and then I would update mesa and libreoffice for this particular computer.
I checked their devel forums and did not find an indication that they are aware of this problem. Should I report to them?


to Hooks123: Yes, this adaptor uses the same driver amdgpu, so it's highly probable that this is the case there.
In my case though, I have 2 graphics adaptors (Intel and AMD) and I did not set PRIME=1 when starting libreoffice, so theoretically libreoffice should have used the Intel adaptor and not bother with the AMD one, but obviuosly it checks both at runtime and thats how I ended without libreoffice too.
 
1 members found this post helpful.
Old 10-10-2018, 09:24 AM   #11
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,950

Rep: Reputation: Disabled
There could be a lot of reasons this is failing, it may just be a typo in the mesa code or it could be something much more involved. The usefulness of bisecting with git is to know exactly what this change is, then we will hopefully have a better idea of why its broken and who to contact with the bug report.
 
1 members found this post helpful.
Old 10-10-2018, 12:32 PM   #12
toodr
Member
 
Registered: Jul 2004
Location: Haskovo, Bulgaria
Distribution: Slackware64-current
Posts: 61

Original Poster
Rep: Reputation: 16
Agree. I'll try but don't know if will get to something meaninfull.
 
Old 10-14-2018, 09:27 AM   #13
toodr
Member
 
Registered: Jul 2004
Location: Haskovo, Bulgaria
Distribution: Slackware64-current
Posts: 61

Original Poster
Rep: Reputation: 16
follow up:

I reinstalled mesa-18.2.2-x86_64-1.txz for current and deleted ./config/libreoffice directory. And after a restart, now everything works OK. Must have been a corrupted package or something.

to orbea:

Thanks for pointing me how to bisect on git. I followed the instuctions and every package came out good. This was why I reinstalled current's mesa package, which upon a restart proved out to be good as well. I didn't understand that git bisect was a command and had to google it a bit. Anyway now I can do bisecting alright (as long as it is not a really complex and large package).


Cheers ...
 
1 members found this post helpful.
Old 10-22-2018, 04:57 PM   #14
BattKajs
LQ Newbie
 
Registered: Oct 2017
Location: Stockholm
Distribution: Slackware, Xubuntu
Posts: 12

Rep: Reputation: Disabled
I experienced the same issue as in this thread and as in: https://www.linuxquestions.org/quest...717/page3.html

I resolved this by downgrading to an older version of Mesa (18.1*) where LibreOffice worked, and upgraded to latest again (18.2.3) and now Libre works again, with latest Mesa.
 
Old 12-29-2018, 02:48 PM   #15
rrk160
LQ Newbie
 
Registered: Dec 2018
Distribution: Slackware
Posts: 1

Rep: Reputation: Disabled
In my case , I solved this problem as described here https://bugzilla.redhat.com/show_bug.cgi?id=1644863, after update a libclc to latest snapshot.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mesa git undefined reference to llvm ... charlie4 Linux - Software 0 06-03-2016 10:45 AM
llvm-config problem in slackware64-current LLVM 3.2 package teeemcee Slackware 0 01-24-2013 02:44 PM
LXer: Radeon LLVM GPU Back-End Stripped From Mesa LXer Syndicated Linux News 0 01-07-2013 10:11 PM
LXer: Mesa 9.1-devel LLVMpipe With LLVM 3.1/3.2 LXer Syndicated Linux News 0 12-01-2012 11:30 AM
LXer: Mesa Compiler Stacks, A Hard Dependency On LLVM LXer Syndicated Linux News 0 09-15-2011 08:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration