gcc error..compiler cannot create executables


 
Thread Tools Search this Thread
Operating Systems HP-UX gcc error..compiler cannot create executables
# 1  
Old 06-02-2008
gcc error..compiler cannot create executables

Hi
I have locally compiled and installed gcc-4.1.2 in directory /usr/local/pkg/gcc/4.1.2/bin/gcc

I want to compile beecrypt using this new compiler , So i have done
setenv CC usr/local/pkg/gcc/4.1.2/bin/gcc ( Note this configuration is running properly with older version of gcc...but failes during make...So i decided to go to new compiler( libstdc++ error))
but its throwing error

when i did whereis gcc..its not showing gcc I have included the gcc in PATH
----------------------------------------------------------

i have pasted a part of the configuration file....

configure:2452: result: /usr/local/pkg/gcc/4.1.2/bin/gcc
configure:2696: checking for C compiler version
configure:2699: /usr/local/pkg/gcc/4.1.2/bin/gcc --version </dev/null >&5
gcc (GCC) 4.1.2
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2702: $? = 0
configure:2704: /usr/local/pkg/gcc/4.1.2/bin/gcc -v </dev/null >&5
Using built-in specs.
Target: hppa2.0w-hp-hpux11.11
Configured with: /home/users/vasanthb/src_chn/gcc-4.1.2/configure --prefix=/usr/local/pkg/gcc/4.1.2 --enable-threads --enable-shared=libgcc,libstdc++,zlib
Thread model: posix
gcc version 4.1.2
configure:2707: $? = 0
configure:2709: /usr/local/pkg/gcc/4.1.2/bin/gcc -V </dev/null >&5
gcc: '-V' option must have argument
configure:2712: $? = 1
configure:2735: checking for C compiler default output file name
configure:2738: /usr/local/pkg/gcc/4.1.2/bin/gcc conftest.c >&5
as: "/var/tmp//ccf3VICd.s", line 11: error 1052: Directive name not recognized - NSUBSPA
configure:2741: $? = 1
configure: failed program was:
| /* confdefs.h. */
---------------------------------------------------------------------------
BR
vasanth
# 2  
Old 06-02-2008
Vasanth,

Instead of compiling GCC, how about installing it from the depot. This will eliminate your issues.

gcc-4.2.3

Craig
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Gcc g++ on cygwin - configure: error: *** A compiler with support for C++11 language features is req

Hi, Apologies if I posted it in a wrong section as it is related to gcc on cygwin. Please move it to appropriate section. I'm trying to compile and build libsigc++-2.10.2 on cygwin with gcc 8.3.0. when I run ./configure, I get this: I couldn't fully understand what does... (13 Replies)
Discussion started by: prvnrk
13 Replies

2. Ubuntu

Gcc cannot create executables

https://www.unix.com/302461112-post1.html Thank you. It's still in Linux Mint 17 (3 Replies)
Discussion started by: jgt
3 Replies

3. Linux

Fortran Compiler cannot create executables

Hello everyone, I am trying to re-install quantum espresso-4.3 on the University's LINUX interface (because of a recent crash and I lost most of my files). when I " ./configure ", It is giving an error stating that : checking building system type... x86_64-unknown-linux-gnu checking... (7 Replies)
Discussion started by: Physicslad78
7 Replies

4. Solaris

C compiler cannot create executables

Hi, I'm trying to compile Apache2.2 (I know it is available as a package) on a fresh install of Solaris Express 11. I've installed gcc-3 and gnu-bintutils via pkg. The config.log is attached (as config.txt). I don't see what I'm missing. Thanks, Doug (1 Reply)
Discussion started by: Doug_M
1 Replies

5. UNIX for Dummies Questions & Answers

GCC compiler Ld fatal error

Hi all I'm trying to install sudo. When I first ran the sudo configure script it errored saying that I didn't have a C compiler. I have since installed the GCC 3.4.6 package for sol8 from sun freeware. Doing that resolved the no C complier found error. I was then getting an error saying... (1 Reply)
Discussion started by: Donkey25
1 Replies

6. Ubuntu

./configure command Error while trying to install GCC compiler on unix machine

Hi, I need to install the GCC compiler on a my Linus machine. First step is to run the ./configure command and here we need to specify ./configure --target="target machine name (CPU type-Manufacturer-OS) or other way would be just give the command ./configure and it guesses the target name... (11 Replies)
Discussion started by: viji19812001
11 Replies

7. 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

8. UNIX for Dummies Questions & Answers

xl C/C++ compiler to GCC compiler

Hi, we are converting from IBM-AIX(xl c/c++ compiler) to Linux(GCC complier). As a part of this i need to change the CFLAGS. The xl c/c++ complier CFLAGS is CFLAGS := $(CDEBUG) $(PROJECT_INCLUDE_DIRS) $(COBJECT_MODE) -qcpluscmt -qmakedep -qcheck=all \ -qalign=bit_packed $(LINT_FLAGS)... (0 Replies)
Discussion started by: pbattu1
0 Replies

9. UNIX for Dummies Questions & Answers

cannot create executables

I am trying to install PROFTPD-1.2.7 on a SCO OpenServer 5.0.6 Server with a gcc-2.95.2 installed the VOLS files from http://www.caldera.com/skunkware. The problem I am having is when I try to run ./configure in the proftpd directory I get this error: # ./configure checking build system... (6 Replies)
Discussion started by: stufine
6 Replies
Login or Register to Ask a Question