<div dir="ltr"><div>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: <a href="https://stackoverflow.com/a/53969757">https://stackoverflow.com/a/53969757</a> resolve that issue.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jun 29, 2021 at 9:46 PM Gedare Bloom <<a href="mailto:gedare@rtems.org">gedare@rtems.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Run with --no-clean option and see if you can find the config.log for<br>
the expat package. Otherwise, you might try to build that expat<br>
package by hand to see what is failing.<br>
<br>
On Tue, Jun 29, 2021 at 1:43 AM Richi Dubey <<a href="mailto:richidubey@gmail.com" target="_blank">richidubey@gmail.com</a>> wrote:<br>
><br>
> These are the last few lines of the report:<br>
><br>
> 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<br>
> checking build system type... x86_64-pc-linux-gnu<br>
> checking host system type... x86_64-pc-linux-gnu<br>
> checking how to print strings... printf<br>
> 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<br>
> checking whether the C compiler works... no<br>
> 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':<br>
> configure: error: C compiler cannot create executables<br>
> See `config.log' for more details<br>
> 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<br>
> error: building expat-2.1.0-x86_64-linux-gnu-1<br>
><br>
> On Tue, Jun 29, 2021 at 1:11 PM Richi Dubey <<a href="mailto:richidubey@gmail.com" target="_blank">richidubey@gmail.com</a>> wrote:<br>
>><br>
>> Hi,<br>
>><br>
>> I ran the following commands<br>
>><br>
>> mkdir -p $HOME/quick-start/LatestMaster/src<br>
>> cd $HOME/quick-start/LatestMaster/src<br>
>> git clone <a href="https://github.com/RTEMS/rtems-source-builder.git" rel="noreferrer" target="_blank">https://github.com/RTEMS/rtems-source-builder.git</a> rsb<br>
>> git clone <a href="https://github.com/RTEMS/rtems.git" rel="noreferrer" target="_blank">https://github.com/RTEMS/rtems.git</a><br>
>> cd $HOME/quick-start/LatestMaster/src/rsb/rtems<br>
>> ../source-builder/sb-set-builder --prefix=$HOME/quick-start/LatestMaster/rtems/6 6/rtems-arm<br>
>><br>
>> but it fails.:<br>
>> .<br>
>> .<br>
>> .<br>
>> package: expat-2.1.0-x86_64-linux-gnu-1<br>
>> building: expat-2.1.0-x86_64-linux-gnu-1<br>
>> error: building expat-2.1.0-x86_64-linux-gnu-1<br>
>> Build FAILED<br>
>> See error report: rsb-report-expat-2.1.0-x86_64-linux-gnu-1.txt<br>
>> error: building expat-2.1.0-x86_64-linux-gnu-1<br>
>> Build Set: Time 0:00:15.413288<br>
>> Build FAILED<br>
>><br>
>> 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.<br>
>><br>
>> Gcc details:<br>
>> ------------------------------------------------------<br>
>> sudo update-alternatives --config gcc<br>
>> There are 5 choices for the alternative gcc (providing /usr/bin/gcc).<br>
>><br>
>> Selection Path Priority Status<br>
>> ------------------------------------------------------------<br>
>> * 0 /usr/bin/gcc-11 110 auto mode<br>
>> 1 /usr/bin/gcc-10 100 manual mode<br>
>> 2 /usr/bin/gcc-11 110 manual mode<br>
>> 3 /usr/bin/gcc-7 70 manual mode<br>
>> 4 /usr/bin/gcc-8 80 manual mode<br>
>> 5 /usr/bin/gcc-9 70 manual mode<br>
>><br>
>> Press <enter> to keep the current choice[*], or type selection number:<br>
>> richi@YouAreAmazing:~$ gcc -v<br>
>> Using built-in specs.<br>
>> COLLECT_GCC=gcc<br>
>> COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/11/lto-wrapper<br>
>> OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa<br>
>> OFFLOAD_TARGET_DEFAULT=1<br>
>> Target: x86_64-linux-gnu<br>
>> 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<br>
>> Thread model: posix<br>
>> Supported LTO compression algorithms: zlib zstd<br>
>> gcc version 11.1.0 (Ubuntu 11.1.0-1ubuntu1~18.04.1)<br>
>><br>
>> ------------------------------------------------------<br>
>><br>
>><br>
>> Can someone please help me out with this?<br>
>><br>
>> Thanks.<br>
><br>
> _______________________________________________<br>
> devel mailing list<br>
> <a href="mailto:devel@rtems.org" target="_blank">devel@rtems.org</a><br>
> <a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a><br>
</blockquote></div>