From: Heiko Z. <he...@zu...> - 2014-12-10 13:48:00
|
Andrzej, I don't recall, but is it possible that I actually removed the "--fatal-warnings" from the patch? Can you compare with the original version from the LFS website? I don't think it makes sense to modify every package. Actually the right approach would be to find/create patches that will correct the compiler warnings and replace the less secure code. But that's a lot of work... Heiko Quoting Andrzej Odyniec <an...@ma...>: > Dear All, > > After several attempts with different combinations, it appears that at the > beginning I will build D-L with kernel 3.14 using gcc-4.5.3. And here I need > your opinion please. > > Fpie-1 patch to 4.4.5 contains the default setting -no-fatal-warning and the > same lfs patch to 4.5.3 no longer provides the default setting for this > option(s). So compilation (linking) stops on tmpnam, mktemp or > textrel warnings. > > What would you have suggested: Setting the option -no-fatal-warnings or > --no-warn-shared-textrel in every script, which will crash gcc-4.5.3 > compilation patched using existing lfs patches or doing myself a patch to the > default setting of these options, as it was with gcc-4.4.5? > > Regards > > Andrzej Odyniec > > > Serge Leschinsky wrote: >> Hi Andrzej, >> >> works for me, x86_64 only. >> >> > GNU C Library (GNU libc) stable release version 2.19, by Roland >> McGrath et al. >> ... >> > Compiled by GNU CC version 4.8.3. >> > Compiled on a Linux 3.14.17 system on 2014-08-15. >> >> >> aufs has the following structure: >> >> root:/data/build/tmp/aufs# ls -1 ../aufs/ >> aufs-util >> aufs3-standalone >> >> >> scripts: >> >> scripts/prepare >> ... >> build ) >> ... >> if [ "$CONFIG_ETCFS" = "AUFS" ]; then >> echo "Patching AUFS" >> if [ ! -f $KERNELDIR/.done_aufs_patch ]; then >> AUFSDIR=$(find_src_dir aufs) >> patch -d $KERNELDIR -p1 -i >> ${AUFSDIR}/aufs3-standalone/aufs3-kbuild.patch || exit 1 >> patch -d $KERNELDIR -p1 -i >> ${AUFSDIR}/aufs3-standalone/aufs3-base.patch || exit 1 >> patch -d $KERNELDIR -p1 -i >> ${AUFSDIR}/aufs3-standalone/aufs3-mmap.patch || exit 1 >> patch -d $KERNELDIR -p1 -i >> ${AUFSDIR}/aufs3-standalone/aufs3-standalone.patch || exit 1 >> rm -f ${AUFSDIR}/aufs3-standalone/include/linux/Kbuild >> rm -f ${AUFSDIR}/aufs3-standalone/include/uapi/linux/Kbuild >> cp -dpvR >> ${AUFSDIR}/aufs3-standalone/{fs,Documentation,include} >> $KERNELDIR/ || exit 1 >> touch $KERNELDIR/.done_aufs_patch >> fi >> >> set_kernel_option CONFIG_AUFS_FS m >> set_kernel_option CONFIG_AUFS_HINOTIFY n >> set_kernel_option CONFIG_AUFS_HNOTIFY y >> set_kernel_option CONFIG_AUFS_BRANCH_MAX_127 y >> set_kernel_option CONFIG_AUFS_BRANCH_MAX_511 n >> set_kernel_option CONFIG_AUFS_BRANCH_MAX_1023 n >> set_kernel_option CONFIG_AUFS_BRANCH_MAX_32767 n >> set_kernel_option CONFIG_AUFS_SBILIST y >> set_kernel_option CONFIG_AUFS_EXPORT n >> set_kernel_option CONFIG_AUFS_BR_RAMFS n >> set_kernel_option CONFIG_AUFS_SHWH n >> set_kernel_option CONFIG_AUFS_RDU n >> set_kernel_option CONFIG_AUFS_PROC_MAP n >> set_kernel_option CONFIG_AUFS_SP_IATTR n >> set_kernel_option CONFIG_AUFS_SHWH n >> set_kernel_option CONFIG_AUFS_BR_RAMFS n >> set_kernel_option CONFIG_AUFS_DEBUG n >> set_kernel_option CONFIG_AUFS_HFSNOTIFY y >> fi >> >> >> and scripts/aufs : >> >> build ) >> if [ "$CONFIG_ETCFS" = "AUFS" ]; then >> #fix me >> replace_str $KERNELDIR/include/uapi/linux/aufs_type.h >> "__user" " " >> cd aufs-util || exit 1 >> CPPFLAGS="-I $KERNELDIR/usr/include >> -I../aufs2-standalone/include" make KDIR=$KERNELDIR all || exit 1 >> fi >> ;; >> >> install ) >> if [ "$CONFIG_ETCFS" = "AUFS" ]; then >> cp -dpvR aufs-util/aufs.5 >> $CDDIR/usr/share/man/man5/ || exit 1 >> cd aufs-util || exit 1 >> mkdir -p $TMPDIR/{sbin,usr/bin} || exit 1 >> mkdir -p $TMPDIR/etc/default || exit 1 >> make KDIR=$KERNELDIR DESTDIR=$TMPDIR install || exit 1 >> cp -dpvR $TMPDIR/etc/* $ETCDIR/etc/ || exit 1 >> rm -rf $TMPDIR/etc || exit 1 >> cp -dpvR $TMPDIR/* $CDDIR/ || exit 1 >> rm -rf $TMPDIR || exit 1 >> fi >> ;; >> >> Thanks, >> Serge >> >> >> On 12/03/2014 09:25 AM, Andrzej Odyniec wrote: >> >>> Heiko, >>> >>> I started to try, although I had recently a lot of other activities. >>> - We need to update aufs3, because the old is not compiling with >>> 3.14 kernel >>> - Keepalived, even this with git, do not want to compile with 3.14 >>> so turned >>> it off for now >>> - Motion, including the one with svn, do not want to compile, so >>> too turned it >>> off for now too >>> - Iptables must be raised to 1.4.21 >>> - Unfortunately, gcc 4.4.5 is not sufficient because it does not support >>> plug-ins, so as for now I raised gcc to 4.5.1; Of course I had to pick up a >>> gcc-hardened; I took hardened patches from lfs; maybe I should >>> raise gcc higher? >>> - Kernel needs now to build bc, so I installed 1.06 >>> >>> In spite of this kernel build process stopped at aufs3; anything goes wrong >>> and I have a little read about aufs; perhaps my manual controlled >>> prepare for >>> aufs3 did not properly. >>> >>> So kernel line upgrade is not so simple. But I do not resign >>> >>> Best regards >>> >>> Andrzej Odyniec >>> >>> --- >>> Ta wiadomość została sprawdzona na obecność wirusów przez >>> oprogramowanie antywirusowe Avast. >>> http://www.avast.com >>> >>> >>> ------------------------------------------------------------------------------ >>> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server >>> from Actuate! Instantly Supercharge Your Business Reports and Dashboards >>> with Interactivity, Sharing, Native Excel Exports, App Integration & more >>> Get technology previously reserved for billion-dollar corporations, FREE >>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk >>> _______________________________________________ >>> Devil-linux-develop mailing list >>> Dev...@li... >>> https://lists.sourceforge.net/lists/listinfo/devil-linux-develop >>> >> >> >> >> ------------------------------------------------------------------------------ >> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server >> from Actuate! Instantly Supercharge Your Business Reports and Dashboards >> with Interactivity, Sharing, Native Excel Exports, App Integration & more >> Get technology previously reserved for billion-dollar corporations, FREE >> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk >> _______________________________________________ >> Devil-linux-develop mailing list >> Dev...@li... >> https://lists.sourceforge.net/lists/listinfo/devil-linux-develop > > > -- > Andrzej Odyniec > > <an...@ma...> > Rada Nadzorcza Macrologic SA > ul. Kłopotowskiego 22, 03-717 Warszawa > tel. +48-222566332, kom. +48-601276572 > Skype: andrzej.odyniec > Rejestr: Sąd Rejonowy dla m.st. Warszawy, > XIII Wydział Gospodarczy Krajowego > Rejestru Sądowego, numer 0000045462 > Numer identyfikacji podatkowej: PL 5220002825 > Kapitał zakładowy: 1888719 zł opłacony w całości > > --- > Ta wiadomość została sprawdzona na obecność wirusów przez > oprogramowanie antywirusowe Avast. > http://www.avast.com > > > ------------------------------------------------------------------------------ > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server > from Actuate! Instantly Supercharge Your Business Reports and Dashboards > with Interactivity, Sharing, Native Excel Exports, App Integration & more > Get technology previously reserved for billion-dollar corporations, FREE > http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk > _______________________________________________ > Devil-linux-develop mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/devil-linux-develop -- Regards Heiko Zuerker |