LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM
User Name
Password
Slackware - ARM This forum is for the discussion of Slackware ARM.

Notices


Reply
  Search this Thread
Old 11-16-2014, 02:03 AM   #1
louigi600
Member
 
Registered: Dec 2013
Location: Italy
Distribution: Slackware
Posts: 635
Blog Entries: 20

Rep: Reputation: 81
freedreno for IFC6410


I'm now looking to get freedreno working for slackware ARM 14.1 on the IFC6410.

Anyone have any advice for doing this ?

I was looking at the instructions here. Has anyone else tried building freedreno ?

While attempting to compile mesa I got this error:
Code:
...
make[4]: Entering directory `/usr/src/freedreno/mesa/src/gallium/auxiliary'
  CC     draw/draw_pipe_aaline.lo
  CC     draw/draw_llvm.lo
  CC     draw/draw_llvm_sample.lo
  CC     draw/draw_pipe_aapoint.lo
In file included from /usr/include/llvm-c/Core.h:18:0,
                 from ./gallivm/lp_bld.h:49,
                 from ./gallivm/lp_bld_const.h:41,
                 from draw/draw_llvm_sample.c:35:
/usr/include/llvm/Support/DataTypes.h:53:3: error: #error "Must #define __STDC_CONSTANT_MACROS before " "#including Support/DataTypes.h"
 # error "Must #define __STDC_CONSTANT_MACROS before " \
   ^
In file included from ./gallivm/lp_bld_const.h:41:0,
                 from draw/draw_llvm_sample.c:35:
./gallivm/lp_bld.h:54:2: error: #error "HAVE_LLVM should be set with LLVM's version number, e.g. (0x0207 for 2.7)"
 #error "HAVE_LLVM should be set with LLVM's version number, e.g. (0x0207 for 2.7)"
  ^
./gallivm/lp_bld.h:57:2: error: #error "LLVM 3.3 or newer required"
 #error "LLVM 3.3 or newer required"
  ^
In file included from /usr/include/llvm-c/Core.h:18:0,
                 from ./gallivm/lp_bld.h:49,
                 from ./gallivm/lp_bld_sample.h:41,
                 from draw/draw_llvm.h:36,
                 from draw/draw_llvm.c:28:
/usr/include/llvm/Support/DataTypes.h:53:3: error: #error "Must #define __STDC_CONSTANT_MACROS before " "#including Support/DataTypes.h"
 # error "Must #define __STDC_CONSTANT_MACROS before " \
   ^
In file included from ./gallivm/lp_bld_sample.h:41:0,
                 from draw/draw_llvm.h:36,
                 from draw/draw_llvm.c:28:
./gallivm/lp_bld.h:54:2: error: #error "HAVE_LLVM should be set with LLVM's version number, e.g. (0x0207 for 2.7)"
 #error "HAVE_LLVM should be set with LLVM's version number, e.g. (0x0207 for 2.7)"
  ^
./gallivm/lp_bld.h:57:2: error: #error "LLVM 3.3 or newer required"
 #error "LLVM 3.3 or newer required"
  ^
make[4]: *** [draw/draw_llvm_sample.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: *** [draw/draw_llvm.lo] Error 1
make[4]: Leaving directory `/usr/src/freedreno/mesa/src/gallium/auxiliary'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/src/freedreno/mesa/src/gallium/auxiliary'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/freedreno/mesa/src/gallium'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/freedreno/mesa/src'
make: *** [all-recursive] Error 1
root@ifc6410:/usr/src/freedreno/mesa#
I've llvm-3.3-arm-3_slack14.1 installed ... what's up ?

Last edited by louigi600; 11-16-2014 at 04:49 AM.
 
Old 11-16-2014, 11:58 AM   #2
louigi600
Member
 
Registered: Dec 2013
Location: Italy
Distribution: Slackware
Posts: 635

Original Poster
Blog Entries: 20

Rep: Reputation: 81
I'm not sure but I think this is the problem.

I was attempting to use the options suggested in the build instructions:
Code:
./autogen.sh --prefix=/usr --with-dri-drivers= --with-gallium-drivers=freedreno,swrast --with-egl-platforms=x11 --enable-gles2 --enable-gles1 --enable-gallium-egl --disable-gallium-llvm --enable-xa --disable-dri3
which was disabling gallium-llvm but still some parts of lvm are required for other pieces. Now the intresting thing is that by default masa looks for llvm shared libraries but for some reason the slackware llvm package has only static llvm so that disabled llvm altogether making the build fail.
I'm trying to get the build going with use of static llvm but I've had no luck.
Maybe I should rebuild llvm with the shared libs ?
I had a go at it but I get this other error:
Code:
/usr/lib/gcc/arm-slackware-linux-gnueabi/4.8.2/../../../../include/c++/4.8.2/ext/atomicity.h:49:12: error: 
      cannot compile this atomic library call yet
  { return __atomic_fetch_add(__mem, __val, __ATOMIC_ACQ_REL); }
I've no idea how to deal with that !

Last edited by louigi600; 11-16-2014 at 01:25 PM.
 
Old 11-16-2014, 05:35 PM   #3
louigi600
Member
 
Registered: Dec 2013
Location: Italy
Distribution: Slackware
Posts: 635

Original Poster
Blog Entries: 20

Rep: Reputation: 81
Ok I got it built ... but have not yet tested it.
Had-to upgrade to llvm 3.4 from slackware current and also use mesa from git://github.com/freedreno/mesa.git
This is the autogen.sh setup I used:
Code:
./autogen.sh --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib \
  --mandir=/usr/man --docdir=/usr/doc/mesa-10.4.0 \
  --with-dri-drivers=swrast --with-gallium-drivers=freedreno,swrast \
  --with-egl-platforms=x11 --enable-gles2 --enable-gles1 \
  --enable-gallium-egl --disable-gallium-llvm \
  --enable-xa --disable-dri3
 
Old 11-17-2014, 01:50 PM   #4
louigi600
Member
 
Registered: Dec 2013
Location: Italy
Distribution: Slackware
Posts: 635

Original Poster
Blog Entries: 20

Rep: Reputation: 81
Maybe it's working:
Code:
[    72.171] (II) LoadModule: "freedreno"
[    72.172] (II) Loading /usr/lib/xorg/modules/drivers/freedreno_drv.so
[    72.252] (II) Module freedreno: vendor="X.Org Foundation"
[    72.253]    compiled for 1.14.3, module version = 1.3.0
[    72.253]    ABI class: X.Org Video Driver, version 14.1
[    72.254] (II) freedreno: Video driver for Qualcomm processors
[    72.254] (--) using VT number 7
with the suggested xorg.conf
Code:
Section "Device"
        Identifier      "Video Device"
        Driver          "freedreno"
        # Uncomment for addition debug traces in xorg log:
        #Option          "Debug"           "true"
        # The below two options are not needed if you are using the
        # msm drm/kms driver:
        #Option          "fb"              "/dev/fb0"
        #Option           "SWCursor"        "true"
EndSection
Section "Screen"
        Identifier      "Screen"
        Monitor         "Monitor"
        Device          "Video Device"
EndSection
 
  


Reply



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
Inforce6410 IFC6410 single board computer louigi600 Slackware - ARM 19 11-12-2016 02:19 AM
[SOLVED] IFC6410: Issues with hardware clock louigi600 Slackware - ARM 5 11-13-2014 06:41 PM

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

All times are GMT -5. The time now is 04:13 PM.

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