LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Dolphin-emu cannot find -lLLVM-3.7.0 (https://www.linuxquestions.org/questions/slackware-14/dolphin-emu-cannot-find-lllvm-3-7-0-a-4175568989/)

GreenFireFly 02-02-2016 12:33 AM

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

Keruskerfuerst 02-02-2016 02:52 AM

Possible soultions:
1. Install LLVM: http://llvm.org/
2. Replace LLVM with GCC.

linuxtinker 02-02-2016 03:09 AM

Deja Vu ?!?

https://www.linuxquestions.org/quest...869/page8.html

55020 02-02-2016 05:36 AM

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)

GreenFireFly 02-02-2016 07:54 AM

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.

dugan 02-02-2016 11:44 AM

Use my Dolphin SlackBuild. I know it works on 14.1.

https://github.com/duganchen/my_slac...er/dolphin-emu

GreenFireFly 02-02-2016 03:16 PM

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.

dugan 02-02-2016 03:48 PM

Quote:

Originally Posted by GreenFireFly (Post 5491736)
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.

orbea 02-02-2016 04:06 PM

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

GreenFireFly 02-02-2016 07:25 PM

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

orbea 02-02-2016 08:18 PM

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.

dugan 02-02-2016 09:12 PM

Quote:

Originally Posted by GreenFireFly (Post 5491824)
@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.

GreenFireFly 02-02-2016 10:21 PM

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.

GreenFireFly 02-02-2016 10:34 PM

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#

GreenFireFly 02-02-2016 11:16 PM

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.


All times are GMT -5. The time now is 06:30 PM.