Modify

Opened 3 years ago

Closed 3 years ago

#19592 closed defect (fixed)

compilation issues with gcc 5.1

Reported by: anonymous Owned by: developers
Priority: normal Milestone:
Component: packages Version: Trunk
Keywords: Cc:

Description

I'm building the latest trunk with GCC 5.1.0 and I experience the following compilation issues:

  • uboot (needed by mkimage) doesn't compile because it's looking for a header that doesn't exist (linux/compiler-gcc5.h)
  • ncurses doesn't compile because "The preprocessor started to emit line markers to properly distinguish whether a macro token comes from a system header, or from a normal header" (see https://gcc.gnu.org/gcc-5/porting_to.html)

I attach two patches that worked for me even though I don't know if they are the best way to solve those issues.

Attachments (2)

patch-1 (3.7 KB) - added by anonymous 3 years ago.
uboot patch for gcc5 (http://lists.denx.de/pipermail/u-boot/2015-February/204332.html)
patch-2 (504 bytes) - added by anonymous 3 years ago.
ncurses patch for GCC 5 (add -P preprocessor option)

Download all attachments as: .zip

Change History (12)

Changed 3 years ago by anonymous

Changed 3 years ago by anonymous

ncurses patch for GCC 5 (add -P preprocessor option)

comment:1 Changed 3 years ago by zloop

a patch for the first issue was already submitted to mailing list in April:
https://lists.openwrt.org/pipermail/openwrt-devel/2015-April/032713.html

comment:2 Changed 3 years ago by zloop

comment:3 Changed 3 years ago by anonymous

I agree, however to send to the mailing list I had to subscribe, send the patch, unsubscribe and I didn't have time for this.

Thank you for bringing to my attention that the first patch was already submitted. Unfortunately it wasn't applied. I wonder if sending it again to the mailing list would have helped at all.

comment:4 Changed 3 years ago by jbennett@…

Would be best to fix this before Fedora 22 is fully released on May 19th, as it ships GCC 5, and fails compiling without patches.

~Jonathan Bennett
JBennett@…

comment:5 Changed 3 years ago by anonymous

After applying the patches for me build is being done with the toolchain gcc 4.9 (instead of using the host libraries), it was using host exactly before applying them with the same .config. How do you force GCC 5?

comment:6 Changed 3 years ago by anonymous

This should be fixed now

comment:7 Changed 3 years ago by anonymous

After applying ncurses patch for GCC 5, kernel will not boot on mvebu mamba.

comment:9 Changed 3 years ago by hauke

closed duplicate #19720

comment:10 Changed 3 years ago by hauke

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

fixed in r45878.

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.