On Wed, Jun 23, 2021 at 10:45 AM Kazuyoshi Furutaka <
[email protected]> wrote:

> Hi.
>
> I think I got it!
>
> On Fedora-34 (x86_64), if the glibc-devel.i686 package (which contains
> /lib/crti.o and so on), the following error occurs:
>
> /home/furutaka/work/sage/sage-9.4.beta3-git-orig-bld/local/var/tmp/sage/build/gcc-10.3.0/gcc-build/./gcc/xgcc
> -B/home/furutaka/work/sage/sage-9.4.beta3-git-orig-bld/local/var/tmp/sage/build/gcc-10.3.0/gcc-build/./gcc/
> -B/home/furutaka/work/sage/sage-9.4.beta3-git-orig-bld/local/x86_64-pc-linux-gnu/bin/
> -B/home/furutaka/work/sage/sage-9.4.beta3-git-orig-bld/local/x86_64-pc-linux-gnu/lib/
> -isystem
> /home/furutaka/work/sage/sage-9.4.beta3-git-orig-bld/local/x86_64-pc-linux-gnu/include
> -isystem
> /home/furutaka/work/sage/sage-9.4.beta3-git-orig-bld/local/x86_64-pc-linux-gnu/sys-include
> -fno-checking -O2  -O2 -g -march=native -DIN_GCC    -W -Wall -Wno-narrowing
> -Wwrite-strings -Wcast-qual -Wno-error=format-diag -Wno-format
> -Wstrict-prototypes -Wmissing-prototypes -Wno-error=format-diag
> -Wold-style-definition  -isystem ./include  -fpic -mlong-double-80
> -DUSE_ELF_SYMVER  -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector
> -shared -nodefaultlibs -Wl,--soname=libgcc_s.so.1
> -Wl,--version-script=libgcc.map -o ./libgcc_s.so.1.tmp -O2 -g -march=native
> -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
> _mulhc3_s.o _mulsc3_s.o _muldc3_s.o _mulxc3_s.o _divhc3_s.o _divsc3_s.o
> _divdc3_s.o _divxc3_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
> sfp-exceptions_s.o addtf3_s.o divtf3_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 fixtfti_s.o
> fixunstfti_s.o floattitf_s.o floatuntitf_s.o extendsftf2_s.o
> extenddftf2_s.o extendxftf2_s.o trunctfsf2_s.o trunctfdf2_s.o
> trunctfxf2_s.o getf2_s.o letf2_s.o eqtf2_s.o _divtc3_s.o _multc3_s.o
> _powitf2_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
> /usr/bin/ld: skipping incompatible
> /usr/lib/gcc/x86_64-redhat-linux/11/../../../../lib64/../lib/libc.so when
> searching for -lc
> /usr/bin/ld: skipping incompatible /lib/../lib/libc.so when searching for
> -lc
> /usr/bin/ld: skipping incompatible /usr/lib/../lib/libc.so when searching
> for -lc
> /usr/bin/ld: i386 architecture of input file
> `/usr/lib/gcc/x86_64-redhat-linux/11/../../../../lib64/../lib/crti.o' is
> incompatible with i386:x86-64 output
> /usr/bin/ld: i386 architecture of input file
> `/usr/lib/gcc/x86_64-redhat-linux/11/../../../../lib64/../lib/crtn.o' is
> incompatible with i386:x86-64 output
> collect2: error: ld returned 1 exit status
> make[7]: *** [Makefile:994: libgcc_s.so] Error 1
> make[6]: *** [Makefile:18295: all-stage1-target-libgcc] Error 2
> make[5]: *** [Makefile:22899: stage1-bubble] Error 2
> make[4]: *** [Makefile:998: all] Error 2
>
> ********************************************************************************
> Error building gcc-10.3.0
>
> ********************************************************************************
>
> After removing the package, the build of gcc finished without errors and
> the Sage-build continues...
>
> Then stopped at Maxima...
> > cp: cannot stat 'src/binary-ecl/maxima.fas': No such file or directory
> (the log attached)
>

the real error is in the log:

;;; Compiling
/home/furutaka/work/sage/sage-9.4.beta3-git-without-glibc-devel.i686-bld/local/var/tmp/sage/build/maxima-5.45.0/src/src/maxima-package.lisp.

;;; OPTIMIZE levels: Safety=2, Space=0, Speed=3, Debug=2

;;;

;;; End of Pass 1.

;;; Internal error:

;;;   ** Error code 1 when executing

;;; (EXT:RUN-PROGRAM "gcc" ("-I." "-I/usr/include/" "-D_GNU_SOURCE"
"-D_FILE_OFFSET_BITS=64" "-O2" "-flto=auto" "-ffat-lto-objects"
"-fexceptions" "-g" "-grecord-gcc-switches" "-pipe" "-Wall"
"-Werror=format-security" "-Wp,-D_FORTIFY_SOURCE=2"
"-Wp,-D_GLIBCXX_ASSERTIONS"
"-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1" "-fstack-protector-strong"
"-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1" "-m64" "-mtune=generic"
"-fasynchronous-unwind-tables" "-fstack-clash-protection" "-fcf-protection"
"-Wno-unused" "-Wno-return-type" "-Wno-unknown-pragmas" "-fPIC"
"-D_THREAD_SAFE" "-Dlinux" "-O2" "-c" "binary-ecl/maxima-package.c" "-o"
"binary-ecl/maxima-package.o")):

;;; cc1: fatal error: inaccessible plugin file
/home/furutaka/work/sage/sage-9.4.beta3-git-without-glibc-devel.i686-bld/local/lib/gcc/x86_64-pc-linux-gnu/10.3.0/plugin/annobin.so
expanded from short plugin name annobin: No such file or directory

;;; compilation terminated.

So it looks as if ecl is not working, because of some issue with gcc you
built - annobin plugin missing.




>
> Almost!
>
> Kazuyoshi
>
>
> 2021年6月23日水曜日 8:44:28 UTC+9 Kazuyoshi Furutaka:
>
>> 😳
>>
>> 2021年6月23日(水) 7:57 Volker Braun <[email protected]>:
>>
>>> I'm running Fedora 34 and 9.4.beta3 builds fine (x86_64). It did compile
>>> the included gcc.
>>>
>>>
>>>
>>>
>>> On Tuesday, June 22, 2021 at 11:50:00 PM UTC+2 [email protected] wrote:
>>>
>>>>
>>>>
>>>> On Tue, 22 Jun 2021, 22:16 Kazuyoshi Furutaka, <[email protected]>
>>>> wrote:
>>>>
>>>>> On the other hand, build of gcc-10.3 failed.   Then, what to do?
>>>>>
>>>>
>>>> use another compiler.
>>>> e.g. you can use clang
>>>>
>>>> dnf install clang
>>>>
>>>> then run Sages configure as follows
>>>>
>>>> CC=clang CXX=clang++ ./configure
>>>>
>>>> and then
>>>>
>>>> make
>>>>
>>>>
>>>> This configuration is not tested much on Linux, but on macOS this is
>>>> the compiler used in our builds.
>>>>
>>>>
>>>>
>>>>> Kazuyoshi
>>>>>
>>>>> 2021年6月23日(水) 5:40 Dima Pasechnik <[email protected]>:
>>>>>
>>>>>> Sage is not yet ready to be built with gcc 11, see
>>>>>> https://trac.sagemath.org/ticket/31786
>>>>>>
>>>>>> On Tue, Jun 22, 2021 at 8:36 PM Kazuyoshi Furutaka
>>>>>> <[email protected]> wrote:
>>>>>> >
>>>>>> >
>>>>>> >
>>>>>> > 2021年6月23日(水) 0:06 Dima Pasechnik <[email protected]>:
>>>>>> >>
>>>>>> >> On Tue, Jun 22, 2021 at 3:45 PM Kazuyoshi Furutaka
>>>>>> >> <[email protected]> wrote:
>>>>>> >> [...]
>>>>>> >> > First of all, I'd like to let you know that on Fedora-34
>>>>>> (x86_64), the simple build (configured with --prefix only) of prestine
>>>>>> gcc-10.3.0 fails without the static version of libstdc++ library (please
>>>>>> read this thread for details).
>>>>>> >> >
>>>>>> >> > On Fedora-33 systems, it can build without libstdc++.a; I've
>>>>>> tried to investigate the reason but couldn't figure out yet.
>>>>>> >> >
>>>>>> >> > Then, even on a Fedora-34 (x86_64) system WITH libstdc++.a, the
>>>>>> build of Sage 9.4.beta3 fails; the build of gcc-10.3.0 failed due to
>>>>>> "gcc-multilib-multiarch.patch": without it, the build of gcc succeeds.
>>>>>> I'll attach the log of the failed gcc build.
>>>>>> >> > On Fedora,
>>>>>> >> >   MULTILIB_OSDIRNAMES =  m64=../lib64 m32=../lib mx32=../libx32
>>>>>> >> > instead of
>>>>>> >> >   MULTILIB_OSDIRNAMES =  m64=../lib m32=../lib32 mx32=../libx32
>>>>>> >> >
>>>>>> >> > Sorry for just a report; I could not yet figure out how to
>>>>>> resolve this issue (modify the patch).
>>>>>> >>
>>>>>> >> it is not clear what you are trying to do.
>>>>>> >>
>>>>>> >> The reasons gcc is included as a package in Sage are mostly
>>>>>> >> historical; I don't think there are many current use cases for it,
>>>>>> >> and I think it actually should be removed.
>>>>>> >> Fortunately there are enough options nowadays to source
>>>>>> C/C++/Fortran
>>>>>> >> compilers elsewhere.
>>>>>> >> (at most, Sage might need to add some C,C++,Fortran flags)
>>>>>> >>
>>>>>> >> HTH,
>>>>>> >> Dima
>>>>>> >
>>>>>> >
>>>>>> > I once post a reply but it seems to disappear...
>>>>>> >
>>>>>> > I just want to build Sage from source.
>>>>>> > The sage-build try to build GCC and a huge number of its dependent
>>>>>> packages though they're already on my system as rpm packages because GCC 
>>>>>> on
>>>>>> Fedora is TOO NEW.
>>>>>> > So I'm very happy if someone modify the build system to avoid the
>>>>>> time-consuming build of GCC and its dependent!
>>>>>> >
>>>>>> > Yours,
>>>>>> > Kazuyoshi
>>>>>> > --
>>>>>> > Kazuyoshi Furutaka
>>>>>> >
>>>>>> > --
>>>>>> > You received this message because you are subscribed to the Google
>>>>>> Groups "sage-devel" group.
>>>>>> > To unsubscribe from this group and stop receiving emails from it,
>>>>>> send an email to [email protected].
>>>>>> > To view this discussion on the web visit
>>>>>> https://groups.google.com/d/msgid/sage-devel/CANjERvf_M%3DDf25S3HKvkPhzXMxNEXGRcAbtUSU6g0J2UG6Q3CQ%40mail.gmail.com
>>>>>> .
>>>>>>
>>>>>> --
>>>>>> You received this message because you are subscribed to the Google
>>>>>> Groups "sage-devel" group.
>>>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>>> send an email to [email protected].
>>>>>> To view this discussion on the web visit
>>>>>> https://groups.google.com/d/msgid/sage-devel/CAAWYfq2g68RNyD6L6jw2d_XNtOrdrqc8K3TvoMcU_H9iVXRPLQ%40mail.gmail.com
>>>>>> .
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Kazuyoshi Furutaka
>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "sage-devel" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> an email to [email protected].
>>>>>
>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/sage-devel/CANjERveKpCrg%2BhJ-Expdkx5is-Jy7ehhhmmw3buWzcBpPL9o7w%40mail.gmail.com
>>>>> <https://groups.google.com/d/msgid/sage-devel/CANjERveKpCrg%2BhJ-Expdkx5is-Jy7ehhhmmw3buWzcBpPL9o7w%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>>
>>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "sage-devel" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>>
>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/sage-devel/a2dc0758-8dd3-4b59-aa28-27d9d2f5e461n%40googlegroups.com
>>> <https://groups.google.com/d/msgid/sage-devel/a2dc0758-8dd3-4b59-aa28-27d9d2f5e461n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-devel/2220ef79-465a-48de-bd9c-f5686467b6b9n%40googlegroups.com
> <https://groups.google.com/d/msgid/sage-devel/2220ef79-465a-48de-bd9c-f5686467b6b9n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/CAAWYfq2oOXckv%2BOUJxNXRBbPiP_1ePABuw%3DA0aSrMVTqGXscAA%40mail.gmail.com.

Reply via email to