public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* building gcc
@ 2007-10-19  6:52 Myhuong Nguyen
  2007-10-19 10:08 ` Kai Ruottu
  0 siblings, 1 reply; 17+ messages in thread
From: Myhuong Nguyen @ 2007-10-19  6:52 UTC (permalink / raw)
  To: gcc-help

Hi!

My computer (SGI octane2, Irix 6.5) seems not to have any compilers, 
cc or gcc, how do I build my first gcc on it? Will the gcc binaries 
overcome this problem?

Thanks.
Myhuong

^ permalink raw reply	[flat|nested] 17+ messages in thread
* Building GCC
@ 2006-06-02 19:40 Flop Bucket
  0 siblings, 0 replies; 17+ messages in thread
From: Flop Bucket @ 2006-06-02 19:40 UTC (permalink / raw)
  To: gcc-help

HI,

A quick simple, I hope, question about building gcc..

If I do:

1.  tar xvf gcc-3....

2. mkdir build

3.  export PREFIX=$(pwd)/build

4. cd build

5.  ../gcc-3/configure --prefix=$PREFIX

6.  make

Is it correc that *no* changes are made to the source tree then?  Everything 
is done inside build?  So if I want to undo everything and start over, I can 
just "cd build && rm -rf *" ?

Thanks

_________________________________________________________________
Is your PC infected? Get a FREE online computer virus scan from McAfee® 
Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

^ permalink raw reply	[flat|nested] 17+ messages in thread
* Building GCC
@ 2005-06-13  8:13 Frank Schafer
  2005-06-13  9:02 ` Nathan Sidwell
  0 siblings, 1 reply; 17+ messages in thread
From: Frank Schafer @ 2005-06-13  8:13 UTC (permalink / raw)
  To: gcc-help

Hi,

maybe someone knows this.

What is the difference between CFLAGS and BOOT_CFLAGS, and what is the
difference between LDFLAGS and BOOT_LDFLAGS if I'm running ``make ....
bootstrap'' ?



What is the meaning of the -nostdinc compiler switch?

Thanks in advance
Frank

^ permalink raw reply	[flat|nested] 17+ messages in thread
* Help needed in compiling SSE2 asm code
@ 2004-02-05  3:30 ganesh.yadav
  2004-02-05  7:11 ` building gcc Dave Murphy
  0 siblings, 1 reply; 17+ messages in thread
From: ganesh.yadav @ 2004-02-05  3:30 UTC (permalink / raw)
  To: ganesh.yadav, gcc-help



"ganesh.yadav"<ganesh.yadav@indiatimes.com> wrote:
Hi there,

I was trying to compile the following source using gcc -march=pentium4 -msse2. However I get an error and am not able to understand why that is genearted.

inline void test_sse2()
{
asm(".intel_syntax noprefix \n");
asm("mov eax, DWORD PTR[seq_b_ptr] n");
asm("movupd xmm0, [eax] \n") ;
asm("mov eax, DWORD PTR[seq_a_ptr] \n");
asm("movupd xmm6, [eax]\n");

asm("movupd xmm1, mask \n");

asm("movupd xmm2, mask1\n");
asm("pand xmm6, xmm2\n");
asm("pslldq xmm6, 15\n");

asm("movupd xmm3, xmm6\n");
asm("movupd xmm4, xmm6\n");

asm("movupd xmm5, xmm6\n");
asm("emms \n") ; //switch back to FPU state.
}


/cygdrive/c/DOCUME~1/GANESH~1/LOCALS~1/Temp/cccFHtaQ.s: Assembler messages:
/cygdrive/c/DOCUME~1/GANESH~1/LOCALS~1/Temp/cccFHtaQ.s:322: Error: no such instr
uction: `popl %ebp'

Iff I put this segemnent as spart of aa laargeer codde instead of writingg it as inline, it generates sevral movl and popl errors. I dont understand what I am missing.

I know there are peoplee out there who have donee this, but i coulddnt find anything helpful using the search on gcc-help.

Thaankss,
Ganesh
Get Your Private, Free E-mail from Indiatimes at http://email.indiatimes.com

 Buy The Best In BOOKS at http://www.bestsellers.indiatimes.com

Bid for for Air Tickets @ Re.1 on Air Sahara Flights. Just log on to http://airsahara.indiatimes.com and Bid Now!
Get Your Private, Free E-mail from Indiatimes at http://email.indiatimes.com

 Buy The Best In BOOKS at http://www.bestsellers.indiatimes.com

Bid for for Air Tickets @ Re.1 on Air Sahara Flights. Just log on to http://airsahara.indiatimes.com and Bid Now!

^ permalink raw reply	[flat|nested] 17+ messages in thread
* Building gcc
@ 2001-10-10  0:20 Frank Schafer
  2001-10-10 19:24 ` Curtis R Anderson
  0 siblings, 1 reply; 17+ messages in thread
From: Frank Schafer @ 2001-10-10  0:20 UTC (permalink / raw)
  To: gcc-help

Hi there,

I'm building a complete GNU/Linux system from scratch. The first turn,
building everything needed statically linked went fine. Now I'll need to
make the static build.

During the static build there were already several include files
installed. The glibc docs say to remove everything in ``/usr/include''.
Can I remove this ( or better initialize it containing only the kernel
headers ) before the build, if everything is static?

What are theese ``usr/include/g++-v3/'' and
``/usr/lib/gcc-lib/i686-pc-linux-gnu/3.0.1/include'' -things. Can ( or
should ) I remove theese too?

Oh, before I forget ... will I be able to build everything with 3.0.x?
It is reported, that ( at least glibc ) things cannot be built with it.
I got a reply, that there is a patch for 2.95.3 to proper compile glibc,
but nobody can tell me WHERE it is.

Thanks for any help
Frank

^ permalink raw reply	[flat|nested] 17+ messages in thread
* building gcc
@ 2001-09-26  8:50 Govind Vinjamuri
  2001-09-28 17:49 ` Alexandre Oliva
  0 siblings, 1 reply; 17+ messages in thread
From: Govind Vinjamuri @ 2001-09-26  8:50 UTC (permalink / raw)
  To: gcc-help

On solaris8 trying to build gcc3.0. I am using gcc package, which I
installed from the Sun cd, to compile. I have this error when I try to
"make"
make
make[1]: Entering directory `/tmp/gcc-3.0/libiberty'
if [ x"" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I./../include  -W -Wall
-Wtraditional -pedantic  floatformat.c -o pic/floatformat.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I./../include  -W -Wall -Wtraditional
-pedantic floatformat.c
In file included from floatformat.c:21:
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.1/include/math.h:5:
math.h: No such file or directory
make[1]: *** [floatformat.o] Error 1
make[1]: Leaving directory `/tmp/gcc-3.0/libiberty'
make: *** [all-libiberty] Error 2

Thanks in advance
--
Govind


^ permalink raw reply	[flat|nested] 17+ messages in thread
* Building GCC
@ 2000-09-14  5:43 Michael J. McGillick
  2000-09-14 11:22 ` Alexandre Oliva
  0 siblings, 1 reply; 17+ messages in thread
From: Michael J. McGillick @ 2000-09-14  5:43 UTC (permalink / raw)
  To: help-gcc

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 4068 bytes --]

Good Morning:


I did a fresh install of HP-UX 11.00 on a PA-RISC machine - Model
9000/712/80.  I also applied the June 2000 extensions CD to make sure it has
all of the latest updates.  IÂ’m trying to get GCC built on this machine.
Here are the steps I followed:

·	I downloaded gcc-2.95.2.tar.gz from the GNU site.
·	I downloaded binutils-2.10.tar.gz from the GNU site.
·	I extracted both files into their respective directories.
·	I then copied from the binutils-2.10 directory the following directories
and placed them in the gcc-2.95.2 directory:
o	bfd
o	binutils
o	gas
o	ld
o	intl
o	opcodes

According to the directions in the GCC documents, by including these
directories, these will get built along with the compiler.  Again, this is a
clean system with absolutely no utilities on it other than what is shipped
out by HP.

I created a separate build folder as the instructions suggest, and I cd into
it.  I then type the following command:

   ../gcc-2.95.2/configure

The configure scripts chugs away happily for a few minutes.  It appears that
itÂ’s going through checking to see if my system has various things.  The
script starts off like this, and IÂ’m not sure if this is important or not:

Configuring for a hppa1.1-hp-hpux11.00 host.
*** This configuration is not supported in the following subdirectories:
     ld
    (Any other directories should still work fine.)
Created "Makefile" in /downloads/build-directory using "mh-frag"
(Bundled) cc: warning 480: The -g option is available only with the C/ANSI C
product; ignored.
Configuring intl...
creating cache ../config.cache
checking for a BSD compatible install...
../../gcc-2.95.2/intl/../install-sh -c
checking how to run the C preprocessor... cc -E
checking whether make sets ${MAKE}... yes
checking for gcc... cc
checking whether the C compiler (cc -g ) works... yes
checking whether the C compiler (cc -g ) is a cross-compiler... no
checking whether we are using GNU C... no
checking for ranlib... ranlib
checking for POSIXized ISC... no
checking for ANSI C header files... yes
checking for working const... no
checking for inline... no
checking for off_t... yes
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for unistd.h... yes
checking for getpagesize... yes
checking for working mmap... no

The script continues to chug along, with only 1 warning showing up similar
to the one about the -g option not being available until it gets to this
point:

checking if the linker (/bin/ld) is GNU ld... no
checking whether the linker (/bin/ld) supports shared libraries... yes
checking command to parse /bin/nm -p output... yes
checking how to hardcode library paths into programs... relink
checking for /bin/ld option to reload object files... -r
checking dynamic linker characteristics... hpux11.00 dld.sl
checking if libtool supports shared libraries... no
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for objdir... .libs
creating libtool
loading cache ../config.cache
checking for gcc... (cached) cc
checking whether the C compiler (cc -g ) works... yes
checking whether the C compiler (cc -g ) is a cross-compiler... no
checking whether we are using GNU C... (cached) no
checking whether cc accepts -g... (cached) no
checking for bison... no
checking for byacc... no
checking how to run the C preprocessor... (cached) cc -E
checking for flex... no
checking for lex... no
../../gcc-2.95.2/binutils/configure[1935]: flex:  not found.
checking for flex... lex
checking for yywrap in -ll... yes
checking lex output file root... ../../gcc-2.95.2/binutils/configure[2023]:
lex:  not found.
configure: error: cannot find output from lex; giving up
Configure in /downloads/build-directory/binutils failed, exiting.

Here, the script just stops.

Any ideas what IÂ’m doing wrong here?  IÂ’m probably misunderstanding a lot of
what needs to be done.  Is there something that has to be installed on the
machine ahead of time, and canÂ’t be built initially?

- Mike

^ permalink raw reply	[flat|nested] 17+ messages in thread
* Building GCC
@ 1999-10-22 23:00 Immanuel Andrew
  1999-10-22 23:21 ` Tim Prince
  1999-10-31 13:57 ` Immanuel Andrew
  0 siblings, 2 replies; 17+ messages in thread
From: Immanuel Andrew @ 1999-10-22 23:00 UTC (permalink / raw)
  To: help-gcc

I've got 2 problems. It maybe trivial but I need the help very badly.


1, When building GCC (on Linux), I notice that the main header files (such
as stdio.h) are not installed by "make install". Should I specify any
options during compilation or does it come from some other package ?

2,Can GCC be built on a Linux machine that has no compiler ?

    I get the following error while running configure:

../gcc-2.95.1/configure: gcc: command not found
*** The command 'gcc -o conftest -g -O2   conftest.c' failed.
*** You must set the environment variable CC to a working compiler.


Thanks.

Andrew








^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2007-10-19  9:18 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-19  6:52 building gcc Myhuong Nguyen
2007-10-19 10:08 ` Kai Ruottu
  -- strict thread matches above, loose matches on Subject: below --
2006-06-02 19:40 Building GCC Flop Bucket
2005-06-13  8:13 Frank Schafer
2005-06-13  9:02 ` Nathan Sidwell
2004-02-05  3:30 Help needed in compiling SSE2 asm code ganesh.yadav
2004-02-05  7:11 ` building gcc Dave Murphy
2001-10-10  0:20 Building gcc Frank Schafer
2001-10-10 19:24 ` Curtis R Anderson
2001-10-10 21:07   ` Frank Schafer
2001-09-26  8:50 building gcc Govind Vinjamuri
2001-09-28 17:49 ` Alexandre Oliva
2000-09-14  5:43 Building GCC Michael J. McGillick
2000-09-14 11:22 ` Alexandre Oliva
1999-10-22 23:00 Immanuel Andrew
1999-10-22 23:21 ` Tim Prince
1999-10-31 13:57   ` Tim Prince
1999-10-31 13:57 ` Immanuel Andrew

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).