This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug bootstrap/13042] Invalid lex option and lex error building treelang under hpux11


------- Additional Comments From dave at hiauly1 dot hia dot nrc dot ca  2003-11-14 21:50 -------
Subject: Re:  Invalid lex option and lex error building t

> ------- Additional Comments From pinskia at gcc dot gnu dot org  2003-11-13
> 22:12 -------
> What happens if you change $(LEX) in gcc/treelang/Make-lang.in to $(FLEX),
> does that work? 

Gets further:

...
stage1/xgcc -Bstage1/ -B/opt/gnu/hppa2.0w-hp-hpux11.00/bin/ -c   -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wmissing-prototypes -Wmissing-declarations -Werror -fno-common -Wno-error  -DHAVE_CONFIG_H    -I. -Itreelang -I../../gcc/gcc -I../../gcc/gcc/treelang -I../../gcc/gcc/../include  \
   /xxx/gnu/gcc-3.3/objdir/gcc/treelang/parse.c -o treelang/parse.o
make[2]: *** No rule to make target `-L/opt/gnu/hidden/lib', needed by `tree1'. 

It seems treelang/Make-lang.in has a dependency on various backend libraries:
# back end compiler libraries etc
TREE_BE_LIBS = $(BACKEND) $(LIBIBERTY) $(INTLIBS) $(LIBS) $(LIBDEPS)

and we have

# core compiler
tree1$(exeext): treelang/tree1.o treelang/treetree.o treelang/tree-convert.o \
	treelang/lex.o treelang/parse.o \
	$(TREE_BE_LIBS) attribs.o

The gcc Makefile includes LIBINTL in LIBS.  Configure set LIBINTL to:

# Internationalization library.
LIBINTL = /opt/gnu/lib/libintl.sl -L/opt/gnu/hidden/lib /opt/gnu/hidden/lib/libiconv.sl -lc -Wl,+b -Wl,/opt/gnu/hidden/lib

I'll try removing the dependency of tree1 on TREE_BE_LIBS.

Dave


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13042


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]