Autoconf/automake scripts

joel.bertrand+binutils@systella.fr joel.bertrand+binutils@systella.fr
Fri Feb 13 12:21:44 GMT 2026


	Hello,

	I'm working on a 6809/6309/63F09 gcc port. I have copied git tree on a
local server to do some modifications in binutils tree. I have added
some .c and .h (tc-*, opcodes...) and done some modifications in main
configure.ac (I have rebuilt with autoconf 2.72, 2.69 procuded faulty
script). All others configure.ac were rebuilt with autoconf 2.69 and
automake 1.18.

	Now, I'm trying to configure sources and configure scripts return an
error I don't understand.

hilbert:[~/cvs/gcc/build-gas] > ../binutils-gdb/configure --target=m6809
--host=x86_64-pc-linux-gnu
...
checking where to find the target windres... just compiled
checking where to find the target windmc... just compiled
checking for clang for target... no
checking for gcc for target... no
checking for target -plugin option... no
checking whether to enable maintainer-specific portions of Makefiles... no
configure: creating ./config.status
config.status: creating Makefile
hilbert:[~/cvs/gcc/build-gas] > make
make[1] : on entre dans le répertoire « /home/bertrand/cvs/gcc/build-gas »
Configuring in ./libiberty
configure: loading cache ./config.cache
checking whether to enable maintainer-specific portions of Makefiles... no
checking for makeinfo... (cached) makeinfo --split-size=5000000
checking for perl... (cached) perl
...
checking how to compare bootstrapped objects... cmp --ignore-initial=16
$$f1 $$f2
Setting warning flags = -W -Wall -Wstrict-prototypes
-Wmissing-prototypes -Wshadow -Wstack-usage=262144 -Werror
checking whether byte ordering is bigendian... no
configure: error: GAS does not know what format to use for target
m6809-unknown-none
make[1]: *** [Makefile:5475: configure-gas] Error 1
make[1] : on quitte le répertoire « /home/bertrand/cvs/gcc/build-gas »
make: *** [Makefile:1032: all] Error 2
hilbert:[~/cvs/gcc/build-gas] >

	If I understand, configure script in gas subdirectory aborts with error.

	Of course, test program cannot be compiled:
configure:12542: gcc -c -g -O2      conftest.c >&5
conftest.c: In function 'main':
conftest.c:37:18: error: unknown type name 'not'; did you mean 'ino_t'?
   37 |                  not big endian
      |                  ^~~
      |                  ino_t
conftest.c:37:26: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'endian'
   37 |                  not big endian
      |                          ^~~~~~
configure:12542: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gas"
| #define PACKAGE_TARNAME "gas"
| #define PACKAGE_VERSION "2.45.50"
| #define PACKAGE_STRING "gas 2.45.50"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "gas"
| #define VERSION "2.45.50"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_DLFCN_H 1
| #define ENABLE_CHECKING 1
| /* end confdefs.h.  */
| #include <sys/types.h>
|       #include <sys/param.h>
|
| int
| main ()
| {
| #if BYTE_ORDER != BIG_ENDIAN
|        not big endian
|       #endif
|
|   ;
|   return 0;
| }
configure:12670: result: no
configure:13384: error: GAS does not know what format to use for target
m6809-unknown-none

	I suppose I have done a mistake but I'm unable to fix it. Help will be
welcome.

	Best regards,

	JB

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: OpenPGP digital signature
URL: <https://sourceware.org/pipermail/binutils/attachments/20260213/10688ef9/attachment.sig>


More information about the Binutils mailing list