Sponsored Content
Operating Systems Linux SuSE How can I build gcc (gettng 'cc' error)? Post 99123 by pat_and_cami on Wednesday 15th of February 2006 01:10:10 AM
Old 02-15-2006
How can I build gcc (gettng 'cc' error)?

Hi I have installed Suse Linux 9.3 desktop on my computer. I found out I need to install 'gcc', and I was able to download the source code. I then tried to follow some instructions from WEB search to compile and build gcc, and I am getting the following error:

---
linux:/gcc/gcc-2.95.3 # ../gcc-2.95.3/configure --prefix=/opt/gcc-2.95.3 --enable-shared --enable-languages=c --enable-threads=posix --host=i586
Created "Makefile" in /gcc/gcc-2.95.3 using "mh-frag" and "mt-frag"
/tmp/cONf14268.pos: line 7: cc: command not found
*** The command 'cc -o conftest -g conftest.c' failed.
*** You must set the environment variable CC to a working compiler.
linux:/gcc/gcc-2.95.3 # which cc
linux:/gcc/gcc-2.95.3 #
---

I searched my entire disk and did not find cc.exe anywhere. So it's not a path issue.

Do I need to install cc.exe from somewhere? Why doesn't Suse Linux 9.3 have this? Any help would be appreciated, as this is blocking me from getting anything done in my Linux coursework.


Thanks,

Patrick//
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Error in gcc

Hi:- I am new for Unix and wants to install gcc compiler on my Linux system. I donwload the file and tried to install it but getting following messaged, # ./configure Configuring for a i686-pc-linux-gnuoldld host. Created "Makefile" in /home/gcc-3.0.1 using "mt-frag" ./configure: cc: command... (6 Replies)
Discussion started by: s_aamir
6 Replies

2. Linux

gcc install error

I download a gcc3.0.tar.gz file ,then tar it. Continue,I change current path to gcc3.0 and press ./configure The error appeared ,it is CC command not found . Please tell me What can I do to pass on. (1 Reply)
Discussion started by: fansings
1 Replies

3. Solaris

build error

dears i working in solaris and when i type make for report it gives me the error kindly can you help me what is the reason -bash-3.00$ make BPSEXT130 make: Warning: File `BPSEXT130.rc' has modification time 12 s in the future make BPSEXT130.c make: Entering directory... (3 Replies)
Discussion started by: murad.jaber
3 Replies

4. UNIX for Dummies Questions & Answers

gcc-3.4.4 build on solaris 10 failing please help

I am building gcc-3.4.4 on sol-10 and getting the following error. my configure is going well but failing in the build stage *** checking for windres... windres checking whether to enable maintainer-specific portions of Makefiles... no updating cache ./config.cache creating... (0 Replies)
Discussion started by: mobydick
0 Replies

5. UNIX for Advanced & Expert Users

Build and install GCC-3.2.3

Hi, I have problem to build the gcc-3.2.3. I downloaded the source code. Here is what I did. 1) cd /usr/local/src 2) tar zxf gcc-3.2.3.tar.gz 3) cd .. 4) mkdir gcc-3.2.3 5) cd gcc-3.2.3 6) ../src/gcc-3.2.3/configure --prefix=/usr/local/gcc-3.2.3/ 7) make And I received the below... (2 Replies)
Discussion started by: beeloo
2 Replies

6. Solaris

Installing gcc - recieve error message gcc : cannot execute

AIM- Install Oracle 11g on Solaris using VMWare Steps 1.Logged on as root 2.Created subfolders à /usr/local/bin & /usr/local/bin/gcc 3.Downloaded gcc & libiconv & unzipped them on my harddrive & burnt them on CD 4.Copied files from CD to /usr/local/bin/gcc 5.Terminal (root) à pkgadd -d... (8 Replies)
Discussion started by: Ackers
8 Replies

7. UNIX for Dummies Questions & Answers

Build Error: error: dereferencing pointer to incomplete type

I'm getting the following Error: prepare_pcap.c: In function `prepare_pkts': prepare_pcap.c:127: error: dereferencing pointer to incomplete type prepare_pcap.c:138: error: dereferencing pointer to incomplete type ==================================== This is the part of the relevant... (8 Replies)
Discussion started by: katwala
8 Replies

8. UNIX for Advanced & Expert Users

GCC 4 error.

Hello, dont know much about C, or gcc, but I am trying to compile a program that built fine in gcc3, but is outputting errors in gcc4, int load_REs(char *, char ); #this line is causing the error DB_Query.h:22: error: array type has incomplete element type any help would be appreciated. (3 Replies)
Discussion started by: mike171562
3 Replies

9. Programming

Build Error

I am facing a problem while building the device driver code. I am using suse linux "2.6.31.5-0.1-desktop" on my Laptop. I have copied a folder containing self written device driver files from Mandriva linux to my system having Suse Linux. I copied the entire folder in "/home/netuser/sun/".... (4 Replies)
Discussion started by: rupeshkp728
4 Replies

10. UNIX for Dummies Questions & Answers

Adding SDK Build on Kernel Source Build

Hi, So I downloaded this kernel source and was able to build it successfully. But I want to add this SDK source code inside, can anyone help me how to do this? Note that the SDK source can be built by itself. I added the SDK in the main Makefile: init-y := init/ #added SDK... (0 Replies)
Discussion started by: h0ujun
0 Replies
TRAMPOLINE(3)						     Library Functions Manual						     TRAMPOLINE(3)

NAME
trampoline - closures as first-class C functions SYNOPSIS
#include <trampoline.h> function = alloc_trampoline(address, variable, data); free_trampoline(function); is_trampoline(function) trampoline_address(function) trampoline_variable(function) trampoline_data(function) DESCRIPTION
These functions implement closures as first-class C functions. A closure consists of a regular C function and a piece of data which gets passed to the C function when the closure is called. Closures as first-class C functions means that they fit into a function pointer and can be called exactly like any other C function. func- tion = alloc_trampoline(address, variable, data) allocates a closure. When function gets called, it stores data in the variable variable and calls the C function at address. The function at address is responsible for fetching data out of variable immediately, before execu- tion of any other function call. This is much like gcc's local functions, except that the GNU C local functions have dynamic extent (i.e. are deallocated when the creating function returns), while trampoline provides functions with indefinite extent: function is only deallocated when free_trampoline(function) is called. is_trampoline(function) checks whether the C function function was produced by a call to alloc_trampoline. If this returns true, the argu- ments given to alloc_trampoline can be retrieved: trampoline_address(function) returns address, trampoline_variable(function) returns variable, trampoline_data(function) returns data. SEE ALSO
gcc(1), varargs(3), callback(3) BUGS
Passing the data through a global variable is not reentrant. Don't call trampoline functions from within signal handlers. This is fixed in the callback(3) package. PORTING
The way gcc builds local functions is described in the gcc source, file gcc-2.6.3/config/cpu/cpu.h. AUTHOR
Bruno Haible <bruno@clisp.org> ACKNOWLEDGEMENTS
Many ideas were cribbed from the gcc source. 25 October 1997 TRAMPOLINE(3)
All times are GMT -4. The time now is 09:04 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy