public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Jie Zhang <jie.zhang@analog.com>
To: Ralf.Wildenhues@gmx.de
Cc: binutils@sourceware.org
Subject: Parallel build error for Blackfin target
Date: Tue, 01 Sep 2009 06:50:00 -0000	[thread overview]
Message-ID: <4A9CC410.7060301@analog.com> (raw)

Hi Ralf,

Recently I found parallel build fails for all bfin-* targets. Configure 
with option: --target=bfin-linux-uclibc

$ make -j4

gives me

[snip]
/bin/sh /home/jie/sources/binutils/cvs-binutils/src/gas/../ylwrap 
/home/jie/sources/binutils/cvs-binutils/src/gas/config/bfin-parse.y 
y.tab.c bfin-parse.c y.tab.h bfin-parse.h -- bison -y   -d ;
mv -f .deps/atof-ieee.Tpo .deps/atof-ieee.Po
gcc -DHAVE_CONFIG_H -I. 
-I/home/jie/sources/binutils/cvs-binutils/src/binutils  -I. 
-I/home/jie/sources/binutils/cvs-binutils/src/binutils -I../bfd 
-I/home/jie/sources/binutils/cvs-binutils/src/binutils/../bfd 
-I/home/jie/sources/binutils/cvs-binutils/src/binutils/../include 
-DLOCALEDIR="\"/home/jie/installs/bfin-snapshot/share/locale\"" 
-Dbin_dummy_emulation=bin_vanilla_emulation  -W -Wall 
-Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -MT rdcoff.o -MD 
-MP -MF .deps/rdcoff.Tpo -c -o rdcoff.o 
/home/jie/sources/binutils/cvs-binutils/src/binutils/rdcoff.c
mv -f .deps/ieee.Tpo .deps/ieee.Po
/bin/sh /home/jie/sources/binutils/cvs-binutils/src/gas/../ylwrap 
/home/jie/sources/binutils/cvs-binutils/src/gas/config/bfin-lex.l 
lex.yy.c bfin-lex.c -- flex
/home/jie/sources/binutils/cvs-binutils/src/gas/config/bfin-lex.l:218: 
warning, rule cannot be matched
mv -f .deps/rdcoff.Tpo .deps/rdcoff.Po
gcc -DHAVE_CONFIG_H -I. 
-I/home/jie/sources/binutils/cvs-binutils/src/binutils  -I. 
-I/home/jie/sources/binutils/cvs-binutils/src/binutils -I../bfd 
-I/home/jie/sources/binutils/cvs-binutils/src/binutils/../bfd 
-I/home/jie/sources/binutils/cvs-binutils/src/binutils/../include 
-DLOCALEDIR="\"/home/jie/installs/bfin-snapshot/share/locale\"" 
-Dbin_dummy_emulation=bin_vanilla_emulation  -W -Wall 
-Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -MT arparse.o 
-MD -MP -MF .deps/arparse.Tpo -c -o arparse.o arparse.c -Wno-error
mv -f .deps/arparse.Tpo .deps/arparse.Po
/bin/sh /home/jie/sources/binutils/cvs-binutils/src/binutils/../ylwrap 
/home/jie/sources/binutils/cvs-binutils/src/binutils/arlex.l lex.yy.c 
arlex.c -- flex
gcc -DHAVE_CONFIG_H -I. 
-I/home/jie/sources/binutils/cvs-binutils/src/gas  -I. 
-I/home/jie/sources/binutils/cvs-binutils/src/gas -I../bfd 
-I/home/jie/sources/binutils/cvs-binutils/src/gas/config 
-I/home/jie/sources/binutils/cvs-binutils/src/gas/../include 
-I/home/jie/sources/binutils/cvs-binutils/src/gas/.. 
-I/home/jie/sources/binutils/cvs-binutils/src/gas/../bfd 
-DLOCALEDIR="\"/home/jie/installs/bfin-snapshot/share/locale\""  -W 
-Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -MT 
bfin-lex.o -MD -MP -MF .deps/bfin-lex.Tpo -c -o bfin-lex.o bfin-lex.c 
-Wno-error
gcc -DHAVE_CONFIG_H -I. 
-I/home/jie/sources/binutils/cvs-binutils/src/binutils  -I. 
-I/home/jie/sources/binutils/cvs-binutils/src/binutils -I../bfd 
-I/home/jie/sources/binutils/cvs-binutils/src/binutils/../bfd 
-I/home/jie/sources/binutils/cvs-binutils/src/binutils/../include 
-DLOCALEDIR="\"/home/jie/installs/bfin-snapshot/share/locale\"" 
-Dbin_dummy_emulation=bin_vanilla_emulation  -W -Wall 
-Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -MT ar.o -MD -MP 
-MF .deps/ar.Tpo -c -o ar.o 
/home/jie/sources/binutils/cvs-binutils/src/binutils/ar.c
bfin-lex.l:25:24: error: bfin-parse.h: No such file or directory
bfin-lex.l: In function ‘yylex’:
bfin-lex.l:44: error: ‘yylval’ undeclared (first use in this function)
bfin-lex.l:44: error: (Each undeclared identifier is reported only once
[snip]

A second make will succeed.

Previously

bfin-lex.o: bfin-lex.c bfin-parse.h $(srcdir)/config/bfin-defs.h
         $(COMPILE) -c $< $(NO_WERROR)

Now

bfin-lex.o: bfin-lex.c
if am__fastdepCC
         $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ 
bfin-lex.c $(NO_WERROR)
         mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
else
if AMDEP
         source='bfin-lex.c' object='$@' libtool=no @AMDEPBACKSLASH@
         DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
endif
         $(COMPILE) -c bfin-lex.c $(NO_WERROR)
endif

Should I add back "bfin-parse.h $(srcdir)/config/bfin-defs.h" as the 
dependency of bfin-lex.o?


Jie

             reply	other threads:[~2009-09-01  6:50 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-01  6:50 Jie Zhang [this message]
2009-09-01  7:11 ` Dave Korn
2009-09-01  8:29   ` Jie Zhang
2009-09-01  8:41     ` Jie Zhang
2009-09-01  9:58       ` [PATCH] Fix parallel build error for Blackfin target (was Re: Parallel build error for Blackfin target) Jie Zhang
2009-09-01 21:14         ` Ralf Wildenhues
2009-09-02  6:24           ` Jie Zhang
2009-09-01 21:00   ` Parallel build error for Blackfin target Ralf Wildenhues

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A9CC410.7060301@analog.com \
    --to=jie.zhang@analog.com \
    --cc=Ralf.Wildenhues@gmx.de \
    --cc=binutils@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).