-
Notifications
You must be signed in to change notification settings - Fork 0
Does not compile anymore (ppport.h missing) #1
Comments
The double quotes do seem to be the problem. Modifying Build.PL to strip them allows it to build successfully:
|
I can confirm that abensonca's solution works. |
First, sorry it's taken so long to get this fixed. My Perl work goes in seasons, and the emails for this dropped off my screen and I never realized what was going on. Sorry for the long-lived bug. Second, hey, people are using my module! Holy cow, I never thought anybody paid any attention to it. Now that I know it's used by stuff I'll try to be a bit more responsive! Third and finally, thank you for the solution @abensonca. I worry that this might cause things to break on Windows, but I'll let CPAN Testers smoke that out for me. |
This is because your Module::Build script is naively passing what PDL gives it directly to the executable, but PDL (being EUMM-orientated) protects things from the shell. The more idiomatic way here would be to use use Text::ParseWords qw(shellwords);
# ...
include_dirs => [map {(my $f = $_) =~ s/^-I//; $f} shellwords PDL_INCLUDE], |
See http://matrix.cpantesters.org/?dist=PDL-Parallel-threads%200.03;reports=1#sl=7,1 for a cpantesters report overview --- there are no successful compiles since some months here. Looking at one of the reports I see:
This is on my smoker machine and I can confirm that ppport.h exists here:
However it's possible that the double quotes in the
-I
option are used literally, so the C compiler cannot find the header file.The text was updated successfully, but these errors were encountered: