Hi,
I have trying to rebuild an old embeded linux system using glibc-2.11.1. I cannot build thiis library as the configure script does not recoognise the architecture supplied by configure,guess as arm7l (see below). This is probably what Debian calls armel (32 bit soft float) but the compiler confirms 32bit armhf (Hard Float)
All I need is a work around to build the libary but I thought I would report that newer Arm processors are not recognised
I cannot use the CFLAGS to force the -mcpu or -march as the configure script does not finish preventing make.
I have had no problem building OpenSSL 1.0.0 and wpa_supplicant-0.7.3 on a Raspberry Pi 4 (4GB) with default settings.
Thanks in advance
Rob Hookham
The configure.guess script had the timestamp='2008-01-23' so 1 guess it is not updated often
Information requested in configure.guess
pi@raspberrypi:~/Downloads/glibc-2.11.1 $ /bin/universe
bash: /bin/universe: No such file or directory
pi@raspberrypi:~/Downloads/glibc-2.11.1 $ /usr/bin/arch
armv7l
pi@raspberrypi:~/Downloads/glibc-2.11.1 $ /usr/bin/oslevel
bash: /usr/bin/oslevel: No such file or directory
pi@raspberrypi:~/Downloads/glibc-2.11.1 $ uname -p
unknown
pi@raspberrypi:~/Downloads/glibc-2.11.1 $ uname -X
uname: invalid option -- 'X'
Try 'uname --help' for more information.
pi@raspberrypi:~/Downloads/glibc-2.11.1 $ /bin/uname -X
/bin/uname: invalid option -- 'X'
Try '/bin/uname --help' for more information.
pi@raspberrypi:~/Downloads/glibc-2.11.1 $ uname -m
armv7l
pi@raspberrypi:~/Downloads/glibc-2.11.1 $ uname -r
4.19.118-v7l+
pi@raspberrypi:~/Downloads/glibc-2.11.1 $ uname -s
Linux
pi@raspberrypi:~/Downloads/glibc-2.11.1 $ uname -v
#1311 SMP Mon Apr 27 14:26:42 BST 2020
pi@raspberrypi:~/Downloads/glibc-2.11.1 $ uname -p
unknown
pi@raspberrypi:~/Downloads/glibc-2.11.1 $ cd /usr/bin
pi@raspberrypi:/usr/bin $ nano arch
pi@raspberrypi:/usr/bin $ arch
armv7l
pi@raspberrypi:/usr/bin $ arch --help
Usage: arch [OPTION]...
Print machine architecture.
--help display this help and exit
--version output version information and exit
GNU coreutils online help: <https://www.gnu.org/software/coreutils/>
Full documentation at: <https://www.gnu.org/software/coreutils/arch>
or available locally via: info '(coreutils) arch invocation'
pi@raspberrypi:/usr/bin $ arch -k
arch: invalid option -- 'k'
**************************************************************
The configure script supplied as part of the glibc package shows the following when run
sudo ../glibc-2.11.1/configure --prefix=/opt/glibc/2.11.1 --enable-kernel=2.6.36 --target=march=armv8-a+crc+simd
checking build system type... armv7l-unknown-linux-gnu
checking host system type... armv7l-unknown-linux-gnu
checking for gcc... gcc
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
configure: running configure fragment for add-on libidn
configure: running configure fragment for add-on nptl
checking sysdep dirs... configure: error: The armv7l is not supported.
****************************************************************************************************************88888
The GNU C compiler gives using the command gcc -mcpu=native -march=native -Q --help=target
The following options are target specific:
-mabi= aapcs-linux
-mabort-on-noreturn [disabled]
-mandroid [disabled]
-mapcs [disabled]
-mapcs-frame [disabled]
-mapcs-reentrant [disabled]
-mapcs-stack-check [disabled]
-march= armv8-a+crc+simd
-marm [enabled]
-masm-syntax-unified [disabled]
-mbe32 [enabled]
-mbe8 [disabled]
-mbig-endian [disabled]
-mbionic [disabled]
-mbranch-cost= -1
-mcallee-super-interworking [disabled]
-mcaller-super-interworking [disabled]
-mcmse [disabled]
-mcpu= cortex-a72
-mfix-cortex-m3-ldrd [disabled]
-mflip-thumb [disabled]
-mfloat-abi= hard
-mfp16-format= none
-mfpu= vfp
-mglibc [enabled]
-mhard-float
-mlittle-endian [enabled]
-mlong-calls [disabled]
-mmusl [disabled]
-mneon-for-64bits [disabled]
-mpic-data-is-text-relative [enabled]
-mpic-register=
-mpoke-function-name [disabled]
-mprint-tune-info [disabled]
-mpure-code [disabled]
-mrestrict-it [disabled]
-msched-prolog [enabled]
-msingle-pic-base [disabled]
-mslow-flash-data [disabled]
-msoft-float
-mstructure-size-boundary= 8
-mthumb [disabled]
-mthumb-interwork [disabled]
-mtls-dialect= gnu
-mtp= cp15
-mtpcs-frame [disabled]
-mtpcs-leaf-frame [disabled]
-mtune=
-muclibc [disabled]
-munaligned-access [enabled]
-mvectorize-with-neon-double [disabled]
-mvectorize-with-neon-quad [enabled]
-mword-relocations [disabled]
Known ARM ABIs (for use with the -mabi= option):
aapcs aapcs-linux apcs-gnu atpcs iwmmxt
Known __fp16 formats (for use with the -mfp16-format= option):
alternative ieee none
Known ARM FPUs (for use with the -mfpu= option):
auto crypto-neon-fp-armv8 fp-armv8 fpv4-sp-d16 fpv5-d16 fpv5-sp-d16 neon
neon-fp-armv8 neon-fp16 neon-vfpv3 neon-vfpv4 vfp vfp3 vfpv2 vfpv3 vfpv3-d16
vfpv3-d16-fp16 vfpv3-fp16 vfpv3xd vfpv3xd-fp16 vfpv4 vfpv4-d16
Valid arguments to -mtp=:
auto cp15 soft
Known floating-point ABIs (for use with the -mfloat-abi= option):
hard soft softfp
TLS dialect to use:
gnu gnu2