Modify

Opened 2 years ago

Last modified 21 months ago

#21755 reopened defect

Problem on compiling wxbase library on trunk, MVEBU platform

Reported by: matthew_eli Owned by: developers
Priority: normal Milestone: Designated Driver (Trunk)
Component: packages Version: Trunk
Keywords: musl wxbase amule compile trunk Cc:

Description

When I was trying to compile aMule for the trunk version of OpenWRT, I faced the following error regarding wxBase library:

./include/wx/debug.h:233:38: note: in expansion of macro 'wxCHECK2_MSG'
 #define wxCHECK_RET(cond, msg)       wxCHECK2_MSG(cond, return, msg)
                                      ^
./include/wx/module.h:71:9: note: in expansion of macro 'wxCHECK_RET'
         wxCHECK_RET( dep, wxT("NULL module dependency") );
         ^
/home/matteo/openwrt/staging_dir/toolchain-arm_cortex-a9+vfpv3_gcc-5.2.0_musl-1.1.12_eabi/lib/gcc/arm-openwrt-linux-muslgnueabi/5.2.0/../../../../arm-openwrt-linux-muslgnueabi/lib/crt1.o: In function `_start_c':
/home/matteo/openwrt/build_dir/toolchain-arm_cortex-a9+vfpv3_gcc-5.2.0_musl-1.1.12_eabi/musl-1.1.12/crt/crt1.c:17: undefined reference to `main'
collect2: error: ld returned 1 exit status
make[3]: *** [.pch/wxprec_basedll/wx/wxprec.h.gch] Error 1
make[3]: Leaving directory `/home/matteo/openwrt/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.12_eabi/wxGTK-2.8.12'
make[2]: *** [/home/matteo/openwrt/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.12_eabi/wxGTK-2.8.12/.built] Error 2
make[2]: Leaving directory `/home/matteo/openwrt/feeds/oldpackages/libs/wxbase'
make[1]: *** [package/feeds/oldpackages/wxbase/compile] Error 2
make[1]: Leaving directory `/home/matteo/openwrt'
make: *** [package/amule/compile] Errore 2

I think this could be related to MUSL toolchain; already discussed in the forum:
https://forum.openwrt.org/viewtopic.php?id=62342

Attachments (2)

patch-wxbase.patch (425 bytes) - added by Tki2k 21 months ago.
wxbase patch for trunk dd
Makefile (3.3 KB) - added by Tki2k 21 months ago.
Makefile for wxbase - trunk dd

Download all attachments as: .zip

Change History (4)

comment:1 Changed 2 years ago by nbd

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

packages from the oldpackages repo are unmaintained. no changes will be made to them until they are fixed and submitted to github.

Changed 21 months ago by Tki2k

wxbase patch for trunk dd

Changed 21 months ago by Tki2k

Makefile for wxbase - trunk dd

comment:2 Changed 21 months ago by Tki2k

  • Resolution wontfix deleted
  • Status changed from closed to reopened

Made wxbase compile again on trunk dd.
Amule compiles aswell.

Please, someone apply the patch and move them both to github.

I have posted the patch, and the complete Makefile.

Add Comment

Modify Ticket

Action
as reopened .
Author


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

 
Note: See TracTickets for help on using tickets.