Experimental TARGET_ARCH armv6hf - missing fpsetmask?
Ralf Wenk
iz-rpi03 at hs-karlsruhe.de
Tue Apr 8 06:50:07 UTC 2014
Hello Andrew,
I just wanted to let you know that compiling perl 5.16 on a r264192
armv6hf kernel and world fails early because of missing the/a fpsetmask
function. Same release with armv6 kernel and world compiles successfully.
These are the lines where fpsetmask is mentioned during the compilation:
`sh cflags "optimize='-O -pipe'" perlmini.o` -DPIC -fPIC -DPERL_IS_MINIPERL
-DPERL_EXTERNAL_GLOB perlmini.c
CCCMD = cc -DPERL_CORE -c -DAPPLLIB_EXP="/usr/local/lib/perl5/5.16/B
SDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe
-fstack-protector -I/usr/local/include -O -pipe -Wall -W -Wextra
-Wdeclaration-after-statement -Wendif-labels -Wc++-compat -Wwrite-strings
perl.c:134:5: warning: implicit declaration of function 'fpsetmask' is invalid
in C99 [-Wimplicit-function-declaration]
PERL_SYS_INIT_BODY(argc, argv);
^
./unixish.h:131:29: note: expanded from macro 'PERL_SYS_INIT_BODY'
MALLOC_CHECK_TAINT2(*c,*v) PERL_FPU_INIT; PERLIO_INIT; MALLOC_INIT
^
./perl.h:2706:33: note: expanded from macro 'PERL_FPU_INIT'
# define PERL_FPU_INIT (void)fpsetmask(0)
^
1 warning generated.
And these are the lines where the linker failed:
LD_LIBRARY_PATH=/usr/ports/lang/perl5.16/work/perl-5.16.3 cc -pthread -Wl,-E
-fstack-protector -L/usr/local/lib -o miniperl perlmini.o opmini.o
miniperlmain.o gv.o toke.o perly.o pad.o regcomp.o dump.o util.o mg.o
reentr.o mro.o keywords.o hv.o av.o run.o pp_hot.o sv.o pp.o scope.o pp_ctl.o
pp_sys.o doop.o doio.o regexec.o utf8.o taint.o deb.o universal.o globals.o
perlio.o perlapi.o numeric.o mathoms.o locale.o pp_pack.o pp_sort.o -lm
-lcrypt -lutil
perlmini.o: In function `Perl_sys_init':
perlmini.c:(.text+0xc): undefined reference to `fpsetmask'
perlmini.o: In function `Perl_sys_init3':
perlmini.c:(.text+0x20): undefined reference to `fpsetmask'
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** [miniperl] Error code 1 (ignored)
LD_LIBRARY_PATH=/usr/ports/lang/perl5.16/work/perl-5.16.3 ./miniperl -Ilib
make_patchnum.pl
./miniperl: not found
Kind regards, Ralf
More information about the freebsd-arm
mailing list