gm2
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Gm2-11.1.0-20210430 on NetBSD/Sparc woes


From: john o goyo
Subject: Gm2-11.1.0-20210430 on NetBSD/Sparc woes
Date: Sun, 2 May 2021 20:47:51 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.10.0

I installed NetBSD on my SB2000 (because Linux does not run well on this machine) and tried to build gm2-20210430.  I am able to build gcc-11.1.0 on this machine with the resident gcc-9.2.0.

Here is my configuration script for gm2:

#---------------------------------------------
GM2DATE=20210430
GCCVER=11.1.0

rm -rf gm2-$GCCVER-$GM2DATE
mkdir gm2-$GCCVER-$GM2DATE
cd gm2-$GCCVER-$GM2DATE

CONFIG_SHELL=/usr/pkg/bin/bash \
../../src/gcc-$GCCVER+gm2-$GM2DATE/configure \
--prefix=$HOME/gm2/$GCCVER \
--with-mpc-include=/usr/pkg/include \
--with-mpc-lib=/usr/pkg/lib \
--with-gmp-include=/usr/pkg/include \
--with-gmp-lib=/usr/pkg/lib \
--enable-languages=c,c++,m2 \
--disable-bootstrap --enable-checking \
--enable-shared --disable-libitm \
--enable-threads=posix
#---------------------------------------------

The build stops with some rather odd errors:

(1) save_switch() not declared in gm2spec.c:

../../../src/gcc-11.1.0+gm2-20210430/gcc/m2/gm2spec.c: In function 'void fe_generate_option(size_t, const char*, bool)':
../../../src/gcc-11.1.0+gm2-20210430/gcc/m2/gm2spec.c:209:5: error:
'save_switch' was not declared in this scope

I found save_switch() declared as static void in gcc.c.

(2) xputenv() not declared in gm2spec.c:

../../../src/gcc-11.1.0+gm2-20210430/gcc/m2/gm2spec.c: In function 'void build_path(const char*)': ../../../src/gcc-11.1.0+gm2-20210430/gcc/m2/gm2spec.c:799:3: error: 'xputenv' was not declared in this scope

I found xputenv() declared as static void in gcc.c

(3) allow_linker not declared in gm2spec.c:

../../../src/gcc-11.1.0+gm2-20210430/gcc/m2/gm2spec.c:1497:3: error: 'allow_linker' was not declared in this scope

I could not find a declaration of allow_linker anywhere.


Assistance is requested.

Sincerely,
john






reply via email to

[Prev in Thread] Current Thread [Next in Thread]