Cross Linux From Scratch || Error na compilação do cross gcc [RESOLVIDO]

1. Cross Linux From Scratch || Error na compilação do cross gcc [RESOLVIDO]

Joglinux
Joglinux

(usa Funtoo)

Enviado em 20/04/2016 - 01:37h

estou seguindo o cross linux from scratch estava tudo ocorrendo bem, mas ao chegar aqui: http://clfs.org/view/CLFS-3.0.0-SYSVINIT/x86_64/cross-tools/gcc-final.html eu tive um problema na compilação ao chamar o:
make AS_FOR_TARGET="${CLFS_TARGET}-as" \
LD_FOR_TARGET="${CLFS_TARGET}-ld"

log:
make[1]: Entering directory '/mnt/infinity_box/sources/gcc-build'                                                                                                      
make[2]: Entering directory '/mnt/infinity_box/sources/gcc-build/libiberty'
make[3]: Entering directory '/mnt/infinity_box/sources/gcc-build/libiberty/testsuite'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/mnt/infinity_box/sources/gcc-build/libiberty/testsuite'
make[2]: Leaving directory '/mnt/infinity_box/sources/gcc-build/libiberty'
make[2]: Entering directory '/mnt/infinity_box/sources/gcc-build/fixincludes'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/mnt/infinity_box/sources/gcc-build/fixincludes'
make[2]: Entering directory '/mnt/infinity_box/sources/gcc-build/lto-plugin'
make all-am
make[3]: Entering directory '/mnt/infinity_box/sources/gcc-build/lto-plugin'
make[3]: Leaving directory '/mnt/infinity_box/sources/gcc-build/lto-plugin'
make[2]: Leaving directory '/mnt/infinity_box/sources/gcc-build/lto-plugin'
make[2]: Entering directory '/mnt/infinity_box/sources/gcc-build/intl'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/mnt/infinity_box/sources/gcc-build/intl'
make[2]: Entering directory '/mnt/infinity_box/sources/gcc-build/build-x86_64-cross-linux-gnu/libiberty'
make[3]: Entering directory '/mnt/infinity_box/sources/gcc-build/build-x86_64-cross-linux-gnu/libiberty/testsuite'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/mnt/infinity_box/sources/gcc-build/build-x86_64-cross-linux-gnu/libiberty/testsuite'
make[2]: Leaving directory '/mnt/infinity_box/sources/gcc-build/build-x86_64-cross-linux-gnu/libiberty'
make[2]: Entering directory '/mnt/infinity_box/sources/gcc-build/build-x86_64-cross-linux-gnu/fixincludes'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/mnt/infinity_box/sources/gcc-build/build-x86_64-cross-linux-gnu/fixincludes'
make[2]: Entering directory '/mnt/infinity_box/sources/gcc-build/libbacktrace'
make all-am
make[3]: Entering directory '/mnt/infinity_box/sources/gcc-build/libbacktrace'
true DO=all multi-do # make
make[3]: Leaving directory '/mnt/infinity_box/sources/gcc-build/libbacktrace'
make[2]: Leaving directory '/mnt/infinity_box/sources/gcc-build/libbacktrace'
make[2]: Entering directory '/mnt/infinity_box/sources/gcc-build/libcpp'
test -f config.h || (rm -f stamp-h1 && make stamp-h1)
make[2]: Leaving directory '/mnt/infinity_box/sources/gcc-build/libcpp'
make[2]: Entering directory '/mnt/infinity_box/sources/gcc-build/libdecnumber'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/mnt/infinity_box/sources/gcc-build/libdecnumber'
make[2]: Entering directory '/mnt/infinity_box/sources/gcc-build/gcc'
make[2]: Leaving directory '/mnt/infinity_box/sources/gcc-build/gcc'
Checking multilib configuration for libgcc...
make[2]: Entering directory '/mnt/infinity_box/sources/gcc-build/x86_64-unknown-linux-gnu/libgcc'
# If this is the top-level multilib, build all the other
# multilibs.
make[3]: Entering directory '/mnt/infinity_box/sources/gcc-build/x86_64-unknown-linux-gnu/libgcc'
if [ -z "32" ]; then \
true; \
else \
rootpre=`${PWDCMD-pwd}`/; export rootpre; \
srcrootpre=`cd ../../../gcc-4.8.3/libgcc; ${PWDCMD-pwd}`/; export srcrootpre; \
lib=`echo "${rootpre}" | sed -e 's,^.*/\([^/][^/]*\)/$,\1,'`; \
compiler="/mnt/infinity_box/sources/gcc-build/./gcc/xgcc -B/mnt/infinity_box/sources/gcc-build/./gcc/ -B/cross-tools/x86_64-unknown-linux-gnu/bin/ -B/cross-tools/x86_64-unknown-linux-gnu/lib/ -isystem /cross-tools/x86_64-unknown-linux-gnu/include -isystem /cross-tools/x86_64-unknown-linux-gnu/sys-include "; \
for i in `${compiler} --print-multi-lib 2>/dev/null`; do \
dir=`echo $i | sed -e 's/;.*$//'`; \
if [ "${dir}" = "." ]; then \
true; \
else \
if [ -d ../${dir}/${lib} ]; then \
flags=`echo $i | sed -e 's/^[^;]*;//' -e 's/@/ -/g'`; \
if (cd ../${dir}/${lib}; make "AR=/cross-tools/x86_64-unknown-linux-gnu/bin/ar" "AR_FLAGS=rc" "CC=/mnt/infinity_box/sources/gcc-build/./gcc/xgcc -B/mnt/infinity_box/sources/gcc-build/./gcc/ -B/cross-tools/x86_64-unknown-linux-gnu/bin/ -B/cross-tools/x86_64-unknown-linux-gnu/lib/ -isystem /cross-tools/x86_64-unknown-linux-gnu/include -isystem /cross-tools/x86_64-unknown-linux-gnu/sys-include " "CFLAGS=-g -O2" "DESTDIR=" "EXTRA_OFILES=" "HDEFINES=" "INSTALL=/bin/install -c" "INSTALL_DATA=/bin/install -c -m 644" "INSTALL_PROGRAM=/bin/install -c" "LDFLAGS=" "LOADLIBES=" "RANLIB=/cross-tools/x86_64-unknown-linux-gnu/bin/ranlib" "SHELL=/bin/sh" "prefix=/cross-tools" "exec_prefix=/cross-tools" "libdir=/cross-tools/lib" "libsubdir=/cross-tools/lib/gcc/x86_64-unknown-linux-gnu/4.8.3" "tooldir=/cross-tools/x86_64-unknown-linux-gnu" \
CFLAGS="-g -O2 ${flags}" \
CCASFLAGS=" ${flags}" \
FCFLAGS=" ${flags}" \
FFLAGS=" ${flags}" \
ADAFLAGS=" ${flags}" \
prefix="/cross-tools" \
exec_prefix="/cross-tools" \
GCJFLAGS=" ${flags}" \
GOCFLAGS="-O2 -g ${flags}" \
CXXFLAGS="-g -O2 -D_GNU_SOURCE ${flags}" \
LIBCFLAGS="-g -O2 ${flags}" \
LIBCXXFLAGS="-g -O2 -D_GNU_SOURCE -fno-implicit-templates ${flags}" \
LDFLAGS=" ${flags}" \
MULTIFLAGS="${flags}" \
DESTDIR="" \
INSTALL="/bin/install -c" \
INSTALL_DATA="/bin/install -c -m 644" \
INSTALL_PROGRAM="/bin/install -c" \
INSTALL_SCRIPT="/bin/install -c" \
all); then \
true; \
else \
exit 1; \
fi; \
else true; \
fi; \
fi; \
done; \
fi
make[4]: Entering directory '/mnt/infinity_box/sources/gcc-build/x86_64-unknown-linux-gnu/32/libgcc'
# If this is the top-level multilib, build all the other
# multilibs.
CONFIG_FILES= CONFIG_HEADERS=auto-target.h:../../../../gcc-4.8.3/libgcc/config.in /bin/sh ./config.status
config.status: creating auto-target.h
config.status: auto-target.h is unchanged
config.status: linking ../../../../gcc-4.8.3/libgcc/enable-execute-stack-empty.c to enable-execute-stack.c
config.status: linking ../../../../gcc-4.8.3/libgcc/unwind-generic.h to unwind.h
config.status: linking ../../../../gcc-4.8.3/libgcc/config/i386/linux-unwind.h to md-unwind-support.h
config.status: linking ../../../../gcc-4.8.3/libgcc/config/i386/sfp-machine.h to sfp-machine.h
config.status: linking ../../../../gcc-4.8.3/libgcc/gthr-posix.h to gthr-default.h
config.status: executing default commands
# Early copyback; see "all" above for the rationale. The
# early copy is necessary so that the gcc -B options find
# the right startup files when linking shared libgcc.
/bin/sh ../../../../gcc-4.8.3/libgcc/../mkinstalldirs ../../.././gcc/32
parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"; \
for file in $parts; do \
rm -f ../../.././gcc/32/$file; \
/bin/install -c -m 644 $file ../../.././gcc/32/; \
case $file in \
*.a) \
/cross-tools/x86_64-unknown-linux-gnu/bin/ranlib ../../.././gcc/32/$file ;; \
esac; \
done
# @[email protected] is still needed because this may use
# /mnt/infinity_box/sources/gcc-build/./gcc/xgcc -B/mnt/infinity_box/sources/gcc-build/./gcc/ -B/cross-tools/x86_64-unknown-linux-gnu/bin/ -B/cross-tools/x86_64-unknown-linux-gnu/lib/ -isystem /cross-tools/x86_64-unknown-linux-gnu/include -isystem /cross-tools/x86_64-unknown-linux-gnu/sys-include and -O2 -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fpic -mlong-double-80 -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector directly.
# @[email protected] is not really necessary, but sometimes it has
# more uses than just a directory name.
/bin/sh ../../../../gcc-4.8.3/libgcc/../mkinstalldirs 32
/mnt/infinity_box/sources/gcc-build/./gcc/xgcc -B/mnt/infinity_box/sources/gcc-build/./gcc/ -B/cross-tools/x86_64-unknown-linux-gnu/bin/ -B/cross-tools/x86_64-unknown-linux-gnu/lib/ -isystem /cross-tools/x86_64-unknown-linux-gnu/include -isystem /cross-tools/x86_64-unknown-linux-gnu/sys-include -O2 -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fpic -mlong-double-80 -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -shared -nodefaultlibs -Wl,--soname=libgcc_s.so.1 -Wl,--version-script=libgcc.map -o 32/libgcc_s.so.1.tmp -g -O2 -m32 -B./ _muldi3_s.o _negdi2_s.o _lshrdi3_s.o _ashldi3_s.o _ashrdi3_s.o _cmpdi2_s.o _ucmpdi2_s.o _clear_cache_s.o _trampoline_s.o __main_s.o _absvsi2_s.o _absvdi2_s.o _addvsi3_s.o _addvdi3_s.o _subvsi3_s.o _subvdi3_s.o _mulvsi3_s.o _mulvdi3_s.o _negvsi2_s.o _negvdi2_s.o _ctors_s.o _ffssi2_s.o _ffsdi2_s.o _clz_s.o _clzsi2_s.o _clzdi2_s.o _ctzsi2_s.o _ctzdi2_s.o _popcount_tab_s.o _popcountsi2_s.o _popcountdi2_s.o _paritysi2_s.o _paritydi2_s.o _powisf2_s.o _powidf2_s.o _powixf2_s.o _powitf2_s.o _mulsc3_s.o _muldc3_s.o _mulxc3_s.o _multc3_s.o _divsc3_s.o _divdc3_s.o _divxc3_s.o _divtc3_s.o _bswapsi2_s.o _bswapdi2_s.o _clrsbsi2_s.o _clrsbdi2_s.o _fixunssfsi_s.o _fixunsdfsi_s.o _fixunsxfsi_s.o _fixsfdi_s.o _fixdfdi_s.o _fixxfdi_s.o _fixunssfdi_s.o _fixunsdfdi_s.o _fixunsxfdi_s.o _floatdisf_s.o _floatdidf_s.o _floatdixf_s.o _floatundisf_s.o _floatundidf_s.o _floatundixf_s.o _divdi3_s.o _moddi3_s.o _udivdi3_s.o _umoddi3_s.o _udiv_w_sdiv_s.o _udivmoddi4_s.o cpuinfo_s.o tf-signs_s.o sfp-exceptions_s.o addtf3_s.o divtf3_s.o eqtf2_s.o getf2_s.o letf2_s.o multf3_s.o negtf2_s.o subtf3_s.o unordtf2_s.o fixtfsi_s.o fixunstfsi_s.o floatsitf_s.o floatunsitf_s.o fixtfdi_s.o fixunstfdi_s.o floatditf_s.o floatunditf_s.o extendsftf2_s.o extenddftf2_s.o extendxftf2_s.o trunctfsf2_s.o trunctfdf2_s.o trunctfxf2_s.o enable-execute-stack_s.o unwind-dw2_s.o unwind-dw2-fde-dip_s.o unwind-sjlj_s.o unwind-c_s.o emutls_s.o libgcc.a -lc && rm -f 32/libgcc_s.so && if [ -f 32/libgcc_s.so.1 ]; then mv -f 32/libgcc_s.so.1 32/libgcc_s.so.1.backup; else true; fi && mv 32/libgcc_s.so.1.tmp 32/libgcc_s.so.1 && ln -s libgcc_s.so.1 32/libgcc_s.so
/cross-tools/bin/x86_64-unknown-linux-gnu-ld: /mnt/infinity_box/tools/lib/../lib/crti.o: unrecognized relocation (0x2b) in section `.init'
/cross-tools/bin/x86_64-unknown-linux-gnu-ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
Makefile:921: recipe for target 'libgcc_s.so' failed
make[4]: *** [libgcc_s.so] Error 1
make[4]: Leaving directory '/mnt/infinity_box/sources/gcc-build/x86_64-unknown-linux-gnu/32/libgcc'
Makefile:1104: recipe for target 'multi-do' failed
make[3]: *** [multi-do] Error 1
make[3]: Leaving directory '/mnt/infinity_box/sources/gcc-build/x86_64-unknown-linux-gnu/libgcc'
Makefile:113: recipe for target 'all-multi' failed
make[2]: *** [all-multi] Error 2
make[2]: Leaving directory '/mnt/infinity_box/sources/gcc-build/x86_64-unknown-linux-gnu/libgcc'
Makefile:11071: recipe for target 'all-target-libgcc' failed
make[1]: *** [all-target-libgcc] Error 2
make[1]: Leaving directory '/mnt/infinity_box/sources/gcc-build'
Makefile:858: recipe for target 'all' failed
make: *** [all] Error 2



  


2. Re: Cross Linux From Scratch || Error na compilação do cross gcc [RESOLVIDO]

Perfil removido
removido

(usa Nenhuma)

Enviado em 20/04/2016 - 01:50h

Geralmente este tipo de erro é causado pelo esquecimento de algo.
É o que aconteceu comigo das vezes que fiz LFS.
Você fez os patches corretamente?

Em último caso você pode ter descoberto um bug novo.
Daí seria o caso de usas as listas de discussão dos *LFS.

----------------------------------------------------------------------------------------------------------------
# apt-get purge systemd (não é prá digitar isso!)

Encryption works. Properly implemented strong crypto systems are one of the few things that you can rely on. Unfortunately, endpoint security is so terrifically weak that NSA can frequently find ways around it. — Edward Snowden



3. Re: Cross Linux From Scratch || Error na compilação do cross gcc [RESOLVIDO]

Joglinux
Joglinux

(usa Funtoo)

Enviado em 20/04/2016 - 08:23h

eu refiz a extração do gcc (pq ele ja havia sido compilado de modo diferente antes) e apliquei os patches pedidos dei o configure (com os parametros pedidos no clfs) e ao dar make deu isso, pelo que me lembro não esqueci de nada. De qualquer modo darei uma lida com mais calma nos logs.

*Deveria ter avisado que o log que coloquei, é de ter chamado o comando pela segunda vez apos ja ter falhado uma.


4. Re: Cross Linux From Scratch || Error na compilação do cross gcc [RESOLVIDO]

Perfil removido
removido

(usa Nenhuma)

Enviado em 20/04/2016 - 08:31h

O comando make pula as etapas já feitas e vai direto aonde parou.
Então parou onde deu erro.

Você também fez tudo certo nas etapas anteriores a essa do make, não é?
O compilador que você está usando para compilar o make é do LFS?

----------------------------------------------------------------------------------------------------------------
# apt-get purge systemd (não é prá digitar isso!)

Encryption works. Properly implemented strong crypto systems are one of the few things that you can rely on. Unfortunately, endpoint security is so terrifically weak that NSA can frequently find ways around it. — Edward Snowden



5. Re: Cross Linux From Scratch || Error na compilação do cross gcc

Joglinux
Joglinux

(usa Funtoo)

Enviado em 20/04/2016 - 09:11h

listeiro_037 escreveu:

O comando make pula as etapas já feitas e vai direto aonde parou.
Então parou onde deu erro.

Você também fez tudo certo nas etapas anteriores a essa do make, não é?
O compilador que você está usando para compilar o make é do LFS?


acredito que tenha feito tudo certo pois nenhum dos logs apontou algum erro,
como precisa de um sistema anfitrião creio que o compilador seja o mesmo do meu sistema.

Edit:
Opa dei uma olhada e o ambiente que e preparado usa o "compilador do clfs" (gcc)

Edit2:
Comecei novamente, do zero, agora com outra versão do clfs






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts