There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
acer black screen boot bsod computer connection crash css dell display driver drivers email error ethernet excel explorer firefox firefox 3 game hard drive internet internet explorer itunes laptop linux malware monitor network networking nvidia outlook outlook 2003 outlook express partition password printer problem router slow software sound trojan usb video virus vista windows windows xp wireless
UNIX/Linux
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Operating Systems > UNIX/Linux >
Just downloaded gcc - what to do next


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
aewarnick's Avatar
Senior Member with 839 posts.
 
Join Date: Sep 2002
08-Jan-2006, 02:31 PM #1
Just downloaded gcc - what to do next
I just downloaded gcc 4.0.2. I read the docs and they are saying I need to build gcc. Does that make sense? Can't I just copy some of the files somewhere to be used when make is called? I'm lost.
aewarnick's Avatar
Senior Member with 839 posts.
 
Join Date: Sep 2002
13-Jan-2006, 05:22 PM #2
Update. I downloaded a .deb gcc install from my distributions (Xandros) site. It installed fine. Some other programs I downloaded require a greater version of gcc than the one I have. This 4.0.2 will work if I could just compile it!!!!

I am very frustrated with this. I have wasted 2 days now trying to get this to compile. Here is a script I wrote to install it and the partial output + error message following:

mkdir ./Built
mkdir ./Built/Target
#./../configure --program-suffix="-4.0.2"
../gcc-4.0.2/configure --prefix="/home/GccBuild/Built"
#../gcc-4.0.2/configure
#make distclean
make profiledbootstrap
exit


End output + errors:

make[2]: Entering directory `/home/GccBuild/libiberty/testsuite'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/GccBuild/libiberty/testsuite'
make[1]: Leaving directory `/home/GccBuild/libiberty'
make[1]: Entering directory `/home/GccBuild/libcpp'
gcc -I../../gcc-4.0.2/libcpp -I. -I../../gcc-4.0.2/libcpp/../include -I../../gcc-4.0.2/libcpp/include -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -I../../gcc-4.0.2/libcpp -I. -I../../gcc-4.0.2/libcpp/../include -I../../gcc-4.0.2/libcpp/include -c ../../gcc-4.0.2/libcpp/charset.c
gcc -I../../gcc-4.0.2/libcpp -I. -I../../gcc-4.0.2/libcpp/../include -I../../gcc-4.0.2/libcpp/include -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -I../../gcc-4.0.2/libcpp -I. -I../../gcc-4.0.2/libcpp/../include -I../../gcc-4.0.2/libcpp/include -c ../../gcc-4.0.2/libcpp/directives.c
gcc -I../../gcc-4.0.2/libcpp -I. -I../../gcc-4.0.2/libcpp/../include -I../../gcc-4.0.2/libcpp/include -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -I../../gcc-4.0.2/libcpp -I. -I../../gcc-4.0.2/libcpp/../include -I../../gcc-4.0.2/libcpp/include -c ../../gcc-4.0.2/libcpp/errors.c
gcc -I../../gcc-4.0.2/libcpp -I. -I../../gcc-4.0.2/libcpp/../include -I../../gcc-4.0.2/libcpp/include -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -I../../gcc-4.0.2/libcpp -I. -I../../gcc-4.0.2/libcpp/../include -I../../gcc-4.0.2/libcpp/include -c ../../gcc-4.0.2/libcpp/expr.c
gcc -I../../gcc-4.0.2/libcpp -I. -I../../gcc-4.0.2/libcpp/../include -I../../gcc-4.0.2/libcpp/include -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -I../../gcc-4.0.2/libcpp -I. -I../../gcc-4.0.2/libcpp/../include -I../../gcc-4.0.2/libcpp/include -c ../../gcc-4.0.2/libcpp/files.c
gcc -I../../gcc-4.0.2/libcpp -I. -I../../gcc-4.0.2/libcpp/../include -I../../gcc-4.0.2/libcpp/include -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -I../../gcc-4.0.2/libcpp -I. -I../../gcc-4.0.2/libcpp/../include -I../../gcc-4.0.2/libcpp/include -c ../../gcc-4.0.2/libcpp/identifiers.c
echo "#define LOCALEDIR \"/usr/local/share/locale\"" > localedir.new
../../gcc-4.0.2/libcpp/../move-if-change localedir.new localedir.h
make[1]: execvp: ../../gcc-4.0.2/libcpp/../move-if-change: Permission denied
make[1]: *** [localedir.hs] Error 127
make[1]: Leaving directory `/home/GccBuild/libcpp'
make: *** [all-libcpp] Error 2

What am I doing wrong?
aewarnick's Avatar
Senior Member with 839 posts.
 
Join Date: Sep 2002
14-Jan-2006, 04:56 PM #3
I made some progress. I chmod'd all the executable files in the dir so that they could be executed. Why they weren't alread set as executable, I'm stumped.

My new problem with the install. It now says I need to install flex. I downloaded flex-2.5.4. I go to install it:

LinuxPc:/home/Downloads/flex-2.5.4# ./configure
loading cache ./config.cache
checking whether ln -s works... (cached) yes
checking for bison... no
checking for byacc... no
checking for gcc... (cached) gcc
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for ranlib... (cached) ranlib
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether make sets $MAKE... (cached) yes
checking for working const... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking whether cross-compiling... (cached) no
checking for ANSI C header files... (cached) yes
checking for size_t... (cached) yes
checking for ANSI C header files... (cached) yes
checking for string.h... (cached) yes
checking for malloc.h... (cached) yes
checking for sys/types.h... (cached) yes
updating cache ./config.cache
creating ./config.status
creating Makefile
creating config.h
config.h is unchanged
LinuxPc:/home/Downloads/flex-2.5.4# make
yacc -d ./parse.y
make: execvp: yacc: Not a directory
make: *** [parse.c] Error 127

What is going on!?
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who help people like you solve computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 03:06 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.