public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Has to install gcc-3.4.6 under Centos 7
@ 2019-10-12 13:14 Patel, Kiran D. (GSFC-699.0)[GLOBAL SCIENCE & TECHNOLOGY INC] via gcc-help
  2019-10-12 14:02 ` Kai Ruottu
  0 siblings, 1 reply; 2+ messages in thread
From: Patel, Kiran D. (GSFC-699.0)[GLOBAL SCIENCE & TECHNOLOGY INC] via gcc-help @ 2019-10-12 13:14 UTC (permalink / raw)
  To: gcc-help

I tried to fix the compilation issue with gcc3.4.6. Can you suggest how I fix the following errors:

options.h is unchanged
options.c is unchanged
/act/src/gcc-3.4.6/gcc/xgcc -B/act/src/gcc-3.4.6/gcc/ -B/usr/local/x86_64-unknown-linux-gnu/bin/ -B/usr/local/x86_64-unknown-linux-gnu/lib/ -isystem /usr/local/x86_64-unknown-linux-gnu/include -isystem /usr/local/x86_64-unknown-linux-gnu/sys-include -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -I. -I. -I. -I./. -I./../include -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -fno-unit-at-a-time -fno-omit-frame-pointer -fno-asynchronous-unwind-tables \
-c ./crtstuff.c -DCRT_BEGIN \
-o crtbegin.o
In file included from /usr/include/stdio.h:934,
from ./tsystem.h:80,
from ./crtstuff.c:62:
/usr/include/bits/stdio.h: In function `vprintf':
/usr/include/bits/stdio.h:38: error: syntax error before "vfprintf"
In file included from /usr/include/stdio.h:934,
from ./tsystem.h:80,
from ./crtstuff.c:62:
/usr/include/bits/stdio.h:33:1: unterminated #if
/usr/include/bits/stdio.h:30:1: unterminated #ifdef
In file included from ./tsystem.h:80,
from ./crtstuff.c:62:
/usr/include/stdio.h:933:1: unterminated #ifdef
/usr/include/stdio.h:71:1: unterminated #ifdef
/usr/include/stdio.h:23:1: unterminated #ifndef
In file included from ./crtstuff.c:62:
./tsystem.h:48:1: unterminated #else
./tsystem.h:29:1: unterminated #ifndef
make[1]: *** [crtbegin.o] Error 1
make[1]: Leaving directory `/act/src/gcc-3.4.6/gcc'
make: *** [all-gcc] Error 2

Thank you for all your help,
Kiran Patel


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

* Re: Has to install gcc-3.4.6 under Centos 7
  2019-10-12 13:14 Has to install gcc-3.4.6 under Centos 7 Patel, Kiran D. (GSFC-699.0)[GLOBAL SCIENCE & TECHNOLOGY INC] via gcc-help
@ 2019-10-12 14:02 ` Kai Ruottu
  0 siblings, 0 replies; 2+ messages in thread
From: Kai Ruottu @ 2019-10-12 14:02 UTC (permalink / raw)
  To: Patel, Kiran D. (GSFC-699.0)[GLOBAL SCIENCE & TECHNOLOGY INC],
	gcc-help

Patel, Kiran D. (GSFC-699.0)[GLOBAL SCIENCE & TECHNOLOGY INC] via 
gcc-help kirjoitti 12.10.2019 klo 16.14:
> I tried to fix the compilation issue with gcc3.4.6.


Why you want gcc-3.4.6 to be used with the CentOS 7 native C libraries ? 
(Some quite new glibc there)  The produced native toolchain
would produce executables which as default would only work on CentOS 7 
and newer than that releases. Not on CentOS 6, 5, 4, 3, 2, 1,
on old Fedora releases or RedHat releases...

One sane goal would be to get a toolchain on CentOS 7 which produces 
executables for some older CentOS (or something else) release
which had gcc-3.4.6 as its original native GCC or as a self-made updated 
native GCC. That using some old glibc as its native
C library.  This goal meaning producing a crosstoolchain to the old 
Linux release (building binutils and GCC to use the old
glibc as prebuilt in a $sysroot)

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

end of thread, other threads:[~2019-10-12 14:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-12 13:14 Has to install gcc-3.4.6 under Centos 7 Patel, Kiran D. (GSFC-699.0)[GLOBAL SCIENCE & TECHNOLOGY INC] via gcc-help
2019-10-12 14:02 ` Kai Ruottu

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