make 出错,求解决方法

chenlei1700 2013-10-21 04:36:07
我需要让一块安装了ubuntu的板子支持HDMI输出
但是我make时总是不成功,我知道我肯定是少了一些支持,但是我不知到我到底少了哪些东西,
请高手们帮我分析分析。我是菜鸟一枚,请多多包含。

configure信息如下;
root@adam-VPCSA3AJ:/mnt/microSD/odroidxu-3.4.y/tools/hardkernel/exynos5-hwcomposer# ./configure --prefix=/usr
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking how to print strings... printf
checking for style of include used by make... GNU
checking for gcc... 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 gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -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 for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking for gawk... (cached) mawk
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for ranlib... (cached) ranlib
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for stdlib.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for inline... inline
checking for int32_t... yes
checking for size_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for uint8_t... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for gettimeofday... yes
checking for memset... yes
checking for strerror... yes
checking for strtoull... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating tools/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
...全文
386 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
mayer 2013-10-21
  • 打赏
  • 举报
回复
认真看出错的每一行信息
chenlei1700 2013-10-21
  • 打赏
  • 举报
回复
../include/log.h:14:42: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 5 has type ‘size_t {aka long unsigned int}’ [-Wformat=] __FUNCTION__, __LINE__, ##__VA_ARGS__); \ ^ ../include/log.h:17:15: note: in expansion of macro ‘ALOGD’ #define ALOGV ALOGD ^ exynos5-hwcomposer.cpp:2257:13: note: in expansion of macro ‘ALOGV’ ALOGV("\tlayer %u: background layer", i); ^ ../include/log.h:14:42: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 5 has type ‘size_t {aka long unsigned int}’ [-Wformat=] __FUNCTION__, __LINE__, ##__VA_ARGS__); \ ^ ../include/log.h:17:15: note: in expansion of macro ‘ALOGD’ #define ALOGV ALOGD ^ exynos5-hwcomposer.cpp:2286:21: note: in expansion of macro ‘ALOGV’ ALOGV("\tlayer %u: video layer", i); ^ exynos5-hwcomposer.cpp: In function ‘int exynos5_config_gsc_m2m(hwc_layer_1_t&, exynos5_hwc_composer_device_1_t*, exynos5_gsc_data_t*, int, int, hwc_rect_t*)’: exynos5-hwcomposer.cpp:2698:55: error: cast from ‘buffer_handle_t {aka const native_handle*}’ to ‘uint32_t {aka unsigned int}’ loses precision [-fpermissive] if (gsc_data->last_gsc_lay_hnd == (uint32_t)layer.handle) { ^ exynos5-hwcomposer.cpp:2712:54: error: cast from ‘buffer_handle_t {aka const native_handle*}’ to ‘uint32_t {aka unsigned int}’ loses precision [-fpermissive] gsc_data->last_gsc_lay_hnd = (uint32_t)layer.handle; ^ In file included from exynos5-hwcomposer.cpp:36:0: exynos5-hwcomposer.cpp: In function ‘int exynos5_post_fimd(exynos5_hwc_composer_device_1_t*, hwc_display_contents_1_t*)’: ../include/log.h:14:42: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 6 has type ‘size_t {aka long unsigned int}’ [-Wformat=] __FUNCTION__, __LINE__, ##__VA_ARGS__); \ ^ ../include/log.h:19:15: note: in expansion of macro ‘ALOGD’ #define ALOGE ALOGD ^ exynos5-hwcomposer.cpp:3084:21: note: in expansion of macro ‘ALOGE’ ALOGE("failed to configure gscaler %u for layer %u", ^ exynos5-hwcomposer.cpp: In function ‘int exynos5_set_hdmi(exynos5_hwc_composer_device_1_t*, hwc_display_contents_1_t*)’: ../include/log.h:14:42: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘size_t {aka long unsigned int}’ [-Wformat=] __FUNCTION__, __LINE__, ##__VA_ARGS__); \ ^ ../include/log.h:17:15: note: in expansion of macro ‘ALOGD’ #define ALOGV ALOGD ^ exynos5-hwcomposer.cpp:3299:13: note: in expansion of macro ‘ALOGV’ ALOGV("HDMI skipping layer %d", i); ^ exynos5-hwcomposer.cpp: In function ‘void exynos5_dump(exynos5_hwc_composer_device_1_t*)’: exynos5-hwcomposer.cpp:4070:60: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 3 has type ‘intptr_t {aka long int}’ [-Wformat=] "-", config.blending, config.format); ^ In file included from exynos5-hwcomposer.cpp:36:0: exynos5-hwcomposer.cpp: In function ‘int createDisplay(exynos5_hwc_composer_device_1_t*, int, int)’: ../include/log.h:14:42: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘size_t {aka long unsigned int}’ [-Wformat=] __FUNCTION__, __LINE__, ##__VA_ARGS__); \ ^ ../include/log.h:19:15: note: in expansion of macro ‘ALOGD’ #define ALOGE ALOGD ^ exynos5-hwcomposer.cpp:4481:4: note: in expansion of macro ‘ALOGE’ ALOGE("unknown display attribute[%d] %#x", ^ make[2]: *** [exynos5-hwcomposer.o] Error 1 make[2]: Leaving directory `/mnt/microSD/odroidxu-3.4.y/tools/hardkernel/exynos5-hwcomposer/tools' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/mnt/microSD/odroidxu-3.4.y/tools/hardkernel/exynos5-hwcomposer' make: *** [all] Error 2
chenlei1700 2013-10-21
  • 打赏
  • 举报
回复
make信息如下 make all-recursive make[1]: Entering directory `/mnt/microSD/odroidxu-3.4.y/tools/hardkernel/exynos5-hwcomposer' Making all in src make[2]: Entering directory `/mnt/microSD/odroidxu-3.4.y/tools/hardkernel/exynos5-hwcomposer/src' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/mnt/microSD/odroidxu-3.4.y/tools/hardkernel/exynos5-hwcomposer/src' Making all in tools make[2]: Entering directory `/mnt/microSD/odroidxu-3.4.y/tools/hardkernel/exynos5-hwcomposer/tools' g++ -DHAVE_CONFIG_H -I. -I.. -fPIC -Wno-unused-result -I../include -I../src/hardware/libhardware/include -I../src/hardware/libhardware_legacy/include -I../src/hardware/samsung_slsi/exynos/include -I../src/hardware/samsung_slsi/exynos5/include -I../src/hardware/samsung_slsi/exynos5410 -I../src/hardware/samsung_slsi/exynos5410/include -I../src/hardware/samsung_slsi/exynos/libexynosutils -I../src/frameworks/native/include -I../src/system/core/include -g -O2 -MT exynos5-hwcomposer.o -MD -MP -MF .deps/exynos5-hwcomposer.Tpo -c -o exynos5-hwcomposer.o exynos5-hwcomposer.cpp In file included from exynos5-hwcomposer.cpp:32:0: ../src/hardware/samsung_slsi/exynos/include/exynos_format.h:63:0: warning: "ALIGN" redefined [enabled by default] #define ALIGN(x, a) ALIGN_UP(x, a) ^ In file included from exynos5-hwcomposer.h:71:0, from exynos5-hwcomposer.cpp:30: ../src/hardware/samsung_slsi/exynos5410/include/gralloc_priv.h:34:0: note: this is the location of the previous definition #define ALIGN(x,a) (((x) + (a) - 1L) & ~((a) - 1L)) ^ In file included from exynos5-hwcomposer.cpp:36:0: exynos5-hwcomposer.cpp: In function ‘bool exynos5_supports_overlay(hwc_layer_1_t&, size_t, exynos5_hwc_composer_device_1_t*)’: ../include/log.h:14:42: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 5 has type ‘size_t {aka long unsigned int}’ [-Wformat=] __FUNCTION__, __LINE__, ##__VA_ARGS__); \ ^ ../include/log.h:17:15: note: in expansion of macro ‘ALOGD’ #define ALOGV ALOGD ^ exynos5-hwcomposer.cpp:1487:9: note: in expansion of macro ‘ALOGV’ ALOGV("\tlayer %u: skipping", i); ^ ../include/log.h:14:42: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 5 has type ‘size_t {aka long unsigned int}’ [-Wformat=] __FUNCTION__, __LINE__, ##__VA_ARGS__); \ ^ ../include/log.h:17:15: note: in expansion of macro ‘ALOGD’ #define ALOGV ALOGD ^ exynos5-hwcomposer.cpp:1494:9: note: in expansion of macro ‘ALOGV’ ALOGV("\tlayer %u: handle is NULL", i); ^ ../include/log.h:14:42: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 5 has type ‘size_t {aka long unsigned int}’ [-Wformat=] __FUNCTION__, __LINE__, ##__VA_ARGS__); \ ^ ../include/log.h:17:15: note: in expansion of macro ‘ALOGD’ #define ALOGV ALOGD ^ exynos5-hwcomposer.cpp:1499:9: note: in expansion of macro ‘ALOGV’ ALOGV("\tlayer %u: visible area is too narrow", i); ^ ../include/log.h:14:42: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 5 has type ‘size_t {aka long unsigned int}’ [-Wformat=] __FUNCTION__, __LINE__, ##__VA_ARGS__); \ ^ ../include/log.h:17:15: note: in expansion of macro ‘ALOGD’ #define ALOGV ALOGD ^ exynos5-hwcomposer.cpp:1516:13: note: in expansion of macro ‘ALOGV’ ALOGV("\tlayer %u: gscaler required but not supported", i); ^ ../include/log.h:14:42: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 5 has type ‘size_t {aka long unsigned int}’ [-Wformat=] __FUNCTION__, __LINE__, ##__VA_ARGS__); \ ^ ../include/log.h:17:15: note: in expansion of macro ‘ALOGD’ #define ALOGV ALOGD ^ exynos5-hwcomposer.cpp:1524:13: note: in expansion of macro ‘ALOGV’ ALOGV("\tlayer %u: pixel format %u not supported", i, handle->format); ^ ../include/log.h:14:42: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 5 has type ‘size_t {aka long unsigned int}’ [-Wformat=] __FUNCTION__, __LINE__, ##__VA_ARGS__); \ ^ ../include/log.h:17:15: note: in expansion of macro ‘ALOGD’ #define ALOGV ALOGD ^ exynos5-hwcomposer.cpp:1529:9: note: in expansion of macro ‘ALOGV’ ALOGV("\tlayer %u: blending %d not supported", i, layer.blending); ^ ../include/log.h:14:42: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 5 has type ‘size_t {aka long unsigned int}’ [-Wformat=] __FUNCTION__, __LINE__, ##__VA_ARGS__); \ ^ ../include/log.h:20:15: note: in expansion of macro ‘ALOGD’ #define ALOGW ALOGD ^ exynos5-hwcomposer.cpp:1533:9: note: in expansion of macro ‘ALOGW’ ALOGW("\tlayer %u: off-screen", i); ^ exynos5-hwcomposer.cpp: In function ‘int exynos5_prepare_fimd(exynos5_hwc_composer_device_1_t*, hwc_display_contents_1_t*)’: ../include/log.h:14:42: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 5 has type ‘size_t {aka long unsigned int}’ [-Wformat=] __FUNCTION__, __LINE__, ##__VA_ARGS__); \ ^ ../include/log.h:17:15: note: in expansion of macro ‘ALOGD’ #define ALOGV ALOGD ^ exynos5-hwcomposer.cpp:1681:5: note: in expansion of macro ‘ALOGV’ ALOGV("preparing %u layers for FIMD", contents->numHwLayers); ^ ../include/log.h:14:42: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 5 has type ‘size_t {aka long unsigned int}’ [-Wformat=] __FUNCTION__, __LINE__, ##__VA_ARGS__); \ ^ ../include/log.h:17:15: note: in expansion of macro ‘ALOGD’ #define ALOGV ALOGD ^ exynos5-hwcomposer.cpp:1775:13: note: in expansion of macro ‘ALOGV’ ALOGV("\tlayer %u: framebuffer target", i); ^ ../include/log.h:14:42: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 5 has type ‘size_t {aka long unsigned int}’ [-Wformat=] __FUNCTION__, __LINE__, ##__VA_ARGS__); \ ^ ../include/log.h:17:15: note: in expansion of macro ‘ALOGD’ #define ALOGV ALOGD ^ exynos5-hwcomposer.cpp:1780:13: note: in expansion of macro ‘ALOGV’ ALOGV("\tlayer %u: background supported", i); ^ ../include/log.h:14:42: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 5 has type ‘size_t {aka long unsigned int}’ [-Wformat=] __FUNCTION__, __LINE__, ##__VA_ARGS__); \ ^ ../include/log.h:17:15: note: in expansion of macro ‘ALOGD’ #define ALOGV ALOGD ^ exynos5-hwcomposer.cpp:1809:21: note: in expansion of macro ‘ALOGV’ ALOGV("\tlayer %u: overlay supported", i); ^ ../include/log.h:14:42: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 5 has type ‘size_t {aka long unsigned int}’ [-Wformat=] __FUNCTION__, __LINE__, ##__VA_ARGS__); \ ^ ../include/log.h:17:15: note: in expansion of macro ‘ALOGD’ #define ALOGV ALOGD ^ exynos5-hwcomposer.cpp:2014:13: note: in expansion of macro ‘ALOGV’ ALOGV("assigning layer %u to window %u", i, nextWindow); ^ exynos5-hwcomposer.cpp: In function ‘int exynos5_prepare_hdmi(exynos5_hwc_composer_device_1_t*, hwc_display_contents_1_t*)’: ../include/log.h:14:42: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 5 has type ‘size_t {aka long unsigned int}’ [-Wformat=] __FUNCTION__, __LINE__, ##__VA_ARGS__); \ ^ ../include/log.h:17:15: note: in expansion of macro ‘ALOGD’ #define ALOGV ALOGD ^ exynos5-hwcomposer.cpp:2239:5: note: in expansion of macro ‘ALOGV’ ALOGV("preparing %u layers for HDMI", contents->numHwLayers); ^ ../include/log.h:14:42: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 5 has type ‘size_t {aka long unsigned int}’ [-Wformat=] __FUNCTION__, __LINE__, ##__VA_ARGS__); \ ^ ../include/log.h:17:15: note: in expansion of macro ‘ALOGD’ #define ALOGV ALOGD ^ exynos5-hwcomposer.cpp:2252:13: note: in expansion of macro ‘ALOGV’ ALOGV("\tlayer %u: framebuffer target", i); ^

19,612

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧