FW: checking whether <arm-none-eabi-gcc accepts> -g... <no>
Kleiber Tamas (BCDS/ENG2)
Tamas.Kleiber@bosch-connectivity.com
Thu Dec 4 12:50:00 GMT 2014
Hello again,
it seems the spam filter at qmail-send program at sourceware.org trashed my e-mail :(
Second try...
Mit freundlichen Grüßen / Best regards
Tamas Kleiber
BeQIK
-----Original Message-----
From: Kleiber Tamas (BCDS/ENG2)
Sent: Thursday, December 04, 2014 1:47 PM
To: 'Sebastian Huber'; 'newlib@sourceware.org'
Subject: RE: FW: checking whether <arm-none-eabi-gcc accepts> -g... <no>
Hello Sebastian,
I have executed the following test case:
arm-none-eabi-gcc -mthumb -march=armv7-m -c -g conftest.c >results
echo Result: \"$?\"
Where conftest.c had the following contents:
/* confdefs.h */
#define PACKAGE_NAME "newlib"
#define PACKAGE_TARNAME "newlib"
#define PACKAGE_VERSION "2.1.0"
#define PACKAGE_STRING "newlib 2.1.0"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
/* end confdefs.h. */
int
main ()
{
;
return 0;
}
The created "results" text file is empty.
The echoed result of \"$?\" is: "0".
The original test case in /newlib-2.1.0/newlib/configure is as follows:
if test $ac_cv_c_compiler_gnu = yes; then
GCC=yes
ac_test_CFLAGS="${CFLAGS+set}"
ac_save_CFLAGS="$CFLAGS"
ac_test_CFLAGS=${CFLAGS+set}
ac_save_CFLAGS=$CFLAGS
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
$as_echo_n "checking whether $CC accepts -g... " >&6; }
if ${ac_cv_prog_cc_g+:} false; then :
$as_echo_n "(cached) " >&6
else
ac_save_c_werror_flag=$ac_c_werror_flag
ac_c_werror_flag=yes
ac_cv_prog_cc_g=no
CFLAGS="-g"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
int
main ()
{
;
return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
ac_cv_prog_cc_g=yes
else
The < if test $ac_cv_c_compiler_gnu = yes;> condition on the first line evaluates to true. Then <if ${ac_cv_prog_cc_g+:} false;> enters the else case to perform the actual test.
Based on the log output we could say that conftest.c is properly created by the script. Then comes <if ac_fn_c_try_compile "$LINENO";> which fails.
The $LINENO variable is working as in the log file the line number of configure is always showing up correctly. So my assumption is that ac_fn_c_try_compile() fails.
That subroutine is too complex for me... I will try to debug it via printing out stuff at run time...
The output of configure from /armv7-m/arm-none-eabi/config.log is this:
configure:3449: checking whether arm-none-eabi-gcc -mthumb -march=armv7-m accepts -g
configure:3469: arm-none-eabi-gcc -mthumb -march=armv7-m -c -g conftest.c >&5
configure:3469: $? = 0
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "newlib"
| #define PACKAGE_TARNAME "newlib"
| #define PACKAGE_VERSION "2.1.0"
| #define PACKAGE_STRING "newlib 2.1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
Mit freundlichen Grüßen / Best regards
Tamas Kleiber
BeQIK
-----Original Message-----
From: Sebastian Huber [mailto:sebastian.huber@embedded-brains.de]
Sent: Thursday, December 04, 2014 11:23 AM
To: Kleiber Tamas (BCDS/ENG2); newlib@sourceware.org
Subject: Re: FW: checking whether <arm-none-eabi-gcc accepts> -g... <no>
Hello Tamas,
what is the output if you run the tests manually?
--
Sebastian Huber, embedded brains GmbH
Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone : +49 89 189 47 41-16
Fax : +49 89 189 47 41-09
E-Mail : sebastian.huber@embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
More information about the Newlib
mailing list