Skip to content

Compiling in i868 #279

@antonioleal

Description

@antonioleal

I am able to build on x86_64 Slackware, but in i686 Slackware I get, using Gcc 11.2.0:

gcc -DHAVE_CONFIG_H -I. -I../.. -I/tmp/SBo/SmallBASIC-12_33/src -DPACKAGE_LIB_DIR=""/usr/local/lib/smallbasic"" -Wall -Werror -Wno-unused-result -O2 -march=i586 -mtune=i686 -std=gnu11 -MT ../lib/matrix.o -MD -MP -MF $depbase.Tpo -c -o ../lib/matrix.o ../lib/matrix.c &&
mv -f $depbase.Tpo $depbase.Po
depbase=echo ../lib/xpm.o | sed 's|[^/]*$|.deps/&|;s|\.o$||';
gcc -DHAVE_CONFIG_H -I. -I../.. -I/tmp/SBo/SmallBASIC-12_33/src -DPACKAGE_LIB_DIR=""/usr/local/lib/smallbasic"" -Wall -Werror -Wno-unused-result -O2 -march=i586 -mtune=i686 -std=gnu11 -MT ../lib/xpm.o -MD -MP -MF $depbase.Tpo -c -o ../lib/xpm.o ../lib/xpm.c &&
mv -f $depbase.Tpo $depbase.Po
scan.c: In function ‘comp_udp_id’:
scan.c:363:27: error: ‘%s’ directive writing up to 128 bytes into a region of size between 1 and 2147483645 [-Werror=format-overflow=]
363 | sprintf(name, "%s/%s", root, base);
| ^~ ~~~~
scan.c:363:9: note: ‘sprintf’ output between 3 and 2147483775 bytes into a destination of size 2147483647
363 | sprintf(name, "%s/%s", root, base);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[2]: *** [Makefile:501: scan.o] Error 1
make[2]: Leaving directory '/tmp/SBo/SmallBASIC-12_33/src/common'
make[1]: *** [Makefile:543: all-recursive] Error 1
make[1]: Leaving directory '/tmp/SBo/SmallBASIC-12_33'
make: *** [Makefile:484: all] Error 2

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