Difference between revisions of "Building"

From Syslinux Wiki
Jump to: navigation, search
m (Re-order (sort). Wiki formatting.)
m (The "Not enough room for program headers" issue is not expected to affect 6.04-pre1+.)
Line 4: Line 4:
 
   -->  Seen with '''binutils 2.27+'''. <!--  
 
   -->  Seen with '''binutils 2.27+'''. <!--  
 
   -->  There might be other / better solutions / work-around methods. <!--  
 
   -->  There might be other / better solutions / work-around methods. <!--  
  -->  [[Contact|Feedback]] is appreciated. <!--
 
 
   --><!--  
 
   --><!--  
 
   --><!-- References:
 
   --><!-- References:
Line 10: Line 9:
 
   --><!--  http://bugs.debian.org/846679#10  
 
   --><!--  http://bugs.debian.org/846679#10  
 
   --><!--  http://www.syslinux.org/archives/2017-April/025748.html "Cross-compilation patches" (Benoît Allard (irc: benallard))  
 
   --><!--  http://www.syslinux.org/archives/2017-April/025748.html "Cross-compilation patches" (Benoît Allard (irc: benallard))  
 +
  --><!--
 +
  -->  <p>  Note: 6.04-pre1+ should not be affected by this issue. </p>  <!--
 +
  --><!--
 +
  --><!-- References:
 +
  --><!--  http://www.syslinux.org/archives/2017-October/025948.html "Patches from Debian" (Lukas Schwaighofer (irc: lus))
 +
  --><!--
 +
  -->  <p>  [[Contact|Feedback]] is appreciated. </p>  <!--
 
   --><!-- -->
 
   --><!-- -->
 
<!--  -->
 
<!--  -->

Revision as of 16:57, 25 October 2017

  • If getting "Not enough room for program headers", try adding '--no-dynamic-linker' to the linker command line(s). Seen with binutils 2.27+. There might be other / better solutions / work-around methods.

    Note: 6.04-pre1+ should not be affected by this issue.

    Feedback is appreciated.

  • When building with glibc 2.23+, the "major", "minor" and "makedev" functions are defined in "sys/sysmacros.h". The patch "extlinux: pull in sys/sysmacros.h for major/minor/makedev", applied to Syslinux during 2016Apr, should help. Please note that not only Syslinux is affected by this change in glibc.


Patches already included in Syslinux 6.04-pre1 (released 2016Mar):

Other

  • NASM 2.11.06 has a bug which prevents Syslinux from building correctly. Use other version of NASM (e.g. 2.11.05, 2.11.08+, among others).
  • binutils 2.26, as originally released upstream, has a bug preventing Syslinux from building correctly. The bug in bintuils 2.26 was resolved in a later commit.
  • "error: impossible constraint in asm". When gcc5+ is configured with --enable-default-pie, in some cases there might be a need to use custom flags in some makefile(s), similar to either "CFLAGS += -fno-pie" or "CFLAGS := -fno-pie". Examples:


See also