Revision: 6644
          http://ipcop.svn.sourceforge.net/ipcop/?rev=6644&view=rev
Author:   gespinasse
Date:     2012-06-07 20:20:11 +0000 (Thu, 07 Jun 2012)
Log Message:
-----------
Replace CFLAGS -fPIE workaround by CCACHE_CPP2=1 is another way to fix lscpu 
compilation.
The issue is with our gcc-4.4 (gcc-4.4.7 behave the same), not with ccache (see 
ccache mailing list for the explanation).

Modified Paths:
--------------
    ipcop/trunk/lfs/util-linux

Modified: ipcop/trunk/lfs/util-linux
===================================================================
--- ipcop/trunk/lfs/util-linux  2012-06-07 06:38:18 UTC (rev 6643)
+++ ipcop/trunk/lfs/util-linux  2012-06-07 20:20:11 UTC (rev 6644)
@@ -83,24 +83,29 @@
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar xf $(DIR_DL)/$(DL_FILE)
 
 ifeq "$(STAGE)" "toolchain"
+       # Just try to build only what is required here : mount, arch (for 
linux32), libblkid, libuuid
        cd $(DIR_APP) && ./configure --prefix=/$(TOOLS_DIR) \
+                                       --disable-static \
+                                       --disable-nls \
                                        --enable-mount \
                                        --disable-agetty \
                                        --disable-cramfs \
+                                       --disable-fallocate \
+                                       --disable-fsck \
                                        --disable-kill \
                                        --disable-last \
+                                       --disable-login-utils \
                                        --disable-mesg \
-                                       --disable-login-utils \
                                        --disable-partx \
                                        --disable-raw \
                                        --disable-rename \
                                        --disable-reset \
                                        --disable-schedutils \
+                                       --disable-unshare \
                                        --disable-wall \
                                        --disable-write \
                                        --disable-makeinstall-chown \
-                                       --disable-static \
-                                       --disable-nls
+
        cd $(DIR_APP) && make -j $(PARALLELISM)
        cd $(DIR_APP) && make -j $(PARALLELISM) install
 endif
@@ -108,14 +113,13 @@
 ifeq "$(STAGE)" "base"
        cd $(DIR_APP) && sed -i 's@etc/adjtime@var/lib/hwclock/adjtime@g' 
hwclock/hwclock.c
        cd $(DIR_APP) && mkdir -pv /var/lib/hwclock
-       # Probably a ccache issue as the issue that -fPIE -pie fix is commited 
upstream since many versions
-       # Make sure build picks up -fPIE -pie, otherwise lscpu will fail to 
build
-       cd $(DIR_APP) && CFLAGS="$(CFLAGS) -fPIE -pie" ./configure \
-                       --disable-static --disable-nls \
-                       --disable-cramfs --disable-schedutils
-       #cd $(DIR_APP) && sed -i 's/^CC = gcc -std=gnu99$$/CC = gcc -std=gnu99 
-v/' sys-utils/Makefile
-       #cd $(DIR_APP) && make -j $(PARALLELISM) -C sys-utils CCACHE_DISABLE= # 
V=1
-       cd $(DIR_APP) && make -j $(PARALLELISM)
+       cd $(DIR_APP) && ./configure --disable-static --disable-nls 
--disable-cramfs --disable-schedutils
+       # CCACHE_CPP2=1 replace the CFLAGS -fPIE hack and workaround a not well 
identified gcc-4.4 issue that trigger
+       # lscpu.c: In function 'read_hypervisor':
+       # lscpu.c:446: error: can't find a register in class 'BREG' while 
reloading 'asm'
+       # lscpu.c:446: error: 'asm' operand has impossible constraints
+       # Testing is prone to error, CCACHE_RECACHE= is required to avoid 
ancient cache hit
+       cd $(DIR_APP) && make -j $(PARALLELISM) V=1 CCACHE_CPP2=1
        cd $(DIR_APP) && make -j $(PARALLELISM) install
 
 ifeq "$(MACHINE)" "sparc"

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Ipcop-svn mailing list
Ipcop-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ipcop-svn

Reply via email to