Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation error on FreeBSD systems (related to memcpy?) #42

Open
eserte opened this issue Dec 23, 2023 · 0 comments
Open

Compilation error on FreeBSD systems (related to memcpy?) #42

eserte opened this issue Dec 23, 2023 · 0 comments

Comments

@eserte
Copy link

eserte commented Dec 23, 2023

The test suite fails on FreeBSD systems (versions 13 .. 15):

PERL_DL_NONLAZY=1 "/usr/perl5.38.2/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/bool.t t/buffer.t t/circular-push.t t/circular-to-perl.t t/circular.t t/deep-objects.t t/dll.t t/eval-function.t t/json.t t/nested.t t/number-or-string.t t/perl-data.t t/pointer.t t/prop.t t/safe-call.t t/trycatch.t t/typescript.t t/uncaught.t t/undefined.t t/use.t t/utf8.t t/api/base64.t t/api/c-constructor.t t/api/call-prop.t t/api/charcodeat.t t/api/check-type.t t/api/compile.t t/api/dev-cfunc-name.t t/api/dup.t t/api/eval-string.t t/api/hex.t t/api/internal-key-access.t t/api/internal-property-basics.t t/api/multithread.t t/api/pcall-method.t t/api/pcall-perl-function.t t/api/pcall-prop.t t/api/pcall.t t/api/pcompile-nofile.t t/api/push_this.t t/api/require-lstring.t t/api/safe-call.t t/api/safe-to-string.t t/api/symbol-getownpropertysymbols.t t/objects/01.t t/objects/02.t t/objects/03.t t/objects/buffer.t t/objects/string.t t/objects/this.t t/sandbox/00-memory.t t/sandbox/01-memory.t t/sandbox/02-memory.t t/sandbox/bubble-timeout.t t/sandbox/check.t t/sandbox/timeout.t
Running Mkbootstrap for Vm_104e ()
chmod 644 "Vm_104e.bs"
"/usr/perl5.38.2/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- Vm_104e.bs blib/arch/auto/JavaScript/Duktape/Vm_104e/Vm_104e.bs 644
"/usr/perl5.38.2/bin/perl" "/usr/perl5.38.2/lib/5.38.2/ExtUtils/xsubpp"  -typemap "/usr/perl5.38.2/lib/5.38.2/ExtUtils/typemap" -typemap "/home/cpansand/.cpan/build/2023122319/JavaScript-Duktape-2.5.0-0/lib/JavaScript/Duktape/C/typemap"  Vm_104e.xs > Vm_104e.xsc
mv Vm_104e.xsc Vm_104e.c
cc -c  -iquote"/home/cpansand/.cpan/build/2023122319/JavaScript-Duktape-2.5.0-0/t/api" -I/home/cpansand/.cpan/build/2023122319/JavaScript-Duktape-2.5.0-0/lib/JavaScript/Duktape/C/../C -I/home/cpansand/.cpan/build/2023122319/JavaScript-Duktape-2.5.0-0/lib/JavaScript/Duktape/C/../C/lib  -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -O2 -pipe    -DVERSION=\"0.00\"  -DXS_VERSION=\"0.00\" -DPIC -fPIC "-I/usr/perl5.38.2/lib/5.38.2/aarch64-freebsd/CORE"   Vm_104e.c
Vm_104e.xs:7:17: error: incompatible integer to pointer conversion passing 'IV' (aka 'long') to parameter of type 'void *' [-Wint-conversion]
        memcpy( to, from, sz );
                ^~
/usr/include/string.h:63:31: note: passing argument to parameter here
void    *memcpy(void * __restrict, const void * __restrict, size_t);
                                 ^
Vm_104e.xs:7:21: error: incompatible integer to pointer conversion passing 'IV' (aka 'long') to parameter of type 'const void *' [-Wint-conversion]
        memcpy( to, from, sz );
                    ^~~~
/usr/include/string.h:63:56: note: passing argument to parameter here
void    *memcpy(void * __restrict, const void * __restrict, size_t);
                                                          ^
2 errors generated.
*** Error code 1
... etc ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant