Code Monkey home page Code Monkey logo

Comments (5)

pitill0 avatar pitill0 commented on June 9, 2024

Same problems as Odroid xu4 optimization release (bug (#6)):

First one when syncing overlayed ports for cubieboard2-arm repository.
Fixed creating a new branch for 3.7 development.

Second one building glibc. Assemble errors with customized CFLAGS (bug (#9)):
export CFLAGS="-O2 -pipe -mfloat-abi=hard -march=armv7ve -mcpu=cortex-a7 -mfpu=neon-vfpv4"

gcc ../sysdeps/arm/armv6t2/ffs.S -c -I../include -I/nfs/cb2/work/glibc/src/build/string -I/nfs/cb2/work/glibc/src/build -I../sysdeps/unix/sysv/linux/arm/le -I../sysdeps/unix/sysv/linux/arm -I../sysdeps/arm/nptl -I../sysdeps/unix/sysv/linux/include -I../sysdeps/unix/sysv/linux -I../sysdeps/nptl -I../sysdeps/pthread -I../sysdeps/gnu -I../sysdeps/unix/inet -I../sysdeps/unix/sysv -I../sysdeps/unix/arm -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/arm/le/armv7/multiarch -I../sysdeps/arm/armv7/multiarch -I../sysdeps/arm/le/armv7 -I../sysdeps/arm/armv7 -I../sysdeps/arm/armv6t2 -I../sysdeps/arm/armv6 -I../sysdeps/arm/le -I../sysdeps/arm/include -I../sysdeps/arm -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754 -I../sysdeps/generic -I.. -I../libio -I. -nostdinc -isystem /usr/lib/gcc/arm-unknown-linux-gnueabihf/8.4.0/include -isystem /nfs/cb2/work/glibc/pkg/usr/include -D_LIBC_REENTRANT -include /nfs/cb2/work/glibc/src/build/libc-modules.h -DMODULE_NAME=libc -include ../include/libc-symbols.h -DPIC -DTOP_NAMESPACE=glibc -DASSEMBLER -Werror=undef -Wa,--noexecstack -o /nfs/cb2/work/glibc/src/build/string/ffs.o -MD -MP -MF /nfs/cb2/work/glibc/src/build/string/ffs.o.dt -MT /nfs/cb2/work/glibc/src/build/string/ffs.o ../sysdeps/arm/armv6t2/ffs.S: Assembler messages:
../sysdeps/arm/armv6t2/ffs.S:26: Error: selected processor does not support `rbit r0,r0' in ARM mode make[2]: *** [/nfs/cb2/work/glibc/src/build/sysd-rules:551: /nfs/cb2/work/glibc/src/build/string/ffs.o] Error 1

Currently tested CFLAGS obtained using arminfo.sh script:

$ sh arminfo.sh
cc1: error: -mfloat-abi=hard: selected processor lacks an FPU
HOSTNAME   cb2-cross
MODEL      ARMv7 Processor rev 4 (v7l)
FEATURES   swp half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt
MACHTYPE
CFLAGS     -march=armv7ve -mabi=aapcs-linux -mfloat-abi=hard -mtune=cortex-a7
MAKEFLAGS  -j2
export CFLAGS="-O2 -pipe -march=armv7ve -mabi=aapcs-linux -mfloat-abi=hard -mtune=cortex-a7" 

from crux-arm-release.

pitill0 avatar pitill0 commented on June 9, 2024

Build breaks:

+ /mnt/home/pkgmk/work/glibc/src/glibc-2.36/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --with-headers=/mnt/home/pkgmk/work/glibc/pkg/usr/include --enable-kernel=3.2 --enable-addons --enable-stack-protector=strong --enable-bind-now --disable-profile --disable-werror --without-gd --disable-multi-arch
checking build system type... armv7l-unknown-linux-gnueabihf
checking host system type... armv7l-unknown-linux-gnueabihf
checking for gcc... gcc
checking for suffix of object files... configure: error: in `/mnt/home/pkgmk/work/glibc/src/build':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details
=======> ERROR: Building '/mnt/home/pkgmk/pkg/glibc#2.36-3.pkg.tar.xz' failed.

Config log:

configure:2643: $? = 1
configure:2648: checking for suffix of object files
configure:2670: gcc -c -O2 -pipe -march=armv7ve -mabi=aapcs-linux -mfloat-abi=hard -mtune=cortex-a7  conftest.c >&5
cc1: error: -mfloat-abi=hard: selected processor lacks an FPU
```

from crux-arm-release.

pitill0 avatar pitill0 commented on June 9, 2024

Testing CFLAGS:

export CFLAGS="-O2 -pipe -mfloat-abi=hard -march=armv7ve -mabi=aapcs-linux -mfpu=neon-vfpv4 -mtune=cortex-a7"

Fails too:

gcc ../sysdeps/arm/armv6t2/ffs.S -c     -I../include -I/mnt/home/pkgmk/work/glibc/src/build/string  -I/mnt/home/pkgmk/work/glibc/src/build  -I../sysdeps/unix/sysv/linux/arm/le  -I../sysdeps/unix/sysv/linux/arm  -I../sysdeps/arm/nptl  -I../sysdeps/unix/sysv/linux/include -I../sysdeps/unix/sysv/linux  -I../sysdeps/nptl  -I../sysdeps/pthread  -I../sysdeps/gnu  -I../sysdeps/unix/inet  -I../sysdeps/unix/sysv  -I../sysdeps/unix/arm  -I../sysdeps/unix  -I../sysdeps/posix  -I../sysdeps/arm/le/armv7  -I../sysdeps/arm/armv7  -I../sysdeps/arm/armv6t2  -I../sysdeps/arm/armv6  -I../sysdeps/arm/le  -I../sysdeps/arm/include -I../sysdeps/arm  -I../sysdeps/wordsize-32  -I../sysdeps/ieee754/flt-32  -I../sysdeps/ieee754/dbl-64  -I../sysdeps/ieee754  -I../sysdeps/generic  -I.. -I../libio -I. -nostdinc -isystem /usr/lib/gcc/arm-unknown-linux-gnueabihf/8.4.0/include -isystem /mnt/home/pkgmk/work/glibc/pkg/usr/include -D_LIBC_REENTRANT -include /mnt/home/pkgmk/work/glibc/src/build/libc-modules.h -DMODULE_NAME=libc -include ../include/libc-symbols.h  -DPIC     -DTOP_NAMESPACE=glibc -DASSEMBLER  -Werror=undef -Wa,--noexecstack   -o /mnt/home/pkgmk/work/glibc/src/build/string/ffs.o -MD -MP -MF /mnt/home/pkgmk/work/glibc/src/build/string/ffs.o.dt -MT /mnt/home/pkgmk/work/glibc/src/build/string/ffs.o
../sysdeps/arm/armv6t2/ffs.S: Assembler messages:
../sysdeps/arm/armv6t2/ffs.S:26: Error: selected processor does not support `rbit r0,r0' in ARM mode
make[2]: *** [/mnt/home/pkgmk/work/glibc/src/build/sysd-rules:483: /mnt/home/pkgmk/work/glibc/src/build/string/ffs.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/mnt/home/pkgmk/work/glibc/src/glibc-2.36/string'
make[1]: *** [Makefile:484: string/subdir_lib] Error 2
make[1]: Leaving directory '/mnt/home/pkgmk/work/glibc/src/glibc-2.36'
make: *** [Makefile:9: all] Error 2
=======> ERROR: Building '/mnt/home/pkgmk/pkg/glibc#2.36-3.pkg.tar.xz' failed.

from crux-arm-release.

pitill0 avatar pitill0 commented on June 9, 2024

glib is built adding a export ASFLAGS="$CFLAGS"

from crux-arm-release.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.