source builder fails on master

Richi Dubey richidubey at gmail.com
Wed Jun 30 10:18:37 UTC 2021


Thank you! I checked the config.log after using the --no-clean option and
realized that my GCC wasn't working. Seems like there were some issues with
linking: using binutils vs gold. Following this answer helped:
https://stackoverflow.com/a/53969757 resolve that issue.

On Tue, Jun 29, 2021 at 9:46 PM Gedare Bloom <gedare at rtems.org> wrote:

> Run with --no-clean option and see if you can find the config.log for
> the expat package. Otherwise, you might try to build that expat
> package by hand to see what is failing.
>
> On Tue, Jun 29, 2021 at 1:43 AM Richi Dubey <richidubey at gmail.com> wrote:
> >
> > These are the last few lines of the report:
> >
> > bindir=/home/richi/quick-start/LatestMaster/rtems/6/bin
> --exec-prefix=/home/richi/quick-start/LatestMaster/rtems/6
> --includedir=/home/richi/quick-start/LatestMaster/rtems/6/include
> --libdir=/home/richi/quick-start/LatestMaster/rtems/6/lib
> --mandir=/home/richi/quick-start/LatestMaster/rtems/6/share/man
> --infodir=/home/richi/quick-start/LatestMaster/rtems/6/share/info
> --disable-shared
> > checking build system type... x86_64-pc-linux-gnu
> > checking host system type... x86_64-pc-linux-gnu
> > checking how to print strings... printf
> > checking for x86_64-linux-gnu-gcc... gcc -O2 -g -pipe
> -I/home/richi/quick-start/LatestMaster/src/rsb/rtems/build/tmp/sb-1000/6/rtems-arm/home/richi/quick-start/LatestMaster/rtems/6/include
> > checking whether the C compiler works... no
> > configure: error: in
> `/home/richi/quick-start/LatestMaster/src/rsb/rtems/build/expat-2.1.0-x86_64-linux-gnu-1/expat-2.1.0':
> > configure: error: C compiler cannot create executables
> > See `config.log' for more details
> > shell cmd failed: /bin/sh -ex
> /home/richi/quick-start/LatestMaster/src/rsb/rtems/build/expat-2.1.0-x86_64-linux-gnu-1/do-build
> > error: building expat-2.1.0-x86_64-linux-gnu-1
> >
> > On Tue, Jun 29, 2021 at 1:11 PM Richi Dubey <richidubey at gmail.com>
> wrote:
> >>
> >> Hi,
> >>
> >> I ran the following commands
> >>
> >> mkdir -p $HOME/quick-start/LatestMaster/src
> >> cd $HOME/quick-start/LatestMaster/src
> >> git clone https://github.com/RTEMS/rtems-source-builder.git rsb
> >> git clone https://github.com/RTEMS/rtems.git
> >> cd $HOME/quick-start/LatestMaster/src/rsb/rtems
> >> ../source-builder/sb-set-builder
> --prefix=$HOME/quick-start/LatestMaster/rtems/6 6/rtems-arm
> >>
> >> but it fails.:
> >> .
> >> .
> >> .
> >> package: expat-2.1.0-x86_64-linux-gnu-1
> >> building: expat-2.1.0-x86_64-linux-gnu-1
> >> error: building expat-2.1.0-x86_64-linux-gnu-1
> >> Build FAILED
> >>   See error report: rsb-report-expat-2.1.0-x86_64-linux-gnu-1.txt
> >> error: building expat-2.1.0-x86_64-linux-gnu-1
> >> Build Set: Time 0:00:15.413288
> >> Build FAILED
> >>
> >> I have attached the report. I think it has something to do with my GCC?
> I update it to 11 as well, but I still get the error.
> >>
> >> Gcc details:
> >> ------------------------------------------------------
> >> sudo update-alternatives --config gcc
> >> There are 5 choices for the alternative gcc (providing /usr/bin/gcc).
> >>
> >>   Selection    Path             Priority   Status
> >> ------------------------------------------------------------
> >> * 0            /usr/bin/gcc-11   110       auto mode
> >>   1            /usr/bin/gcc-10   100       manual mode
> >>   2            /usr/bin/gcc-11   110       manual mode
> >>   3            /usr/bin/gcc-7    70        manual mode
> >>   4            /usr/bin/gcc-8    80        manual mode
> >>   5            /usr/bin/gcc-9    70        manual mode
> >>
> >> Press <enter> to keep the current choice[*], or type selection number:
> >> richi at YouAreAmazing:~$ gcc -v
> >> Using built-in specs.
> >> COLLECT_GCC=gcc
> >> COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/11/lto-wrapper
> >> OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa
> >> OFFLOAD_TARGET_DEFAULT=1
> >> Target: x86_64-linux-gnu
> >> Configured with: ../src/configure -v --with-pkgversion='Ubuntu
> 11.1.0-1ubuntu1~18.04.1'
> --with-bugurl=file:///usr/share/doc/gcc-11/README.Bugs
> --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,m2
> --prefix=/usr --with-gcc-major-version-only --program-suffix=-11
> --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id
> --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
> --libdir=/usr/lib --enable-nls --enable-clocale=gnu
> --enable-libstdcxx-debug --enable-libstdcxx-time=yes
> --with-default-libstdcxx-abi=new --enable-gnu-unique-object
> --disable-vtable-verify --enable-plugin --enable-default-pie
> --with-system-zlib --enable-libphobos-checking=release
> --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch
> --disable-werror --disable-cet --with-arch-32=i686 --with-abi=m64
> --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic
> --enable-offload-targets=nvptx-none=/build/gcc-11-YRKbe7/gcc-11-11.1.0/debian/tmp-nvptx/usr,amdgcn-amdhsa=/build/gcc-11-YRKbe7/gcc-11-11.1.0/debian/tmp-gcn/usr
> --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu
> --host=x86_64-linux-gnu --target=x86_64-linux-gnu
> >> Thread model: posix
> >> Supported LTO compression algorithms: zlib zstd
> >> gcc version 11.1.0 (Ubuntu 11.1.0-1ubuntu1~18.04.1)
> >>
> >> ------------------------------------------------------
> >>
> >>
> >> Can someone please help me out with this?
> >>
> >> Thanks.
> >
> > _______________________________________________
> > devel mailing list
> > devel at rtems.org
> > http://lists.rtems.org/mailman/listinfo/devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20210630/1ed8fa96/attachment.html>


More information about the devel mailing list