Ubuntu18.04 Compile A40i SDK Error: misc/create_inode.c:395:18: error: conflicting types for ‘copy_file_range‘

Main desktop version:
Linux version 5.4.0-77-generic ( [email protected] -amd64-021) (gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)) #86~18.04.1-Ubuntu SMP Fri Jun 18 01:23:22 UTC 2021

1

Unescaped left brace in regex is illegal here in regex; marked by <-- HERE in m/\${ <-- HERE ([^ \t=:+{}]+)}/ at /media/nrjd/cqr40_linuxqt_bv3s/buildroot-2017.02.3/output/host/usr/bin/automake line 3936.

Modifybuildroot-2017.02.3/output/host/usr/bin/automakeFile Line 3936

$text =~ s/\${([^ \t=:+{}]+)}/substitute_ac_subst_variables_worker ($1)/ge;

is $text =~ s/\$([^ \t=:+{}]+)/substitute_ac_subst_variables_worker ($1)/ge;
2

misc/create_inode.c:395:18: error: conflicting types for ‘copy_file_range‘

Comment out the header file referenced by buildroot-2017.02.3/output/build/host-e2fsprogs-1.43.3/misc/create_inode.c

//#include <unistd.h>

3

digitlst.cpp:67:13: fatal error: xlocale.h: Not having that file or directory
 #   include <xlocale.h>

Comment out buildroot-2017.02.3/output/build/host-icu-58.2/source/i18n/digitlst.cpp
Referenced headers

//#   include <xlocale.h>

other

Unescaped left brace in regex is illegal here in regex; marked by <-- HERE in m/\${ <-- HERE ?PACKAGE}?/ at /media/nrjd/cqr40_linuxqt_bv3s/buildroot-2017.02.3/output/host/usr/bin/intltool-update line 1115.

Wrap the first { in curly brackets ] , such as

$varhash{"PACKAGE"} = $name if (not $name =~ /\${?PACKAGE}?/);

Amend to read

$varhash{"PACKAGE"} = $name if (not $name =~ /\$[{]?PACKAGE}?/);


Read More: