Skip to content

make installation failed #60

@chongjing

Description

@chongjing

Hi,

I was trying to install famsa from source code, got error message during make:

In file included from /home/cx264/program/FAMSA/libs/zlib-ng/deflate.c:50:
/home/cx264/program/FAMSA/libs/zlib-ng/deflate.c:283:31: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘deflateInit2’
  283 | int32_t ZNG_CONDEXPORT PREFIX(deflateInit2)(PREFIX3(stream) *strm, int32_t level, int32_t method, int32_t windowBits,
      |                               ^~~~~~~~~~~~
/home/cx264/program/FAMSA/libs/zlib-ng/zbuild.h:81:21: note: in definition of macro ‘PREFIX’
   81 | #  define PREFIX(x) x
      |                     ^
/home/cx264/program/FAMSA/libs/zlib-ng/deflate.c: In function ‘deflateInit_’:
/home/cx264/program/FAMSA/libs/zlib-ng/deflate.c:431:19: error: implicit declaration of function ‘deflateInit2’; did you mean ‘deflateInit2_’? [-Wimplicit-function-declaration]
  431 |     return PREFIX(deflateInit2)(strm, level, Z_DEFLATED, MAX_WBITS, DEF_MEM_LEVEL, Z_DEFAULT_STRATEGY);
      |                   ^~~~~~~~~~~~
/home/cx264/program/FAMSA/libs/zlib-ng/zbuild.h:81:21: note: in definition of macro ‘PREFIX’
   81 | #  define PREFIX(x) x
      |                     ^

gmake[3]: *** [CMakeFiles/zlib.dir/build.make:233: CMakeFiles/zlib.dir/deflate.c.o] Error 1
gmake[3]: Leaving directory '/home/cx264/program/FAMSA/libs/zlib-ng/build-g++/zlib-ng'
gmake[2]: *** [CMakeFiles/Makefile2:136: CMakeFiles/zlib.dir/all] Error 2
gmake[2]: Leaving directory '/home/cx264/program/FAMSA/libs/zlib-ng/build-g++/zlib-ng'
gmake[1]: *** [Makefile:166: all] Error 2
gmake[1]: Leaving directory '/home/cx264/program/FAMSA/libs/zlib-ng/build-g++/zlib-ng'
make: *** [makefile:19: libs/zlib-ng/build-g++/zlib-ng/libz.a] Error 2

please check full log attached.

here are more info of my system:

gcc (GCC) 14.1.0
Copyright © 2024 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ uname -a
Linux BOT-B01902S 6.14.0-35-generic #35~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Oct 14 13:55:17 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

and precompiled binary has error too:

$ famsa -h
[1]    2241315 illegal hardware instruction (core dumped)  famsa -h

Thanks.

log.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions