gm2
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gm2] Build problems with 4.7.4, 5.2.0 & 5.4.0 on ARM


From: Ernst Bokkelkamp
Subject: Re: [Gm2] Build problems with 4.7.4, 5.2.0 & 5.4.0 on ARM
Date: Wed, 5 Jul 2017 14:45:59 +0200

What looks wrong to me is: armv6l-unknown-linux-gnueabihf
Please check the output of "gcc -print-multiarch".

I suggest you use the same options that I am using for 4.7.4/5.2.0/5.4.0 with 
the latest Raspbian and gcc version 4.9.2 (Raspbian 4.9.2-10).

this is an extract from my build script:

    echo -n "checking for multiarch headers:"
    gcc -print-multiarch
    LIBRARY_PATH=/usr/lib/$(gcc -print-multiarch)
    CPATH=/usr/include/$(gcc -print-multiarch)
    export LIBRARY_PATH CPATH

    if test $(gcc -print-multiarch) == 'arm-linux-gnueabihf'
    then
      OPTIONS='--with-arch=armv6 --with-fpu=vfp --with-float=hard 
--build=arm-linux-gnueabihf --host=arm-linux-gnueabihf 
--target=arm-linux-gnueabihf'
    fi

    CXXFLAGS="-g" BOOT_CFLAGS="-g" CFLAGS="-g" \
      $CONFIGURE \
      --prefix=$HOME/opt \
      --libexecdir=$HOME/opt/lib \
      --enable-shared \
      --enable-threads=posix \
      --enable-__cxa_atexit \
      --enable-clocale=gnu \
      --enable-languages=c,c++,gm2 \
      --disable-multilib \
      --disable-bootstrap \
      --enable-checking \
      $OPTIONS

Regards
Ernst




reply via email to

[Prev in Thread] Current Thread [Next in Thread]