Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Gentoo User (http://www.linux-archive.org/gentoo-user/)
-   -   revdep-rebuild (gawk) issues (http://www.linux-archive.org/gentoo-user/672243-revdep-rebuild-gawk-issues.html)

Alan McKinnon 05-29-2012 02:35 PM

revdep-rebuild (gawk) issues
 
On Tue, 29 May 2012 15:34:07 +0200
Rafa Griman <rafagriman@gmail.com> wrote:

> Hi all :)
>
> New to this mailing list. I'm installing Gentoo and when I run
> revdep-rebuild I get the following error
>
> # revdep-rebuild
> * Configuring search environment for revdep-rebuild
> gawk: cmd. line:3: error: Unmatched [ or [^: /[^[:space:]]/
> gawk: cmd. line:3: error: Unmatched [ or [^: /[^[:space:]]/
> gawk: cmd. line:3: error: Unmatched [ or [^: /[^[:space:]]/
> gawk: cmd. line:3: error: Unmatched [ or [^: /[^[:space:]]/
> * No search defined -- this is a bug.

You have stumbled upon a heretofore unseen behaviour of
revdep-rebuild :-)

In other words "we ain't never seen it do that before..."

Let's first establish where you are at in the installation.

Are you following the Installation Guide at gentoo.org?
If so, what point in the guide are you at? Are you still in the chroot
environment, or have you completed that part and successfully rebooted
at least once?

Do you have any personal customizations in your shell environment?
Is the shell bash?

And some basic info:
Post the entire content of /etc/make.conf and the output of "emerge
--info"

> #
>
> I've been going through /usr/bin/revdep-rebuild.sh but can't quite fix
> the issue :( I've also been checking the Gentoo Forums and mailing
> list archive but didn't find anything (maybe I'm not searching
> correctly ;)
>
> If I've got it right, the issue is because of how gawk and the shell
> interpret the "[" characters so I've been trying to escape them ...
> but I seem to be doing something wrong :(
>
> I also get a similar error when trying to emerge qca:
>
> >>> Unpacking source...
> >>> Unpacking qca-2.0.3.tar.bz2
> >>> to /var/tmp/portage/app-crypt/qca-2.0.3/work Source unpacked
> >>> in /var/tmp/portage/app-crypt/qca-2.0.3/work Preparing source
> >>> in /var/tmp/portage/app-crypt/qca-2.0.3/work/qca-2.0.3 ...
> * Applying qca-2.0.2-pcfilespath.patch ...
> * Applying qca-2.0.3+gcc-4.7.patch ...
> >>> Source prepared.
> >>> Configuring source
> >>> in /var/tmp/portage/app-crypt/qca-2.0.3/work/qca-2.0.3 ...
> Configuring Qt Cryptographic Architecture (QCA) ...
> Verifying Qt 4 build environment ... ok
> Checking for Qt >= 4.2 ... yes
> Checking for certstore ... /etc/ssl/certs/ca-certificates.crt
>
> Good, your configure finished. Now run /usr/bin/gmake.
>
> * Running qmake ...
> awk: cmd. line:7: error: Unmatched [ or [^:
> /^[[:blank:]]*CONFIG[[:blank:]]*[+*]?=/
> * - error while processing src/src.pro
> * ERROR: app-crypt/qca-2.0.3 failed (configure phase):
> * eqmake4 failed to process src/src.pro
>
>
> Any hints, ideas, links, ...I could read into?
>
> TIA
>
> Rafa
>



--
Alan McKinnnon
alan.mckinnon@gmail.com

Rafa Griman 05-29-2012 03:26 PM

revdep-rebuild (gawk) issues
 
Hi :)

On Tue, May 29, 2012 at 4:35 PM, Alan McKinnon <alan.mckinnon@gmail.com> wrote:
> On Tue, 29 May 2012 15:34:07 +0200
> Rafa Griman <rafagriman@gmail.com> wrote:
>
>> Hi all :)
>>
>> New to this mailing list. I'm installing Gentoo and when I run
>> revdep-rebuild I get the following error
>>
>> # revdep-rebuild
>> ** Configuring search environment for revdep-rebuild
>> gawk: cmd. line:3: error: Unmatched [ or [^: /[^[:space:]]/
>> gawk: cmd. line:3: error: Unmatched [ or [^: /[^[:space:]]/
>> gawk: cmd. line:3: error: Unmatched [ or [^: /[^[:space:]]/
>> gawk: cmd. line:3: error: Unmatched [ or [^: /[^[:space:]]/
>> ** No search defined -- this is a bug.
>
> You have stumbled upon a heretofore unseen behaviour of
> revdep-rebuild :-)
>
> In other words "we ain't never seen it do that before..."


<sigh> ... Well I guess there's always a first time ;) Nah, seriously,
first time I've seen it too.


> Let's first establish where you are at in the installation.
>
> Are you following the Installation Guide at gentoo.org?


Yup, followed the guide. Just FYI, I have an Asus R2 system running
Gentoo in which I haven't had this issue and now I just installed an
MSI Wind netbook in which I'm having this issue :(


> If so, what point in the guide are you at? Are you still in the chroot
> environment, or have you completed that part and successfully rebooted
> at least once?


Nope, not in the chroot environment, already rebooted. Everything
(seems) to work OK, except for revdep-rebuild and the qca compilation.

Right now I was going to install KDE and all the needed software to
get a useful desktop up and running so it's a minimal system.


> Do you have any personal customizations in your shell environment?


Nope.


> Is the shell bash?


Yup.


> And some basic info:
> Post the entire content of /etc/make.conf and the output of "emerge
> --info"


I'll send this as soon as I get home tonight since I don't have the
netbook here with me.

Thanks for your time !!!

Rafa

Vaeth 05-29-2012 05:02 PM

revdep-rebuild (gawk) issues
 
On Tue, 29 May 2012, Rafa Griman wrote:

gawk: cmd. line:3: error: Unmatched [ or [^: /[^[:space:]]/


Your gawk is broken. This happens if you emerged gawk with
current gcc and aggressive FLAGS like -DNDEBUG or -flto.
Not sure whether it is a bug of gawk or gcc.

Rafa Griman 05-29-2012 08:49 PM

revdep-rebuild (gawk) issues
 
Hey !!

On Tue, May 29, 2012 at 4:35 PM, Alan McKinnon <alan.mckinnon@gmail.com> wrote:

[...]

> And some basic info:
> Post the entire content of /etc/make.conf and the output of "emerge
> --info"


OK, back again. Here goes:

# emerge --info
Portage 2.1.10.49 (default/linux/x86/10.0, gcc-4.5.3, glibc-2.14.1-r3,
3.2.12-gentoo-libre01 i686)
================================================== ===============
System uname: Linux-3.2.12-gentoo-libre01-i686-Intel-R-_Atom-TM-_CPU_N270_@_1.60GHz-with-gentoo-2.1
Timestamp of tree: Tue, 29 May 2012 06:00:01 +0000
app-shells/bash: 4.2_p20
dev-lang/python: 2.7.3-r1, 3.2.3
dev-util/pkgconfig: 0.26
sys-apps/baselayout: 2.1-r1
sys-apps/openrc: 0.9.8.4
sys-apps/sandbox: 2.5
sys-devel/autoconf: 2.68
sys-devel/automake: 1.11.1
sys-devel/binutils: 2.21.1-r1
sys-devel/gcc: 4.5.3-r2
sys-devel/gcc-config: 1.5-r2
sys-devel/libtool: 2.4-r1
sys-devel/make: 3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc: 2.14.1-r3
Repositories: gentoo
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA skype-eula"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -pipe -fomit-frame-pointer -fno-inline -march=atom
-mtune=atom -mmmx -msse -msse2 -mfpmath=sse -msse3 -mssse3"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf
/etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -fomit-frame-pointer -fno-inline -march=atom
-mtune=atom -mmmx -msse -msse2 -mfpmath=sse -msse3 -mssse3"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles
news parallel-fetch protect-owned sandbox sfperms strict
unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo
rsync://mirror.bytemark.co.uk/gentoo/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_US"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times
--compress --force --whole-file --delete --stats --human-readable
--timeout=180 --exclude=/distfiles --exclude=/local
--exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl berkdb bzip2 cli cracklib crypt cups cxx dri gd gdbm graphite
iconv lzma modules mudflap ncurses nls nptl pam pcre pppd readline
session sse2 ssl tcpd unicode x86 xorg zlib" ALSA_CARDS="hda-intel
loopback virmidi" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare
dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear
meter mmap_emul mulaw multi null plug rate route share shm softvol"
APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon
authn_dbm authn_default authn_file authz_dbm authz_default
authz_groupfile authz_host authz_owner authz_user autoindex cache cgi
cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter
file_cache filter headers include info log_config logio mem_cache mime
mime_magic negotiation rewrite setenvif speling status unique_id
userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan
sheets stage tables krita karbon braindump" CAMERAS="ptp2 canon"
COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog"
ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18
garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver
oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip
tripmate tnt ubx" INPUT_DEVICES="evdev keyboard mouse synaptics void"
KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216
lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console
presenter-minimizer" LINGUAS="en en_US" PHP_TARGETS="php5-3"
PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19"
SANE_BACKENDS="hp hp3500 hp3900 hp4200 hp5400 hp5590 hpljm1005 hpsj5s"
USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock
lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee
tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG,
LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS,
PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

And my make.conf file:

# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
#CFLAGS="-O2 -march=i686 -pipe"
CFLAGS="-O2 -pipe -fomit-frame-pointer -fno-inline -march=atom
-mtune=atom -mmmx -msse -msse2 -mfpmath=sse -msse3 -mssse3"
CXXFLAGS="${CFLAGS}"

# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="i686-pc-linux-gnu"

#LDFLAGS="-Wl,-O1,--as-needed"

USE="-gtk -fortran -openmp -fortran -mono -mozilla -gtk3 -gtkhtml
-ipv6 gd lzma -git -gpm sse2 graphite"
LINGUAS="en en_US"
VIDEO_CARDS="intel"
ALSA_CARDS="hda-intel loopback virmidi"
INPUT_DEVICES="evdev keyboard mouse synaptics void"
GENTOO_MIRRORS="ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo
rsync://mirror.bytemark.co.uk/gentoo/"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
ACCEPT_LICENSE="skype-eula"
SANE_BACKENDS="hp hp3500 hp3900 hp4200 hp5400 hp5590 hpljm1005 hpsj5s"
CAMERAS="ptp2 canon"

I just read Vaeth's e-mail ... seems my CFLAGS are too agressive. I
must admit some "experimentation" with them O:) You can see them in
the make.conf file.

Thanks !!!

Rafa

Rafa Griman 05-29-2012 08:56 PM

revdep-rebuild (gawk) issues
 
Hi Vaeth :)

On Tue, May 29, 2012 at 7:02 PM, Vaeth
<vaeth@mathematik.uni-wuerzburg.de> wrote:
> On Tue, 29 May 2012, Rafa Griman wrote:
>>
>> gawk: cmd. line:3: error: Unmatched [ or [^: /[^[:space:]]/
>
>
> Your gawk is broken. This happens if you emerged gawk with
> current gcc and aggressive FLAGS like -DNDEBUG or -flto.
> Not sure whether it is a bug of gawk or gcc.


So it seems to be the CFLAGS :( As I said in my previous e-mail, I was
"experimenting" a bit with them ... I'll be more conservative ;)

Thanks !!!

Rafa

Alan McKinnon 05-29-2012 09:09 PM

revdep-rebuild (gawk) issues
 
On Tue, 29 May 2012 22:56:07 +0200
Rafa Griman <rafagriman@gmail.com> wrote:

> Hi Vaeth :)
>
> On Tue, May 29, 2012 at 7:02 PM, Vaeth
> <vaeth@mathematik.uni-wuerzburg.de> wrote:
> > On Tue, 29 May 2012, Rafa Griman wrote:
> >>
> >> gawk: cmd. line:3: error: Unmatched [ or [^: /[^[:space:]]/
> >
> >
> > Your gawk is broken. This happens if you emerged gawk with
> > current gcc and aggressive FLAGS like -DNDEBUG or -flto.
> > Not sure whether it is a bug of gawk or gcc.
>
>
> So it seems to be the CFLAGS :( As I said in my previous e-mail, I was
> "experimenting" a bit with them ... I'll be more conservative ;)

Well, on the one hand the flags don;t seem to be too bad overall, but
on the other hand there's the golden rule of Gentoo:

Don't stuff around with CFLAGS

Why not? Well, there's the ricer phenomenon where changed CFLAGS
worsen performance and stability but the user's own bias convinces
him/her that it's actually vastly improved.

Some tweaks are perfectly OK, like the multimedia and cpu-specific
stuff (sse, mmx and all their related cousins). These are normally safe
and can give huge gains with video playback. Likewise for the GPU tweaks
once those hit mainline usage.

One last tweak, if the code is built on the machine that will run it
(the usual case, replace -march and -mtune with just "-march=native".
It has exactly the same effect but is easier to read, is
self-documenting and allows the compiler to attempt it's best (the
compiler usually does know much better what to do than you do)

--
Alan McKinnnon
alan.mckinnon@gmail.com

Rafa Griman 05-29-2012 09:37 PM

revdep-rebuild (gawk) issues
 
On Tue, May 29, 2012 at 11:09 PM, Alan McKinnon <alan.mckinnon@gmail.com> wrote:
> On Tue, 29 May 2012 22:56:07 +0200
> Rafa Griman <rafagriman@gmail.com> wrote:
>
>> Hi Vaeth :)
>>
>> On Tue, May 29, 2012 at 7:02 PM, Vaeth
>> <vaeth@mathematik.uni-wuerzburg.de> wrote:
>> > On Tue, 29 May 2012, Rafa Griman wrote:
>> >>
>> >> gawk: cmd. line:3: error: Unmatched [ or [^: /[^[:space:]]/
>> >
>> >
>> > Your gawk is broken. This happens if you emerged gawk with
>> > current gcc and aggressive FLAGS like -DNDEBUG or -flto.
>> > Not sure whether it is a bug of gawk or gcc.
>>
>>
>> So it seems to be the CFLAGS :( As I said in my previous e-mail, I was
>> "experimenting" a bit with them ... I'll be more conservative ;)
>
> Well, on the one hand the flags don;t seem to be too bad overall, but
> on the other hand there's the golden rule of Gentoo:
>
> Don't stuff around with CFLAGS
>
> Why not? Well, there's the ricer phenomenon where changed CFLAGS
> worsen performance and stability but the user's own bias convinces
> him/her that it's actually vastly improved.


I know that rule and tried not to be too agressive but seems I was O:)
Since it's not my min machine, I was going to experiment (nothing
"scientific", just curiosity) trying different options on different
partitions and see how they work out.


> Some tweaks are perfectly OK, like the multimedia and cpu-specific
> stuff (sse, mmx and all their related cousins). These are normally safe
> and can give huge gains with video playback. Likewise for the GPU tweaks
> once those hit mainline usage.


That was mainly the reason: video playback and some other apps
(scientific). But nothing serious.


> One last tweak, if the code is built on the machine that will run it
> (the usual case, replace -march and -mtune with just "-march=native".
> It has exactly the same effect but is easier to read, is
> self-documenting and allows the compiler to attempt it's best (the
> compiler usually does know much better what to do than you do)

I totally agree with you: the compiler knos better ;)

TIA

Rafa

Florian Philipp 05-30-2012 06:37 PM

revdep-rebuild (gawk) issues
 
Am 29.05.2012 23:37, schrieb Rafa Griman:
> On Tue, May 29, 2012 at 11:09 PM, Alan McKinnon <alan.mckinnon@gmail.com> wrote:
>> On Tue, 29 May 2012 22:56:07 +0200
>> Rafa Griman <rafagriman@gmail.com> wrote:
>>
>>> Hi Vaeth :)
>>>
>>> On Tue, May 29, 2012 at 7:02 PM, Vaeth
>>> <vaeth@mathematik.uni-wuerzburg.de> wrote:
>>>> On Tue, 29 May 2012, Rafa Griman wrote:
>>>>>
>>>>> gawk: cmd. line:3: error: Unmatched [ or [^: /[^[:space:]]/
>>>>
>>>>
>>>> Your gawk is broken. This happens if you emerged gawk with
>>>> current gcc and aggressive FLAGS like -DNDEBUG or -flto.
>>>> Not sure whether it is a bug of gawk or gcc.
>>>
>>>
>>> So it seems to be the CFLAGS :( As I said in my previous e-mail, I was
>>> "experimenting" a bit with them ... I'll be more conservative ;)
>>
>> Well, on the one hand the flags don;t seem to be too bad overall, but
>> on the other hand there's the golden rule of Gentoo:
>>
>> Don't stuff around with CFLAGS
>>
>> Why not? Well, there's the ricer phenomenon where changed CFLAGS
>> worsen performance and stability but the user's own bias convinces
>> him/her that it's actually vastly improved.
>
>
> I know that rule and tried not to be too agressive but seems I was O:)
> Since it's not my min machine, I was going to experiment (nothing
> "scientific", just curiosity) trying different options on different
> partitions and see how they work out.
>

Out of curiosity: What flags do you run now? Do you know which flag
exactly caused the problem? They didn't seem too experimental though
-fno-inline looked odd.

Regards,
Florian Philipp

Rafa Griman 05-30-2012 08:17 PM

revdep-rebuild (gawk) issues
 
On Wed, May 30, 2012 at 8:37 PM, Florian Philipp <lists@binarywings.net> wrote:
> Am 29.05.2012 23:37, schrieb Rafa Griman:
>> On Tue, May 29, 2012 at 11:09 PM, Alan McKinnon <alan.mckinnon@gmail.com> wrote:
>>> On Tue, 29 May 2012 22:56:07 +0200
>>> Rafa Griman <rafagriman@gmail.com> wrote:
>>>
>>>> Hi Vaeth :)
>>>>
>>>> On Tue, May 29, 2012 at 7:02 PM, Vaeth
>>>> <vaeth@mathematik.uni-wuerzburg.de> wrote:
>>>>> On Tue, 29 May 2012, Rafa Griman wrote:
>>>>>>
>>>>>> gawk: cmd. line:3: error: Unmatched [ or [^: /[^[:space:]]/
>>>>>
>>>>>
>>>>> Your gawk is broken. This happens if you emerged gawk with
>>>>> current gcc and aggressive FLAGS like -DNDEBUG or -flto.
>>>>> Not sure whether it is a bug of gawk or gcc.
>>>>
>>>>
>>>> So it seems to be the CFLAGS :( As I said in my previous e-mail, I was
>>>> "experimenting" a bit with them ... I'll be more conservative ;)
>>>
>>> Well, on the one hand the flags don;t seem to be too bad overall, but
>>> on the other hand there's the golden rule of Gentoo:
>>>
>>> Don't stuff around with CFLAGS
>>>
>>> Why not? Well, there's the ricer phenomenon where changed CFLAGS
>>> worsen performance and stability but the user's own bias convinces
>>> him/her that it's actually vastly improved.
>>
>>
>> I know that rule and tried not to be too agressive but seems I was O:)
>> Since it's not my min machine, I was going to experiment (nothing
>> "scientific", just curiosity) trying different options on different
>> partitions and see how they work out.
>>
>
> Out of curiosity: What flags do you run now? Do you know which flag
> exactly caused the problem? They didn't seem too experimental though
> -fno-inline looked odd.


That one's it: -fno-inline. Removed it and now the error disappears.
revdep-rebuild runs well now.

Thanks all !!!

Rafa


All times are GMT. The time now is 11:25 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.