run4flat / c-tinycompiler Goto Github PK
View Code? Open in Web Editor NEWPerl bindings for the Tiny C Compiler
Perl bindings for the Tiny C Compiler
Linux BGP-ZW-1TB1139 2.6.32-220.el6.x86_64 #1 SMP Tue Dec 6 19:48:22 GMT 2011 x86_64 x86_64 x86_64 GNU/Linux
CentOS release 6.2 (Final)
Kernel \r on an \m
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.4.6 20120305 (Red Hat 4.4.6-4) (GCC)
Entering C-TinyCompiler-0.03
Checking configure dependencies from META.json
Checking if you have Devel::PPPort 0 ... Yes (3.21)
Checking if you have Module::Build 0.40 ... Yes (0.4007)
Checking if you have Alien::TinyCC 0.03 ... Yes (0.03)
Checking if you have Module::Build 0.36 ... Yes (0.4007)
Configuring C-TinyCompiler-0.03
Running Build.PL
Created MYMETA.yml and MYMETA.json
Creating new 'Build' script for 'C-TinyCompiler' version '0.03'
-> OK
Checking dependencies from MYMETA.json ...
Checking if you have Test::More 0.88 ... Yes (0.98)
Checking if you have Test::Exception 0 ... Yes (0.31)
Checking if you have Test::Warn 0 ... Yes (0.24)
Checking if you have Alien::TinyCC 0.03 ... Yes (0.03)
Checking if you have ExtUtils::CBuilder 0 ... Yes (0.280205)
Building and testing C-TinyCompiler-0.03
Building C-TinyCompiler
gcc -I/usr/local/share/perl5/auto/share/dist/Alien-TinyCC/include -I. -I/usr/lib64/perl5/CORE -DXS_VERSION="0.03" -DVERSION="0.03" -fPIC -c -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -o lib/C/TinyCompiler/Perl/SV.o lib/C/TinyCompiler/Perl/SV.c
lib/C/TinyCompiler/Perl/SV.xs: In function ‘XS_C__TinyCompiler__Perl__SV_get_symbol_ptrs’:
lib/C/TinyCompiler/Perl/SV.xs:26: warning: value computed is not used
lib/C/TinyCompiler/Perl/SV.xs:27: warning: value computed is not used
lib/C/TinyCompiler/Perl/SV.xs:28: warning: value computed is not used
ExtUtils::Mkbootstrap::Mkbootstrap('blib/arch/auto/C/TinyCompiler/Perl/SV/SV.bs')
gcc -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -o blib/arch/auto/C/TinyCompiler/Perl/SV/SV.so lib/C/TinyCompiler/Perl/SV.o -L/usr/local/share/perl5/auto/share/dist/Alien-TinyCC/lib -ltcc
gcc -I/usr/local/share/perl5/auto/share/dist/Alien-TinyCC/include -I. -I/usr/lib64/perl5/CORE -DXS_VERSION="0.03" -DVERSION="0.03" -fPIC -c -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -o lib/C/TinyCompiler/Perl/AV.o lib/C/TinyCompiler/Perl/AV.c
lib/C/TinyCompiler/Perl/AV.xs: In function ‘XS_C__TinyCompiler__Perl__AV_get_symbol_ptrs’:
lib/C/TinyCompiler/Perl/AV.xs:26: warning: value computed is not used
lib/C/TinyCompiler/Perl/AV.xs:27: warning: value computed is not used
lib/C/TinyCompiler/Perl/AV.xs:28: warning: value computed is not used
ExtUtils::Mkbootstrap::Mkbootstrap('blib/arch/auto/C/TinyCompiler/Perl/AV/AV.bs')
gcc -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -o blib/arch/auto/C/TinyCompiler/Perl/AV/AV.so lib/C/TinyCompiler/Perl/AV.o -L/usr/local/share/perl5/auto/share/dist/Alien-TinyCC/lib -ltcc
gcc -I/usr/local/share/perl5/auto/share/dist/Alien-TinyCC/include -I. -I/usr/lib64/perl5/CORE -DXS_VERSION="0.03" -DVERSION="0.03" -fPIC -c -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -o lib/C/TinyCompiler/Perl/Croak.o lib/C/TinyCompiler/Perl/Croak.c
lib/C/TinyCompiler/Perl/Croak.xs: In function ‘XS_C__TinyCompiler__Perl__Croak_get_symbol_ptrs’:
lib/C/TinyCompiler/Perl/Croak.xs:33: warning: value computed is not used
lib/C/TinyCompiler/Perl/Croak.xs:34: warning: value computed is not used
lib/C/TinyCompiler/Perl/Croak.xs:35: warning: value computed is not used
lib/C/TinyCompiler/Perl/Croak.xs:36: warning: value computed is not used
ExtUtils::Mkbootstrap::Mkbootstrap('blib/arch/auto/C/TinyCompiler/Perl/Croak/Croak.bs')
gcc -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -o blib/arch/auto/C/TinyCompiler/Perl/Croak/Croak.so lib/C/TinyCompiler/Perl/Croak.o -L/usr/local/share/perl5/auto/share/dist/Alien-TinyCC/lib -ltcc
gcc -I/usr/local/share/perl5/auto/share/dist/Alien-TinyCC/include -I. -I/usr/lib64/perl5/CORE -DXS_VERSION="0.03" -DVERSION="0.03" -fPIC -c -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -o lib/C/TinyCompiler.o lib/C/TinyCompiler.c
lib/C/TinyCompiler.xs: In function ‘my_tcc_error_func’:
lib/C/TinyCompiler.xs:14: warning: value computed is not used
lib/C/TinyCompiler.xs: In function ‘XS_C__TinyCompiler__create_state’:
lib/C/TinyCompiler.xs:36: warning: value computed is not used
ExtUtils::Mkbootstrap::Mkbootstrap('blib/arch/auto/C/TinyCompiler/TinyCompiler.bs')
gcc -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -o blib/arch/auto/C/TinyCompiler/TinyCompiler.so lib/C/TinyCompiler.o -L/usr/local/share/perl5/auto/share/dist/Alien-TinyCC/lib -ltcc
/usr/bin/ld: /usr/local/share/perl5/auto/share/dist/Alien-TinyCC/lib/libtcc.a(libtcc.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
/usr/local/share/perl5/auto/share/dist/Alien-TinyCC/lib/libtcc.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
error building blib/arch/auto/C/TinyCompiler/TinyCompiler.so from lib/C/TinyCompiler.o at /usr/share/perl5/ExtUtils/CBuilder/Base.pm line 312.
-> FAIL Installing C::TinyCompiler failed. See /root/.cpanm/work/1377684500.22442/build.log for details. Retry with --force to force install it.
On my 64bit Linux, I get this:
/usr/bin/ld: /usr/local/share/perl/5.14.2/auto/share/dist/Alien-TinyCC/lib/libtcc.a(libtcc.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/local/share/perl/5.14.2/auto/share/dist/Alien-TinyCC/lib/libtcc.a: could not read symbols: Bad value
collect2: error: ld returned 1 exit status
error building blib/arch/auto/C/TinyCompiler/TinyCompiler.so from lib/C/TinyCompiler.o at /usr/local/share/perl/5.14.2/ExtUtils/CBuilder/Base.pm line 312.
In my hacky XS::TCC inclusion of tcc itself, I had to work around this as well, but I'd rather not recommend the specifics of what I did. IOW I did:
libtcc.so.1.0: CFLAGS+=-fPIC
which clearly isn't the right thing to do.
Getting test failures when installing C::TinyCompiler on 5.20, for example:
not ok 2 - '.' is the working directory when compile is invoked
# Failed test ''.' is the working directory when compile is invoked'
# at t/111-compile-include.t line 75.
# 'Possible precedence issue with control flow operator at /home/calid/.cpanm/work/1425046257.24674/C-TinyCompiler-0.04/blib/lib/C/TinyCompiler.pm line 950.
# Possible precedence issue with control flow operator at /home/calid/.cpanm/work/1425046257.24674/C-TinyCompiler-0.04/blib/lib/C/TinyCompiler.pm line 1300.
# foo/bar.h'
# doesn't match '(?^:^foo.bar\.h$)'
This appears to be fixed on master, so can you release 0.5? Thanks!
As per subject. Sample fail report:
http://www.cpantesters.org/cpan/report/41701439
Flagged line https://metacpan.org/source/DCMERTENS/C-TinyCompiler-0.04/lib/C/TinyCompiler.pm#L950
return $self->is_package_applied($package)
or $self->is_package_blocked($package);
HTH&&Thanks,
(Disclaimer: this was discovered by statistical analysis, I'm not speaking as a user)
Hi,
Could you please include what has actually changed in development releases. For example when you look at https://metacpan.org/changes/release/DCMERTENS/Alien-TinyCC-0.03_01, nothing is there about 0.03_01.
Keep up the awesome work.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.