Problem compiling gcc 5.2.0 on VortexDX86 embedded
Kai Ruottu
kai.ruottu@wippies.com
Fri Sep 25 17:45:00 GMT 2015
25.9.2015, 20:37, Renato Mendes kirjoitti:
> Very good point Jonathan....
>
>> You can install GCC 4.7 first, as that can be built using only a C
>> compiler. Then use GCC 4.7 to build GCC 5.2
> Ok. This is what I´ve decided to do... In real a good path to solve my problem.
>
> I´ve now downloaded and tried to compile the Gcc 4.7.0 version and now
> seens that I´m having problems with link libraries:
>
> make[3]: Entering directory `/home/ftp/pub/gcc-build/gcc'
> gcc -g -DIN_GCC -W -Wall -Wwrite-strings -Wcast-qual
> -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute
> -fno-common -DHAVE_CONFIG_H -o cc1 c-lang.o c-family/stub-objc.o
> attribs.o c-errors.o c-decl.o c-typeck.o c-convert.o c-aux-info.o
> c-objc-common.o c-parser.o tree-mudflap.o c-family/c-common.o
> c-family/c-cppbuiltin.o c-family/c-dump.o c-family/c-format.o
> c-family/c-gimplify.o c-family/c-lex.o c-family/c-omp.o
> c-family/c-opts.o c-family/c-pch.o c-family/c-ppoutput.o
> c-family/c-pragma.o c-family/c-pretty-print.o c-family/c-semantics.o
> c-family/c-ada-spec.o i386-c.o default-c.o \
> cc1-checksum.o main.o tree-browser.o libbackend.a libcommon-target.a
> libcommon.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a
> libcommon.a ../libcpp/libcpp.a ../libiberty/libiberty.a
> ../libdecnumber/libdecnumber.a -lmpc -lmpfr -lgmp -ldl -lz
> /usr/bin/ld: cannot find -lz
> collect2: ld returned 1 exit status
> make[3]: *** [cc1] Error 1
> make[3]: Leaving directory `/home/ftp/pub/gcc-build/gcc'
> make[2]: *** [all-stage1-gcc] Error 2
> make[2]: Leaving directory `/home/ftp/pub/gcc-build'
> make[1]: *** [stage1-bubble] Error 2
> make[1]: Leaving directory `/home/ftp/pub/gcc-build'
> make: *** [all] Error 2
>
> I need help to move this step foward and be ready to install the 5.2 version.
>
> Thanks!
>
>
Just remove the '--with-system-zlib' causing the '-lz'. Without it the
zlib sources will
be used...
More information about the Gcc-help
mailing list