Problems with FreeBSD sed while compiling and drm
Hi, after starting make (first time) on FreeBSD, you get this error during the build process: [...] Generating radeon.man.new... sed: 1: "s/^[ ]\{1,\}"\\t\\t\(. ...": RE error: regexec() failed to match *** Error code 1 Stop in /usr/home/cinek/xf86-video-radeonhd/src. *** Error code 1 [...] Perhaps sed is a bit different on GNU-based and BSD-based systems. Secondly. I have two ATI video graphics adapters. - Mobility FireGL V5200 (M56) - HD 2600XT (RV630) Loading radeon.ko does not create any dri nodes in devfs. I guess it's hopeless, but if someone knows about patches to the old driver that will allow dri to work, I would be happy to test my hardware. The most recent recognized chipset seems to be R420: http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/dev/drm/drm_pciids.h?rev=1.9 -- Thanks, Martin Sugioarto -- To unsubscribe, e-mail: radeonhd+unsubscribe@opensuse.org For additional commands, e-mail: radeonhd+help@opensuse.org
Martin wrote:
after starting make (first time) on FreeBSD, you get this error during the build process:
[...] Generating radeon.man.new... sed: 1: "s/^[ ]\{1,\}"\\t\\t\(. ...": RE error: regexec() failed to match *** Error code 1
Stop in /usr/home/cinek/xf86-video-radeonhd/src. *** Error code 1 [...]
Perhaps sed is a bit different on GNU-based and BSD-based systems.
Potentially. That is why I have written it such that you can just run the build similar to make all SED='/sbin/busybox sed' in order to have it use a "good" sed implementation. I have tested the sed stuff with GNU sed and busybox sed, but it appears I need to add more seds to my test suite. What kind of sed does FreeBSD use? Is it minised? Not being familiar with FreeBSD, the only sed on FreeBSD I could find was minised[1] and that does indeed fail to parse our sed expressions. [1] http://www.exactcode.de/site/open_source/minised/ -- Hans Ulrich Niedermann
Martin wrote:
after starting make (first time) on FreeBSD, you get this error during the build process:
[...] Generating radeon.man.new... sed: 1: "s/^[ ]\{1,\}"\\t\\t\(. ...": RE error: regexec() failed to match *** Error code 1
Stop in /usr/home/cinek/xf86-video-radeonhd/src. *** Error code 1 [...]
Perhaps sed is a bit different on GNU-based and BSD-based systems.
If FreeBSD is not using minised but something else which I did not
find, the following might help.
From 495e368574e27b8f81f5221cb20c2359bfe58fcc Mon Sep 17 00:00:00 2001
From: Hans Ulrich Niedermann
Am Wed, 30 Jul 2008 12:30:22 +0200
schrieb Hans Ulrich Niedermann
If FreeBSD is not using minised but something else which I did not find, the following might help.
I'm not sure what minised is, but your patch addresses the problem correctly. At least a bit of it. There is also a second line that needs your kind of patch (attached). Perhaps not that important... Now the sources compile, but there is a confusing warning at the end: WARNING: Cannot build the rhd_conntest program due to missing dependencies. *IF* you want to build rhd_conntest, install development packages of both pciutils and zlib/libz and re-run the configure (or autogen) script. But I have them installed :) pciutils-2.2.8 PCI configuration utilities -r--r--r-- 1 root wheel 109650 21 Jul 01:27 /usr/lib/libz.a lrwxr-xr-x 1 root wheel 14 21 Jul 01:27 /usr/lib/libz.so -> /lib/libz.so.4 -- Martin
Martin wrote:
Now the sources compile, but there is a confusing warning at the end:
WARNING: Cannot build the rhd_conntest program due to missing dependencies. *IF* you want to build rhd_conntest, install development packages of both pciutils and zlib/libz and re-run the configure (or autogen) script.
But I have them installed :)
pciutils-2.2.8 PCI configuration utilities
Are you sure you are not missing devel/pciutils or something similarly named? We are looking for libpci.pc and and pci/pci.h here...
-r--r--r-- 1 root wheel 109650 21 Jul 01:27 /usr/lib/libz.a lrwxr-xr-x 1 root wheel 14 21 Jul 01:27 /usr/lib/libz.so -> /lib/libz.so.4
OK, so the zlib check should turn up positive. If you do have pci/pci.h and libpci.pc installed, could you privately mail me config.log and utils/conntest/Makefile after a configure run ending in that WARNING? -- Hans Ulrich Niedermann
Martin schreef:
Am Wed, 30 Jul 2008 12:30:22 +0200 schrieb Hans Ulrich Niedermann
: Hallo Hans,
If FreeBSD is not using minised but something else which I did not find, the following might help.
I'm not sure what minised is, but your patch addresses the problem correctly. At least a bit of it. There is also a second line that needs your kind of patch (attached).
Perhaps not that important...
Now the sources compile, but there is a confusing warning at the end:
WARNING: Cannot build the rhd_conntest program due to missing dependencies. *IF* you want to build rhd_conntest, install development packages of both pciutils and zlib/libz and re-run the configure (or autogen) script.
But I have them installed :)
pciutils-2.2.8 PCI configuration utilities
-r--r--r-- 1 root wheel 109650 21 Jul 01:27 /usr/lib/libz.a lrwxr-xr-x 1 root wheel 14 21 Jul 01:27 /usr/lib/libz.so -> /lib/libz.so.4
It works in the x11-drivers/xf86-video-radeonhd port. Try this (in sh): PCIUTILS_CFLAGS="-I/usr/local/include -lpci -lz" PCIUTILS_LIBS="-L/usr/local/lib" ./configure and make sure you have devel/libpci installed (companion of sysutils/pciutils) HTH, Rene -- http://www.rene-ladan.nl/ GPG fingerprint = E738 5471 D185 7013 0EE0 4FC8 3C1D 6F83 12E1 84F6 (subkeys.pgp.net) -- To unsubscribe, e-mail: radeonhd+unsubscribe@opensuse.org For additional commands, e-mail: radeonhd+help@opensuse.org
Rene Ladan wrote:
Martin schreef:
Now the sources compile, but there is a confusing warning at the end:
WARNING: Cannot build the rhd_conntest program due to missing dependencies. *IF* you want to build rhd_conntest, install development packages of both pciutils and zlib/libz and re-run the configure (or autogen) script.
But I have them installed :)
pciutils-2.2.8 PCI configuration utilities
-r--r--r-- 1 root wheel 109650 21 Jul 01:27 /usr/lib/libz.a lrwxr-xr-x 1 root wheel 14 21 Jul 01:27 /usr/lib/libz.so -> /lib/libz.so.4
It works in the x11-drivers/xf86-video-radeonhd port. Try this (in sh): PCIUTILS_CFLAGS="-I/usr/local/include -lpci -lz" PCIUTILS_LIBS="-L/usr/local/lib" ./configure
and make sure you have devel/libpci installed (companion of sysutils/pciutils)
Hmm. Sounds like FreeBSD's pkgconfig should be changed to have /usr/Local/lib/pkgconfig in its default search path? If it did (or if you set PKG_CONFIG_PATH="/usr/local/lib/pkgconfig" manually), we should pick up libpci automatically. -- Hans Ulrich Niedermann
Hans Ulrich Niedermann schreef:
Rene Ladan wrote:
Martin schreef:
Now the sources compile, but there is a confusing warning at the end:
WARNING: Cannot build the rhd_conntest program due to missing dependencies. *IF* you want to build rhd_conntest, install development packages of both pciutils and zlib/libz and re-run the configure (or autogen) script.
But I have them installed :)
pciutils-2.2.8 PCI configuration utilities
-r--r--r-- 1 root wheel 109650 21 Jul 01:27 /usr/lib/libz.a lrwxr-xr-x 1 root wheel 14 21 Jul 01:27 /usr/lib/libz.so -> /lib/libz.so.4
It works in the x11-drivers/xf86-video-radeonhd port. Try this (in sh): PCIUTILS_CFLAGS="-I/usr/local/include -lpci -lz" PCIUTILS_LIBS="-L/usr/local/lib" ./configure
and make sure you have devel/libpci installed (companion of sysutils/pciutils)
Hmm. Sounds like FreeBSD's pkgconfig should be changed to have /usr/Local/lib/pkgconfig in its default search path? If it did (or if you set PKG_CONFIG_PATH="/usr/local/lib/pkgconfig" manually), we should pick up libpci automatically.
Uhm... for some reason FreeBSD uses libdata/ instead of lib/ (hier(7) is silent about it). But you'd have to set either PKG_CONFIG_PATH or PCIUTILS_* so it doesn't really make a difference. Regards, Rene -- http://www.rene-ladan.nl/ GPG fingerprint = E738 5471 D185 7013 0EE0 4FC8 3C1D 6F83 12E1 84F6 (subkeys.pgp.net) -- To unsubscribe, e-mail: radeonhd+unsubscribe@opensuse.org For additional commands, e-mail: radeonhd+help@opensuse.org
Am Wed, 30 Jul 2008 20:11:16 +0200
schrieb Rene Ladan
It works in the x11-drivers/xf86-video-radeonhd port. Try this (in sh): PCIUTILS_CFLAGS="-I/usr/local/include -lpci -lz" PCIUTILS_LIBS="-L/usr/local/lib" ./configure
Oh yes. You are right, Rene. The warning went away. I think it should better be communicated up to the developers, so one can easier build from master on FreeBSD.
and make sure you have devel/libpci installed (companion of sysutils/pciutils)
This was not the problem. Btw, I'm really sad about the drm part of my question. Anyone has some hints how to get dri running on FreeBSD with RV630 or M56? Or is it really hopeless at the moment? -- Martin
Don't bother trying to get RV630 dri working yet, that is still work in
progress.
M56 should be no problem other than any accumulated FreeBSD-specific
problems. I have heard conflicting views about the status of drm on
FreeBSD ranging from "bitrotted" to "dang, it works" so I can't say
anything definitive but I *think* I remember seeing mention on IRC that
someone had it running recently.
-----Original Message-----
From: nakal@web.de [mailto:nakal@web.de]
Sent: Wednesday, July 30, 2008 3:41 PM
To: Rene Ladan
Cc: Hans Ulrich Niedermann; radeonhd@opensuse.org
Subject: Re: [radeonhd] Problems with FreeBSD sed while compiling and
drm
Am Wed, 30 Jul 2008 20:11:16 +0200
schrieb Rene Ladan
It works in the x11-drivers/xf86-video-radeonhd port. Try this (in sh): PCIUTILS_CFLAGS="-I/usr/local/include -lpci -lz" PCIUTILS_LIBS="-L/usr/local/lib" ./configure
Oh yes. You are right, Rene. The warning went away. I think it should better be communicated up to the developers, so one can easier build from master on FreeBSD.
and make sure you have devel/libpci installed (companion of sysutils/pciutils)
This was not the problem. Btw, I'm really sad about the drm part of my question. Anyone has some hints how to get dri running on FreeBSD with RV630 or M56? Or is it really hopeless at the moment? -- Martin -- To unsubscribe, e-mail: radeonhd+unsubscribe@opensuse.org For additional commands, e-mail: radeonhd+help@opensuse.org
participants (4)
-
Bridgman, John
-
Hans Ulrich Niedermann
-
Martin
-
Rene Ladan