compiling gcc

compiling gcc

Post by Duane Smit » Sun, 04 Mar 2001 03:50:40



what does it mean when compling a program (gcc), at the end I get an
error for undefined symbol: .alloca

ALex

 
 
 

compiling gcc

Post by Timothy J. L » Sun, 04 Mar 2001 04:36:52




Quote:>what does it mean when compling a program (gcc), at the end I get an
>error for undefined symbol: .alloca

For the alloca function, you may have to #include <alloca.h> in your
program.

--
------------------------------------------------------------------------
Timothy J. Lee
Unsolicited bulk or commercial email is not welcome.
No warranty of any kind is provided with this message.

 
 
 

compiling gcc

Post by Tony Curti » Sun, 04 Mar 2001 05:13:47


>> On Fri, 02 Mar 2001 19:36:52 GMT,



>> what does it mean when compling a program (gcc), at the
>> end I get an error for undefined symbol: .alloca
> For the alloca function, you may have to #include
> <alloca.h> in your program.

That just pulls in the prototype for alloca(), not the
function itself.

comp.unix.admin is an umbrella for many platforms.  You
(the OP) need to say which platform/OS you are compiling
for, which version of gcc you're trying to build and which
compiler you're using to compile gcc.

Some more context regarding the error would help too.  Can
you write and post a small program and associated compile
command which demonstrates this behaviour?

hth
t
--
The avalanche has already started.
It is too late for the pebbles to vote.

 
 
 

1. Compiling gcc 2.7.2.1 with gcc 3.2 on redhat 8.0

I need to use an older version of gcc to compile a C++ program that I
can't seem to compile with the latest gcc.

I'm trying to compile gcc 2.7.2.1 and in the beginning of stage 2 of
the installation process I get the following error message:

stage1/xgcc -Bstage1/  -DIN_GCC   -g -O2   -o genattr \
 genattr.o rtl.o ` case "obstack.o" in ?*) echo obstack.o ;; esac ` `

in ?*) echo  ;; esac `
./genattr ./config/i386/i386.md > tmp-attr.h
/bin/sh: ./genattr: /lib/ld-linux.so.1: bad ELF interpreter: No such
file or directory
make: *** [stamp-attr] Error 126

My steps are:

./configure --build=i586-redhat-linux (I've tried a least a dozen
different settings here)
make LANGUAGES=c
make stage1
make CC="stage1/xgcc -Bstage1/" CFLAGS="-g -O2"

Anyone have any idea? I've scoured the newsgroups and tried everything
that there with no luck.

Thanks in advanced...

2. ELF checksums

3. GCC-i2.6.3 compiling (gcc with pentium optimiz's) PLEASE HELP US!!

4. incoming FTP transfer stagnates

5. Problems compiling gcc 2.7.2.2

6. XF86Config for Dell/Cirrus

7. make and compiling gcc-2.7.0

8. Cyrilic problems

9. Compile GCC 2.95.3 in RedHat 7.0 failed !!

10. Proper order to compile gcc, binutils, libstd+++ and glib2?????

11. Compiling GCC 2.8.x under slackware

12. Compiling gcc 3.1 on AIX 4.3.3 fails

13. EGCS crashes compiling gcc-2.95.2