Search

Technical Discussion Group Forum

This forum is provided for user discussion. While Beacon EmbeddedWorks support staff and engineers participate, Beacon EmbeddedWorks does not guarantee the accuracy of all information within in the Technical Discussion Group (TDG).

The "Articles" forums provide brief Articles written by Beacon EmbeddedWorks engineers that address the most frequently asked technical questions.

To receive email notifications when updates are posted for a Beacon EmbeddedWorks product download, please subscribe to the TDG Forum of interest.

TDG Forum

PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 03 Dec 2013 12:44 PM by  Seth Berardinelli
gcc4.2.1 not building
 10 Replies
Sort:
You are not authorized to post a reply.
Author Messages
Seth Berardinelli
New Member
New Member
Posts:13


--
06 Nov 2013 12:19 AM

    ./ltib -m prep -p gcc

    Completes Successfully (I think)

     

    -------------

    $./ltib -m scbuild -p gcc -c

    ... lots of other stuff... then,

    arm-none-linux-gnueabi-c++ -I/home/logic/Downloads/REL-ltib-DM3730-2.4-2/rpm/BUILD/gcc-4.2.1/build-gcc/arm-none-linux-gnueabi/libstdc++-v3/include/arm-none-linux-gnueabi -I/home/logic/Downloads/REL-ltib-DM3730-2.4-2/rpm/BUILD/gcc-4.2.1/build-gcc/arm-none-linux-gnueabi/libstdc++-v3/include -I/home/logic/Downloads/REL-ltib-DM3730-2.4-2/rpm/BUILD/gcc-4.2.1/libstdc++-v3/libsupc++ -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -g -O2 -D_GNU_SOURCE -c /home/logic/Downloads/REL-ltib-DM3730-2.4-2/rpm/BUILD/gcc-4.2.1/libstdc++-v3/src/codecvt.cc  -fPIC -DPIC -o .libs/codecvt.o
    In file included from /home/logic/Downloads/REL-ltib-DM3730-2.4-2/rpm/BUILD/gcc-4.2.1/build-gcc/arm-none-linux-gnueabi/libstdc++-v3/include/bits/stl_algobase.h:72,
                     from /home/logic/Downloads/REL-ltib-DM3730-2.4-2/rpm/BUILD/gcc-4.2.1/build-gcc/arm-none-linux-gnueabi/libstdc++-v3/include/bits/char_traits.h:46,
                     from /home/logic/Downloads/REL-ltib-DM3730-2.4-2/rpm/BUILD/gcc-4.2.1/build-gcc/arm-none-linux-gnueabi/libstdc++-v3/include/string:47,
                     from /home/logic/Downloads/REL-ltib-DM3730-2.4-2/rpm/BUILD/gcc-4.2.1/build-gcc/arm-none-linux-gnueabi/libstdc++-v3/include/bits/locale_classes.h:47,
                     from /home/logic/Downloads/REL-ltib-DM3730-2.4-2/rpm/BUILD/gcc-4.2.1/build-gcc/arm-none-linux-gnueabi/libstdc++-v3/include/locale:44,
                     from /home/logic/Downloads/REL-ltib-DM3730-2.4-2/rpm/BUILD/gcc-4.2.1/libstdc++-v3/src/codecvt.cc:30:
    /home/logic/Downloads/REL-ltib-DM3730-2.4-2/rpm/BUILD/gcc-4.2.1/build-gcc/arm-none-linux-gnueabi/libstdc++-v3/include/bits/cpp_type_traits.h:346: error: expected identifier before '__is_pod'
    /home/logic/Downloads/REL-ltib-DM3730-2.4-2/rpm/BUILD/gcc-4.2.1/build-gcc/arm-none-linux-gnueabi/libstdc++-v3/include/bits/cpp_type_traits.h:346: error: expected unqualified-id before '__is_pod'
    /home/logic/Downloads/REL-ltib-DM3730-2.4-2/rpm/BUILD/gcc-4.2.1/build-gcc/arm-none-linux-gnueabi/libstdc++-v3/include/bits/cpp_type_traits.h:359: error: expected identifier before '__is_empty'
    /home/logic/Downloads/REL-ltib-DM3730-2.4-2/rpm/BUILD/gcc-4.2.1/build-gcc/arm-none-linux-gnueabi/libstdc++-v3/include/bits/cpp_type_traits.h:359: error: expected unqualified-id before '__is_empty'
    In file included from /home/logic/Downloads/REL-ltib-DM3730-2.4-2/rpm/BUILD/gcc-4.2.1/build-gcc/arm-none-linux-gnueabi/libstdc++-v3/include/memory:54,
                     from /home/logic/Downloads/REL-ltib-DM3730-2.4-2/rpm/BUILD/gcc-4.2.1/build-gcc/arm-none-linux-gnueabi/libstdc++-v3/include/string:48,
                     from /home/logic/Downloads/REL-ltib-DM3730-2.4-2/rpm/BUILD/gcc-4.2.1/build-gcc/arm-none-linux-gnueabi/libstdc++-v3/include/bits/locale_classes.h:47,
                     from /home/logic/Downloads/REL-ltib-DM3730-2.4-2/rpm/BUILD/gcc-4.2.1/build-gcc/arm-none-linux-gnueabi/libstdc++-v3/include/locale:44,
                     from /home/logic/Downloads/REL-ltib-DM3730-2.4-2/rpm/BUILD/gcc-4.2.1/libstdc++-v3/src/codecvt.cc:30:
    /home/logic/Downloads/REL-ltib-DM3730-2.4-2/rpm/BUILD/gcc-4.2.1/build-gcc/arm-none-linux-gnueabi/libstdc++-v3/include/bits/allocator.h:135: error: expected unqualified-id before '__is_empty'
    /home/logic/Downloads/REL-ltib-DM3730-2.4-2/rpm/BUILD/gcc-4.2.1/build-gcc/arm-none-linux-gnueabi/libstdc++-v3/include/bits/allocator.h:135: error: expected '>' before '__is_empty'
    make[4]: *** [codecvt.lo] Error 1
    make[4]: Leaving directory `/home/logic/Downloads/REL-ltib-DM3730-2.4-2/rpm/BUILD/gcc-4.2.1/build-gcc/arm-none-linux-gnueabi/libstdc++-v3/src'
    make[3]: *** [all-recursive] Error 1
    make[3]: Leaving directory `/home/logic/Downloads/REL-ltib-DM3730-2.4-2/rpm/BUILD/gcc-4.2.1/build-gcc/arm-none-linux-gnueabi/libstdc++-v3'
    make[2]: *** [all] Error 2
    make[2]: Leaving directory `/home/logic/Downloads/REL-ltib-DM3730-2.4-2/rpm/BUILD/gcc-4.2.1/build-gcc/arm-none-linux-gnueabi/libstdc++-v3'
    make[1]: *** [all-target-libstdc++-v3] Error 2
    make[1]: Leaving directory `/home/logic/Downloads/REL-ltib-DM3730-2.4-2/rpm/BUILD/gcc-4.2.1/build-gcc'
    make: *** [all] Error 2
    error: Bad exit status from /home/logic/Downloads/REL-ltib-DM3730-2.4-2/tmp/rpm-tmp.43335 (%build)


    RPM build errors:
        Bad exit status from /home/logic/Downloads/REL-ltib-DM3730-2.4-2/tmp/rpm-tmp.43335 (%build)
    Build time for gcc: 1074 seconds

    Failed building gcc


    f_scbuild() returned an error, exiting
    traceback:
     main:636

    Exiting on error or interrupt

    $

    -------------

     

    Does anyone know why this would be happening? Or, a way to fix this?

    Seth Berardinelli
    New Member
    New Member
    Posts:13


    --
    07 Nov 2013 05:07 PM
    No one has had this issue trying to build GCC?
    steven.eckhoff
    Basic Member
    Basic Member
    Posts:192


    --
    11 Nov 2013 07:46 PM
    Seth,

    I will look into this. Which version of the BSP are you using?
    Seth Berardinelli
    New Member
    New Member
    Posts:13


    --
    12 Nov 2013 09:45 AM

    I am using v2.4-2.

    Seth Berardinelli
    New Member
    New Member
    Posts:13


    --
    12 Nov 2013 09:06 PM

    also, when I try to use the glibc (not from the toolchain), i get.

    $ ./ltib -c 

    ...

    ( ) from toolchain only
    (X) glibc
    ( ) Don't install a C library

    ... 

    gcc ../sysdeps/ieee754/flt-32/s_copysignf.c -c -std=gnu99 -O2 -Wall -Winline -Wwrite-strings -fmerge-all-constants -fsigned-char -mfloat-abi=softfp -mfpu=vfp -Wstrict-prototypes     -Wno-uninitialized -D__NO_MATH_INLINES -D__LIBC_INTERNAL_MATH_INLINES -DNO_LONG_DOUBLE -D_Mlong_double_=double -I../include -I/home/logic/Desktop/BSP/ltib/rpm/BUILD/glibc-2.5/build-glibc/math -I/home/logic/Desktop/BSP/ltib/rpm/BUILD/glibc-2.5/build-glibc -I../ports/sysdeps/arm/elf -I../ports/sysdeps/unix/sysv/linux/arm/eabi/nptl -I../ports/sysdeps/unix/sysv/linux/arm/eabi -I../ports/sysdeps/unix/sysv/linux/arm/nptl -I../ports/sysdeps/unix/sysv/linux/arm -I../ports/sysdeps/unix/sysv/linux -I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../ports/sysdeps/unix/sysv -I../nptl/sysdeps/unix/sysv -I../sysdeps/unix/sysv -I../ports/sysdeps/unix/arm -I../ports/sysdeps/unix -I../nptl/sysdeps/unix -I../sysdeps/unix -I../sysdeps/posix -I../ports/sysdeps/arm/eabi -I../ports/sysdeps/aeabi -I../ports/sysdeps/arm/fpu -I../ports/sysdeps/arm/nptl -I../ports/sysdeps/arm -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -I../ports -I../nptl  -I.. -I../libio -I. -nostdinc -isystem /opt/CodeSourcery/Sourcery_G++_Lite/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/include -isystem /opt/CodeSourcery/Sourcery_G++_Lite/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/include-fixed -isystem /opt/CodeSourcery/Sourcery_G++_Lite/arm-none-linux-gnueabi/libc/usr/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h       -o /home/logic/Desktop/BSP/ltib/rpm/BUILD/glibc-2.5/build-glibc/math/s_copysignf.o -MD -MP -MF /home/logic/Desktop/BSP/ltib/rpm/BUILD/glibc-2.5/build-glibc/math/s_copysignf.o.dt -MT /home/logic/Desktop/BSP/ltib/rpm/BUILD/glibc-2.5/build-glibc/math/s_copysignf.o
    ../sysdeps/ieee754/dbl-64/s_copysign.c:27: error: redefinition of '__copysign'
    ./math_private.h:196: error: previous definition of '__copysign' was here
    make[2]: *** [/home/logic/Desktop/BSP/ltib/rpm/BUILD/glibc-2.5/build-glibc/math/s_copysign.o] Error 1
    make[2]: *** Waiting for unfinished jobs....
    ../sysdeps/ieee754/flt-32/s_copysignf.c:30: error: redefinition of '__copysignf'
    ./math_private.h:243: error: previous definition of '__copysignf' was here
    make[2]: *** [/home/logic/Desktop/BSP/ltib/rpm/BUILD/glibc-2.5/build-glibc/math/s_copysignf.o] Error 1
    make[2]: Leaving directory `/home/logic/Desktop/BSP/ltib/rpm/BUILD/glibc-2.5/math'
    make[1]: *** [math/subdir_lib] Error 2
    make[1]: Leaving directory `/home/logic/Desktop/BSP/ltib/rpm/BUILD/glibc-2.5'
    make: *** [all] Error 2
    error: Bad exit status from /home/logic/Desktop/BSP/ltib/tmp/rpm-tmp.88045 (%build)


    RPM build errors:
        Bad exit status from /home/logic/Desktop/BSP/ltib/tmp/rpm-tmp.88045 (%build)
    Build time for glibc: 35 seconds

    Failed building glibc


    f_buildrpms() returned an error, exiting
    traceback:
     main:632


    Started: Tue Nov 12 19:56:34 2013
    Ended:   Tue Nov 12 20:03:19 2013
    Elapsed: 405 seconds

    VERSION          : 10.1.1
    CVS_VERSION      : $Revision: 1.71 $ (Savannah)
    PLATFORM         : omap_logic
    GNUTARCH         : arm
    TOOLCHAIN        : CodeSourcery-2009q1-203.i386.rpm
    TOOLCHAIN_CFLAGS : -O2 -fsigned-char -mfloat-abi=softfp -mfpu=vfp

    These packages failed to build:
    glibc 

    Build Failed

    Exiting on error or interrupt

    $

     

    Why would this happen?


    steven.eckhoff
    Basic Member
    Basic Member
    Posts:192


    --
    13 Nov 2013 04:21 PM

    Seth,

    I spent some time on this and worked through the redefinition errors. I was able to spot some errors such as:

    #ifdef __STDC__

    instead of

    #if __STDC__

    More redefinition errors just kept popping up.

    Some of the code in glibc-2.5 looks like it was written with an older version of gcc in mind.

    I would suggest trying to update the glibc package in LTIB.

    Seth Berardinelli
    New Member
    New Member
    Posts:13


    --
    14 Nov 2013 11:09 AM

    How do I go about updating a package for the RPM?

    steven.eckhoff
    Basic Member
    Basic Member
    Posts:192


    --
    14 Nov 2013 11:30 AM

    We have somebody looking at this now. If nothing happens soon on that front, then I can look into how to update glibc.

    I will reply here when I have more information.

    Seth Berardinelli
    New Member
    New Member
    Posts:13


    --
    21 Nov 2013 01:39 PM

    Any updates?

    steven.eckhoff
    Basic Member
    Basic Member
    Posts:192


    --
    02 Dec 2013 12:21 PM

    Seth,

    I had someone look into it and the verdict is that glibc 2.5 is so old that many packages would not build with it. The toolchain offers libc 2.8 and installs it into the rootfs. We are going to remove the glibc 2.5 from the BSP. If you tell me a little more about what you need from the library I can look into it. Also, LTIB has posted some information on the toolchain in the FAQ [1].

    [1] http://www.bitshrine.org/.../LtibFaq.html#ref_80

    Seth Berardinelli
    New Member
    New Member
    Posts:13


    --
    03 Dec 2013 12:44 PM

    I don't know if I necessarily need the library yet. I want to get OpenCV on this BSP. My first cut at a compile OpenCV from source resulted in errors derived from glibc2.5 (if I am not mistaken). When I have time, I will try running the library again and provide the output. 

     

    P.S. For fun, I wanted to see if I could do native compiles using a GCC provided by your BSP.

    You are not authorized to post a reply.