From owner-freebsd-arm@FreeBSD.ORG Tue Apr 8 06:50:07 2014 Return-Path: Delivered-To: arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5677219B for ; Tue, 8 Apr 2014 06:50:07 +0000 (UTC) Received: from smtp.hs-karlsruhe.de (smtp.HS-Karlsruhe.DE [193.196.64.25]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1C8C41A55 for ; Tue, 8 Apr 2014 06:50:06 +0000 (UTC) Received: from iz-wera01.hs-karlsruhe.de ([193.196.65.46]) by smtp.hs-karlsruhe.de with esmtp (Exim 4.80.1) (envelope-from ) id 1WXPrA-001FqM-H3; Tue, 08 Apr 2014 08:50:04 +0200 X-Mailer: exmh version 2.8.0 04/21/2012 with nmh-1.5 From: Ralf Wenk To: Andrew Turner Subject: Experimental TARGET_ARCH armv6hf - missing fpsetmask? Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 08 Apr 2014 08:50:02 +0200 Message-Id: Cc: arm@freebsd.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Apr 2014 06:50:07 -0000 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