Closed croth1 closed 9 months ago
works like a charm now! Thanks so much @isuruf!
I might have been too optimistic 😢 - The SDK-setting seems to work nicely, but there still seems to be some errors with the compiler. After updating, I still get for cpan install Params::Validate
Loading internal logger. Log::Log4perl recommended for better logging
Reading '/Users/christian/.cpan/Metadata'
Database was generated on Wed, 05 Jul 2023 19:41:02 GMT
Running install for module 'Params::Validate'
Checksum for /Users/christian/.cpan/sources/authors/id/D/DR/DROLSKY/Params-Validate-1.31.tar.gz ok
'YAML' not installed, will not store persistent state
Configuring D/DR/DROLSKY/Params-Validate-1.31.tar.gz with Build.PL
ld: unknown option: -Wl,-pie
Warning: ExtUtils::CBuilder not installed or no compiler detected
Proceeding with configuration, but compilation may fail during Build
Created MYMETA.yml and MYMETA.json
Creating new 'Build' script for 'Params-Validate' version '1.31'
DROLSKY/Params-Validate-1.31.tar.gz
/Users/christian/miniconda3/envs/test2/bin/perl Build.PL -- OK
Running Build for D/DR/DROLSKY/Params-Validate-1.31.tar.gz
Building Params-Validate
Error: no compiler detected to compile 'lib/Params/Validate/XS.c'. Aborting
DROLSKY/Params-Validate-1.31.tar.gz
./Build -- NOT OK
The only clue I see is: ld: unknown option: -Wl,-pie
- maybe that prevents the compiler from being detected? finding it very hard to debug what's actually happening under the hood 😢
Reopening to track this observation with the flags ( https://github.com/conda-forge/perl-feedstock/pull/61#issuecomment-1636692649 )
The only clue I see is:
ld: unknown option: -Wl,-pie
- maybe that prevents the compiler from being detected? finding it very hard to debug what's actually happening under the hood 😢
That one came from an issue upstream that we encountered because with c-compiler
the LD
environment variable is set which in turn triggers undesired behavior we now have patched out with gh-63.
@croth1, new builds for perl
should be available -- let me know everything works as expected for you with those.
Solution to issue cannot be found in the documentation.
Issue
I think it's currently difficult to install packages into the perl interpreter because the package keeps references to the sysroot of the build environment:
on my mac I get:
grep sysroot lib/perl5/5.32/core_perl/Config_heavy.pl
Perl-generated Makefiles that require a c-compiler will have build-env compiler and linker flags and thus would fail:
Installed packages
Environment info