Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Gentoo prefix] Failed to bootstrap (32b on 64b kernel)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
awesomebytes
n00b
n00b


Joined: 22 Nov 2018
Posts: 16

PostPosted: Thu Nov 22, 2018 11:46 pm    Post subject: [Gentoo prefix] Failed to bootstrap (32b on 64b kernel) Reply with quote

Hello everyone,

Before posting a new Bugzilla report I'd like to get some insight, and maybe leave a trace for someone to google this problem.

I've tried to bootstrap Gentoo Prefix yesterday. (I've boostrapped it a few times before up until last June). Usually it all went smooth but today I got blocked by gcc 8.2.0-r4 not building. In my previous bootstraps gcc 7.3.0.-r3 was built. I don't have a full log right now cause the build was happening in a Docker environment where I only have right now the last bit of the log:

Code:

# @multilib_flags@ is still needed because this may use
# /tmp/gentoo/tmp/var/tmp/portage/sys-devel/gcc-8.2.0-r4/work/build/./gcc/xgcc -B/tmp/gentoo/tmp/var/tmp/portage/sys-devel/gcc-8.2.0-r4/work/build/./gcc/ -B/tmp/gentoo/tmp/usr/i686-pc-linux-gnu/bin/ -B/tmp/gentoo/tmp/usr/i686-pc-linux-gnu/lib/ -isystem /tmp/gentoo/tmp/usr/i686-pc-linux-gnu/include -isystem /tmp/gentoo/tmp/usr/i686-pc-linux-gnu/sys-include    and -O2  -g -O2 -march=i686 -pipe -O2 -pipe -DIN_GCC    -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include   -fpic -mlong-double-80 -DUSE_ELF_SYMVER  -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -fno-stack-clash-protection  directly.
# @multilib_dir@ is not really necessary, but sometimes it has
# more uses than just a directory name.
/tmp/gentoo/tmp/bin/bash /tmp/gentoo/tmp/var/tmp/portage/sys-devel/gcc-8.2.0-r4/work/gcc-8.2.0/libgcc/../mkinstalldirs .
/tmp/gentoo/tmp/var/tmp/portage/sys-devel/gcc-8.2.0-r4/work/build/./gcc/xgcc -B/tmp/gentoo/tmp/var/tmp/portage/sys-devel/gcc-8.2.0-r4/work/build/./gcc/ -B/tmp/gentoo/tmp/usr/i686-pc-linux-gnu/bin/ -B/tmp/gentoo/tmp/usr/i686-pc-linux-gnu/lib/ -isystem /tmp/gentoo/tmp/usr/i686-pc-linux-gnu/include -isystem /tmp/gentoo/tmp/usr/i686-pc-linux-gnu/sys-include    -O2  -g -O2 -march=i686 -pipe -O2 -pipe -DIN_GCC    -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include   -fpic -mlong-double-80 -DUSE_ELF_SYMVER  -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -fno-stack-clash-protection  -shared -nodefaultlibs -Wl,--soname=libgcc_s.so.1 -Wl,--version-script=libgcc.map -o ./libgcc_s.so.1.tmp -g -O2 -march=i686 -pipe -O2 -pipe -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 _mulhc3_s.o _mulsc3_s.o _muldc3_s.o _mulxc3_s.o _multc3_s.o _divhc3_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 _divmoddi4_s.o _udivdi3_s.o _umoddi3_s.o _udivmoddi4_s.o _udiv_w_sdiv_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 ./libgcc_s.so && if [ -f ./libgcc_s.so.1 ]; then mv -f ./libgcc_s.so.1 ./libgcc_s.so.1.backup; else true; fi && mv ./libgcc_s.so.1.tmp ./libgcc_s.so.1 && (echo "/* GNU ld script"; echo "   Use the shared library, but some functions are only in"; echo "   the static library.  */"; echo "GROUP ( libgcc_s.so.1 -lgcc )" ) > ./libgcc_s.so
/tmp/gentoo/tmp/var/tmp/portage/sys-devel/gcc-8.2.0-r4/work/build/./gcc/collect-ld: 106: exec: /tmp/gentoo/tmp/usr/i686-pc-linux-gnu/bin/ld: Invalid argument
collect2: error: ld returned 2 exit status
Makefile:980: recipe for target 'libgcc_s.so' failed
make[2]: *** [libgcc_s.so] Error 1
make[2]: Leaving directory '/tmp/gentoo/tmp/var/tmp/portage/sys-devel/gcc-8.2.0-r4/work/build/i686-pc-linux-gnu/libgcc'
Makefile:12434: recipe for target 'all-target-libgcc' failed
make[1]: *** [all-target-libgcc] Error 2
make[1]: Leaving directory '/tmp/gentoo/tmp/var/tmp/portage/sys-devel/gcc-8.2.0-r4/work/build'
Makefile:906: recipe for target 'all' failed
make: *** [all] Error 2
 * ERROR: sys-devel/gcc-8.2.0-r4::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=sys-devel/gcc-8.2.0-r4::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-devel/gcc-8.2.0-r4::gentoo'`.
 * The complete build log is located at '/tmp/gentoo/tmp/var/tmp/portage/sys-devel/gcc-8.2.0-r4/temp/build.log'.
 * The ebuild environment file is located at '/tmp/gentoo/tmp/var/tmp/portage/sys-devel/gcc-8.2.0-r4/temp/environment'.
 * Working directory: '/tmp/gentoo/tmp/var/tmp/portage/sys-devel/gcc-8.2.0-r4/work/build'
 * S: '/tmp/gentoo/tmp/var/tmp/portage/sys-devel/gcc-8.2.0-r4/work/gcc-8.2.0'
 *
 * Please include /tmp/gentoo/tmp/var/tmp/portage/sys-devel/gcc-8.2.0-r4/work/gcc-build-logs.tar.bz2 in your bug report.
 *

>>> Failed to emerge sys-devel/gcc-8.2.0-r4, Log file:

>>>  '/tmp/gentoo/tmp/var/tmp/portage/sys-devel/gcc-8.2.0-r4/temp/build.log'

 * Messages for package sys-devel/gcc-8.2.0-r4:

 * Can't read /config.sub, skipping..
 * Can't read /config.guess, skipping..
 * ERROR: sys-devel/gcc-8.2.0-r4::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=sys-devel/gcc-8.2.0-r4::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-devel/gcc-8.2.0-r4::gentoo'`.
 * The complete build log is located at '/tmp/gentoo/tmp/var/tmp/portage/sys-devel/gcc-8.2.0-r4/temp/build.log'.
 * The ebuild environment file is located at '/tmp/gentoo/tmp/var/tmp/portage/sys-devel/gcc-8.2.0-r4/temp/environment'.
 * Working directory: '/tmp/gentoo/tmp/var/tmp/portage/sys-devel/gcc-8.2.0-r4/work/build'
 * S: '/tmp/gentoo/tmp/var/tmp/portage/sys-devel/gcc-8.2.0-r4/work/gcc-8.2.0'
 *
 * Please include /tmp/gentoo/tmp/var/tmp/portage/sys-devel/gcc-8.2.0-r4/work/gcc-build-logs.tar.bz2 in your bug report.
 *

Odd!  Running
  /bin/bash ./bootstrap-prefix.sh "/tmp/gentoo" stage2
failed! :(  Details might be found in the build log:
  /tmp/gentoo/tmp/var/tmp/portage/sys-devel/gcc-8.2.0-r4/temp/build.log
  (no build logs found?!?)
I have no clue, really.  Please find friendly folks in #gentoo-prefix on
irc.gentoo.org, gentoo-alt@lists.gentoo.org mailing list, or file a bug
at bugs.gentoo.org under Gentoo/Alt, Prefix Support.
Remember you might find some clues in /tmp/gentoo/stage2.log
The command '/bin/sh -c date > start_bootstrap_date.txt && echo "Y\n\n/tmp/gentoo\nluck\n" | ./bootstrap-prefix.sh && date > end_bootstrap_date.txt' returned a non-zero code: 1


I'd like to ask if this is normal first. (Should it bootstrap with a stable version of GCC instead? I can see here https://packages.gentoo.org/packages/sys-devel/gcc that 7.3.0-r3 is stable and 8.2.0-r4 isn't).
Then, should I re-run the breaking job to get a full log to create a Bugzilla report? (This takes quite a few hours with the machine being unusable, hence the question)

For now I'm going to workaround with doing (my Gentoo prefix is in /tmp/gentoo):
Code:

mkdir -p /tmp/gentoo/etc/portage/
echo ">sys-devel/gcc-7.3.0-r3" >> /tmp/gentoo/etc/portage/package.mask

Before running my bootstrap-prefix.sh

Note that if you find some other weird flags in the log is cause it's a 32bit Ubuntu 16.04 Docker image with CHOST set to i686-pc-linux-gnu (running in a 64b Ubuntu 16.04) as I'm building the prefix to be deployed in 32bit machines.

Thank you very much for any feedback you can provide!


Last edited by awesomebytes on Fri Nov 23, 2018 2:28 pm; edited 1 time in total
Back to top
View user's profile Send private message
awesomebytes
n00b
n00b


Joined: 22 Nov 2018
Posts: 16

PostPosted: Fri Nov 23, 2018 1:26 am    Post subject: Reply with quote

Oh well, I guess I'm wrong about the reason this is failing. I tried to bootstrap forcing gcc-7.3.0-r3 and I got the same kind of error:

Code:
rm -f libgcc.a
objects="_muldi3.o _negdi2.o _lshrdi3.o _ashldi3.o _ashrdi3.o _cmpdi2.o _ucmpdi2.o _clear_cache.o _trampoline.o __main.o _absvsi2.o _absvdi2.o _addvsi3.o _addvdi3.o _subvsi3.o _subvdi3.o _mulvsi3.o _mulvdi3.o _negvsi2.o _negvdi2.o _ctors.o _ffssi2.o _ffsdi2.o _clz.o _clzsi2.o _clzdi2.o _ctzsi2.o _ctzdi2.o _popcount_tab.o _popcountsi2.o _popcountdi2.o _paritysi2.o _paritydi2.o _powisf2.o _powidf2.o _powixf2.o _powitf2.o _mulhc3.o _mulsc3.o _muldc3.o _mulxc3.o _multc3.o _divhc3.o _divsc3.o _divdc3.o _divxc3.o _divtc3.o _bswapsi2.o _bswapdi2.o _clrsbsi2.o _clrsbdi2.o _fixunssfsi.o _fixunsdfsi.o _fixunsxfsi.o _fixsfdi.o _fixdfdi.o _fixxfdi.o _fixunssfdi.o _fixunsdfdi.o _fixunsxfdi.o _floatdisf.o _floatdidf.o _floatdixf.o _floatundisf.o _floatundidf.o _floatundixf.o _eprintf.o __gcc_bcmp.o _divdi3.o _moddi3.o _divmoddi4.o _udivdi3.o _umoddi3.o _udivmoddi4.o _udiv_w_sdiv.o bid_decimal_globals.o bid_decimal_data.o bid_binarydecimal.o bid_convert_data.o _isinfd32.o _isinfd64.o _isinfd128.o bid64_noncomp.o bid128_noncomp.o bid128_fma.o bid_round.o bid_from_int.o bid64_add.o bid128_add.o bid64_div.o bid128_div.o bid64_mul.o bid128_mul.o bid64_compare.o bid128_compare.o bid128.o bid32_to_bid64.o bid32_to_bid128.o bid64_to_bid128.o bid64_to_int32.o bid64_to_int64.o bid64_to_uint32.o bid64_to_uint64.o bid128_to_int32.o bid128_to_int64.o bid128_to_uint32.o bid128_to_uint64.o _addsub_sd.o _div_sd.o _mul_sd.o _eq_sd.o _ne_sd.o _lt_sd.o _gt_sd.o _le_sd.o _ge_sd.o _sd_to_si.o _sd_to_di.o _sd_to_usi.o _sd_to_udi.o _si_to_sd.o _di_to_sd.o _usi_to_sd.o _udi_to_sd.o _sd_to_sf.o _sd_to_df.o _sd_to_xf.o _sd_to_tf.o _sf_to_sd.o _df_to_sd.o _xf_to_sd.o _tf_to_sd.o _sd_to_dd.o _sd_to_td.o _unord_sd.o _addsub_dd.o _div_dd.o _mul_dd.o _eq_dd.o _ne_dd.o _lt_dd.o _gt_dd.o _le_dd.o _ge_dd.o _dd_to_si.o _dd_to_di.o _dd_to_usi.o _dd_to_udi.o _si_to_dd.o _di_to_dd.o _usi_to_dd.o _udi_to_dd.o _dd_to_sf.o _dd_to_df.o _dd_to_xf.o _dd_to_tf.o _sf_to_dd.o _df_to_dd.o _xf_to_dd.o _tf_to_dd.o _dd_to_sd.o _dd_to_td.o _unord_dd.o _addsub_td.o _div_td.o _mul_td.o _eq_td.o _ne_td.o _lt_td.o _gt_td.o _le_td.o _ge_td.o _td_to_si.o _td_to_di.o _td_to_usi.o _td_to_udi.o _si_to_td.o _di_to_td.o _usi_to_td.o _udi_to_td.o _td_to_sf.o _td_to_df.o _td_to_xf.o _td_to_tf.o _sf_to_td.o _df_to_td.o _xf_to_td.o _tf_to_td.o _td_to_sd.o _td_to_dd.o _unord_td.o cpuinfo.o tf-signs.o sfp-exceptions.o addtf3.o divtf3.o eqtf2.o getf2.o letf2.o multf3.o negtf2.o subtf3.o unordtf2.o fixtfsi.o fixunstfsi.o floatsitf.o floatunsitf.o fixtfdi.o fixunstfdi.o floatditf.o floatunditf.o extendsftf2.o extenddftf2.o extendxftf2.o trunctfsf2.o trunctfdf2.o trunctfxf2.o enable-execute-stack.o generic-morestack.o generic-morestack-thread.o morestack.o";               \
if test -z "$objects"; then            \
  echo 'int __libgcc_eh_dummy;' > eh_dummy.c;      \
  /tmp/gentoo/tmp/var/tmp/portage/sys-devel/gcc-7.3.0-r3/work/build/./gcc/xgcc -B/tmp/gentoo/tmp/var/tmp/portage/sys-devel/gcc-7.3.0-r3/work/build/./gcc/ -B/tmp/gentoo/tmp/usr/i686-pc-linux-gnu/bin/ -B/tmp/gentoo/tmp/usr/i686-pc-linux-gnu/lib/ -isystem /tmp/gentoo/tmp/usr/i686-pc-linux-gnu/include -isystem /tmp/gentoo/tmp/usr/i686-pc-linux-gnu/sys-include    -g -O2 -march=i686 -pipe -O2 -pipe -O2  -g -O2 -march=i686 -pipe -O2 -pipe -DIN_GCC    -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include   -fpic -mlong-double-80 -DUSE_ELF_SYMVER -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -fstack-check=no   -fpic -mlong-double-80 -DUSE_ELF_SYMVER -I. -I. -I../.././gcc -I/tmp/gentoo/tmp/var/tmp/portage/sys-devel/gcc-7.3.0-r3/work/gcc-7.3.0/libgcc -I/tmp/gentoo/tmp/var/tmp/portage/sys-devel/gcc-7.3.0-r3/work/gcc-7.3.0/libgcc/. -I/tmp/gentoo/tmp/var/tmp/portage/sys-devel/gcc-7.3.0-r3/work/gcc-7.3.0/libgcc/../gcc -I/tmp/gentoo/tmp/var/tmp/portage/sys-devel/gcc-7.3.0-r3/work/gcc-7.3.0/libgcc/../include -I/tmp/gentoo/tmp/var/tmp/portage/sys-devel/gcc-7.3.0-r3/work/gcc-7.3.0/libgcc/config/libbid -DENABLE_DECIMAL_BID_FORMAT -DHAVE_CC_TLS  -DUSE_TLS  -c eh_dummy.c      \
     -o eh_dummy.o;            \
  objects=eh_dummy.o;            \
fi;                     \
/tmp/gentoo/tmp/usr/i686-pc-linux-gnu/bin/ar  rc libgcc.a $objects
/tmp/gentoo/tmp/usr/i686-pc-linux-gnu/bin/ranlib libgcc.a
# @multilib_flags@ is still needed because this may use
# /tmp/gentoo/tmp/var/tmp/portage/sys-devel/gcc-7.3.0-r3/work/build/./gcc/xgcc -B/tmp/gentoo/tmp/var/tmp/portage/sys-devel/gcc-7.3.0-r3/work/build/./gcc/ -B/tmp/gentoo/tmp/usr/i686-pc-linux-gnu/bin/ -B/tmp/gentoo/tmp/usr/i686-pc-linux-gnu/lib/ -isystem /tmp/gentoo/tmp/usr/i686-pc-linux-gnu/include -isystem /tmp/gentoo/tmp/usr/i686-pc-linux-gnu/sys-include    and -O2  -g -O2 -march=i686 -pipe -O2 -pipe -DIN_GCC    -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include   -fpic -mlong-double-80 -DUSE_ELF_SYMVER -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -fstack-check=no  directly.
# @multilib_dir@ is not really necessary, but sometimes it has
# more uses than just a directory name.
/tmp/gentoo/tmp/bin/bash /tmp/gentoo/tmp/var/tmp/portage/sys-devel/gcc-7.3.0-r3/work/gcc-7.3.0/libgcc/../mkinstalldirs .
/tmp/gentoo/tmp/var/tmp/portage/sys-devel/gcc-7.3.0-r3/work/build/./gcc/xgcc -B/tmp/gentoo/tmp/var/tmp/portage/sys-devel/gcc-7.3.0-r3/work/build/./gcc/ -B/tmp/gentoo/tmp/usr/i686-pc-linux-gnu/bin/ -B/tmp/gentoo/tmp/usr/i686-pc-linux-gnu/lib/ -isystem /tmp/gentoo/tmp/usr/i686-pc-linux-gnu/include -isystem /tmp/gentoo/tmp/usr/i686-pc-linux-gnu/sys-include    -O2  -g -O2 -march=i686 -pipe -O2 -pipe -DIN_GCC    -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include   -fpic -mlong-double-80 -DUSE_ELF_SYMVER -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -fstack-check=no  -shared -nodefaultlibs -Wl,--soname=libgcc_s.so.1 -Wl,--version-script=libgcc.map -o ./libgcc_s.so.1.tmp -g -O2 -march=i686 -pipe -O2 -pipe -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 _mulhc3_s.o _mulsc3_s.o _muldc3_s.o _mulxc3_s.o _multc3_s.o _divhc3_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 _divmoddi4_s.o _udivdi3_s.o _umoddi3_s.o _udivmoddi4_s.o _udiv_w_sdiv_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 ./libgcc_s.so && if [ -f ./libgcc_s.so.1 ]; then mv -f ./libgcc_s.so.1 ./libgcc_s.so.1.backup; else true; fi && mv ./libgcc_s.so.1.tmp ./libgcc_s.so.1 && (echo "/* GNU ld script"; echo "   Use the shared library, but some functions are only in"; echo "   the static library.  */"; echo "GROUP ( libgcc_s.so.1 -lgcc )" ) > ./libgcc_s.so
/tmp/gentoo/tmp/var/tmp/portage/sys-devel/gcc-7.3.0-r3/work/build/./gcc/collect-ld: 106: exec: /tmp/gentoo/tmp/usr/i686-pc-linux-gnu/bin/ld: Invalid argument
collect2: error: ld returned 2 exit status
Makefile:977: recipe for target 'libgcc_s.so' failed
make[2]: *** [libgcc_s.so] Error 1
make[2]: Leaving directory '/tmp/gentoo/tmp/var/tmp/portage/sys-devel/gcc-7.3.0-r3/work/build/i686-pc-linux-gnu/libgcc'
Makefile:12270: recipe for target 'all-target-libgcc' failed
make[1]: *** [all-target-libgcc] Error 2
make[1]: Leaving directory '/tmp/gentoo/tmp/var/tmp/portage/sys-devel/gcc-7.3.0-r3/work/build'
Makefile:894: recipe for target 'all' failed
make: *** [all] Error 2
 * ERROR: sys-devel/gcc-7.3.0-r3::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=sys-devel/gcc-7.3.0-r3::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-devel/gcc-7.3.0-r3::gentoo'`.
 * The complete build log is located at '/tmp/gentoo/tmp/var/tmp/portage/sys-devel/gcc-7.3.0-r3/temp/build.log'.
 * The ebuild environment file is located at '/tmp/gentoo/tmp/var/tmp/portage/sys-devel/gcc-7.3.0-r3/temp/environment'.
 * Working directory: '/tmp/gentoo/tmp/var/tmp/portage/sys-devel/gcc-7.3.0-r3/work/build'
 * S: '/tmp/gentoo/tmp/var/tmp/portage/sys-devel/gcc-7.3.0-r3/work/gcc-7.3.0'
 *
 * Please include /tmp/gentoo/tmp/var/tmp/portage/sys-devel/gcc-7.3.0-r3/work/gcc-build-logs.tar.bz2 in your bug report.
 *

>>> Failed to emerge sys-devel/gcc-7.3.0-r3, Log file:

>>>  '/tmp/gentoo/tmp/var/tmp/portage/sys-devel/gcc-7.3.0-r3/temp/build.log'

 * Messages for package sys-devel/gcc-7.3.0-r3:

 * Can't read /config.sub, skipping..
 * Can't read /config.guess, skipping..
 * ERROR: sys-devel/gcc-7.3.0-r3::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=sys-devel/gcc-7.3.0-r3::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-devel/gcc-7.3.0-r3::gentoo'`.
 * The complete build log is located at '/tmp/gentoo/tmp/var/tmp/portage/sys-devel/gcc-7.3.0-r3/temp/build.log'.
 * The ebuild environment file is located at '/tmp/gentoo/tmp/var/tmp/portage/sys-devel/gcc-7.3.0-r3/temp/environment'.
 * Working directory: '/tmp/gentoo/tmp/var/tmp/portage/sys-devel/gcc-7.3.0-r3/work/build'
 * S: '/tmp/gentoo/tmp/var/tmp/portage/sys-devel/gcc-7.3.0-r3/work/gcc-7.3.0'
 *
 * Please include /tmp/gentoo/tmp/var/tmp/portage/sys-devel/gcc-7.3.0-r3/work/gcc-build-logs.tar.bz2 in your bug report.
 *

Odd!  Running
  /bin/bash ./bootstrap-prefix.sh "/tmp/gentoo" stage2
failed! :(  Details might be found in the build log:
  /tmp/gentoo/tmp/var/tmp/portage/sys-devel/gcc-7.3.0-r3/temp/build.log
  (no build logs found?!?)
I have no clue, really.  Please find friendly folks in #gentoo-prefix on
irc.gentoo.org, gentoo-alt@lists.gentoo.org mailing list, or file a bug
at bugs.gentoo.org under Gentoo/Alt, Prefix Support.
Remember you might find some clues in /tmp/gentoo/stage2.log
The command '/bin/sh -c date > start_bootstrap_date.txt && echo "Y\n\n/tmp/gentoo\nluck\n" | ./bootstrap-prefix.sh && date > end_bootstrap_date.txt' returned a non-zero code: 1


I'll keep digging to see what ld is getting in that's parsed as a Invalid argument. Any help is appreciated!

Edit: Full log available here: https://gist.github.com/awesomebytes/f1306717f617bd299bad2b6bde486ebd
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 21791
Location: here

PostPosted: Fri Nov 23, 2018 6:58 am    Post subject: Reply with quote

awesomebytes welcome to gentoo forum!
You can put build.log as file in a dropbox or simila because in pastebin is truncated
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
awesomebytes
n00b
n00b


Joined: 22 Nov 2018
Posts: 16

PostPosted: Fri Nov 23, 2018 7:07 am    Post subject: Reply with quote

fedeliallalinea wrote:
awesomebytes welcome to gentoo forum!
You can put build.log as file in a dropbox or simila because in pastebin is truncated


Hello! Thank you. You should be able to click on 'view the full file' just under the title of the file. Or click on the right side on 'raw' (that points to this url:
https://gist.githubusercontent.com/awesomebytes/f1306717f617bd299bad2b6bde486ebd/raw/3a495e9c4be521f33951db939067d6279cfa0019/gentoo%2520prefix%2520gcc%25207.3.0-r3%2520build%2520failure ). Or even 'git clone' the URL of the gist.

If that doesn't work for you I'll reupload it when I'm back on a computer.
Back to top
View user's profile Send private message
awesomebytes
n00b
n00b


Joined: 22 Nov 2018
Posts: 16

PostPosted: Fri Nov 23, 2018 2:27 pm    Post subject: Reply with quote

So I added:

Code:

export CXXFLAGS=-m32
export CFLAGS=-m32
export LDFLAGS=-m32



And gcc went through. Now I found another error:

Code:

These are the packages that would be merged, in order:

Calculating dependencies  .... done!


[nomerge       ] sys-apps/sandbox-2.13::gentoo
[nomerge       ]  app-misc/pax-utils-1.2.3-r2::gentoo  USE="seccomp -caps -debug -python" PYTHON_SINGLE_TARGET="python3_6 -python2_7 -python3_4 -python3_5" PYTHON_TARGETS="python2_7 python3_6 -python3_4 -python3_5"
[nomerge       ]   sys-libs/libseccomp-2.3.3::gentoo  USE="-static-libs"
[nomerge       ]    sys-kernel/linux-headers-4.19::gentoo  USE="-headers-only"
[nomerge       ]     dev-lang/perl-5.26.2:0/5.26::gentoo  USE="berkdb gdbm -debug -doc -ithreads"
[nomerge       ]      app-admin/perl-cleaner-2.26-r1::gentoo
[nomerge       ]       sys-apps/portage-2.3.52-r1::gentoo  USE="(ipc) native-extensions rsync-verify -build -doc -epydoc -gentoo-dev (-selinux) -xattr" PYTHON_TARGETS="python2_7 python3_6 -pypy -python3_4 -python3_5 (-python3_7)"
[nomerge       ]        dev-python/pyblake2-1.1.2::gentoo  PYTHON_TARGETS="python2_7 python3_6 -pypy -pypy3 -python3_4 -python3_5 (-python3_7)"
[nomerge       ]         dev-lang/python-3.6.6:3.6/3.6m::gentoo  USE="gdbm ipv6 ncurses readline ssl (threads) xml -bluetooth -build -examples -hardened -libressl -sqlite {-test} -tk -wininst"
[nomerge       ]          virtual/pkgconfig-0-r1::gentoo
[nomerge       ]           dev-util/pkgconfig-0.29.2::gentoo  USE="-hardened -internal-glib"
[nomerge       ]            dev-libs/glib-2.56.2:2::gentoo  USE="mime -dbus -debug (-fam) (-selinux) -static-libs -systemtap {-test} -utils -xattr"
[ebuild  N     ]             x11-misc/shared-mime-info-1.10::gentoo  USE="{-test}" 603 KiB
[ebuild  N     ]           dev-util/pkgconfig-0.29.2::gentoo  USE="-hardened -internal-glib" 0 KiB
[ebuild  N     ]            dev-libs/glib-2.56.2:2::gentoo  USE="mime -dbus -debug (-fam) (-selinux) -static-libs -systemtap {-test} -utils -xattr" 9740 KiB
[nomerge       ] sys-apps/portage-2.3.52-r1::gentoo  USE="(ipc) native-extensions rsync-verify -build -doc -epydoc -gentoo-dev (-selinux) -xattr" PYTHON_TARGETS="python2_7 python3_6 -pypy -python3_4 -python3_5 (-python3_7)"
[nomerge       ]  app-portage/gemato-14.0::gentoo  USE="blake2 bzip2 gpg -lzma -sha3 {-test} -tools" PYTHON_TARGETS="python2_7 python3_6 -pypy -python3_4 -python3_5 (-python3_7)"
[nomerge       ]   dev-python/pyblake2-1.1.2::gentoo  PYTHON_TARGETS="python2_7 python3_6 -pypy -pypy3 -python3_4 -python3_5 (-python3_7)"
[nomerge       ]    dev-python/setuptools-40.6.2::gentoo  USE="{-test}" PYTHON_TARGETS="python2_7 python3_6 -pypy -pypy3 -python3_4 -python3_5 (-python3_7)"
[ebuild  N     ]     dev-python/certifi-2018.8.24::gentoo  PYTHON_TARGETS="python2_7 python3_6 -pypy -pypy3 -python3_4 -python3_5 (-python3_7)" 144 KiB
[ebuild  N     ] app-admin/perl-cleaner-2.26-r1::gentoo  8 KiB
[ebuild  N     ]  sys-apps/portage-2.3.52-r1::gentoo  USE="(ipc) native-extensions rsync-verify -build -doc -epydoc -gentoo-dev (-selinux) -xattr" PYTHON_TARGETS="python2_7 python3_6 -pypy -python3_4 -python3_5 (-python3_7)" 993 KiB
[ebuild  N     ]   app-portage/gemato-14.0::gentoo  USE="blake2 bzip2 gpg -lzma -sha3 {-test} -tools" PYTHON_TARGETS="python2_7 python3_6 -pypy -python3_4 -python3_5 (-python3_7)" 70 KiB
[ebuild  N     ]    dev-python/pyblake2-1.1.2::gentoo  PYTHON_TARGETS="python2_7 python3_6 -pypy -pypy3 -python3_4 -python3_5 (-python3_7)" 124 KiB
[ebuild  N     ]     dev-python/setuptools-40.6.2::gentoo  USE="{-test}" PYTHON_TARGETS="python2_7 python3_6 -pypy -pypy3 -python3_4 -python3_5 (-python3_7)" 820 KiB
[ebuild  N     ]    app-crypt/gnupg-2.2.11::gentoo  USE="bzip2 nls readline smartcard ssl -doc -ldap (-selinux) -tofu -tools -usb -user-socket -wks-server" 6497 KiB
[ebuild  N     ]     net-misc/curl-7.62.0::gentoo  USE="ipv6 ssl -adns -brotli -http2 -idn -kerberos -ldap -metalink -rtmp -samba -ssh -static-libs {-test} -threads" CURL_SSL="openssl -axtls -gnutls -libressl -mbedtls -nss (-winssl)" 2945 KiB
[ebuild  N     ]    dev-python/bz2file-0.98::gentoo  PYTHON_TARGETS="python2_7 -pypy" 12 KiB
[nomerge       ] x11-misc/shared-mime-info-1.10::gentoo  USE="{-test}"
[nomerge       ]  dev-libs/glib-2.56.2:2::gentoo  USE="mime -dbus -debug (-fam) (-selinux) -static-libs -systemtap {-test} -utils -xattr"
[ebuild  N     ]   dev-util/glib-utils-2.56.2::gentoo  PYTHON_SINGLE_TARGET="python3_6 -python3_5 (-python3_7)" PYTHON_TARGETS="python3_6 -python3_5 (-python3_7)" 0 KiB
[nomerge       ] dev-python/pyblake2-1.1.2::gentoo  PYTHON_TARGETS="python2_7 python3_6 -pypy -pypy3 -python3_4 -python3_5 (-python3_7)"
[ebuild  N     ]  dev-lang/python-2.7.15:2.7::gentoo  USE="gdbm ipv6 ncurses readline ssl (threads) (wide-unicode) xml (-berkdb) -bluetooth -build -doc -examples -hardened -libressl -sqlite -tk -wininst" 12362 KiB
[ebuild  N     ]   dev-libs/openssl-1.0.2q::gentoo  USE="asm sslv3 tls-heartbeat zlib -bindist -gmp -kerberos -rfc3779 -sctp -sslv2 -static-libs {-test} -vanilla" CPU_FLAGS_X86="-sse2" 5233 KiB
[ebuild  N     ]    app-misc/ca-certificates-20180409.3.37::gentoo  USE="-cacert" 22729 KiB
[ebuild  N     ]     dev-lang/python-3.6.6:3.6/3.6m::gentoo  USE="gdbm ipv6 ncurses readline ssl (threads) xml -bluetooth -build -examples -hardened -libressl -sqlite {-test} -tk -wininst" 16769 KiB
[nomerge       ] sys-apps/portage-2.3.52-r1::gentoo  USE="(ipc) native-extensions rsync-verify -build -doc -epydoc -gentoo-dev (-selinux) -xattr" PYTHON_TARGETS="python2_7 python3_6 -pypy -python3_4 -python3_5 (-python3_7)"
[nomerge       ]  dev-lang/python-3.6.6:3.6/3.6m::gentoo  USE="ipv6 ncurses readline ssl (threads) xml -bluetooth -build -examples -gdbm -hardened -libressl -sqlite {-test} -tk -wininst"
[nomerge       ]   sys-devel/autoconf-2.69-r4:2.69::gentoo  USE="-emacs"
[nomerge       ]    dev-lang/perl-5.26.2:0/5.26::gentoo  USE="-berkdb -debug -doc -gdbm -ithreads"
[ebuild  N     ]     app-admin/perl-cleaner-2.26-r1::gentoo  0 KiB
[ebuild  N     ]      sys-apps/portage-2.3.52-r1::gentoo  USE="(ipc) native-extensions rsync-verify -build -doc -epydoc -gentoo-dev (-selinux) -xattr" PYTHON_TARGETS="python2_7 python3_6 -pypy -python3_4 -python3_5 (-python3_7)" 0 KiB
[ebuild  N     ]       app-portage/gemato-14.0::gentoo  USE="blake2 bzip2 gpg -lzma -sha3 {-test} -tools" PYTHON_TARGETS="python2_7 python3_6 -pypy -python3_4 -python3_5 (-python3_7)" 0 KiB
[ebuild  N     ]        app-crypt/gnupg-2.2.11::gentoo  USE="bzip2 readline smartcard ssl -doc -ldap -nls (-selinux) -tofu -tools -usb -user-socket -wks-server" 0 KiB
[ebuild  N     ]         virtual/mta-1::gentoo  0 KiB
[ebuild  N     ]          mail-mta/nullmailer-2.0-r2::gentoo  USE="ssl {-test}" 244 KiB
[nomerge       ] dev-util/glib-utils-2.56.2::gentoo  PYTHON_SINGLE_TARGET="python3_6 -python3_5 (-python3_7)" PYTHON_TARGETS="python3_6 -python3_5 (-python3_7)"
[nomerge       ]  dev-lang/python-3.6.6:3.6/3.6m::gentoo  USE="gdbm ipv6 ncurses readline ssl (threads) xml -bluetooth -build -examples -hardened -libressl -sqlite {-test} -tk -wininst"
[nomerge       ]   sys-devel/automake-1.16.1-r1:1.16::gentoo  USE="{-test}"
[nomerge       ]    dev-lang/perl-5.26.2:0/5.26::gentoo  USE="berkdb gdbm -debug -doc -ithreads"
[ebuild  N     ]     virtual/perl-File-Temp-0.230.400-r5::gentoo  0 KiB
[ebuild  N     ]      perl-core/File-Temp-0.230.400-r1::gentoo  59 KiB
[ebuild  N     ]     virtual/perl-Data-Dumper-2.167.0::gentoo  0 KiB
[ebuild  N     ]     virtual/perl-Test-Harness-3.380.0::gentoo  0 KiB
[nomerge       ] sys-apps/portage-2.3.52-r1::gentoo  USE="(ipc) native-extensions rsync-verify -build -doc -epydoc -gentoo-dev (-selinux) -xattr" PYTHON_TARGETS="python2_7 python3_6 -pypy -python3_4 -python3_5 (-python3_7)"
[nomerge       ]  app-crypt/gnupg-2.2.11::gentoo  USE="bzip2 nls readline smartcard ssl -doc -ldap (-selinux) -tofu -tools -usb -user-socket -wks-server"
[ebuild  N     ]   virtual/mta-1::gentoo  0 KiB
[ebuild  N     ]    mail-mta/nullmailer-2.0-r2::gentoo  USE="ssl {-test}" 0 KiB
[ebuild  N     ]     sys-apps/groff-1.22.3::gentoo  USE="-X -examples" 4091 KiB
[ebuild  N     ]     net-libs/gnutls-3.5.19-r1:0/30::gentoo  USE="cxx idn nls openssl seccomp tls-heartbeat zlib -dane -doc -examples -guile -openpgp -pkcs11 -sslv2 -sslv3 -static-libs {-test} -test-full -tools -valgrind" 7071 KiB
[ebuild  N     ]      net-dns/libidn2-2.0.5::gentoo  USE="-static-libs" 2043 KiB
[ebuild  N     ]      dev-libs/libtasn1-4.13:0/6::gentoo  USE="-doc -static-libs {-test} -valgrind" 1848 KiB
[ebuild  N     ]   app-crypt/pinentry-1.1.0-r3::gentoo  USE="ncurses -caps -emacs -fltk -gnome-keyring -gtk -qt5 -static" 457 KiB
[ebuild  N     ]   dev-libs/libksba-1.3.5-r2::gentoo  USE="-static-libs" 607 KiB
[nomerge       ] sys-apps/portage-2.3.52-r1::gentoo  USE="(ipc) native-extensions rsync-verify -build -doc -epydoc -gentoo-dev (-selinux) -xattr" PYTHON_TARGETS="python2_7 python3_6 -pypy -python3_4 -python3_5 (-python3_7)"
[nomerge       ]  app-crypt/gnupg-2.2.11::gentoo  USE="bzip2 readline smartcard ssl -doc -ldap -nls (-selinux) -tofu -tools -usb -user-socket -wks-server"
[ebuild  N     ]   net-libs/gnutls-3.5.19-r1:0/30::gentoo  USE="cxx idn openssl seccomp tls-heartbeat zlib -dane -doc -examples -guile -nls -openpgp -pkcs11 -sslv2 -sslv3 -static-libs {-test} -test-full -tools -valgrind" 0 KiB
[ebuild  N     ]    dev-libs/libtasn1-4.13:0/6::gentoo  USE="-doc -static-libs {-test} -valgrind" 0 KiB
[ebuild  N     ]     sys-apps/help2man-1.47.8::gentoo  USE="nls" 196 KiB
[ebuild  N     ]      dev-perl/Locale-gettext-1.70.0::gentoo  9 KiB
[ebuild  N     ]       virtual/perl-ExtUtils-MakeMaker-7.240.0::gentoo  0 KiB
[nomerge       ] x11-misc/shared-mime-info-1.10::gentoo  USE="{-test}"
[ebuild  N     ]  dev-util/intltool-0.51.0-r2::gentoo  159 KiB
[ebuild  N     ]   dev-perl/XML-Parser-2.440.0::gentoo  232 KiB
[nomerge       ] dev-libs/glib-2.56.2:2::gentoo  USE="mime -dbus -debug (-fam) (-selinux) -static-libs -systemtap {-test} -utils -xattr"
[ebuild  N     ]  app-text/docbook-xml-dtd-4.1.2-r6:4.1.2::gentoo  74 KiB
[ebuild  N     ]   app-text/docbook-xsl-stylesheets-1.79.1-r2::gentoo  USE="-ruby" 21454 KiB
[ebuild  N     ]  dev-libs/libxslt-1.1.32::gentoo  USE="crypt -debug -examples -python -static-libs" PYTHON_TARGETS="python2_7" 3361 KiB
[nomerge       ] app-crypt/gnupg-2.2.11::gentoo  USE="bzip2 readline smartcard ssl -doc -ldap -nls (-selinux) -tofu -tools -usb -user-socket -wks-server"
[ebuild  N     ]  app-crypt/pinentry-1.1.0-r3::gentoo  USE="ncurses -caps -emacs -fltk -gnome-keyring -gtk -qt5 -static" 0 KiB
[nomerge       ] app-crypt/gnupg-2.2.11::gentoo  USE="bzip2 nls readline smartcard ssl -doc -ldap (-selinux) -tofu -tools -usb -user-socket -wks-server"
[ebuild  N     ]  dev-libs/libassuan-2.5.1-r1::gentoo  USE="-static-libs" 552 KiB
[nomerge       ] app-text/docbook-xsl-stylesheets-1.79.1-r2::gentoo  USE="-ruby"
[ebuild  N     ]  app-text/build-docbook-catalog-1.21::gentoo  5 KiB
[nomerge       ] dev-libs/libxslt-1.1.32::gentoo  USE="crypt -debug -examples -python -static-libs" PYTHON_TARGETS="python2_7"
[ebuild  N     ]  dev-libs/libgcrypt-1.8.4:0/20::gentoo  USE="-doc -o-flag-munging -static-libs" 2921 KiB
[ebuild  N     ]   dev-libs/libgpg-error-1.32-r1::gentoo  USE="nls -common-lisp -static-libs" 884 KiB
[ebuild  N     ]    sys-devel/gettext-0.19.8.1::gentoo  USE="acl cxx ncurses nls openmp -cvs -doc -emacs -git -java -static-libs" 19243 KiB
[ebuild  N     ]     dev-libs/libxml2-2.9.8:2::gentoo  USE="ipv6 readline -debug -examples -icu -lzma -python -static-libs {-test}" PYTHON_TARGETS="python2_7 python3_6 -python3_4 -python3_5" 5341 KiB
[ebuild  N     ]      dev-util/gtk-doc-am-1.25-r1::gentoo  658 KiB
[ebuild  N     ]       dev-lang/perl-5.26.2:0/5.26::gentoo  USE="berkdb gdbm -debug -doc -ithreads" 11770 KiB
[nomerge       ] mail-mta/nullmailer-2.0-r2::gentoo  USE="ssl {-test}"
[ebuild  N     ]  virtual/logger-0-r1::gentoo  0 KiB
[ebuild  N     ]   app-admin/metalog-20181125::gentoo  USE="unicode" 39 KiB
[nomerge       ] sys-apps/portage-2.3.52-r1::gentoo  USE="(ipc) native-extensions rsync-verify -build -doc -epydoc -gentoo-dev (-selinux) -xattr" PYTHON_TARGETS="python2_7 python3_6 -pypy -python3_4 -python3_5 (-python3_7)"
[ebuild  N     ]  sys-apps/sandbox-2.13::gentoo  416 KiB
[ebuild  N     ]   app-misc/pax-utils-1.2.3-r2::gentoo  USE="seccomp -caps -debug -python" PYTHON_SINGLE_TARGET="python3_6 -python2_7 -python3_4 -python3_5" PYTHON_TARGETS="python2_7 python3_6 -python3_4 -python3_5" 647 KiB
[nomerge       ] dev-libs/glib-2.56.2:2::gentoo  USE="mime -dbus -debug (-fam) (-selinux) -static-libs -systemtap {-test} -utils -xattr"
[ebuild  N     ]  dev-libs/libpcre-8.42:3::gentoo  USE="bzip2 cxx jit readline recursion-limit (unicode) zlib -libedit -pcre16 -pcre32 -static-libs" 1534 KiB
[ebuild  N     ]   virtual/pkgconfig-0-r1::gentoo  0 KiB
[nomerge       ] app-admin/perl-cleaner-2.26-r1::gentoo
[ebuild  N     ]  app-portage/portage-utils-0.73::gentoo  USE="nls -static" 1549 KiB
[ebuild  N     ]   dev-libs/iniparser-3.1-r1::gentoo  USE="-doc -examples -static-libs" 39 KiB
[nomerge       ] app-crypt/gnupg-2.2.11::gentoo  USE="bzip2 nls readline smartcard ssl -doc -ldap (-selinux) -tofu -tools -usb -user-socket -wks-server"
[nomerge       ]  net-libs/gnutls-3.5.19-r1:0/30::gentoo  USE="cxx idn nls openssl seccomp tls-heartbeat zlib -dane -doc -examples -guile -openpgp -pkcs11 -sslv2 -sslv3 -static-libs {-test} -test-full -tools -valgrind"
[ebuild  N     ]   dev-libs/nettle-3.4:0/6.2::gentoo  USE="gmp -doc (-neon) -static-libs {-test}" CPU_FLAGS_X86="-aes" 1890 KiB
[nomerge       ] mail-mta/nullmailer-2.0-r2::gentoo  USE="ssl {-test}"
[nomerge       ]  net-libs/gnutls-3.5.19-r1:0/30::gentoo  USE="cxx idn openssl seccomp tls-heartbeat zlib -dane -doc -examples -guile -nls -openpgp -pkcs11 -sslv2 -sslv3 -static-libs {-test} -test-full -tools -valgrind"
[ebuild  N     ]   dev-libs/nettle-3.4:0/6.2::gentoo  USE="gmp -doc (-neon) -static-libs {-test}" CPU_FLAGS_X86="-aes" 0 KiB
[nomerge       ] dev-util/intltool-0.51.0-r2::gentoo
[nomerge       ]  dev-lang/perl-5.26.2:0/5.26::gentoo  USE="berkdb gdbm -debug -doc -ithreads"
[ebuild  N     ]   sys-libs/db-6.0.35-r1:6.0::gentoo  USE="cxx -doc -examples -java -tcl {-test}" 35677 KiB
[nomerge       ] app-crypt/gnupg-2.2.11::gentoo  USE="bzip2 readline smartcard ssl -doc -ldap -nls (-selinux) -tofu -tools -usb -user-socket -wks-server"
[ebuild  N     ]  dev-libs/libgcrypt-1.8.4:0/20::gentoo  USE="-doc -o-flag-munging -static-libs" 0 KiB
[nomerge       ] dev-python/bz2file-0.98::gentoo  PYTHON_TARGETS="python2_7 -pypy"
[nomerge       ]  dev-lang/python-2.7.15:2.7::gentoo  USE="gdbm ipv6 ncurses readline ssl (threads) (wide-unicode) xml (-berkdb) -bluetooth -build -doc -examples -hardened -libressl -sqlite -tk -wininst"
[ebuild  N     ]   sys-libs/gdbm-1.18.1:0/6::gentoo  USE="berkdb nls readline -static-libs" 920 KiB
[ebuild  N     ]   dev-libs/expat-2.2.6::gentoo  USE="unicode -examples -static-libs" 502 KiB
[ebuild  N     ]    sys-devel/libtool-2.4.6-r5:2::gentoo  USE="-vanilla" 951 KiB
[ebuild  N     ]     sys-devel/automake-1.16.1-r1:1.16::gentoo  USE="{-test}" 1499 KiB
[ebuild  N     ]      sys-devel/autoconf-2.69-r4:2.69::gentoo  USE="-emacs" 1187 KiB
[nomerge       ] sys-apps/portage-2.3.52-r1::gentoo  USE="(ipc) native-extensions rsync-verify -build -doc -epydoc -gentoo-dev (-selinux) -xattr" PYTHON_TARGETS="python2_7 python3_6 -pypy -python3_4 -python3_5 (-python3_7)"
[nomerge       ]  net-misc/rsync-3.1.3::gentoo  USE="acl iconv ipv6 -examples -static -stunnel -xattr"
[ebuild  N     ]   dev-libs/popt-1.16-r2::gentoo  USE="nls -static-libs" 687 KiB
[ebuild  N     ]  net-misc/rsync-3.1.3::gentoo  USE="acl iconv ipv6 -examples -static -stunnel -xattr" 885 KiB
[ebuild  N     ]  app-arch/tar-1.30::gentoo  USE="acl nls -minimal (-selinux) -static -xattr" 0 KiB
[nomerge       ] sys-apps/portage-2.3.52-r1::gentoo  USE="(ipc) native-extensions rsync-verify -build -doc -epydoc -gentoo-dev (-selinux) -xattr" PYTHON_TARGETS="python2_7 python3_6 -pypy -python3_4 -python3_5 (-python3_7)"
[nomerge       ]  app-admin/eselect-1.4.13::gentoo  USE="-doc -emacs -vim-syntax"
[nomerge       ]   sys-apps/coreutils-8.30::gentoo  USE="acl nls split-usr -caps -gmp -hostname -kill -multicall (-selinux) -static {-test} -vanilla -xattr"
[nomerge       ]    sys-apps/acl-2.2.53::gentoo  USE="nls -static-libs"
[ebuild  N     ]     sys-apps/attr-2.4.48-r3::gentoo  USE="nls -debug -static-libs" 457 KiB
[ebuild  N     ]    sys-apps/acl-2.2.53::gentoo  USE="nls -static-libs" 513 KiB
[nomerge       ] app-crypt/pinentry-1.1.0-r3::gentoo  USE="ncurses -caps -emacs -fltk -gnome-keyring -gtk -qt5 -static"
[ebuild  N     ]  app-eselect/eselect-pinentry-0.7::gentoo  0 KiB
[ebuild  N     ]   app-eselect/eselect-lib-bin-symlink-0.1.1::gentoo  45 KiB
[nomerge       ] app-portage/gemato-14.0::gentoo  USE="blake2 bzip2 gpg -lzma -sha3 {-test} -tools" PYTHON_TARGETS="python2_7 python3_6 -pypy -python3_4 -python3_5 (-python3_7)"
[nomerge       ]  dev-python/setuptools-40.6.2::gentoo  USE="{-test}" PYTHON_TARGETS="python2_7 python3_6 -pypy -pypy3 -python3_4 -python3_5 (-python3_7)"
[nomerge       ]   dev-lang/python-2.7.15:2.7::gentoo  USE="gdbm ipv6 ncurses readline ssl (threads) (wide-unicode) xml (-berkdb) -bluetooth -build -doc -examples -hardened -libressl -sqlite -tk -wininst"
[ebuild  N     ]    app-eselect/eselect-python-20171204::gentoo  46 KiB
[ebuild  N     ]     app-admin/eselect-1.4.13::gentoo  USE="-doc -emacs -vim-syntax" 0 KiB
[ebuild  N     ]      sys-apps/coreutils-8.30::gentoo  USE="acl nls split-usr -caps -gmp -hostname -kill -multicall (-selinux) -static {-test} -vanilla -xattr" 0 KiB
[ebuild  N     ] sys-libs/libseccomp-2.3.3::gentoo  USE="-static-libs" 552 KiB
[nomerge       ] dev-libs/glib-2.56.2:2::gentoo  USE="mime -dbus -debug (-fam) (-selinux) -static-libs -systemtap {-test} -utils -xattr"
[nomerge       ]  sys-apps/util-linux-2.33::gentoo  USE="cramfs ncurses nls readline suid unicode -build -caps -fdformat -kill (-pam) -python (-selinux) -slang -static-libs -systemd {-test} -tty-helpers (-udev)" PYTHON_TARGETS="python2_7 python3_6 -python3_4 -python3_5 (-python3_7)"
[ebuild  N     ]   virtual/os-headers-0-r1::gentoo  0 KiB
[ebuild  N     ]    sys-kernel/linux-headers-4.19::gentoo  USE="-headers-only" 0 KiB
[ebuild  N     ]  sys-apps/util-linux-2.33::gentoo  USE="cramfs ncurses nls readline suid unicode -build -caps -fdformat -kill (-pam) -python (-selinux) -slang -static-libs -systemd {-test} -tty-helpers (-udev)" PYTHON_TARGETS="python2_7 python3_6 -python3_4 -python3_5 (-python3_7)" 4554 KiB
[nomerge       ] app-arch/tar-1.30::gentoo  USE="acl nls -minimal (-selinux) -static -xattr"
[ebuild  N     ]  virtual/acl-0-r2::gentoo  USE="-static-libs" 0 KiB

Total: 86 packages (86 new), Size of downloads: 216884 KiB

 * Error: circular dependencies:

(sys-devel/automake-1.16.1-r1:1.16/1.16::gentoo, ebuild scheduled for merge) depends on
 (dev-lang/perl-5.26.2:0/5.26::gentoo, ebuild scheduled for merge) (buildtime)
  (sys-libs/db-6.0.35-r1:6.0/6.0::gentoo, ebuild scheduled for merge) (buildtime_slot_op)
   (sys-devel/automake-1.16.1-r1:1.16/1.16::gentoo, ebuild scheduled for merge) (buildtime)

It might be possible to break this cycle
by applying the following change:
- dev-lang/perl-5.26.2 (Change USE: -berkdb)

Note that this change can be reverted, once the package has been installed.

Note that the dependency graph contains a lot of cycles.
Several changes might be required to resolve all cycles.
Temporarily changing some use flag for all packages might be the better option.

Hmmmm, I was already afraid of this to happen.  Running
  /tmp/gentoo/bin/bash ./bootstrap-prefix.sh "/tmp/gentoo" stage3
somewhere failed :(  Details might be found in the build log:
  (no build logs found?!?)
I have no clue, really.  Please find friendly folks in #gentoo-prefix on
irc.gentoo.org, gentoo-alt@lists.gentoo.org mailing list, or file a bug
at bugs.gentoo.org under Gentoo/Alt, Prefix Support.  This is most
inconvenient, and it crushed my ego.  Sorry, I give up.
Should you want to give it a try, there is /tmp/gentoo/stage3.log
The command '/bin/sh -c date > start_bootstrap_date.txt && echo "Y\n\n/tmp/gentoo\nluck\n" | ./bootstrap-prefix.sh && date > end_bootstrap_date.txt' returned a non-zero code: 1



So now I'll add before my bootstrap (reminder: I bootstrap on /tmp/gentoo):

Code:

mkdir -p /tmp/gentoo/etc/portage/
echo "dev-lang/perl-5.26.2 -berkdb" >> /tmp/gentoo/etc/portage/package.use
Back to top
View user's profile Send private message
awesomebytes
n00b
n00b


Joined: 22 Nov 2018
Posts: 16

PostPosted: Fri Nov 23, 2018 3:11 pm    Post subject: Reply with quote

I actually removed the mask for gcc... and gcc decided to fail compiling again with a different error. So I went back to add the mask rule to get gcc-7.3.0-r3
Back to top
View user's profile Send private message
awesomebytes
n00b
n00b


Joined: 22 Nov 2018
Posts: 16

PostPosted: Sat Nov 24, 2018 12:45 am    Post subject: Reply with quote

Ooops... apparently the circular dependency problem happened before getting to the point gcc gets compiled. I misjudged it. Sorry for the noise.

So I actually never got past the ld: Invalid argument error.

I'll keep digging...
Back to top
View user's profile Send private message
awesomebytes
n00b
n00b


Joined: 22 Nov 2018
Posts: 16

PostPosted: Sat Nov 24, 2018 2:23 am    Post subject: Reply with quote

It all comes down to this command failing:

Code:

rosuser@e65371f43218:/tmp/gentoo/var/tmp/portage/sys-devel/gcc-7.3.0-r3/work/build/i686-pc-linux-gnu/libgcc$ /tmp/gentoo/var/tmp/portage/sys-devel/gcc-7.3.0-r3/work/build/./gcc/xgcc -B/tmp/gentoo/var/tmp/portage/sys-devel/gcc-7.3.0-r3/work/build/./gcc/ -B/tmp/gentoo/usr/i686-pc-linux-gnu/bin/ -B/tmp/gentoo/usr/i686-pc-linux-gnu/lib/ -isystem /tmp/gentoo/usr/i686-pc-linux-gnu/include -isystem /tmp/gentoo/usr/i686-pc-linux-gnu/sys-include    -O2  -g -O2 -march=i686 -pipe -O2 -pipe -DIN_GCC    -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include   -fpic -mlong-double-80 -DUSE_ELF_SYMVER -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -fstack-check=no  -shared -nodefaultlibs -Wl,--soname=libgcc_s.so.1 -Wl,--version-script=libgcc.map -o ./libgcc_s.so.1.tmp -g -O2 -march=i686 -pipe -O2 -pipe -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 _mulhc3_s.o _mulsc3_s.o _muldc3_s.o _mulxc3_s.o _multc3_s.o _divhc3_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 _divmoddi4_s.o _udivdi3_s.o _umoddi3_s.o _udivmoddi4_s.o _udiv_w_sdiv_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
/tmp/gentoo/var/tmp/portage/sys-devel/gcc-7.3.0-r3/work/build/./gcc/collect-ld: 106: exec: /tmp/gentoo/usr/i686-pc-linux-gnu/bin/ld: Invalid argument
collect2: error: ld returned 2 exit status


I don't really know what's going into ld from that big command... I keep digging.
Back to top
View user's profile Send private message
awesomebytes
n00b
n00b


Joined: 22 Nov 2018
Posts: 16

PostPosted: Sat Nov 24, 2018 2:35 am    Post subject: Reply with quote

Digging further by printing what the collect-ld script does, specifically the arguments that are passed to ld:

Code:

--eh-frame-hdr -m elf_i386 -shared -o ./libgcc_s.so.1.tmp /tmp/gentoo/usr/lib/../lib/crti.o /tmp/gentoo/var/tmp/portage/sys-devel/gcc-7.3.0-r3/work/build/./gcc/crtbeginS.o -L/tmp/gentoo/var/tmp/portage/sys-devel/gcc-7.3.0-r3/work/build/./gcc -L/tmp/gentoo/usr/i686-pc-linux-gnu/bin -L/tmp/gentoo/usr/i686-pc-linux-gnu/lib -L. -L/tmp/gentoo/lib/../lib -L/tmp/gentoo/usr/lib/../lib -L/tmp/gentoo/lib -L/tmp/gentoo/usr/lib --soname=libgcc_s.so.1 --version-script=libgcc.map _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 _mulhc3_s.o _mulsc3_s.o _muldc3_s.o _mulxc3_s.o _multc3_s.o _divhc3_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 _divmoddi4_s.o _udivdi3_s.o _umoddi3_s.o _udivmoddi4_s.o _udiv_w_sdiv_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 /tmp/gentoo/var/tmp/portage/sys-devel/gcc-7.3.0-r3/work/build/./gcc/crtendS.o /tmp/gentoo/usr/lib/../lib/crtn.o


Now I need to find which argument from that list ld doesnt like.
Back to top
View user's profile Send private message
awesomebytes
n00b
n00b


Joined: 22 Nov 2018
Posts: 16

PostPosted: Sat Nov 24, 2018 2:54 am    Post subject: Reply with quote

Apparently the Invalid argument error comes from bash!

The only reference I found is this post:

https://unix.stackexchange.com/questions/36376/what-does-invalid-argument-mean-in-solaris

In that post, they are running an x86 binary on a SPARC machine. In my case I'm running x86 binaries... on a x86 Docker image, on a x86_64 host (which the docker image should not really know anything about that as all the binaries and libraries are 32bits).

Hmmm weird... still digging.
Back to top
View user's profile Send private message
awesomebytes
n00b
n00b


Joined: 22 Nov 2018
Posts: 16

PostPosted: Sat Nov 24, 2018 2:58 am    Post subject: Reply with quote

I continue my monologue, this is the debug output im getting for now.

Code:

command is
/tmp/gentoo/usr/i686-pc-linux-gnu/bin/ld
ARGUMENTS ARE:
--eh-frame-hdr -m elf_i386 -shared -o ./libgcc_s.so.1.tmp /tmp/gentoo/usr/lib/../lib/crti.o /tmp/gentoo/var/tmp/portage/sys-devel/gcc-7.3.0-r3/work/build/./gcc/crtbeginS.o -L/tmp/gentoo/var/tmp/portage/sys-devel/gcc-7.3.0-r3/work/build/./gcc -L/tmp/gentoo/usr/i686-pc-linux-gnu/bin -L/tmp/gentoo/usr/i686-pc-linux-gnu/lib -L. -L/tmp/gentoo/lib/../lib -L/tmp/gentoo/usr/lib/../lib -L/tmp/gentoo/lib -L/tmp/gentoo/usr/lib --soname=libgcc_s.so.1 --version-script=libgcc.map _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 _mulhc3_s.o _mulsc3_s.o _muldc3_s.o _mulxc3_s.o _multc3_s.o _divhc3_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 _divmoddi4_s.o _udivdi3_s.o _umoddi3_s.o _udivmoddi4_s.o _udiv_w_sdiv_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 /tmp/gentoo/var/tmp/portage/sys-devel/gcc-7.3.0-r3/work/build/./gcc/crtendS.o /tmp/gentoo/usr/lib/../lib/crtn.o
doing file on command
/tmp/gentoo/usr/i686-pc-linux-gnu/bin/ld: symbolic link to /tmp/gentoo/usr/i686-pc-linux-gnu/binutils-bin/2.31.1/ld
/tmp/gentoo/var/tmp/portage/sys-devel/gcc-7.3.0-r3/work/build/./gcc/collect-ld: 118: exec: /tmp/gentoo/usr/i686-pc-linux-gnu/bin/ld: Invalid argument
collect2: error: ld returned 2 exit status
rosuser@e65371f43218:/tmp/gentoo/var/tmp/portage/sys-devel/gcc-7.3.0-r3/work/build/i686-pc-linux-gnu/libgcc$ file /tmp/gentoo/usr/i686-pc-linux-gnu/binutils-bin/2.31.1/ld
/tmp/gentoo/usr/i686-pc-linux-gnu/binutils-bin/2.31.1/ld: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /tmp/gentoo/lib/ld-linux.so.2, for GNU/Linux 2.6.32, not stripped
rosuser@e65371f43218:/tmp/gentoo/var/tmp/portage/sys-devel/gcc-7.3.0-r3/work/build/i686-pc-linux-gnu/libgcc$ exec /tmp/gentoo/usr/i686-pc-linux-gnu/binutils-bin/2.31.1/ld
bash: /tmp/gentoo/usr/i686-pc-linux-gnu/binutils-bin/2.31.1/ld: Invalid argument
bash: /tmp/gentoo/usr/i686-pc-linux-gnu/binutils-bin/2.31.1/ld: Success


What I see is that the script collect-ld does exec on a softlink to
/tmp/gentoo/usr/i686-pc-linux-gnu/binutils-bin/2.31.1/ld

Which happens to be a shared object, not an executable. That doesn't make much sense to me.
Back to top
View user's profile Send private message
awesomebytes
n00b
n00b


Joined: 22 Nov 2018
Posts: 16

PostPosted: Sat Nov 24, 2018 3:12 am    Post subject: Reply with quote

I did

Code:

unlink /tmp/gentoo/usr/i686-pc-linux-gnu/bin/ld
ln -s /tmp/gentoo/tmp/usr/i686-pc-linux-gnu/binutils-bin/2.31.1/ld /tmp/gentoo/usr/i686-pc-linux-gnu/bin/ld



And that compilation step went thru. I wonder what is messing up all this? I very much doubt I need to hack that linkage myself... there must be some configuration issue.
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 21791
Location: here

PostPosted: Sat Nov 24, 2018 9:16 am    Post subject: Reply with quote

Probably you should open a new bug report
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Jengu
Guru
Guru


Joined: 28 Oct 2004
Posts: 384

PostPosted: Wed Dec 05, 2018 6:42 am    Post subject: Reply with quote

FWIW I'm getting the same circular dependency problem trying to install inside an Ubuntu running inside the Windows 10 Linux subsystem. Adding the line to package.use doesn't help (although you had a slight syntax problem, you omitted the = sign before the package name).
Back to top
View user's profile Send private message
awesomebytes
n00b
n00b


Joined: 22 Nov 2018
Posts: 16

PostPosted: Wed Dec 05, 2018 6:55 am    Post subject: Reply with quote

Forgot about this thread.

I've managed to bootstrap Gentoo Prefix and I've setup continuous integration for it.

The majority of the report is here: https://bugs.gentoo.org/645804
Which also contains a link to a notepad where the steps to succesfully bootstrap Gentoo Prefix are written in order: https://pad.crans.org/p/gentoo-prefix

I started a thread in the Gentoo-Alt mailing list about the continuous integration here: https://archives.gentoo.org/gentoo-alt/message/272fb0738ea63808e21884e78a098f9e
(Anyone knows how to visualize the thread in a more email-thread-like friendly format?).

But mainly, if you want an already bootstrapped Gentoo Prefix, go to the releases section of the repos:

For amd64: https://github.com/awesomebytes/gentoo_prefix_ci
For x86: https://github.com/awesomebytes/gentoo_prefix_ci_32b
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum