Opened 5 years ago

Last modified 4 years ago

#13233 new defect

package/toolchain: LIBGCC_A, LIBGCC_MAP wildcards are too general, break build after toolchain upgrade

Reported by: malte.forkel@… Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Trunk
Keywords: Cc:


After updating the buildroot to r36111, I encountered a problem very similar to the one reported in #12798: The calls to cp in Package/libc/install_lib of package/toolchain/Makefile failed because LIBGCC_A and LIBGCC_MAP matched more than one file.

In r35144, the definition of LIBGCC_A in is fixed to assigning only the last match. But both LIBGCC_A and LIBGCC_MAP are (re)defined in toolchain's Makefile:

LIBGCC_A=$(wildcard $(TOOLCHAIN_DIR)/lib/gcc/*/*/libgcc_pic.a)
LIBGCC_MAP=$(wildcard $(TOOLCHAIN_DIR)/lib/gcc/*/*/

Because LIGBCC_MAP is tested in the makefile, just matching any version seemed wrong to me. So my fix was

LIBGCC_A=$(wildcard $(TOOLCHAIN_DIR)/lib/gcc/*/$(LIBGCC_VERSION)/libgcc_pic.a)

That worked for me.

Attachments (0)

Change History (1)

comment:1 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

as new .

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

Note: See TracTickets for help on using tickets.