Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 237452 - dev-util/git - Makefile:1237: *** mixed implicit and normal rules. Stop.
Summary: dev-util/git - Makefile:1237: *** mixed implicit and normal rules. Stop.
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Fernando J. Pereda (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-12 09:04 UTC by Balazs Nemeth
Modified: 2008-09-14 13:57 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
git-1.5.1.6 build log (dev-util:git-1.5.1.6:20080912-085351.log,42.79 KB, text/plain)
2008-09-12 09:05 UTC, Balazs Nemeth
Details
git-1.5.6.4 build log (dev-util:git-1.5.6.4:20080912-083158.log,54.44 KB, text/plain)
2008-09-12 09:06 UTC, Balazs Nemeth
Details
git-1.6.0.1 build log (dev-util:git-1.6.0.1:20080912-090849.log,55.05 KB, text/plain)
2008-09-12 09:07 UTC, Balazs Nemeth
Details
git-1.6.0.1/Makefile (Makefile,43.10 KB, text/plain)
2008-09-13 17:02 UTC, Balazs Nemeth
Details
make.conf (make.conf,1.72 KB, text/plain)
2008-09-14 11:26 UTC, Balazs Nemeth
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Balazs Nemeth 2008-09-12 09:04:48 UTC
dev-util/git{1.5.1.6,1.5.4.5,1.5.6.4,1.6.0.1} versions "make failed"

I only tried these versions. The results is the same. I had this problem on 32bit too but there were one version which build fine (1.5.4.5). Now I'm using 64bit and I can't emerge any of them.


Reproducible: Always

Steps to Reproduce:
1. emerge -av git
2. keyword / mask any version and try again
3. try different use flags and try again

Actual Results:  
...
Makefile:690: target `xinerama' given more than once in the same rule.
Makefile:690: target `gnome-keyring' given more than once in the same rule.
Makefile:690: target `gnome' given more than once in the same rule.
Makefile:690: target `gtk' given more than once in the same rule.
Makefile:690: target `-kde' given more than once in the same rule.
Makefile:690: target `-qt3' given more than once in the same rule.
Makefile:690: target `-qt4' given more than once in the same rule.
Makefile:690: target `lcms' given more than once in the same rule.
Makefile:797: *** mixed implicit and normal rules.  Stop.
 *
 * ERROR: dev-util/git-1.5.1.6 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2659:  Called die
 * The specific snippet of code:
 *       emake ${MY_MAKEOPTS} DESTDIR="${D}" prefix=/usr || die "make failed";
 *  The die message:
 *   make failed

Expected Results:  
It should build fine.

emerge --info
Portage 2.1.4.4 (default/linux/amd64/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.26-gentoo-r1 x86_64)
=================================================================
System uname: 2.6.26-gentoo-r1 x86_64 AMD Turion(tm) 64 X2 Mobile Technology TL-52
Timestamp of tree: Fri, 12 Sep 2008 05:17:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-lang/python:     2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -msse3 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -msse3 -O2 -pipe"
DISTDIR="/home/gentoo/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo/ http://de-mirror.org/distro/gentoo/"
LANG="hu_HU.UTF-8"
LC_ALL="hu_HU.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="hu"
MAKEOPTS="-j3"
PKGDIR="/home/gentoo/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/home/gentoo/tmp"
PORTDIR="/home/gentoo/portage"
PORTDIR_OVERLAY="/home/gentoo/overlay /home/gentoo/overlay-compiz"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X acpi alsa amd64 bzip2 cli cracklib crypt dbus dri dvd dvdr flac ftp gdbm gif gnome gnome-keyring gstreamer gtk hal howl iconv isdnlog jpeg lcms libnotify midi mmx mmxext mp3 mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pcre perl png pppd python readline reflection session slang spl sse sse2 sse3 ssl sysfs tcpd tiff truetype unicode xinerama xorg zlib" ALSA_CARDS="hda-intel" 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 auth_digest authn_dbd authn_default authn_file authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir env expires ext_filter filter headers ident imagemap include info log_config mem_cache mime mime_magic negotiation rewrite setenvif so speling status userdir usertrack unique_id vhost_alias suexec" APACHE2_MPMS="worker" CAMERAS="canon fuji" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="hu" USERLAND="GNU" VIDEO_CARDS="nvidia vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Balazs Nemeth 2008-09-12 09:05:49 UTC
Created attachment 165246 [details]
git-1.5.1.6 build log
Comment 2 Balazs Nemeth 2008-09-12 09:06:14 UTC
Created attachment 165247 [details]
git-1.5.6.4 build log
Comment 3 Balazs Nemeth 2008-09-12 09:07:33 UTC
Created attachment 165249 [details]
git-1.6.0.1 build log
Comment 4 Fernando J. Pereda (RETIRED) gentoo-dev 2008-09-13 16:18:22 UTC
Please attach /home/gentoo/tmp/portage/dev-util/git-1.6.0.1/work/Makefile

- ferdy

Comment 5 Balazs Nemeth 2008-09-13 17:02:14 UTC
Created attachment 165343 [details]
git-1.6.0.1/Makefile

Here it is.
/home/gentoo/tmp/portage/dev-util/git-1.6.0.1/work/git-1.6.0.1/Makefile

- Balage
Comment 6 Fernando J. Pereda (RETIRED) gentoo-dev 2008-09-13 23:47:07 UTC
And what's the exact error for that version?

- ferdy

Comment 7 Balazs Nemeth 2008-09-14 08:47:20 UTC
(In reply to comment #6)
> And what's the exact error for that version?
> 
> - ferdy
> 

See the "Actual Results" part in the bug report.

dev-util/git doesn't have any of these USE flags. But I'm getting this error message, regardless of the version numbers. Therefore git doesn't compile on my machine at all.


>>Makefile:690: target `xinerama' given more than once in the same rule.
>>Makefile:690: target `gnome-keyring' given more than once in the same rule.
>>Makefile:690: target `gnome' given more than once in the same rule.
>>Makefile:690: target `gtk' given more than once in the same rule.
>>Makefile:690: target `-kde' given more than once in the same rule.
>>Makefile:690: target `-qt3' given more than once in the same rule.
>>Makefile:690: target `-qt4' given more than once in the same rule.
>>Makefile:690: target `lcms' given more than once in the same rule.
>>Makefile:797: *** mixed implicit and normal rules.  Stop.
Comment 8 Fernando J. Pereda (RETIRED) gentoo-dev 2008-09-14 10:39:19 UTC
Can you please post your make.conf? Looks like some of USE is leaking into make's BUILT_INS or X...

- ferdy

Comment 9 Balazs Nemeth 2008-09-14 11:26:45 UTC
Created attachment 165388 [details]
make.conf

This is my make.conf

I'm not sure about that this kind of USE flag definiton that I'm using right now is correct. It's easier to read to me anyway.

- balage
Comment 10 Balazs Nemeth 2008-09-14 11:30:08 UTC
(In reply to comment #8)
> Can you please post your make.conf? Looks like some of USE is leaking into
> make's BUILT_INS or X...
> 
> - ferdy
> 

I found a related post in forums.gentoo.org. http://forums.gentoo.org/viewtopic-t-686297-highlight-mixed+implicit+normal+rules.html

Maybe it can help.
Comment 11 Fernando J. Pereda (RETIRED) gentoo-dev 2008-09-14 12:44:35 UTC
Ok, the problem is your 'X' variable in make.conf

You shouldn't use such a simple name in make.conf as it is likely to collide with variables in scripts and Makefiles.

The 'fix' here is to change that name.

- ferdy

Comment 12 Balazs Nemeth 2008-09-14 13:57:01 UTC
(In reply to comment #11)
> Ok, the problem is your 'X' variable in make.conf
> 
> You shouldn't use such a simple name in make.conf as it is likely to collide
> with variables in scripts and Makefiles.
> 
> The 'fix' here is to change that name.
> 
> - ferdy
> 

Wow. I'm using that variable for almost one year :) and only this package was affected. I changed the variable's name and now it compiles fine :)

Thank you for your help!

- balage