NetBSD-Bugs archive

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

toolchain/53710: xlint fails to compile using 32 bit host with 64 bit target



>Number:         53710
>Category:       toolchain
>Synopsis:       xlint fails to compile using 32 bit host with 64 bit target
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Nov 08 17:05:00 +0000 2018
>Originator:     scole_mail
>Release:        current
>Organization:
none
>Environment:
NetBSD dstar 8.0_STABLE NetBSD 8.0_STABLE (GENERIC) #0: Mon Oct 22 14:40:16 PDT 2018  scole@dstar:/home/scole/nbsd/cvs/8_0/obj/sys/arch/i386/compile/GENERIC i386
>Description:
When I try to compile ia64 src/usr.bin/xlint on my i386 host, I get this error:

#   compile  lint1/scan.lo
cc -O  -I/home/scole/nbsd/cvs/src/obj/tooldir.NetBSD-8.0_STABLE-i386/include/compat -I/home/scole/nbsd/cvs/src/tools/compat -DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -I/home/scole/nbsd/cvs/src/tools/lint1/../../usr.bin/xlint/lint1 -I. -DPASS=\"lint1.h\" -I/home/scole/nbsd/cvs/src/tools/lint1/../../usr.bin/xlint/lint1/../arch/ia64 -I/home/scole/nbsd/cvs/src/tools/lint1/../../usr.bin/xlint/lint1/../common -c -o scan.lo.o    scan.c
/home/scole/nbsd/cvs/src/tools/lint1/../../usr.bin/xlint/lint1/scan.l: In function 'icon':
/home/scole/nbsd/cvs/src/tools/lint1/../../usr.bin/xlint/lint1/scan.l:562:2: error: unknown type name '__uint128_t'
  __uint128_t uq = 0;
  ^
In file included from /home/scole/nbsd/cvs/src/tools/lint1/../../usr.bin/xlint/lint1/../arch/ia64/targparam.h:38:0,
                 from /home/scole/nbsd/cvs/src/tools/lint1/../../usr.bin/xlint/lint1/../common/param.h:62,
                 from /home/scole/nbsd/cvs/src/tools/lint1/../../usr.bin/xlint/lint1/../common/lint.h:46,
                 from /home/scole/nbsd/cvs/src/tools/lint1/../../usr.bin/xlint/lint1/lint1.h:35,
                 from /home/scole/nbsd/cvs/src/tools/lint1/../../usr.bin/xlint/lint1/scan.l:49:
/home/scole/nbsd/cvs/src/tools/lint1/../../usr.bin/xlint/lint1/../common/lp64.h:72:28: error: '__int128_t' undeclared (first use in this function)
 #define TARG_INT128_MAX  ((__int128_t) (((__uint128_t) -1) >> 1))

There seems be an issue with int128/uit128 types not getting defined or configured properly on a 32 bit host.
>How-To-Repeat:
 ./build.sh -j 6 -U -u -m ia64 release
on a i386 host
>Fix:
Unknown, but if I revert to version 1.82 of src/usr.bin/xlint/lint1/scan.l instead of the latest 1.84 it seems to build



Home | Main Index | Thread Index | Old Index