Modify

Opened 7 years ago

Closed 6 years ago

#8897 closed defect (fixed)

Seems like lcd4linux r1143 got broken.

Reported by: Levon Avagyan <levon.avagyan@…> Owned by: developers
Priority: normal Milestone: Backfire 10.03.1
Component: packages Version: Trunk
Keywords: lcd4linux Cc:

Description

make[1]: Entering directory `/home/levi/OpenWrt/backfire'
make[2]: Entering directory `/home/levi/OpenWrt/backfire/feeds/packages/libs/gettext'
WARNING: skipping libintl -- package not selected
make[2]: Leaving directory `/home/levi/OpenWrt/backfire/feeds/packages/libs/gettext'
make[2]: Entering directory `/home/levi/OpenWrt/backfire/package/linux-atm'
WARNING: skipping linux-atm -- package not selected
WARNING: skipping atm-tools -- package not selected
make[2]: Leaving directory `/home/levi/OpenWrt/backfire/package/linux-atm'
make[2]: Entering directory `/home/levi/OpenWrt/backfire/package/libpcap'
make[2]: Leaving directory `/home/levi/OpenWrt/backfire/package/libpcap'
make[2]: Entering directory `/home/levi/OpenWrt/backfire/package/ppp'
WARNING: skipping ppp-mod-pppoa -- package not selected
WARNING: skipping ppp-mod-radius -- package not selected
WARNING: skipping chat -- package not selected
WARNING: skipping pppdump -- package not selected
WARNING: skipping pppstats -- package not selected
make[2]: Leaving directory `/home/levi/OpenWrt/backfire/package/ppp'
make[2]: Entering directory `/home/levi/OpenWrt/backfire/feeds/packages/libs/libiconv'
WARNING: skipping libiconv -- package not selected
make[2]: Leaving directory `/home/levi/OpenWrt/backfire/feeds/packages/libs/libiconv'
make[2]: Entering directory `/home/levi/OpenWrt/backfire/package/libtool'
make[2]: Leaving directory `/home/levi/OpenWrt/backfire/package/libtool'
make[2]: Entering directory `/home/levi/OpenWrt/backfire/package/libtool'
make[2]: Leaving directory `/home/levi/OpenWrt/backfire/package/libtool'
make[2]: Entering directory `/home/levi/OpenWrt/backfire/feeds/packages/libs/libusb'
make[2]: Leaving directory `/home/levi/OpenWrt/backfire/feeds/packages/libs/libusb'
make[2]: Entering directory `/home/levi/OpenWrt/backfire/feeds/packages/utils/lcd4linux'
CFLAGS="-Os -pipe -mips32r2 -mtune=mips32r2 -funit-at-a-time -fhonour-copts -msoft-float -I/home/levi/OpenWrt/backfire/staging_dir/target-mips_r2_uClibc-0.9.30.1/usr/lib/libiconv-stub/include -I/home/levi/OpenWrt/backfire/staging_dir/target-mips_r2_uClibc-0.9.30.1/usr/lib/libintl-stub/include  -I/home/levi/OpenWrt/backfire/staging_dir/target-mips_r2_uClibc-0.9.30.1/usr/include -I/home/levi/OpenWrt/backfire/staging_dir/target-mips_r2_uClibc-0.9.30.1/include -I/home/levi/OpenWrt/backfire/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/include -I/home/levi/OpenWrt/backfire/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/include -I/home/levi/OpenWrt/backfire/staging_dir/target-mips_r2_uClibc-0.9.30.1/usr/lib/libiconv-stub/include -I/home/levi/OpenWrt/backfire/staging_dir/target-mips_r2_uClibc-0.9.30.1/usr/lib/libintl-stub/include " CXXFLAGS="-Os -pipe -mips32r2 -mtune=mips32r2 -funit-at-a-time -fhonour-copts -msoft-float -I/home/levi/OpenWrt/backfire/staging_dir/target-mips_r2_uClibc-0.9.30.1/usr/lib/libiconv-stub/include -I/home/levi/OpenWrt/backfire/staging_dir/target-mips_r2_uClibc-0.9.30.1/usr/lib/libintl-stub/include  -I/home/levi/OpenWrt/backfire/staging_dir/target-mips_r2_uClibc-0.9.30.1/usr/include -I/home/levi/OpenWrt/backfire/staging_dir/target-mips_r2_uClibc-0.9.30.1/include -I/home/levi/OpenWrt/backfire/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/include -I/home/levi/OpenWrt/backfire/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/include -I/home/levi/OpenWrt/backfire/staging_dir/target-mips_r2_uClibc-0.9.30.1/usr/lib/libiconv-stub/include -I/home/levi/OpenWrt/backfire/staging_dir/target-mips_r2_uClibc-0.9.30.1/usr/lib/libintl-stub/include " LDFLAGS="-L/home/levi/OpenWrt/backfire/staging_dir/target-mips_r2_uClibc-0.9.30.1/usr/lib -L/home/levi/OpenWrt/backfire/staging_dir/target-mips_r2_uClibc-0.9.30.1/lib -L/home/levi/OpenWrt/backfire/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/lib -L/home/levi/OpenWrt/backfire/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/lib -L/home/levi/OpenWrt/backfire/staging_dir/target-mips_r2_uClibc-0.9.30.1/usr/lib/libiconv-stub/lib -L/home/levi/OpenWrt/backfire/staging_dir/target-mips_r2_uClibc-0.9.30.1/usr/lib/libintl-stub/lib -Wl,-rpath-link,/home/levi/OpenWrt/backfire/staging_dir/target-mips_r2_uClibc-0.9.30.1/usr/lib" make -C /home/levi/OpenWrt/backfire/build_dir/target-mips_r2_uClibc-0.9.30.1/lcd4linux-r1143/. AR=mips-openwrt-linux-uclibc-ar AS="mips-openwrt-linux-uclibc-gcc -c -Os -pipe -mips32r2 -mtune=mips32r2 -funit-at-a-time -fhonour-copts -msoft-float -I/home/levi/OpenWrt/backfire/staging_dir/target-mips_r2_uClibc-0.9.30.1/usr/lib/libiconv-stub/include -I/home/levi/OpenWrt/backfire/staging_dir/target-mips_r2_uClibc-0.9.30.1/usr/lib/libintl-stub/include" LD=mips-openwrt-linux-uclibc-ld NM=mips-openwrt-linux-uclibc-nm CC="mips-openwrt-linux-uclibc-gcc" GCC="mips-openwrt-linux-uclibc-gcc" CXX="mips-openwrt-linux-uclibc-g++" RANLIB=mips-openwrt-linux-uclibc-ranlib STRIP=mips-openwrt-linux-uclibc-strip OBJCOPY=mips-openwrt-linux-uclibc-objcopy OBJDUMP=mips-openwrt-linux-uclibc-objdump SIZE=mips-openwrt-linux-uclibc-size CROSS="mips-openwrt-linux-uclibc-" ARCH="mips" ;
make[3]: Entering directory `/home/levi/OpenWrt/backfire/build_dir/target-mips_r2_uClibc-0.9.30.1/lcd4linux-r1143'
make  all-am
make[4]: Entering directory `/home/levi/OpenWrt/backfire/build_dir/target-mips_r2_uClibc-0.9.30.1/lcd4linux-r1143'
libtool --tag=CC   --mode=link mips-openwrt-linux-uclibc-gcc -D_GNU_SOURCE -Wall -Wextra -fno-strict-aliasing -Os -pipe -mips32r2 -mtune=mips32r2 -funit-at-a-time -fhonour-copts -msoft-float -I/home/levi/OpenWrt/backfire/staging_dir/target-mips_r2_uClibc-0.9.30.1/usr/lib/libiconv-stub/include -I/home/levi/OpenWrt/backfire/staging_dir/target-mips_r2_uClibc-0.9.30.1/usr/lib/libintl-stub/include   -L/home/levi/OpenWrt/backfire/staging_dir/target-mips_r2_uClibc-0.9.30.1/usr/lib -L/home/levi/OpenWrt/backfire/staging_dir/target-mips_r2_uClibc-0.9.30.1/lib -L/home/levi/OpenWrt/backfire/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/lib -L/home/levi/OpenWrt/backfire/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/lib -L/home/levi/OpenWrt/backfire/staging_dir/target-mips_r2_uClibc-0.9.30.1/usr/lib/libiconv-stub/lib -L/home/levi/OpenWrt/backfire/staging_dir/target-mips_r2_uClibc-0.9.30.1/usr/lib/libintl-stub/lib -Wl,-rpath-link,/home/levi/OpenWrt/backfire/staging_dir/target-mips_r2_uClibc-0.9.30.1/usr/lib -o lcd4linux lcd4linux.o cfg.o debug.o drv.o drv_generic.o evaluator.o property.o hash.o layout.o pid.o timer.o timer_group.o thread.o udelay.o qprintf.o rgb.o event.o widget.o widget_text.o widget_bar.o widget_icon.o widget_keypad.o widget_timer.o widget_gpo.o plugin.o plugin_cfg.o plugin_math.o plugin_string.o plugin_test.o plugin_time.o drv_LCD2USB.o drv_generic_text.o drv_generic_serial.o drv_generic_keypad.o  plugin_cpuinfo.o plugin_loadavg.o plugin_netdev.o plugin_netinfo.o plugin_uptime.o  -lusb  -lm 
mips-openwrt-linux-uclibc-gcc -D_GNU_SOURCE -Wall -Wextra -fno-strict-aliasing -Os -pipe -mips32r2 -mtune=mips32r2 -funit-at-a-time -fhonour-copts -msoft-float -I/home/levi/OpenWrt/backfire/staging_dir/target-mips_r2_uClibc-0.9.30.1/usr/lib/libiconv-stub/include -I/home/levi/OpenWrt/backfire/staging_dir/target-mips_r2_uClibc-0.9.30.1/usr/lib/libintl-stub/include -Wl,-rpath-link -Wl,/home/levi/OpenWrt/backfire/staging_dir/target-mips_r2_uClibc-0.9.30.1/usr/lib -o lcd4linux lcd4linux.o cfg.o debug.o drv.o drv_generic.o evaluator.o property.o hash.o layout.o pid.o timer.o timer_group.o thread.o udelay.o qprintf.o rgb.o event.o widget.o widget_text.o widget_bar.o widget_icon.o widget_keypad.o widget_timer.o widget_gpo.o plugin.o plugin_cfg.o plugin_math.o plugin_string.o plugin_test.o plugin_time.o drv_LCD2USB.o drv_generic_text.o drv_generic_serial.o drv_generic_keypad.o plugin_cpuinfo.o plugin_loadavg.o plugin_netdev.o plugin_netinfo.o plugin_uptime.o  -L/home/levi/OpenWrt/backfire/staging_dir/target-mips_r2_uClibc-0.9.30.1/usr/lib -L/home/levi/OpenWrt/backfire/staging_dir/target-mips_r2_uClibc-0.9.30.1/lib -L/home/levi/OpenWrt/backfire/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/lib -L/home/levi/OpenWrt/backfire/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/lib -L/home/levi/OpenWrt/backfire/staging_dir/target-mips_r2_uClibc-0.9.30.1/usr/lib/libiconv-stub/lib -L/home/levi/OpenWrt/backfire/staging_dir/target-mips_r2_uClibc-0.9.30.1/usr/lib/libintl-stub/lib /home/levi/OpenWrt/backfire/staging_dir/target-mips_r2_uClibc-0.9.30.1/usr/lib/libusb.so -lm  
plugin_netinfo.o: In function `my_netmask_short':
plugin_netinfo.c:(.text+0x74c): undefined reference to `log2l'
collect2: ld returned 1 exit status
make[4]: *** [lcd4linux] Error 1
make[4]: Leaving directory `/home/levi/OpenWrt/backfire/build_dir/target-mips_r2_uClibc-0.9.30.1/lcd4linux-r1143'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/levi/OpenWrt/backfire/build_dir/target-mips_r2_uClibc-0.9.30.1/lcd4linux-r1143'
make[2]: *** [/home/levi/OpenWrt/backfire/build_dir/target-mips_r2_uClibc-0.9.30.1/lcd4linux-r1143/.built] Error 2
make[2]: Leaving directory `/home/levi/OpenWrt/backfire/feeds/packages/utils/lcd4linux'
make[1]: *** [package/feeds/packages/lcd4linux/compile] Error 2
make[1]: Leaving directory `/home/levi/OpenWrt/backfire'
make: *** [package/feeds/packages/lcd4linux/compile] Error 2

.config.in contains:

CONFIG_PACKAGE_lcd4linux=m
CONFIG_LCD4LINUX_HAS_AT_LEAST_ONE_DRIVER=y
CONFIG_LCD4LINUX_HAS_AT_LEAST_ONE_PLUGIN=y
CONFIG_LCD4LINUX_NEEDS_libusb=y
CONFIG_LCD4LINUX_DRV_LCD2USB=y
CONFIG_LCD4LINUX_PLUGIN_cpuinfo=y
CONFIG_LCD4LINUX_PLUGIN_loadavg=y
CONFIG_LCD4LINUX_PLUGIN_netdev=y
CONFIG_LCD4LINUX_PLUGIN_netinfo=y
CONFIG_LCD4LINUX_PLUGIN_uptime=y

Attachments (2)

build.log.bz2 (385.9 KB) - added by Levon Avagyan <levon.avagyan@…> 7 years ago.
170-log2f.patch (546 bytes) - added by anonymous 6 years ago.
fix lcd4linux compile patch

Download all attachments as: .zip

Change History (15)

comment:1 in reply to: ↑ description Changed 7 years ago by Levon Avagyan <levon.avagyan@…>

UPD:

r1116 compiles just fine.

comment:2 Changed 7 years ago by Levon Avagyan <levon.avagyan@…>

Any news?

Maybe I'll need to clarify myself? Previously given r1116 and r1143 revisions are in versions of lcd4linux's svn.
In openwrt's svn numbers are: r25319 IS working and r25581 IS NOT working.

Thank You.

comment:3 Changed 7 years ago by jmccrohan@…

Hi,

I submitted this patch.

I'm not sure what is causing this error. The patch simply updates the lcd4linux revision from r1116 to r1143, and nothing else.

The patch compiled without errors for an x86 target, which is all I had to had at the time.

Here is the function is question that is causing problems.
http://ssl.bulix.org/projects/lcd4linux/browser/trunk/plugin_netinfo.c

It appears that math.h is not being linked against, but the -lm argument appears to be passed.

Jon

comment:4 Changed 7 years ago by jmccrohan@…

This seems to be resolved.

No errors were encountered with x86 or brcm47xx on trunk rev 26261.

comment:5 Changed 7 years ago by Levon Avagyan <levon.avagyan@…>

I've rechecked once more time.
What I did from build directory was:

  1. make distclean
  2. svn up
  3. ./scripts/feeds update/install -a
  4. make defconfig
  5. make menuconfig > checked Target System as ar71xx and Target Profile as ubiquity RSPRO
  6. checked package lcd4linux as module
  7. make -j 3

And You are right it IS compiling well.
BUT if I am going deeper and customizing lcd4linux as follows (repeating all previous steps from 1-5):

  1. checked package lcd4linux as module
    1. selecting LCD2USB as driver and removing NULL
    2. remove meminfo as plugin
    3. selecting netdev and netinfo

It FAILS!
Attaching complete build log, it is about 9Mb uncompressed.

Changed 7 years ago by Levon Avagyan <levon.avagyan@…>

comment:6 follow-up: Changed 7 years ago by anonymous

Ah. I see what you mean.

Is this bug exclusive to ar71xx then?

comment:7 in reply to: ↑ 6 Changed 7 years ago by Levon Avagyan <levon.avagyan@…>

Replying to anonymous:

Ah. I see what you mean.

Is this bug exclusive to ar71xx then?

I think netinfo is making troubles, not sure, will test more tomorrow.

Anyway than You for attention!

comment:8 Changed 6 years ago by anonymous

still broken, because uclibc libm doesn't seem to have log2l. but uclibc does have log2f. seemed to fix the compile.
-matt

comment:9 Changed 6 years ago by jmccrohan

Hi Matt,

Thanks for the clarification. Do you have a patch for the fix?
Is the fix to simply cast a long as a float and pass it to log2f?

Thanks,
Jon

Changed 6 years ago by anonymous

fix lcd4linux compile patch

comment:10 Changed 6 years ago by jmccrohan

This patch has been committed in r28313.
Thanks.

comment:11 Changed 6 years ago by anonymous

This is still not fixed since long time:

The SVN/GIT-Download is still not wokring per default. On the other Hand, on the Openwrt-Download-Server there is no actual file for alternative download, so this is the result:

--2011-09-28 11:53:06--  http://mirror2.openwrt.org/sources/lcd4linux-r1159.tar.bz2
Resolving mirror2.openwrt.org... 46.4.11.11
Connecting to mirror2.openwrt.org|46.4.11.11|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2011-09-28 11:53:06 ERROR 404: Not Found.

Download failed.
--2011-09-28 11:53:06--  http://downloads.openwrt.org/sources/lcd4linux-r1159.tar.bz2
Resolving downloads.openwrt.org... 78.24.191.177
Connecting to downloads.openwrt.org|78.24.191.177|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2011-09-28 11:53:07 ERROR 404: Not Found.

Download failed.
No more mirrors to try - giving up.
Checking out files from the svn repository...
svn: OPTIONS of 'https://ssl.bulix.org/svn/lcd4linux/trunk': Server certificate verification failed: certificate has expired (https://ssl.bulix.org)
svn: OPTIONS of 'https://ssl.bulix.org/svn/lcd4linux/trunk': Server certificate verification failed: certificate has expired (https://ssl.bulix.org)
make[3]: *** [/home/openwrt/orion-trunk-3.0.3-cardserver/dl/lcd4linux-r1159.tar.bz2] Error 1
make[3]: Leaving directory `/home/openwrt/orion-trunk-3.0.3-cardserver/feeds/packages/utils/lcd4linux'
make[2]: *** [package/feeds/packages/lcd4linux/compile] Error 2
make[2]: Leaving directory `/home/openwrt/orion-trunk-3.0.3-cardserver'
make[1]: *** [/home/openwrt/orion-trunk-3.0.3-cardserver/staging_dir/target-arm_v5te_uClibc-0.9.32_eabi/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/openwrt/orion-trunk-3.0.3-cardserver'
make: *** [world] Error 2
openwrt@develope:~/orion-trunk-3.0.3-cardserver$

Please fix the Problem with not existing sourcecode on openwrt downloaderver or ignore the ssl error from developers server as default setting ;-)

comment:12 Changed 6 years ago by jmccrohan

The SSL certificate has expired on the Upstream SVN server.
The new package was only committed to trunk last night, and as such has not been uploaded to the download servers yet.

Check out the repo manually and SVN will provide you with an option to permanently ignore SSL errors from ssl.bulix.org.

comment:13 Changed 6 years ago by nico

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in [28452] on backfire, thanks!

Also, lcd4linux-r1159.tar.bz2 was uploaded to http://downloads.openwrt.org/sources/

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.