Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 146214 - net-ftp/ncftp-3.1.9 fails to compile
Summary: net-ftp/ncftp-3.1.9 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Jeroen Roovers (RETIRED)
URL:
Whiteboard:
Keywords:
: 147371 150241 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-09-03 23:20 UTC by Patrick Lauer
Modified: 2008-10-07 13:39 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Lauer gentoo-dev 2006-09-03 23:20:20 UTC
Creating library libStrn.a:                                           [OK]     
  ar: creating libStrn.a
ranlib "libStrn.a"
-rw-r--r-- 1 portage portage 87088 Sep  4 01:43 libStrn.a
Done making Strn.
make[1]: Leaving directory `/var/tmp/portage/ncftp-3.1.9/work/ncftp-3.1.9/Strn'
make[1]: Entering directory `/var/tmp/portage/ncftp-3.1.9/work/ncftp-3.1.9/sio'
gcc -D_REENTRANT -D_LARGEFILE64_SOURCE -O2 -march=athlon-xp -ggdb -pipe -Wno-for
mat-y2k -DLINUX=26016 -DLINUX_GLIBC= -I/var/tmp/portage/ncftp-3.1.9/work/ncftp-3
.1.9 -I/var/tmp/portage/ncftp-3.1.9/work/ncftp-3.1.9/libncftp -I/var/tmp/portage
/ncftp-3.1.9/work/ncftp-3.1.9/sio -I/var/tmp/portage/ncftp-3.1.9/work/ncftp-3.1.
9/Strn -DHAVE_CONFIG_H -DLINUX=26016 -DLINUX_GLIBC= syshdrs.h
Compiling SError.c:                                                   [OK]     
  SError.c:1:21: warning: syshdrs.h.gch: too short to be a PCH file
Compiling UBind.c:                                                    [ERROR]  
  gcc -D_REENTRANT -D_LARGEFILE64_SOURCE -O2 -march=athlon-xp -ggdb -pipe -Wno-
  format-y2k -DLINUX=26016 -DLINUX_GLIBC= -I/var/tmp/portage/ncftp-3.1.9/work/n
  cftp-3.1.9 -I/var/tmp/portage/ncftp-3.1.9/work/ncftp-3.1.9/libncftp -I/var/tm
  p/portage/ncftp-3.1.9/work/ncftp-3.1.9/sio -I/var/tmp/portage/ncftp-3.1.9/wor
  k/ncftp-3.1.9/Strn -DHAVE_CONFIG_H -DLINUX=26016 -DLINUX_GLIBC= UBind.c -c
  UBind.c:1: fatal error: had to relocate PCH
  compilation terminated.
  Preprocessed source stored into /tmp/ccy7yaRr.out file, please attach this to
   your bugreport.
make[1]: *** [UBind.o] Error 1
make[1]: *** Waiting for unfinished jobs....
Compiling UAccept.c:                                                  [ERROR]  
  gcc -D_REENTRANT -D_LARGEFILE64_SOURCE -O2 -march=athlon-xp -ggdb -pipe -Wno-
  format-y2k -DLINUX=26016 -DLINUX_GLIBC= -I/var/tmp/portage/ncftp-3.1.9/work/n
  cftp-3.1.9 -I/var/tmp/portage/ncftp-3.1.9/work/ncftp-3.1.9/libncftp -I/var/tm
  p/portage/ncftp-3.1.9/work/ncftp-3.1.9/sio -I/var/tmp/portage/ncftp-3.1.9/wor
  k/ncftp-3.1.9/Strn -DHAVE_CONFIG_H -DLINUX=26016 -DLINUX_GLIBC= UAccept.c -c

  UAccept.c:1: fatal error: had to relocate PCH
  compilation terminated.
  Preprocessed source stored into /tmp/ccFRWEPP.out file, please attach this to
   your bugreport.
make[1]: *** [UAccept.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/ncftp-3.1.9/work/ncftp-3.1.9/sio'
make: *** [libs] Error 2

!!! ERROR: net-ftp/ncftp-3.1.9 failed.

Portage 2.1.1_rc1-r2 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r3, 2.6.16-hardened-r11bonsai i686)
=================================================================
System uname: 2.6.16-hardened-r11bonsai i686 AMD Athlon(tm) XP 2000+
Gentoo Base System version 1.12.4
Last Sync: Sat, 02 Sep 2006 08:20:01 +0000
ccache version 2.4 [disabled]
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.3.5-r2, 2.4.3-r3
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r2
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -ggdb -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/NX/etc /usr/NX/home /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=athlon-xp -ggdb -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg collision-protect distlocks parralelfetch sandbox sfperms splitdebug strict userfetch userpriv"
GENTOO_MIRRORS="ftp://ftp.gentoo.mesh-solutions.com/gentoo/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
LINGUAS=""
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync12.de.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X a52 aac aalib acpi alsa apache2 bash-completion berkdb bidi bitmap-fonts bootsplash bzip2 ccache cdda cddb cdparanoia cdr chroot cli crypt cups curl dga dlloader dri dv dvd dvdr dvdread ecc elibc_glibc encode fbcon ffmpeg fftw fortran gd-external gdbm gif gimp gimpprint glep glitz gmp gpm graphviz imagemagick imap imlib input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog jabber jpeg jpeg2k kde kdeenablefinal kdehiddenvisibility kernel_linux kqemu ladcca lcms libg++ lzo mad matroska mhash mime mjpeg mmx mmxext mng mozilla mozsvg mp3 mpeg ncurses nls nptl nptlonly nvidia objc ogg openal pam parse-clocks pcre pcsc-lite pdf perl physfs png ppds pppd python qt3 qt4 quicktime readline recode reflection samba sdl session spell spl sqlite sse sse2 ssl stream tcltk tcpd threads tiff transcode truetype truetype-fonts type1-fonts udev unicode userland_GNU utf8 video_cards_nv video_cards_vesa video_cards_vga visualization vorbis win32codecs wxgtk1 xine xml xorg xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 SpanKY gentoo-dev 2006-09-04 03:20:41 UTC
fixed in cvs
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-10-06 01:01:13 UTC
*** Bug 150241 has been marked as a duplicate of this bug. ***
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-10-06 01:01:53 UTC
*** Bug 147371 has been marked as a duplicate of this bug. ***
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2006-10-06 01:02:28 UTC
Neither 3.1.9 nor 3.2.0 is fixed, still the same problem. Reopening.
Comment 5 Ion Os 2006-11-19 10:03:53 UTC
On a vanilla kernel plus grsecurity, adding -fpch-preprocess to the CFLAGS did the trick.
Comment 6 M Grundman 2006-12-24 11:56:34 UTC
The problem is not caused by a version of gcc. i686-pc-linux-gnu-3.4.6 compiles well on one system and the same binary package does not compile on another system ( with the same kernel ).

The wrong system :
Portage 2.1.1-r2 (default-linux/x86/2006.1, gcc-3.4.6, glibc-2.4-r4, 2.6.16-hardened-r6 i686)
=================================================================
System uname: 2.6.16-hardened-r6 i686 Intel(R) Xeon(TM) CPU 2.80GHz
Gentoo Base System version 1.12.6
Last Sync: Fri, 22 Dec 2006 14:00:01 +0000
ccache version 2.3 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.3.5-r3, 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=i686 -pipe -funroll-loops"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="-O3 -march=i686 -pipe -funroll-loops"
Comment 7 Sebastien Brossier 2007-03-21 12:30:22 UTC
I also have compilation problems with ncftp, on various systems ("fatal error: had to relocate PCH"). The only solution that works for me is to totally disable the use of precompiled headers:

EXTRA_ECONF=--disable-ccdv emerge ncftp

Comment 8 Andrew Gaffney (RETIRED) gentoo-dev 2008-02-15 18:10:44 UTC
This is causing a problem for me while building the i686 livedvd for 2008.0. I'm building on a box with grsec enabled in the kernel (miranda), and I keep getting the following error:

  u_mkdirs.c:1: fatal error: had to relocate PCH
  compilation terminated.
  The bug is not reproducible, so it is likely a hardware or OS problem.

Any way we can get a little releng love on this one?
Comment 9 Jérémy Just 2008-05-16 21:00:13 UTC
I'm building ncftp-3.2.1 on PPC hardened (PaX + Grsec), and have each time the same reproducible error:

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Precompiling .tmp.syshdrs.h.gch:                                      [OK]     
mv -f .tmp.syshdrs.h.gch syshdrs.h.gch
Compiling UAccept.c:                                                  [ERROR]  
  powerpc-unknown-linux-gnu-gcc -D_REENTRANT -D_LARGEFILE64_SOURCE -O2 -mcpu=74
  50 -maltivec -mabi=altivec -fno-strict-aliasing -pipe -Wno-format-y2k -DLINUX
  =26024 -DLINUX_GLIBC=26001 -DHAVE_CONFIG_H -DLINUX=26024 -DLINUX_GLIBC=26001 
  -I/var/tmp/portage/net-ftp/ncftp-3.2.1/work/ncftp-3.2.1 -I/var/tmp/portage/ne
  t-ftp/ncftp-3.2.1/work/ncftp-3.2.1/libncftp -I/var/tmp/portage/net-ftp/ncftp-
  3.2.1/work/ncftp-3.2.1/sio -I/var/tmp/portage/net-ftp/ncftp-3.2.1/work/ncftp-
  3.2.1/Strn UAccept.c -c
  UAccept.c:1: fatal error: had to relocate PCH
  compilation terminated.
  Preprocessed source stored into /tmp/ccjIjkQe.out file, please attach this to
   your bugreport.
make[1]: *** [UAccept.o] Error 1
make[1]: *** Waiting for unfinished jobs....
Compiling UBind.c:                                                    [ERROR]  
  powerpc-unknown-linux-gnu-gcc -D_REENTRANT -D_LARGEFILE64_SOURCE -O2 -mcpu=74
  50 -maltivec -mabi=altivec -fno-strict-aliasing -pipe -Wno-format-y2k -DLINUX
  =26024 -DLINUX_GLIBC=26001 -DHAVE_CONFIG_H -DLINUX=26024 -DLINUX_GLIBC=26001 
  -I/var/tmp/portage/net-ftp/ncftp-3.2.1/work/ncftp-3.2.1 -I/var/tmp/portage/ne
  t-ftp/ncftp-3.2.1/work/ncftp-3.2.1/libncftp -I/var/tmp/portage/net-ftp/ncftp-
  3.2.1/work/ncftp-3.2.1/sio -I/var/tmp/portage/net-ftp/ncftp-3.2.1/work/ncftp-
  3.2.1/Strn UBind.c -c
  UBind.c:1: fatal error: had to relocate PCH
  compilation terminated.
  Preprocessed source stored into /tmp/ccv4vKup.out file, please attach this to
   your bugreport.
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>


The solution is, as previously mentionned, to disable the use of precompiled headers:

EXTRA_ECONF='--disable-ccdv' emerge --oneshot ncftp




Portage 2.1.4.4 (default-linux/ppc/ppc32/2007.0/G4, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-hardened-r2 ppc)
=================================================================
System uname: 2.6.24-hardened-r2 ppc 7447A, altivec supported
Timestamp of tree: Fri, 16 May 2008 13:15:01 +0000
app-shells/bash:     3.2_p33
dev-lang/python:     2.4.4-r9
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.6.3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="ppc"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -mcpu=7450 -maltivec -mabi=altivec -fno-strict-aliasing -pipe"
CHOST="powerpc-unknown-linux-gnu"
CXXFLAGS="-O2 -mcpu=7450 -maltivec -mabi=altivec -fno-strict-aliasing -pipe"



Comment 10 Jeroen Roovers (RETIRED) gentoo-dev 2008-09-30 02:05:23 UTC
Um, is this still a problem?
Comment 11 Andrew Gaffney (RETIRED) gentoo-dev 2008-09-30 02:43:15 UTC
Hmm, apparently not. I just built ncftp-3.2.1 on miranda without an issue. This is fixed (or disappeared) unless someone turned off pax/grsec on miranda :P
Comment 12 Thilo Bangert (RETIRED) (RETIRED) gentoo-dev 2008-10-07 12:53:53 UTC
works fine here as well
Comment 13 Andrew Gaffney (RETIRED) gentoo-dev 2008-10-07 13:39:51 UTC
Closing, since it's apparently fixed.