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

Support Compilers Older Than GCC v4.7? #75

Open
wbraswell opened this issue Jan 13, 2017 · 2 comments
Open

Support Compilers Older Than GCC v4.7? #75

wbraswell opened this issue Jan 13, 2017 · 2 comments

Comments

@wbraswell
Copy link
Owner

wbraswell commented Jan 13, 2017

@eserte One or more of your FreeBSD machines on CPAN Testers has an old version of GCC v4.2, and RPerl requires GCC v4.7 or newer.

gccversion='4.2.1 20070831 patched [FreeBSD]'

http://www.cpantesters.org/cpan/report/a6a0a588-d7ca-11e6-9ece-bdfa082fd90d

My goal is to reach 100% CPAN testers coverage.

Is it better for you to upgrade the GCC yourself, or is it better for me to create Alien::gcc which will rebuild a new GCC from source (which will add extra runtime)?

g++ -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include  -xc++ -c  -I"RPerl-2.403000-3KPshm/t" -IRPerl-2.403000-3KPshm/blib/lib -Ilib  -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -Wno-unused-variable -DNO_XSLOCKS -Wno-deprecated -std=c++11 -Wno-reserved-user-defined-literal -Wno-literal-suffix -D__CPP__TYPES -D__TYPE__INTEGER__LONG -D__TYPE__NUMBER__DOUBLE -O3 -fomit-frame-pointer -march=native -g    -DVERSION=\"0.00\"  -DXS_VERSION=\"0.00\" -DPIC -fPIC "-I/usr/perl5.10.1/lib/5.10.1/amd64-freebsd/CORE"   eval_30_f5a5.c
cc1plus: error: unrecognized command line option "-Wno-reserved-user-defined-literal"
cc1plus: error: unrecognized command line option "-Wno-literal-suffix"
cc1plus: error: unrecognized command line option "-std=c++11"
*** [eval_30_f5a5.o] Error code 1

(Also seen on other CPAN tester machines, such as one by BinGOs http://www.cpantesters.org/cpan/report/a88bb812-d868-11e6-af13-afb6b8e3343c)

@eserte
Copy link

eserte commented Feb 26, 2017

This machine (freebsd 9.2) has a gcc-4.8 package installed,additionally to the system's gcc.

$  gcc48 -v
Using built-in specs.
COLLECT_GCC=gcc48
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc48/gcc/x86_64-portbld-freebsd9.3/4.8.4/lto-wrapper
Target: x86_64-portbld-freebsd9.3
Configured with: ./../gcc-4.8.4/configure --disable-bootstrap --disable-nls --enable-gnu-indirect-function --libdir=/usr/local/lib/gcc48 --libexecdir=/usr/local/libexec/gcc48 --program-suffix=48 --with-as=/usr/local/bin/as --with-gmp=/usr/local --with-gxx-include-dir=/usr/local/lib/gcc48/include/c++/ --with-ld=/usr/local/bin/ld --with-libiconv-prefix=/usr/local --with-pkgversion='FreeBSD Ports Collection' --with-system-zlib --with-ecj-jar=/usr/local/share/java/ecj-4.5.jar --enable-languages=c,c++,objc,fortran,java --prefix=/usr/local --localstatedir=/var --mandir=/usr/local/man --infodir=/usr/local/info/gcc48 --build=x86_64-portbld-freebsd9.3
Thread model: posix
gcc version 4.8.4 (FreeBSD Ports Collection) 

@wbraswell
Copy link
Owner Author

@eserte
How can we tell your system to use the gcc48 compiler, without changing RPerl for everyone else?

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

2 participants