This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to build gcc 4.3.3 for aarch64?

Hi, 

How to build GCC 4.3.3 for ARM archicture? 

NAME="Red Hat Enterprise Linux Server"

VERSION="7.3 (Maipo)"

> uname -a

Linux rhel7.local 4.5.0-15.el7.aarch64 #1 SMP Wed Oct 12 14:00:10 EDT 2016 aarch64 aarch64 aarch64 GNU/Linux

 

I have tired many options one of them is shared below. 

./configure --prefix=/usr/local/gcc-4.3.3/rhel7-aarch64  --enable-languages=all  --enable-threads=posix  --enable-tls  --enable-libgomp  --enable-lto  --enable-shared  --enable-static  --disable-nls  --disable-multilib  --with-fpmath=sse  --enable-gold  --without-ppl  --without-cloog --host=aarch64-unknown-linux-gnu  --build=aarch64-unknown-linux-gnu

 

config.guess timestamp = 2008-01-23

uname -m = aarch64

uname -r = 4.5.0-15.el7.aarch64

uname -s = Linux

uname -v = #1 SMP Wed Oct 12 14:00:10 EDT 2016

 

/usr/bin/uname -p = aarch64

/bin/uname -X     =

 

hostinfo               =

/bin/universe          =

/usr/bin/arch -k       =

/bin/arch              = aarch64

/usr/bin/oslevel       =

/usr/convex/getsysinfo =

 

UNAME_MACHINE = aarch64

UNAME_RELEASE = 4.5.0-15.el7.aarch64

UNAME_SYSTEM  = Linux

UNAME_VERSION = #1 SMP Wed Oct 12 14:00:10 EDT 2016

configure: error: cannot guess build type; you must specify one

  • A preliminary spec of aarch64 was released to the world at the end of 2011. gcc 4.3.3 was released in 2009. I'm not certain but I think the first versions of gcc with aarch64 were 4.6.something made by ARM themselves without sticking it into gcc and 4.8.1 was when it was first officially in gcc. There's no good reason to use such versions now.