Skip to content

Fail to build on 32bits architecture #35

@papoteur-mga

Description

@papoteur-mga

I try to build scamp for Mageia i686. The build on x86_64 is OK, but on i868 I get:

gcc -DHAVE_CONFIG_H -I. -I..  -I/usr/include/plplot  -D_REENTRANT   -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -fomit-frame-pointer -m32 -march=i686 -msse2 -mtune=generic -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -c -o chealpixstore.o chealpixstore.c
...
define.h:135:28: error: assignment to 'int64_t *' {aka 'long long int *'} from incompatible pointer type 'long int *' [-Wincompatible-pointer-types]
  135 |                 {if (!(ptr = (typ *)realloc(ptr, (size_t)(nel)*sizeof(typ))))\
      |                            ^

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