Modify

Opened 3 years ago

#20205 new defect

binutils won't compile in trunk for toolchain (conflicting types)

Reported by: anonymous Owned by: developers
Priority: normal Milestone: Chaos Calmer 15.05
Component: packages Version: Trunk
Keywords: Cc:

Description

Conflicting types errors occurs when referencing psignal and gettimeofday. make toolchain/install -j1 V=s references below:

make[1]: Entering directory '/home/user/OpenWRT'
+ mkdir -p /home/user/OpenWRT/staging_dir/target-mips_34kc_musl-1.1.10
+ cd /home/user/OpenWRT/staging_dir/target-mips_34kc_musl-1.1.10
+ mkdir -p bin lib include stamp
mkdir -p /home/user/OpenWRT/build_dir/target-mips_34kc_musl-1.1.10/stamp
touch /home/user/OpenWRT/staging_dir/target-mips_34kc_musl-1.1.10/.prepared
make[2]: Entering directory '/home/user/OpenWRT/toolchain/gdb'
make[2]: Nothing to be done for 'prepare'.
make[2]: Leaving directory '/home/user/OpenWRT/toolchain/gdb'
make[2]: Entering directory '/home/user/OpenWRT/toolchain/gdb'
make   -C /home/user/OpenWRT/build_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/gdb-7.8  
make[3]: Entering directory '/home/user/OpenWRT/build_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/gdb-7.8'
make[4]: Entering directory '/home/user/OpenWRT/build_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/gdb-7.8'
make[5]: Entering directory '/home/user/OpenWRT/build_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/gdb-7.8/libiberty'
if [ x"" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -O2 -I/home/user/OpenWRT/staging_dir/host/include -I/home/user/OpenWRT/staging_dir/host/usr/include  -I. -I./../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic   ./gettimeofday.c -o pic/gettimeofday.o; \
else true; fi
if [ x"" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -O2 -I/home/user/OpenWRT/staging_dir/host/include -I/home/user/OpenWRT/staging_dir/host/usr/include  -I. -I./../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic    ./gettimeofday.c -o noasan/gettimeofday.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -O2 -I/home/user/OpenWRT/staging_dir/host/include -I/home/user/OpenWRT/staging_dir/host/usr/include  -I. -I./../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  ./gettimeofday.c -o gettimeofday.o
./gettimeofday.c:22:1: error: conflicting types for 'gettimeofday'
 gettimeofday (struct timeval *tp, void *tz)
 ^
In file included from ./gettimeofday.c:7:0:
/usr/include/i386-linux-gnu/sys/time.h:71:12: note: previous declaration of 'gettimeofday' was here
 extern int gettimeofday (struct timeval *__restrict __tv,
            ^
./gettimeofday.c: In function 'gettimeofday':
./gettimeofday.c:25:5: warning: implicit declaration of function 'abort' [-Wimplicit-function-declaration]
     abort ();
     ^
./gettimeofday.c:25:5: warning: incompatible implicit declaration of built-in function 'abort'
Makefile:847: recipe for target 'gettimeofday.o' failed
make[5]: *** [gettimeofday.o] Error 1
make[5]: Leaving directory '/home/user/OpenWRT/build_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/gdb-7.8/libiberty'
Makefile:7068: recipe for target 'all-libiberty' failed
make[4]: *** [all-libiberty] Error 2
make[4]: Leaving directory '/home/user/OpenWRT/build_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/gdb-7.8'
Makefile:833: recipe for target 'all' failed
make[3]: *** [all] Error 2
make[3]: Leaving directory '/home/user/OpenWRT/build_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/gdb-7.8'
Makefile:49: recipe for target '/home/user/OpenWRT/build_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/gdb-7.8/.built' failed
make[2]: *** [/home/user/OpenWRT/build_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/gdb-7.8/.built] Error 2
make[2]: Leaving directory '/home/user/OpenWRT/toolchain/gdb'
toolchain/Makefile:81: recipe for target 'toolchain/gdb/compile' failed
make[1]: *** [toolchain/gdb/compile] Error 2
make[1]: Leaving directory '/home/user/OpenWRT'
/home/user/OpenWRT/include/toplevel.mk:181: ошибка выполнения рецепта для цели «toolchain/install»
make: *** [toolchain/install] Ошибка 2

Attachments (0)

Change History (0)

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.