Difference between revisions of "Building"

From Syslinux Wiki
Jump to: navigation, search
m (Patch to deal with glibc 2.23, major, minor, makedev functions.)
m (Syslinux 6.03 with gcc5+. Wiki formatting.)
Line 1: Line 1:
* NASM 2.11.06 has a bug which prevents Syslinux from building <!--  
+
* '''NASM 2.11.06''' has a bug which prevents Syslinux from building <!--  
 
   --> correctly. Use other version of NASM <!--  
 
   --> correctly. Use other version of NASM <!--  
 
   --> (e.g. 2.11.05, 2.11.08, among others).
 
   --> (e.g. 2.11.05, 2.11.08, among others).
* binutils 2.26, as originally released upstream, has a <!--  
+
* '''binutils 2.26''', as originally released upstream, has a <!--  
 
   --> [https://sourceware.org/bugzilla/show_bug.cgi?id=19538 bug] <!--  
 
   --> [https://sourceware.org/bugzilla/show_bug.cgi?id=19538 bug] <!--  
 
   --> preventing Syslinux from building correctly. The bug in <!--  
 
   --> preventing Syslinux from building correctly. The bug in <!--  
 
   --> bintuils 2.26 was resolved in a later commit.
 
   --> bintuils 2.26 was resolved in a later commit.
 
+
* When building with '''glibc 2.23+''', the "major", "minor" and "makedev" <!--  
* When building with glibc 2.23+, the "major", "minor" and "makedev" <!--  
+
 
   --> functions are defined in {{nowrap|"<tt>sys/sysmacros.h</tt>"}}. <!--  
 
   --> functions are defined in {{nowrap|"<tt>sys/sysmacros.h</tt>"}}. <!--  
 
   --> The patch <!--  
 
   --> The patch <!--  
Line 13: Line 12:
 
   --> applied to Syslinux during 2016Apr, should help.  <!--  
 
   --> applied to Syslinux during 2016Apr, should help.  <!--  
 
   --> Please note that not only Syslinux is affected by this change in glibc.
 
   --> Please note that not only Syslinux is affected by this change in glibc.
 +
* Building Syslinux 6.03 with '''gcc5+''':
 +
** [http://repo.or.cz/syslinux.git/patch/e5f2b577ded109291c9632dacb6eaa621d8a59fe?hp=8dc6d758b564a1ccc44c3ae11f265d43628219ce gcc fix alignment]
 +
** [http://repo.or.cz/syslinux.git/patch/0cc9a99e560a2f52bcf052fd85b1efae35ee812f?hp=e5f2b577ded109291c9632dacb6eaa621d8a59fe don't guess sections' alignment]
  
 
== See also ==
 
== See also ==

Revision as of 17:41, 25 April 2016

  • 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.
  • 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.
  • Building Syslinux 6.03 with gcc5+:

See also