* GNU flex compile problem
@ 1996-02-13 5:00 Dave Carter
1996-02-15 5:00 ` Dave Carter
0 siblings, 1 reply; 2+ messages in thread
From: Dave Carter @ 1996-02-13 5:00 UTC (permalink / raw)
i get the following error when compiling GNU flex-2.5.2. does anyone
know why? (this is on a DEC alpha running osf1 3.2A).
- dave
gcc -g -O -o flex ccl.o dfa.o ecs.o gen.o main.o misc.o nfa.o parse.o scan.o skel.o sym.o tblcmp.o yylex.o libfl.a
collect2: ld returned 1 exit status
/usr/ucb/ld:
Warning: Linking some objects which contain exception information sections
and some which do not. This may cause fatal runtime exception handling
problems (last obj encountered without exceptions was skel.o).
Unresolved:
__malloc
__realloc
__free
make: *** [flex] Error 1
%
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: GNU flex compile problem
1996-02-13 5:00 GNU flex compile problem Dave Carter
@ 1996-02-15 5:00 ` Dave Carter
0 siblings, 0 replies; 2+ messages in thread
From: Dave Carter @ 1996-02-15 5:00 UTC (permalink / raw)
I previously wrote:
> i get the following error when compiling GNU flex-2.5.2:
> gcc -g -O -o flex ccl.o dfa.o ecs.o gen.o main.o misc.o nfa.o
> parse.o scan.o skel.o sym.o tblcmp.o yylex.o libfl.a
> collect2: ld returned 1 exit status
> /usr/ucb/ld:
> Warning: Linking some objects which contain exception information
> sections and some which do not. This may cause fatal runtime
> exception handling problems (last obj encountered without
> exceptions was skel.o).
> Unresolved:
> __malloc
> __realloc
> __free
> make: *** [flex] Error 1
Thanks to Kevin Oberman who helped me try to diagnose this problem.
He wrote:
> As previously mentioned, the warning is not important. Did you run
> configure? It looks like you compiled with the wrong options. There
> should be several defines on the compile line:
> -DSTDC_HEADERS=1 -DHAVE_STRING_H=1 -DHAVE_ALLOCA_H=1
i ran configure, with no options. if it compiled with the wrong
options, then configure didn't work properly for my system. (vanilla
DEC OSF/1 3.2A running on an Alpha.) i tried again to compile it
making sure those defines were in there, but got the same error.
Kevin Oberman responded with:
> Yup. Something weird is going on here. What version of gcc are you
> running? I can confirm that the symbol "__malloc" is not found in
> either libc or libgcc with gcc 2.7.2. You might want to scan the
> objects with nm and see if you can find the one that is trying to
> link to __malloc. (nm *.o | grep malloc) This is just a shot in the
> dark, though.
> Did you build gcc with gcc? This is grasping at straws, but it is a
> common problem. People get gcc, configure, and make install. This
> build gcc with cc and the resulting gcc is not a good compiler.
i am running gcc 2.7.2. i built gcc with gcc, twice, i believe, as it
recommended in INSTALL. the only problems i saw were the warnings
about objects containing exception information, which i guess i can
ignore. scanning the object files didn't produce much useful, but it
appears that at least scan.c and initscan.c accesses malloc.
does anyone have any idea where to look next?
- dave
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1996-02-15 5:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-02-13 5:00 GNU flex compile problem Dave Carter
1996-02-15 5:00 ` Dave Carter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox