Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clang: error: no input files #19

Closed
Peter-Murphy opened this issue Oct 22, 2014 · 4 comments
Closed

clang: error: no input files #19

Peter-Murphy opened this issue Oct 22, 2014 · 4 comments

Comments

@Peter-Murphy
Copy link

When I ran 'perl Makefile.PL && make && make test' I got:

WARNING: Setting ABSTRACT via file 'lib/XSFun.pm' failed
at /System/Library/Perl/5.16/ExtUtils/MakeMaker.pm line 609.

and finally :

cc -mmacosx-version-min=10.9 -arch x86_64 -arch i386 -bundle -undefined dynamic_lookup -L/usr/local/lib -fstack-protector -o blib/arch/auto/XSFun/XSFun.bundle

clang: error: no input files
make: *** [blib/arch/auto/XSFun/XSFun.bundle] Error 1

I cut and pasted the file contents from the web pages, the directories and files look good, any suggestions as to what caused this? BTW, I'm new to GitHub and recently to perl, but I am an old C hand.
Thanks
Peter

@xsawyerx
Copy link
Owner

xsawyerx commented Mar 2, 2015

I have no idea what the differences with clang is. I'm not familiar with it... I'll try to take a look at it.

@wsdookadr
Copy link

@Peter-Murphy According to this blogpost and the mailing list perl Makefile.PL CC=/usr/bin/clang should be used to generate the Makefile.

I also had to install the libchromaprint-dev package since it was a required dependency, and the Test::MemoryGrowth CPAN module in order to run the tests.

Compiling the module went well:

user@testing:/tmp/xs-fun/chapter_07/Audio-Chromaprint$ perl Makefile.PL CC=/usr/bin/clang
[..]
Looks good
Generating a Unix-style Makefile
[..]

user@testing:/tmp/xs-fun/chapter_07/Audio-Chromaprint$ make
[..]
/usr/bin/clang -c  -I. -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2   -DVERSION=\"0.001\" -DXS_VERSION=\"0.001\" -fPIC "-I/home/user/perl5/perlbrew/perls/perl-5.18.2/lib/5.18.2/x86_64-linux/CORE"   Chromaprint.c
rm -f blib/arch/auto/Audio/Chromaprint/Chromaprint.so
LD_RUN_PATH="/usr/lib/x86_64-linux-gnu" cc  -shared -O2 -L/usr/local/lib -fstack-protector Chromaprint.o  -o blib/arch/auto/Audio/Chromaprint/Chromaprint.so    \
           -lchromaprint        \
[..]
user@testing:/tmp/xs-fun/chapter_07/Audio-Chromaprint$ make test
[..]
Result: PASS
user@testing:/tmp/xs-fun/chapter_07/Audio-Chromaprint$ 

@wsdookadr
Copy link

@xsawyerx should this issue be closed ?

@xsawyerx
Copy link
Owner

@wsdookadr I missed your responses. Thank you for taking the time to write this information down. Also, feel free to throw a PR to document it in the tutorial as well.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants