Thread: gcc >= 6 ?
View Single Post
Posts: 592 | Thanked: 1,167 times | Joined on Jul 2012
#2
Originally Posted by yurib View Post
Hi
I need gcc >= 6 for sailfish os in order to try to port a program to sailfish os.

I've searched it but I've not found it, so I've compiled sources with the latest SDK (1707), but:

Code:
/opt/cross/bin/armv7hl-meego-linux-gnueabi-ld: /home/src1/gcc-6.4.0/host-armv7l-unknown-linux-gnueabihf/gcc/liblto_plugin.so: error loading plugin: re/locale-langpack/en_US/LC_MESSAGES/armv7hl-meego-linux-gnueabi-ld.mo
collect2: error: ld returned 1 exit status
make[3]: *** [libgcc_s.so] Error 1
make[3]: Leaving directory `/home/src1/gcc-6.4.0/armv7l-unknown-linux-gnueabihf/libgcc'
make[2]: *** [all-stage1-target-libgcc] Error 2
make[2]: Leaving directory `/home/src1/gcc-6.4.0'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/home/src1/gcc-6.4.0'
make: *** [all] Error 2
Code:
/opt/cross/bin/armv7hl-meego-linux-gnueabi-ld: /home/src1/gcc-7.1.0/host-armv7l-unknown-linux-gnueabihf/gcc/liblto_plugin.so: error loading plugin: /locale/en_US/LC_MESSAGES/armv7hl-meego-linux-gnueabi-ld.mo
collect2: error: ld returned 1 exit status
make[3]: *** [libgcc_s.so] Error 1
make[3]: Leaving directory `/home/src1/gcc-7.1.0/armv7l-unknown-linux-gnueabihf/libgcc'
make[2]: *** [all-stage1-target-libgcc] Error 2
make[2]: Leaving directory `/home/src1/gcc-7.1.0'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/home/src1/gcc-7.1.0'
make: *** [all] Error 2

Then I've tried to compiled it on jolla1, but after 30 hours:

Code:
libtool: link: (cd ".libs" && rm -f "libgcj_bc.so.1" && ln -s "libgcj_bc.so.1.0.0" "libgcj_bc.so.1")
libtool: link: (cd ".libs" && rm -f "libgcj_bc.so" && ln -s "libgcj_bc.so.1.0.0" "libgcj_bc.so")
libtool: link: ( cd ".libs" && rm -f "libgcj_bc.la" && ln -s "../libgcj_bc.la" "libgcj_bc.la" )
/dev/null:1:3: error: invalid preprocessing directive ###
 # ### BEGIN LIBTOOL TAG CONFIG: CXX
   ^~
make[3]: *** [libgcj_bc.la] Error 1
make[3]: Leaving directory `/home/nemo/gcc-6.4.0/armv7l-unknown-linux-gnueabihf/libjava'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/nemo/gcc-6.4.0/armv7l-unknown-linux-gnueabihf/libjava'
make[1]: *** [all-target-libjava] Error 2
make[1]: Leaving directory `/home/nemo/gcc-6.4.0'
make: *** [all] Error 2
(compilation of version 7.1 has begun 10 minutes ago, but I think it'll fail)

Any suggestions? Thanks


EDIT: for your information, compilation of version 7.1 has failed.
Code:
libcpp.a   ../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a
(echo "@set version-GCC 7.1.0"; \
         if [ "" = "experimental" ]; \
         then echo "@set DEVELOPMENT"; \
         else echo "@clear DEVELOPMENT"; \
         fi) > gcc-vers.texiT
echo @set srcdir /home/nemo/gcc-7.1.0/host-armv7l-unknown-linux-gnueabihf/gcc/../.././gcc >> gcc-vers.texiT
if [ -n "(GCC) " ]; then \
          echo "@set VERSION_PACKAGE (GCC) " >> gcc-vers.texiT; \
        fi
echo "@set BUGURL @uref{https://gcc.gnu.org/bugs/}" >> gcc-vers.texiT; \
        mv -f gcc-vers.texiT gcc-vers.texi
echo timestamp > gcc.pod
perl ../.././gcc/../contrib/texi2pod.pl ../.././gcc/doc/invoke.texi > gcc.pod
echo timestamp > doc/gcc.1
(pod2man --center="GNU" --release="gcc-7.1.0" --date=2017-05-02 --section=1 gcc.pod > doc/gcc.1.T$$ && \
                mv -f doc/gcc.1.T$$ doc/gcc.1) || \
                (rm -f doc/gcc.1.T$$ && exit 1)
cp doc/gcc.1 doc/g++.1
perl ../.././gcc/../contrib/texi2pod.pl -DBUGURL="@uref{https://gcc.gnu.org/bugs/}" \
          < ../.././gcc/fortran/invoke.texi > gfortran.pod
echo timestamp > doc/gfortran.1
(pod2man --center="GNU" --release="gcc-7.1.0" --date=2017-05-02 --section=1 gfortran.pod > doc/gfortran.1.T$$ && \
                mv -f doc/gfortran.1.T$$ doc/gfortran.1) || \
                (rm -f doc/gfortran.1.T$$ && exit 1)
/home/nemo/gcc-7.1.0/host-armv7l-unknown-linux-gnueabihf/gcc/xgcc -B/home/nemo/gcc-7.1.0/host-armv7l-unknown-linux-gnueabihf/gcc/ -nostdinc -x c /dev/null -S -o /dev/null -fself-test=../.././gcc/testsuite/selftests
/dev/null:1:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
cc1: note: self-tests are not enabled in this build
make[3]: *** [s-selftest] Error 1
rm gfortran.pod gcc.pod
make[3]: Leaving directory `/home/nemo/gcc-7.1.0/host-armv7l-unknown-linux-gnueabihf/gcc'
make[2]: *** [all-stage2-gcc] Error 2
make[2]: Leaving directory `/home/nemo/gcc-7.1.0'
make[1]: *** [stage2-bubble] Error 2
make[1]: Leaving directory `/home/nemo/gcc-7.1.0'
make: *** [all] Error 2
On Jolla1? Please use the MER platform SDK instead! It'll make your life alot easier.
__________________
BWizz - best N9 bookmark editing tool! Check it out ->BWizz for Harmattan

LINKer - transform your N9's home view in a Desktop, give it the freedom it deserves! -> LINKer for Harmattan

QuickBar - Can't find the app you used yesterday in your overcrowded Home Screen? Want access to the QuickLaunch bar even in the home screen? QuickBar for Harmattan

If you like our work, and would like to support via PayPal : users.giulietta@gmail.com
 

The Following 4 Users Say Thank You to tortoisedoc For This Useful Post: