OpenELEC / OpenELEC.tv

OpenELEC - The living room PC for everyone
http://openelec.tv
1.61k stars 884 forks source link

RPi build fails after linking make #2857

Closed jfmchivall closed 10 years ago

jfmchivall commented 10 years ago

This is a clean build environment on up-to-date Fedora 19 x86_64

$ PROJECT=RPi ARCH=arm make release
./scripts/image release

 =================================================================================
 Configuration for OpenELEC (unofficial)
 =================================================================================

 Buildoptions:
 ======================================================
 - CPU (ARCH):                           arm1176jzf-s (arm)
 - FLOAT:                                hard
 - FPU:                                  vfp
 - SIMD support:                         no
 - Optimizations:                        size
 - LTO (Link Time Optimization) support: yes
 - GOLD (Google Linker) Support:         yes
 - LLVM support:                         

 Graphic configuration:
 ======================================================
 - XORG support:                         
 - XORG Composite support:               
 - XORG Xinerama support:                
 - SDL support:                          no
 - OpenGL (GLX) support (provider):      no (no)
 - OpenGLES support (provider):          yes (bcm2835-driver)
 - WindowManager:                        none
 - Xorg Graphic Drivers:                 

 Hardware decoder configuration:
 ======================================================
 - Broadcom CrystalHD Decoder:           no
 - XBMC Player driver:                   bcm2835-driver
 - VAAPI Support:                        no
 - VDPAU Support:                        no

 Input device configuration:
 ======================================================
 - Remote support:                       yes
 - ATV Remote support:                   no
 - CEC Adapter support:                  yes
 - IRTrans support:                      no
 - XBMC Joystick support:                no

 Misc. hardware configuration:
 ======================================================
 - ALSA support:                         no
 - Pulseaudio support:                   
 - Blu-Ray support:                      yes
 - Bluetooth support:                    yes
 - Hardware Sensors support:             yes
 - LCD drivers:                          irtrans,imon,imonlcd,mdm166a,MtxOrb,lis,dm140,hd44780,CFontz,SureElec,vlsys_m428
 - Include driver:                       RTL8192CU
 - Include driver:                       RTL8188EU
 - Include driver:                       dvbhdhomerun
 - Include firmware:                     misc-firmware
 - Include firmware:                     wlan-firmware
 - Include firmware:                     dvb-firmware

 Network service configuration:
 ======================================================
 - Avahi (Zeroconf) support:             yes
 - SAMBA server support:                 yes
 - SFTP server support:                  yes
 - PPTP support:                         yes
 - OpenVPN support:                      yes
 - XBMC Airplay support:                 yes
 - XBMC Airtunes support:                yes
 - XBMC AFP support:                     yes
 - XBMC NFS support:                     yes
 - XBMC SAMBA client support:            yes
 - XBMC Webserver support:               yes

 OS configuration:
 ======================================================
 - OEM Support:                          no
 - Default Hostname:                     openelec
 - Default ROOT Password:                openelec
 - Bootloader:                           bcm2835-bootloader
 - UDevil support:                       yes
 - Parted support:                       
 - Installer support:                    no

 Misc. Filesystems:
 ======================================================
 - Swap Support:                         no
 - exFAT Support (via Fuse):             yes
 - NTFS Support (via Fuse):              yes
 - Install HFS Tools:                    yes

 XBMC configuration:
 ======================================================
 - XBMC version:                         xbmc
 - XBMC nonfree support:                 yes
 - XBMC DVDCSS support:                  yes
 - Include Skin:                         Confluence
 - Default Skin:                         Confluence
 - Include extra fonts:                  yes
 - Include RSXS Screensaver:             no
 - Include ProjectM Visualization:       no
 - Include Goom Visualization:           no

 =================================================================================
 End Configuration for OpenELEC
 =================================================================================

      GET      make
--2014-01-02 13:54:01--  http://ftp.gnu.org/gnu/make/make-3.82.tar.bz2
Resolving ftp.gnu.org (ftp.gnu.org)... 208.118.235.20, 2001:4830:134:3::b
Connecting to ftp.gnu.org (ftp.gnu.org)|208.118.235.20|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1242186 (1.2M) [application/x-bzip2]
Saving to: 'sources/make/make-3.82.tar.bz2'

100%[====================================================================================>] 1,242,186    715KB/s   in 1.7s   

2014-01-02 13:54:03 (715 KB/s) - 'sources/make/make-3.82.tar.bz2' saved [1242186/1242186]

      UNPACK   make
          APPLY PATCH (common)   /home/builder/openelec/OpenELEC.tv/packages/toolchain/devel/make/patches/make-3.82-011-noclock_gettime.patch
patching file configure
          APPLY PATCH (common)   /home/builder/openelec/OpenELEC.tv/packages/toolchain/devel/make/patches/make-3.82-012-j8k.patch
patching file main.c
          APPLY PATCH (common)   /home/builder/openelec/OpenELEC.tv/packages/toolchain/devel/make/patches/make-3.82-013-getcwd.patch
patching file make.h
          APPLY PATCH (common)   /home/builder/openelec/OpenELEC.tv/packages/toolchain/devel/make/patches/make-3.82-014-err-reporting.patch
patching file misc.c
patching file main.c
patching file make.h
patching file job.c
          APPLY PATCH (common)   /home/builder/openelec/OpenELEC.tv/packages/toolchain/devel/make/patches/make-3.82-016-weird-shell.patch
patching file job.c
          APPLY PATCH (common)   /home/builder/openelec/OpenELEC.tv/packages/toolchain/devel/make/patches/make-3.82-017-newlines.patch
patching file job.c
          APPLY PATCH (common)   /home/builder/openelec/OpenELEC.tv/packages/toolchain/devel/make/patches/make-3.82-018-jobserver.patch
patching file main.c
          APPLY PATCH (common)   /home/builder/openelec/OpenELEC.tv/packages/toolchain/devel/make/patches/make-3.82-019-bugfixes.patch
patching file ChangeLog
patching file main.c
Hunk #2 succeeded at 2110 (offset 17 lines).
patching file NEWS
patching file read.c
patching file tests/ChangeLog
patching file tests/run_make_tests.pl
patching file tests/scripts/features/archives
patching file tests/scripts/features/reinvoke
          APPLY PATCH (common)   /home/builder/openelec/OpenELEC.tv/packages/toolchain/devel/make/patches/make-3.82-020-sort-blank.patch
patching file function.c
          APPLY PATCH (common)   /home/builder/openelec/OpenELEC.tv/packages/toolchain/devel/make/patches/make-3.82-021-copy-on-expand.patch
patching file ChangeLog
patching file expand.c
          APPLY PATCH (common)   /home/builder/openelec/OpenELEC.tv/packages/toolchain/devel/make/patches/make-3.82-022-parallel-remake.patch
patching file main.c
Hunk #1 succeeded at 2105 (offset 16 lines).
Hunk #2 succeeded at 2846 (offset 11 lines).
          APPLY PATCH (common)   /home/builder/openelec/OpenELEC.tv/packages/toolchain/devel/make/patches/make-3.82-023-warn_undefined_function.patch
patching file function.c
patching file main.c
patching file make.h
Hunk #1 succeeded at 515 (offset 2 lines).
patching file variable.h
          APPLY PATCH (common)   /home/builder/openelec/OpenELEC.tv/packages/toolchain/devel/make/patches/make-3.82-024-trace.patch
patching file debug.h
patching file function.c
Hunk #3 succeeded at 2347 (offset 2 lines).
Hunk #4 succeeded at 2355 (offset 2 lines).
Hunk #5 succeeded at 2365 (offset 2 lines).
Hunk #6 succeeded at 2379 (offset 2 lines).
Hunk #7 succeeded at 2390 (offset 2 lines).
patching file main.c
Hunk #1 succeeded at 643 (offset 9 lines).
          APPLY PATCH (common)   /home/builder/openelec/OpenELEC.tv/packages/toolchain/devel/make/patches/make-3.82-025-expensive_glob.patch
patching file read.c
Hunk #1 succeeded at 2904 (offset 3 lines).
Hunk #2 succeeded at 3113 (offset 3 lines).
Hunk #3 succeeded at 3186 (offset 3 lines).
patching file tests/scripts/functions/wildcard
          FIXCONFIG   build.OpenELEC-RPi.arm-devel/make-3.82/config/
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for x86_64-redhat-linux-gcc... /usr/lib64/ccache/gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /usr/lib64/ccache/gcc accepts -g... yes
checking for /usr/lib64/ccache/gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of /usr/lib64/ccache/gcc... gcc3
checking for x86_64-redhat-linux-ranlib... ranlib
checking how to run the C preprocessor... /usr/lib64/ccache/gcc -E
checking for ar... ar
checking for perl... perl
checking build system type... x86_64-redhat-linux-gnu
checking host system type... x86_64-redhat-linux-gnu
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for strerror in -lcposix... no
checking whether NLS is requested... no
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for ld used by GCC... ld
checking if the linker (ld) is GNU ld... yes
checking for shared library run path origin... done
checking whether NLS is requested... no
checking whether to use NLS... no
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for library containing getpwnam... none required
checking for ANSI C header files... (cached) yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking whether stat file-mode macros are broken... no
checking whether time.h and sys/time.h may both be included... yes
checking for stdlib.h... (cached) yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for unistd.h... (cached) yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for string.h... (cached) yes
checking for memory.h... (cached) yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/timeb.h usability... yes
checking sys/timeb.h presence... yes
checking for sys/timeb.h... yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking whether /usr/lib64/ccache/gcc and cc understand -c and -o together... yes
checking for an ANSI C-conforming const... yes
checking return type of signal handlers... void
checking for uid_t in sys/types.h... yes
checking for pid_t... yes
checking for uintmax_t... yes
checking for nanoseconds field of struct stat.st_mtim... tv_nsec
checking whether to use high resolution file timestamps... yes
checking for library containing clock_gettime... none required
checking whether system uses MSDOS-style paths... no
checking for standard gettimeofday... yes
checking for strdup... yes
checking for strndup... yes
checking for mkstemp... yes
checking for mktemp... yes
checking for fdopen... yes
checking for fileno... yes
checking for dup2... yes
checking for getcwd... yes
checking for realpath... yes
checking for sigsetmask... yes
checking for sigaction... yes
checking for getgroups... yes
checking for seteuid... yes
checking for setegid... yes
checking for setlinebuf... yes
checking for setreuid... yes
checking for setregid... yes
checking for getrlimit... yes
checking for setrlimit... yes
checking for setvbuf... yes
checking for pipe... yes
checking for strerror... yes
checking for strsignal... yes
checking for lstat... yes
checking for readlink... yes
checking for atexit... yes
checking whether bsd_signal is declared... yes
checking for strcasecmp... yes
checking for strncasecmp... yes
checking for strcmpi... no
checking for strncmpi... no
checking for stricmp... no
checking for strnicmp... no
checking for working strcoll... yes
checking for working alloca.h... yes
checking for alloca... yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for vprintf... yes
checking for _doprnt... no
checking whether closedir returns void... no
checking for getloadavg... yes
checking for pstat_getdynamic... no
checking for kstat_open in -lkstat... no
checking for getloadavg... yes
checking whether getloadavg requires setgid... no
checking whether sys_siglist is declared... yes
checking whether _sys_siglist is declared... yes
checking whether __sys_siglist is declared... no
checking for sys/wait.h... yes
checking for waitpid... yes
checking for wait3... yes
checking for union wait... no
checking for SA_RESTART... yes
checking for location of SCCS get command... get
checking if system libc has GNU glob... yes
checking if malloc debugging is wanted... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating glob/Makefile
config.status: creating po/Makefile.in
config.status: WARNING:  'po/Makefile.in.in' seems to ignore the --datarootdir setting
config.status: creating config/Makefile
config.status: creating doc/Makefile
config.status: creating w32/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing default-1 commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
config.status: creating build.sh
compiling ar.c...
compiling arscan.c...
compiling commands.c...
compiling default.c...
compiling dir.c...
./dir.c: In function 'dir_contents_file_exists_p':
./dir.c:586:16: warning: variable 'hash' set but not used [-Wunused-but-set-variable]
   unsigned int hash;
                ^
compiling expand.c...
compiling file.c...
compiling function.c...
compiling getopt.c...
compiling getopt1.c...
compiling implicit.c...
./implicit.c: In function 'pattern_search':
./implicit.c:227:15: warning: variable 'deps' set but not used [-Wunused-but-set-variable]
   struct dep *deps;
               ^
compiling job.c...
./job.c: In function 'construct_command_argv_internal':
./job.c:2806:11: warning: variable 'command_ptr' set but not used [-Wunused-but-set-variable]
     char *command_ptr = NULL; /* used for batch_mode_shell mode */
           ^
compiling main.c...
./main.c: In function 'die':
./main.c:3237:15: warning: variable '_x' set but not used [-Wunused-but-set-variable]
           int _x;
               ^
compiling misc.c...
compiling read.c...
./read.c: In function 'record_target_var':
./read.c:1749:19: warning: variable 'fname' set but not used [-Wunused-but-set-variable]
       const char *fname;
                   ^
compiling remake.c...
./remake.c: In function 'f_mtime':
./remake.c:1601:44: warning: 'best_path' may be used uninitialized in this function [-Wmaybe-uninitialized]
                 (vpath_index == best_vpath && path_index < best_path))
                                            ^
./remake.c:1537:28: note: 'best_path' was declared here
   unsigned int best_vpath, best_path;
                            ^
./remake.c:1644:46: warning: 'best_vpath' may be used uninitialized in this function [-Wmaybe-uninitialized]
                 if (file == 0 || vpath_index < best_vpath)
                                              ^
./remake.c:1537:16: note: 'best_vpath' was declared here
   unsigned int best_vpath, best_path;
                ^
compiling rule.c...
./rule.c: In function 'count_implicit_rule_limits':
./rule.c:75:23: warning: variable 'lastrule' set but not used [-Wunused-but-set-variable]
   struct rule *rule, *lastrule;
                       ^
compiling signame.c...
compiling strcache.c...
compiling variable.c...
compiling version.c...
compiling vpath.c...
compiling hash.c...
compiling remote-stub.c...
linking make...
done
cp: omitting directory 'make'
make: *** [release] Error 1

sraue commented 10 years ago

try with https://github.com/OpenELEC/OpenELEC.tv/commit/12a3f570c73600e52621790970db9266f74219fc and report back

jfmchivall commented 10 years ago

It's working for me now. Thank you.