Need help with compilation errors

Asked by Dirk H

I am trying to compile this module with tearfree enabled by default. I have a setup that gets a black screen if I use the option in 20_intel.. on my nvidia prime setup (that bug is already reported I believe)

I am on 20.04 and I have installed all the listed packages to build (and one other not listed but required for meson) for Focal and pulled the latest commit that matches 2:2.99.917+git20200226-1 (7e2c0dfc). Here is what I am getting

Meson:

The Meson build system
Version: 0.53.2
Source dir: /home/k/Build/xserver-xorg-video-intel
Build dir: /home/k/Build/xserver-xorg-video-intel/build
Build type: native build
Project name: xf86-video-intel
Project version: 2.99.917
C compiler for the host machine: ccache cc (gcc 9.3.0 "cc (Ubuntu 9.3.0-10ubuntu2) 9.3.0")
C linker for the host machine: cc ld.bfd 2.34
Host machine cpu family: x86_64
Host machine cpu: x86_64
Dependency xorg-server found: YES 1.20.8 (cached)
Dependency threads found: YES unknown (cached)
Dependency pciaccess found: YES 0.16 (cached)
Dependency x11 found: YES 1.6.9 (cached)
Dependency xfixes found: YES 5.0.3 (cached)
Dependency libpng found: YES 1.6.37 (cached)
Checking for function "clock_gettime" : YES (cached)
Checking for function "getline" : YES (cached)
Checking for function "strndup" : YES (cached)
Checking for function "strcasecmp" : YES (cached)
Dependency xproto found: YES 7.0.32 (cached)
Dependency fontsproto found: YES 2.1.3 (cached)
Dependency damageproto found: YES 1.2.1 (cached)
Header <xorg-server.h> has symbol "RANDR" with dependency xorg-server: YES (cached)
Dependency randrproto found: YES 1.6.0 (cached)
Header <xorg-server.h> has symbol "RENDER" with dependency xorg-server: YES (cached)
Dependency renderproto found: YES 0.11.1 (cached)
Header <xorg-server.h> has symbol "DPMSExtension" with dependency xorg-server: YES (cached)
Dependency xextproto found: YES 7.3.0 (cached)
Checking if "atomic primitives" links: YES (cached)
Dependency libudev found: YES 245 (cached)
Checking if "__cpuid()" links: YES (cached)
Has header "sys/ipc.h" : YES (cached)
Has header "X11/extensions/XShm.h" : YES (cached)
Has header "X11/extensions/shmproto.h" : YES (cached)
Has header "X11/extensions/shmstr.h" : YES (cached)
Has header "X11/extensions/Xinerama.h" : YES (cached)
Has header "X11/extensions/dpmsconst.h" : YES (cached)
Dependency pixman-1 found: YES 0.38.4 (cached)
Has header "vgaHW.h" with dependency xorg-server: YES (cached)
Dependency xvmc found: YES 1.0.12 (cached)
Dependency dri2proto found: YES 2.8 (cached)
Dependency x11 found: YES 1.6.9 (cached)
Dependency x11-xcb found: YES 1.6.9 (cached)
Dependency xcb-dri2 found: YES 1.14 (cached)
Dependency xcb-aux found: YES 0.4.0 (cached)
Dependency libdrm_intel found: YES 2.4.101 (cached)
Message: Checking Valgrind support
Dependency valgrind found: YES 3.15.0 (cached)
WARNING: Project targeting '>0.40.0' but tried to use feature introduced in '0.40.0': compiler.get_define
Fetching value of define "__XSERVERNAME__" with dependency xorg-server: "Xorg" (cached)
Fetching value of define "__XCONFIGFILE____" with dependency xorg-server: (cached)
Dependency xorg-server found: YES 1.20.8 (cached)
Dependency libdrm found: YES 2.4.101 (cached)
Dependency pixman-1 found: YES 0.38.4 (cached)
Dependency xf86driproto found: YES 2.1.1 (cached)
Has header "dri.h" with dependency xorg-server: YES (cached)
Has header "sarea.h" with dependency xorg-server: YES (cached)
Has header "dristruct.h" with dependency xorg-server: YES (cached)
Dependency dri2proto found: YES 2.8 (cached)
Dependency dri found: YES 20.0.4 (cached)
Dependency dri3proto found: YES 1.2 (cached)
Header <xorg-server.h> has symbol "DRI3" with dependency xorg-server: YES (cached)
Has header "misyncstr.h" with dependency xorg-server: YES (cached)
Has header "misyncshm.h" with dependency xorg-server: YES (cached)
Dependency presentproto found: YES 1.2 (cached)
Has header "present.h" with dependency xorg-server: YES (cached)
Dependency pciaccess found: YES 0.16 (cached)
Dependency xorg-server found: YES 1.20.8 (cached)
Dependency libdrm found: YES 2.4.101 (cached)
Dependency pciaccess found: YES 0.16 (cached)
Has header "xaa.h" with dependency xorg-server: NO (cached)
Has header "dgaproc.h" with dependency xorg-server: YES (cached)
Dependency xf86driproto found: YES 2.1.1 (cached)
Dependency x11 found: YES 1.6.9 (cached)
Dependency xvmc found: YES 1.0.12 (cached)
Dependency xorg-server found: YES 1.20.8 (cached)
Dependency libdrm found: YES 2.4.101 (cached)
Checking whether type "struct sysinfo" has member "totalram" : YES (cached)
Has header "alloca.h" : YES (cached)
Library m found: YES
Dependency threads found: YES unknown (cached)
Dependency xorg-server found: YES 1.20.8 (cached)
Dependency libdrm found: YES 2.4.101 (cached)
Dependency dri2proto found: YES 2.8 (cached)
Library rt found: YES
Dependency xorg-server found: YES 1.20.8 (cached)
Dependency pixman-1 found: YES 0.38.4 (cached)
Dependency libdrm found: YES 2.4.101 (cached)
Dependency libdrm_intel found: YES 2.4.101 (cached)
Dependency libudev found: YES 245 (cached)
Dependency dri2proto found: YES 2.8 (cached)
Dependency x11 found: YES 1.6.9 (cached)
Dependency xext found: YES 1.3.4 (cached)
Dependency xfixes found: YES 5.0.3 (cached)
Dependency xrender found: YES 0.9.10 (cached)
Dependency xdamage found: YES 1.1.5 (cached)
Dependency xrandr found: YES 1.5.2 (cached)
Dependency xrender found: YES 0.9.10 (cached)
Dependency xcursor found: YES 1.2.0 (cached)
Dependency xscrnsaver found: YES 1.2.3 (cached)
Dependency xinerama found: YES 1.1.4 (cached)
Dependency xtst found: YES 1.2.3 (cached)
Dependency pixman-1 found: YES 0.38.4 (cached)
WARNING: Project targeting '>0.40.0' but tried to use feature introduced in '0.41.0': capture arg in configure_file
WARNING: Project targeting '>0.40.0' but tried to use feature introduced in '0.50.0': install arg in configure_file
Configuring intel-virtual-output.4 with command
Dependency x11 found: YES 1.6.9 (cached)
Dependency xfixes found: YES 5.0.3 (cached)
Dependency libpng found: YES 1.6.37 (cached)
Dependency x11-xcb found: YES 1.6.9 (cached)
Dependency xcb-dri3 found: YES 1.14 (cached)
Dependency x11 found: YES 1.6.9 (cached)
Dependency xrandr found: YES 1.5.2 (cached)
Dependency xxf86vm found: YES 1.1.4 (cached)
Dependency dri3proto found: YES 1.2 (cached)
Dependency dri found: YES 20.0.4 (cached)
Dependency libdrm found: YES 2.4.101 (cached)
Configuring org.x.xf86-video-intel.backlight-helper.policy using configuration
Dependency threads found: YES unknown (cached)
Dependency x11 found: YES 1.6.9 (cached)
Dependency xvmc found: YES 1.0.12 (cached)
Dependency xorg-server found: YES 1.20.8 (cached)
Dependency x11-xcb found: YES 1.6.9 (cached)
Dependency xcb-aux found: YES 0.4.0 (cached)
Dependency xcb-dri2 found: YES 1.14 (cached)
Dependency libdrm_intel found: YES 2.4.101 (cached)
Configuring intel.4 with command
Configuring config.h using configuration
Build targets in project: 14
WARNING: Project specifies a minimum meson_version '>0.40.0' but uses features which were added in newer versions:
 * 0.40.0: {'compiler.get_define'}
 * 0.41.0: {'capture arg in configure_file'}
 * 0.50.0: {'install arg in configure_file'}

Found ninja-1.10.0 at /usr/bin/ninja

And here is the compilation error I am getting with Ninja:

[5/125] Linking target src/legacy/i810/xvmc/libI810XvMC.so.1.0.0.
FAILED: src/legacy/i810/xvmc/libI810XvMC.so.1.0.0
cc -o src/legacy/i810/xvmc/libI810XvMC.so.1.0.0 'src/legacy/i810/xvmc/b5ad8aa@@I810XvMC@sha/I810XvMC.c.o' -Wl,--as-needed -Wl,--no-undefined -shared -fPIC -Wl,--start-group -Wl,-soname,libI810XvMC.so.1 /usr/lib/x86_64-linux-gnu/libX11.so /usr/lib/x86_64-linux-gnu/libXvMC.so /usr/lib/x86_64-linux-gnu/libdrm.so -Wl,--end-group
/usr/bin/ld: src/legacy/i810/xvmc/b5ad8aa@@I810XvMC@sha/I810XvMC.c.o: in function `XvMCCreateContext':
/home/k/Build/xserver-xorg-video-intel/build/../src/legacy/i810/xvmc/I810XvMC.c:203: undefined reference to `XvGetPortAttribute'
collect2: error: ld returned 1 exit status
[7/125] Generating git_version.h with a custom command.
ninja: build stopped: subcommand failed.

Am I doing something wrong here?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu xserver-xorg-video-intel Edit question
Assignee:
No assignee Edit question
Solved by:
Dirk H
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

If you resolve the warning does it help?

WARNING: Project specifies a minimum meson_version '>0.40.0' but uses features

Why are you compiling this?

Revision history for this message
Dirk H (somename+) said :
#2

I explained a bit in the first paragraph of why I want to compile it. Alternatively, I need to set my xorg options dynamically depending on which configuration I used at bootup; The Intel driver options work in one configuration but not the other. Is there some reason I shouldn't compile this module?

I am not sure how I am to resolve these warnings. My version is 0.53.2 so I'm not really sure why it is complaining about my version number.

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

A web search shows that XvGetPortAttribute is in Xvlib.so which is in Ubuntu's fp-units-base-3.0.4 package (Free Pascal - base units package).
Does installing the package fp-units-base help?

Revision history for this message
Dirk H (somename+) said :
#4

No that package did not work.

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

"No that package did not work." - did not work in which sense?

Was the package already installed?
or
Did an attempt to install the package fail with an error?
or
Did a compile attempt fail with the same error as before?

Did you re-run ./configure after installation and before re-trying the compilation?

Revision history for this message
Dirk H (somename+) said :
#6

> Was the package already installed?
No
> Did an attempt to install the package fail with an error?
Yes
> Did a compile attempt fail with the same error as before?
Yes
> Did you re-run ./configure after installation and before re-trying the compilation?
Yes

I installed all the packages listed in the sources page and it doesn't compile.
(https://packages.ubuntu.com/source/xenial/xserver-xorg-video-intel)

Revision history for this message
Manfred Hampl (m-hampl) said :
#7

"> Did an attempt to install the package fail with an error?
 Yes"
With which error message?

Revision history for this message
Dirk H (somename+) said :
#8

Sorry I misread the question here:
> Did an attempt to install the package fail with an error?
No it installed fine.

Revision history for this message
Manfred Hampl (m-hampl) said :
#9

How are you starting the compile process? With the Debian Package Management commands (like debuild, dpkg-buildpackage or debian/build) or something else?

Revision history for this message
Dirk H (somename+) said :
#10

I was using meson with ninja files included in the git repository as mentioned in the op post. But I just tried to clean the directory and use dpkg-buildpackage and it was able to compile successfully. Thank you. I am not sure why they put in meson if it will not build.