LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-02-2016, 12:33 AM   #1
GreenFireFly
Member
 
Registered: Jul 2013
Posts: 218

Rep: Reputation: Disabled
Question Dolphin-emu cannot find -lLLVM-3.7.0


Hello Everyone,

I have compiled dolphin from

http://ponce.cc/slackware/testing/dolphin-emu/

and it compiled fine. Howerver i have a controller issue with that
version so i need to an older version of dolphin. I'm trying to
compile dolphin-emu-6502. At 93% i get

linux/bin/ld: cannot find -lLLVM-3.7.0
/usr/x86_64-slackware-linux/bin/ld: cannot find -lLLVM-3.7.0

even though when i configure it it states
-- Found LLVM 3.7.0. What's causing this issue?


Here is the full log.
http://pastebin.com/EKqYNJv0

Last edited by GreenFireFly; 02-02-2016 at 07:56 AM.
 
Old 02-02-2016, 02:52 AM   #2
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Rep: Reputation: 164Reputation: 164
Possible soultions:
1. Install LLVM: http://llvm.org/
2. Replace LLVM with GCC.
 
Old 02-02-2016, 03:09 AM   #3
linuxtinker
Member
 
Registered: Dec 2013
Location: NJ / USA
Distribution: Slackware 64 -Current
Posts: 232

Rep: Reputation: 99
Deja Vu ?!?

https://www.linuxquestions.org/quest...869/page8.html
 
Old 02-02-2016, 05:36 AM   #4
55020
Senior Member
 
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,307
Blog Entries: 4

Rep: Reputation: Disabled
Actually I would suggest *removing* llvm temporarily, to see if the build works.

(I'm wondering if the OP's "older version" is missing some or all fixes involving CMakeTests/FindLLVM.cmake)
 
Old 02-02-2016, 07:54 AM   #5
GreenFireFly
Member
 
Registered: Jul 2013
Posts: 218

Original Poster
Rep: Reputation: Disabled
Talking

Hello Everyone,

I got dolphin-emu-6502 to build.. What i did to build it

I copied the FindLLVM.cmake file found in the link below

https://github.com/dolphin-emu/dolph...FindLLVM.cmake "Thanks to 55020"

to dophin-emu/CMakeTests.

then mkdir Build
cd Build
cmake ..
make
make install


Now i can see that the newer versions of dolphin switched from SDL to EVDEV so i guess theres something
wrong with evdev in slackware.

Last edited by GreenFireFly; 02-02-2016 at 10:15 PM.
 
1 members found this post helpful.
Old 02-02-2016, 11:44 AM   #6
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,200

Rep: Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307
Use my Dolphin SlackBuild. I know it works on 14.1.

https://github.com/duganchen/my_slac...er/dolphin-emu
 
Old 02-02-2016, 03:16 PM   #7
GreenFireFly
Member
 
Registered: Jul 2013
Posts: 218

Original Poster
Rep: Reputation: Disabled
Hello Dugan,

Just tested your dolphin-emu.SlackBuild in Slackware Current 64 bit. It created a package but all
that was in it was dolphin icons.
 
Old 02-02-2016, 03:48 PM   #8
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,200

Rep: Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307
Quote:
Originally Posted by GreenFireFly View Post
Hello Dugan,

Just tested your dolphin-emu.SlackBuild in Slackware Current 64 bit. It created a package but all
that was in it was dolphin icons.
This is what happens when you forget to put "set -e" in SlackBuilds...

Incidentally, do you have any plans to buy a Steam Controller? I hear it's great for both Wii and GameCube games running in Dolphin, and that's the main reason I'm interested in one.

Last edited by dugan; 02-02-2016 at 03:50 PM.
 
Old 02-02-2016, 04:06 PM   #9
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,950

Rep: Reputation: Disabled
Dolphin-emu doesn't maintain their source tarballs very well, its best to compile it directly from their github which is maintained.

Here is a slackbuild that does that which works, however only in current since 14.1 is a bit too old. At least not without changing the slackbuild a bit.

https://notabug.org/orbea/SlackBuild...er/dolphin-emu
 
Old 02-02-2016, 07:25 PM   #10
GreenFireFly
Member
 
Registered: Jul 2013
Posts: 218

Original Poster
Rep: Reputation: Disabled
Hello Everyone,

@Dugan - Oh and how do i set -e?

@Orbea - Tried your build on Slackware Current 64bit i got error.

Source/Core/Core/CMakeFiles/core.dir/build.make:113: recipe for target 'Source/Core/Core/CMakeFiles/core.dir/BootManager.cpp.o' failed
make[2]: *** [Source/Core/Core/CMakeFiles/core.dir/BootManager.cpp.o] Error 1
CMakeFiles/Makefile2:953: recipe for target 'Source/Core/Core/CMakeFiles/core.dir/all' failed
make[1]: *** [Source/Core/Core/CMakeFiles/core.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2
 
Old 02-02-2016, 08:18 PM   #11
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,950

Rep: Reputation: Disabled
Can you share the cmake configure output? More context for the error may prove useful as well.
What optional dependencies listed in the README did you install?
Are you sure you aren't trying to build it in the middle of a bunch of commits? Try using 'git pull' on a cloned repo before and after you run the script to make sure.
Do you have a full install or can you share your blacklist?

It works on my main system with all of the optional dependencies installed excluding pulseaudio.
It also works on a clean Slackware64-current chroot that was freshly updated with none of the optional dependencies except for pulseaudio which even though is now included in Slackware is still entirely optional as far as I am concerned.

Dolphin-emu will use static versions of the required dependencies if you do not install them, though if you do this you will need to remove dolphin-emu before recompiling it because there is a bug where it will install mbedtls libraries and then try to compile against the old ones which will be removed when the package is actually upgraded...
https://bugs.dolphin-emu.org/issues/9208

If none of this provides any clues, try running the following script and then investigating any broken libraries it finds which may or may not be relevant, you can ignore multilib issues. Lastly you can try taking it upstream to either #dolphin-emu @ freenode or to their github page. Which is kind of the point of my git based slackbuilds, to get a bleeding edge package, all new features and bugs included!
https://github.com/dolphin-emu/dolphin
Code:
#!/bin/sh
#  2004/08/22  K. Piche  Find missing library references.
#  2015/11/27  orbea     Refreshed script

ifs=$IFS
IFS=':'

ARCH=$(uname -m)

libdirs="/lib:/usr/lib:/usr/X11R6/lib:/usr/libexec:/usr/$ARCH-slackware-linux:/lib64:/usr/lib64:/usr/X11R6/lib64"
extras=

#  Check ELF binaries in the PATH and specified dir trees.
for tree in $PATH $libdirs $extras
do
        echo DIR $tree

        #  Get list of files in tree.
        files=$(find $tree -type f)
        IFS=$ifs
        for i in $files
        do
                if [ `file $i | grep -c 'ELF'` -ne 0 ]; then
                        #  Is an ELF binary.
                        if [ `ldd $i 2>/dev/null | grep -c 'not found'` -ne 0 ]; then
                                #  Missing lib.
                                echo "$i:"
                                ldd $i 2>/dev/null | grep 'not found'
                        fi
                fi
        done
done

exit
Also, set -e should be in the slackbuild, you can look at mine or most slackbuilds at SBo to see it.
 
Old 02-02-2016, 09:12 PM   #12
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,200

Rep: Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307
Quote:
Originally Posted by GreenFireFly View Post
@Dugan - Oh and how do i set -e?
I meant that I should have done it when writing the SlackBuild. I've taken care of it, and now, if the compile fails, it will stop there instead of continuing and giving you a package with just the icons.
 
Old 02-02-2016, 10:21 PM   #13
GreenFireFly
Member
 
Registered: Jul 2013
Posts: 218

Original Poster
Rep: Reputation: Disabled
Hello Everyone,

@Dugan Ok i will try to compile it again.

@Orbea I don't remember if i have dolphin installed when i compiled. I will try and uninstall
dolphin before compiling to see if that helps. And if it does not compile i will post the
cmake configure output. I believe i all optional depencies expect for pulseaudio.
 
Old 02-02-2016, 10:34 PM   #14
GreenFireFly
Member
 
Registered: Jul 2013
Posts: 218

Original Poster
Rep: Reputation: Disabled
Hello Dugan,

This what i get now.

bash-4.3# cd /root/dugandol
bash-4.3# ./dolphin-emu.SlackBuild
Cloning into 'dolphin'...
remote: Counting objects: 240317, done.
remote: Total 240317 (delta 0), reused 0 (delta 0), pack-reused 240317
Receiving objects: 100% (240317/240317), 230.51 MiB | 2.66 MiB/s, done.
Resolving deltas: 100% (187355/187355), done.
Checking connectivity... done.
Note: checking out '6fb8ce5'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

git checkout -b <new-branch-name>

HEAD is now at 6fb8ce5... Honor logging settings at startup
patch: **** Only garbage was found in the patch input.
bash-4.3#
 
Old 02-02-2016, 11:16 PM   #15
GreenFireFly
Member
 
Registered: Jul 2013
Posts: 218

Original Poster
Rep: Reputation: Disabled
Question

Hello Orbea,

The only optional packages not installed pulseaudio,soil, and mbedtls. My Slackware installation is
everything expect the kde directory.

Here is the full cmake log.

http://pastebin.com/Rvx9YLr0

Don't know what you mean with this.

Are you sure you aren't trying to build it in the middle of a bunch of commits? Try using 'git pull' on a cloned repo before and after you run the script to make sure.

As soon as i run your dolphin-emu.SlackBuild it starts trying to compile.

Last edited by GreenFireFly; 02-02-2016 at 11:22 PM.
 
  


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



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

All times are GMT -5. The time now is 10:35 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