3.18.7: compile error occurs (libImageProcessor.so)

Bug #1784989 reported by Tae-Young Kwon
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
HPLIP
Fix Released
Undecided
Unassigned

Bug Description

I am using hplip as yocto. (https://www.yoctoproject.org/)
I know that version 3.18.7 was recently released.

I have tried to compile hplip-3.18.7 version from yocto.
However, a compile error has occurred as shown below.

Initialising tasks: 100% |###################################################################################################################################################################| Time: 0:00:05
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: hplip-3.18.7-r1 do_compile: oe_runmake failed
ERROR: hplip-3.18.7-r1 do_compile: Function failed: do_compile (log file is located at /home/tykwon/yocto/build/tmp/work/armv7ahf-vfp-poky-linux-gnueabi/hplip/3.18.7-r1/temp/log.do_compile.21742)
ERROR: Logfile of failure stored in: /home/tykwon/yocto/build/tmp/work/armv7ahf-vfp-poky-linux-gnueabi/hplip/3.18.7-r1/temp/log.do_compile.21742
Log data follows:
| DEBUG: SITE files ['endian-little', 'bit-32', 'arm-common', 'arm-32', 'common-linux', 'common-glibc', 'arm-linux', 'arm-linux-gnueabi', 'common']
| DEBUG: Executing shell function do_compile
| NOTE: make -j 4
| ./arm-poky-linux-gnueabi-libtool --tag=CXX --mode=link arm-poky-linux-gnueabi-g++ -march=armv7-a -marm -mfpu=vfp -mfloat-abi=hard --sysroot=/home/tykwon/yocto/build/tmp/work/armv7ahf-vfp-poky-linux-gnueabi/hplip/3.18.7-r1/recipe-sysroot -DAPDK_LITTLE_ENDIAN -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/tykwon/yocto/build/tmp/work/armv7ahf-vfp-poky-linux-gnueabi/hplip/3.18.7-r1=/usr/src/debug/hplip/3.18.7-r1 -fdebug-prefix-map=/home/tykwon/yocto/build/tmp/work/armv7ahf-vfp-poky-linux-gnueabi/hplip/3.18.7-r1/recipe-sysroot-native= -fdebug-prefix-map=/home/tykwon/yocto/build/tmp/work/armv7ahf-vfp-poky-linux-gnueabi/hplip/3.18.7-r1/recipe-sysroot= -fvisibility-inlines-hidden -DCONFDIR=\"/etc/hp\" -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -o hpcups hpcups-HPCupsFilter.o hpcups-dbuscomm.o hpcups-Compressor.o hpcups-Mode2.o hpcups-Mode3.o hpcups-Mode9.o hpcups-Mode10.o hpcups-ModeDeltaPlus.o hpcups-ModeJbig.o hpcups-ErnieFilter.o hpcups-EncapsulatorFactory.o hpcups-Encapsulator.o hpcups-Pcl3.o hpcups-Pcl3Gui.o hpcups-Pcl3Gui2.o hpcups-LJMono.o hpcups-LJColor.o hpcups-LJFastRaster.o hpcups-LJJetReady.o hpcups-LJZjStream.o hpcups-LJZxStream.o hpcups-Job.o hpcups-Pipeline.o hpcups-Processor.o hpcups-RasterSender.o hpcups-ColorMatcher.o hpcups-Halftoner.o hpcups-Scaler.o hpcups-dj400ColorMaps.o hpcups-dj600ColorMaps.o hpcups-dj970ColorMaps.o hpcups-dj8xxColorMaps.o hpcups-dj4100ColorMaps.o hpcups-BreakTables.o hpcups-Utils.o hpcups-SystemServices.o hpcups-QuickConnect.o hpcups-ModeJpeg.o jccolor.o jdatadbf.o hpcups-Lidil.o hpcups-LidilCompress.o hpcups-dj3320ColorMaps.o hpcups-dj3600ColorMaps.o hpcups-Hbpl1.o utils.o hpcups-Hbpl1_Wrapper.o hpcups-genPCLm.o hpcups-genJPEGStrips.o hpcups-RunLenEncoding.o -L./prnt/hpcups/ -ljpeg -ldl -lImageProcessor -lcups -lcupsimage -lz
| arm-poky-linux-gnueabi-libtool: link: arm-poky-linux-gnueabi-g++ -march=armv7-a -marm -mfpu=vfp -mfloat-abi=hard --sysroot=/home/tykwon/yocto/build/tmp/work/armv7ahf-vfp-poky-linux-gnueabi/hplip/3.18.7-r1/recipe-sysroot -DAPDK_LITTLE_ENDIAN -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/tykwon/yocto/build/tmp/work/armv7ahf-vfp-poky-linux-gnueabi/hplip/3.18.7-r1=/usr/src/debug/hplip/3.18.7-r1 -fdebug-prefix-map=/home/tykwon/yocto/build/tmp/work/armv7ahf-vfp-poky-linux-gnueabi/hplip/3.18.7-r1/recipe-sysroot-native= -fdebug-prefix-map=/home/tykwon/yocto/build/tmp/work/armv7ahf-vfp-poky-linux-gnueabi/hplip/3.18.7-r1/recipe-sysroot= -fvisibility-inlines-hidden -DCONFDIR=\"/etc/hp\" -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -o hpcups hpcups-HPCupsFilter.o hpcups-dbuscomm.o hpcups-Compressor.o hpcups-Mode2.o hpcups-Mode3.o hpcups-Mode9.o hpcups-Mode10.o hpcups-ModeDeltaPlus.o hpcups-ModeJbig.o hpcups-ErnieFilter.o hpcups-EncapsulatorFactory.o hpcups-Encapsulator.o hpcups-Pcl3.o hpcups-Pcl3Gui.o hpcups-Pcl3Gui2.o hpcups-LJMono.o hpcups-LJColor.o hpcups-LJFastRaster.o hpcups-LJJetReady.o hpcups-LJZjStream.o hpcups-LJZxStream.o hpcups-Job.o hpcups-Pipeline.o hpcups-Processor.o hpcups-RasterSender.o hpcups-ColorMatcher.o hpcups-Halftoner.o hpcups-Scaler.o hpcups-dj400ColorMaps.o hpcups-dj600ColorMaps.o hpcups-dj970ColorMaps.o hpcups-dj8xxColorMaps.o hpcups-dj4100ColorMaps.o hpcups-BreakTables.o hpcups-Utils.o hpcups-SystemServices.o hpcups-QuickConnect.o hpcups-ModeJpeg.o jccolor.o jdatadbf.o hpcups-Lidil.o hpcups-LidilCompress.o hpcups-dj3320ColorMaps.o hpcups-dj3600ColorMaps.o hpcups-Hbpl1.o utils.o hpcups-Hbpl1_Wrapper.o hpcups-genPCLm.o hpcups-genJPEGStrips.o hpcups-RunLenEncoding.o -L./prnt/hpcups/ -ljpeg -ldl -lImageProcessor -lcups -lcupsimage -lz
| ./prnt/hpcups//libImageProcessor.so: file not recognized: File format not recognized
| collect2: error: ld returned 1 exit status
| Makefile:4699: 'hpcups' 타겟에 대한 명령이 실패했습니다
| make: *** [hpcups] 오류 1
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /home/tykwon/yocto/build/tmp/work/armv7ahf-vfp-poky-linux-gnueabi/hplip/3.18.7-r1/temp/log.do_compile.21742)
ERROR: Task (/home/tykwon/yocto/poky/meta-openembedded/meta-oe/recipes-extended/hplip/hplip_3.18.7.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 1663 tasks of which 1662 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /home/tykwon/yocto/poky/meta-openembedded/meta-oe/recipes-extended/hplip/hplip_3.18.7.bb:do_compile
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
tykwon:~$

I am cross-compiling.(arm)
I have verified that libImageProcessor.so is for x86-64.
So it seems that an error occurred.

tykwon:hplip-3.18.7$ pwd
/home/tykwon/yocto/build/tmp/work/armv7ahf-vfp-poky-linux-gnueabi/hplip/3.18.7-r1/hplip-3.18.7
tykwon:hplip-3.18.7$
tykwon:hplip-3.18.7$ ls -al prnt/hpcups/libImageProcessor*
-rw-r--r-- 1 tykwon tykwon 1791260 7월 16 05:08 prnt/hpcups/libImageProcessor-x86_32.so
-rw-r--r-- 1 tykwon tykwon 4646308 7월 16 05:08 prnt/hpcups/libImageProcessor-x86_64.so
lrwxrwxrwx 1 tykwon tykwon 27 8월 2 12:17 prnt/hpcups/libImageProcessor.so -> libImageProcessor-x86_64.so
tykwon:hplip-3.18.7$
tykwon:hplip-3.18.7$ file prnt/hpcups/libImageProcessor-x86_64.so
prnt/hpcups/libImageProcessor-x86_64.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, stripped
tykwon:hplip-3.18.7$

I'm sorry I do not have enough English.

Regards
Kwon

Revision history for this message
Tae-Young Kwon (xoduddk123) wrote :
Revision history for this message
Tae-Young Kwon (xoduddk123) wrote :
description: updated
summary: - 3.18.7: compilation error occurs (libImageProcessor.so)
+ 3.18.7: compile error occurs (libImageProcessor.so)
Revision history for this message
srinivas (srinivas5) wrote :

Hi,

We don't support HPLIP driver as Yocto. We have not currently integrated libImageProcessor.so for arm in HPLIP 3.18.7 driver needed by CDS feature. Hence you are seeing this issue.
You can try using HPLIP 3.18.6 which does not have CDS feature.

Regards,
Srinivas Teja.

srinivas (srinivas5)
Changed in hplip:
status: New → In Progress
Revision history for this message
Joe Van Dyk (joevandyk) wrote :

Are there any plans to support arm in the hplip?

3.18.6 was the last one that compiled on a raspberry pi.

I don't know what CDS is.. and not sure if I need it.

wukh (kaihua0312)
Changed in hplip:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.