# New Ticket Created by Mike Small # Please include the string: [perl #111426] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=111426 >
I got this error building rakudo star 2012.01 and again with the latest nqp from git on NetBSD 5.1: -------------- cd 3rdparty/dyncall && BUILD_DIR=. make make: no target to make. make: stopped in /usr/local/src/nqp/3rdparty/dyncall *** Error code 2 Stop. make: stopped in /usr/local/src/nqp ------------- NetBSD's make (unlike OpenBSD's and FreeBSD's) doesn't look for BSDmakefile, only makefile and Makefile, so it can't find any targets in the dyncall directory. The dyncall manual says to use make -f BSDmakefile for NetBSD. The attached patch does that. -- Mike Small sma...@panix.com
>From f1b736029d356c04958b5e24230883a5cfe503af Mon Sep 17 00:00:00 2001 From: Mike Small <sma...@panix.com> Date: Tue, 28 Feb 2012 23:10:52 -0500 Subject: [PATCH] Fix build problem in NetBSD. NetBSD's make doesn't look for BSDmakefile. Dyncall manual says to build with -f BSDmakefile. OpenBSD and FreeBSD should be fine as is, since their makes do look for BSDmakefile. --- Configure.pl | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/Configure.pl b/Configure.pl index 4eaf937..0fcf2d8 100644 --- a/Configure.pl +++ b/Configure.pl @@ -126,7 +126,11 @@ MAIN: { $config{'dyncall_build'} = "cd 3rdparty/dyncall && $make BUILD_DIR=. -f GNUmakefile"; } else { system_or_die('cd 3rdparty/dyncall && sh configure'); - $config{'dyncall_build'} = "cd 3rdparty/dyncall && BUILD_DIR=. $make"; + if ($^O eq 'netbsd') { + $config{'dyncall_build'} = "cd 3rdparty/dyncall && BUILD_DIR=. $make -f BSDmakefile"; + } else { + $config{'dyncall_build'} = "cd 3rdparty/dyncall && BUILD_DIR=. $make"; + } } } -- 1.7.7.2