Compile gcc on AIX 5.2

Thread Tools Search this Thread
Operating Systems AIX Compile gcc on AIX 5.2
# 1  
Old 01-16-2008
Compile gcc on AIX 5.2

I'm trying to compile gcc 3.4.6 on AIX 5.2 but I get this error:

bison -t --name-prefix=java_  -o java/parse.c java/parse.y
M4sugar requires GNU M4. Install it before installing M4sugar or
set the M4 environment variable to its path name.make[1]: *** [java/parse.c] Broken pipe
gcc -c   -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes     -DHAVE_CONFIG_H    -I. -Ijava -I. -I./java -I./../include -I../intl java/parse.c -o java/parse.o
gcc: java/parse.c: No such file or directory
gcc: no input files
make[1]: *** [java/parse.o] Error 1
make[1]: Leaving directory `/home/root/gcc-3.4.6/gcc'
make: *** [all-gcc] Error 2

I already set the M4 variable:

-bash-3.00# echo $M4
-bash-3.00# echo $PATH
-bash-3.00# which m4

but the error remains... Smilie
# 2  
Old 01-16-2008
If you don't need the version you are trying to compile you can get a compiled version here:
# 3  
Old 01-16-2008
I need that version.
# 4  
Old 01-17-2008
What is so hard to understand in

M4sugar requires GNU M4.

I have boldened for you the relevant part in case you still ponder the question i raised. AIX M4 is not GNU M4 and perhaps GNU M4 has features the AIX M4 lacks and M4sugar relies upon those. Setting environment variables will not change the features a certain version of M4 has or has not.

# 5  
Old 01-17-2008
Sorry, I didn't specified that I already installed GNU M4.
Now I'm trying by compiling bison and m4 with a recent version...
# 6  
Old 01-17-2008
Originally Posted by untamed
Sorry, I didn't specified that I already installed GNU M4.
Sorry, but i think you are mistaken: if you have installed GNU M4 it should reside somewhere in /usr/local/bin and definitely not in /usr/bin. In /usr/bin reside the original OS binaries and nothing else. By letting the M4 variable point to /usr/bin/m4 you probably overrode any possiblity left that the make-utility might find it.

1) check your path: perhaps your PATH variable looks like "/usr/bin:.....:/usr/local/bin:.....", which means that - first come first serve - if a command resides in /usr/bin AND in /usr/local/bin the one in /usr/bin (the original OS binaries) will be taken until explicitly stated otherwise. To use the one in /usr/local/bin either change your path (not advisable) or specify /usr/local/bin/command explicitly.

2) set your M4 variable to where the GNU M4 resides, not where ANY M4 is.

I hope this helps.

# 7  
Old 01-22-2008
I checked my path and now I can go over that error but:

gcc   -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long    -DHAVE_CONFIG_H    -I. -I. -I. -I./. -I./../include -I../intl -c insn-attrtab.c \
  -o insn-attrtab.o
as: There is not enough space in the file system.
/tmp//ccpLs5Gx.s: line 546700: 1252-161 A system problem occurred while processing file /tmp/asC3Cqia
make[1]: *** [insn-attrtab.o] Error 1
make[1]: Leaving directory `/home/root/gcc-3.4.6/gcc'
make: *** [all-gcc] Error 2

The problem is on space left on /tmp? Can I remove its content (or part of it)?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Programming

I can't compile (gcc) in Solaris 11.3 non global zone

I can't compile anything, the final make error says "Command failed for target `install-recursive'", but I am not able to identify the root cause of that error, I tried with cc, gcc 4.5, also gcc 5.2, using make, using gmake 3.82, ld 5.11, gld 2.31... and I am totally stuck yet... please help, to... (4 Replies)
Discussion started by: sugar222
4 Replies

2. Red Hat

How to compile httpd using gcc in RHEL?

Hi All, I am trying to compile httpd2.2.19 in RHEL5.5 using gcc version 4.1.2. This is first time I am trying to compile httpd in RHEL. I ran configure with below option ./configure --prefix=/usr/local/apache --enable-rewrite --enable-ssl=shared... (0 Replies)
Discussion started by: kalpeer
0 Replies

3. UNIX for Dummies Questions & Answers

Compiling gcc to compile make to compile yaboot

I have just installed OpenBSD on a 333MHz PPC iMac G3. It has a 6GB HDD that has been partitioned as 1GB MacOS 8.5.1, 3GB MacOS X 10.3.9, 2GB OpenBSD 4.8. I now need to install a bootloader so that my computer can recognize the OpenBSD partition at startup. I have been trying to install... (0 Replies)
Discussion started by: t04st3r
0 Replies

4. SuSE

Can't compile or install GCC

Hi all! I have posted in the Shell Programming Scripting Forum for a problem with the use of shc and so on... You can read it complete here: shell-programming-scripting/148510-problems-using-shc.html I think the problem is: that there aren't compiler installed on the SuSe 10.2 server,... (4 Replies)
Discussion started by: Magius
4 Replies

5. AIX

Upgrading AIX 5.2 to AIX 6.1 - GCC compatibility

Hi All, We are in the processing of upgrading our AIX server OS from to 6.1. And we have a set of highly critical running C applications in AIX box. I have a question like whether this upgradation of OS will affect any C code compilation and C runtime enviornment... how does AIX 6.1... (1 Reply)
Discussion started by: karthikc
1 Replies

6. Programming

New to C/gcc compiler - compile error.

I am new to comiling c/c++ programs with gcc compilier unix - AIX version 5.3 gcc compiler version - 4.0.0 My makefile. # makefile 1.0 08/20/98 #CC = cc CC = gcc ESQL = esql CFLAGS = -Wall DBSLIB= DBSLIB=-L${INFORMIXDIR}/lib/esql -L${INFORMIXDIR}/lib `esql -libs` ALL = hds_near... (9 Replies)
Discussion started by: anish
9 Replies

7. Programming

How to compile a c program by using gcc

Hi all, Yeasterday I try to compile c program by using cygwin. I just find an errors the fist one is concerinig about the end of the line. To summit my Assignment which is the day after tommorow I have to compile my c program by using just gcc. If any one know what do I have to... (5 Replies)
Discussion started by: Bell
5 Replies

8. AIX

RS/6000 gcc compile large file error

hi, everybody£º i have a question, pls help me¡£ OS : RS/6000 AIX 4.3.3 cPU : Powerpc,POWER3 compiler : gcc 3.2.3 source file £º 8M OS kernel : 32 bit (selecting at installing operating system, the hardware support 64 bit) when i compiling the large source file (8 M), i... (3 Replies)
Discussion started by: q30
3 Replies

9. Programming

Error in compile C by gcc

Hi all, I compile my c program and get following result hrnpfc01.c:1387: stray '\' in program hrnpfc01.c:1387: parse error before `,' hrnpfc01.c:1388: stray '\' in program hrnpfc01.c:1388: parse error before `,' hrnpfc01.c:1396: stray '\' in program hrnpfc01.c:1396: parse error before... (4 Replies)
Discussion started by: zico
4 Replies

10. Programming

How to compile using gcc...

I need to know how to make a binary with gcc. I know how to create an obj file, but I'm not quite sure what to do about the linking part. I've gotten this far "gcc -c somefile.c somefile.o" then I'm left with an object file, but I don't see any linking command line options. Does anyone know how... (4 Replies)
Discussion started by: lilprogrammer
4 Replies
Login or Register to Ask a Question