Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 940085

Summary: sci-libs/hdf-4.2.15-r2 fails to compile on loong: hdfi.h:1449:1: error: unknown type name 'No'
Product: Gentoo Linux Reporter: matoro <matoro_gentoo>
Component: Current packagesAssignee: Gentoo Science Related Packages <sci>
Status: CONFIRMED ---    
Severity: normal CC: loong, matoro_gentoo
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=935821
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log and emerge --info

Description matoro archtester 2024-09-22 18:45:44 UTC
Created attachment 903593 [details]
build.log and emerge --info

And so on for pages:

libtool: compile:  loongarch64-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/usr/include/tirpc -pipe -O2 -march=loongarch64 -fno-strict-aliasing -c cdeflate.c  -fPIC -DPIC -o .libs/cdeflate.o
In file included from hdf.h:20,
                 from atom.c:59:
hdfi.h:1449:1: error: unknown type name 'No'
 1449 | No machine type has been defined.  Your Makefile needs to have someing like
      | ^~
hdfi.h:1449:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'type'
 1449 | No machine type has been defined.  Your Makefile needs to have someing like
      |            ^~~~
hdfi.h:1449:12: error: unknown type name 'type'; did you mean 'typeof'?
 1449 | No machine type has been defined.  Your Makefile needs to have someing like
      |            ^~~~
      |            typeof
In file included from hdf.h:20,
                 from bitvect.h:32,
                 from bitvect.c:103:
hdfi.h:1449:1: error: unknown type name 'No'
 1449 | No machine type has been defined.  Your Makefile needs to have someing like
      | ^~
In file included from hdf.h:20,
                 from cnbit.c:37:
hdfi.h:1449:1: error: unknown type name 'No'
 1449 | No machine type has been defined.  Your Makefile needs to have someing like
      | ^~
hdfi.h:1449:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'type'
 1449 | No machine type has been defined.  Your Makefile needs to have someing like
      |            ^~~~
hdfi.h:1449:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'type'
 1449 | No machine type has been defined.  Your Makefile needs to have someing like
      |            ^~~~
hdf.h:29:1: warning: data definition has no type or storage class
   29 | DFdi;
      | ^~~~
hdf.h:29:1: error: type defaults to 'int' in declaration of 'DFdi' [-Wimplicit-int[https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wimplicit-int]]
In file included from hdf.h:20,
                 from cdeflate.c:37:
hdfi.h:1449:1: error: unknown type name 'No'
 1449 | No machine type has been defined.  Your Makefile needs to have someing like
      | ^~
hdfi.h:1449:12: error: unknown type name 'type'; did you mean 'typeof'?
 1449 | No machine type has been defined.  Your Makefile needs to have someing like
      |            ^~~~
      |            typeof
hdf.h:142:9: error: unknown type name 'int32'; did you mean 'int32_t'?
  142 | typedef int32 HFILEID;
      |         ^~~~~
      |         int32_t
hdf.h:144:15: error: expected declaration specifiers or '...' before '*' token
  144 | typedef intn (*hdf_termfunc_t)(void);   /* termination function typedef */
      |               ^
hdf.h:29:1: warning: data definition has no type or storage class
   29 | DFdi;
      | ^~~~