Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 73367 - nhc98-1.16-r1: compile error in mpz_div.c, asmlong.h
Summary: nhc98-1.16-r1: compile error in mpz_div.c, asmlong.h
Status: RESOLVED LATER
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Haskell Language team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-04 12:06 UTC by Martin von Gagern
Modified: 2005-06-28 02:07 UTC (History)
1 user (show)

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


Attachments
gcc 3.3 does not allow multiline strings without escaping, and abort does NOT take a parameter. (asm-and-abort.patch,15.37 KB, patch)
2004-12-06 04:47 UTC, Stian Skjelstad
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin von Gagern 2004-12-04 12:06:55 UTC
Emerging nhc98-1.16-r1 fails. There are many errors in mpz_div.c, I believe due to some severe syntax error in asmlong.h.


Reproducible: Always
Steps to Reproduce:
1. emerge nhc98

Actual Results:  
gcc -c -I../Kernel -I/var/tmp/portage/nhc98-1.16-r1/work/nhc98-1.16/include  -O3
-DLOW_BYTE_FIRST -o
/var/tmp/portage/nhc98-1.16-r1/work/nhc98-1.16/targets/ix86-Linux/obj/runtime/Integer/mpz_div.o
mpz_div.c
In file included from longlong.h:75,
                 from mpz_div.c:25:
asmlong.h:3:12: missing terminating " character
asmlong.h:7:40: missing terminating " character
asmlong.h:9:12: missing terminating " character
asmlong.h:13:39: missing terminating " character
...
asmlong.h:92:12: missing terminating " character
In file included from longlong.h:75,
                 from mpz_div.c:25:
asmlong.h:93: error: syntax error before '%' token
asmlong.h:96:37: missing terminating " character
...
asmlong.h:551:37: missing terminating " character
mpz_div.c:27: warning: initialization makes integer from pointer without a cast
mpz_div.c:27: error: initializer element is not constant
mpz_div.c:27: warning: data definition has no type or storage class
mpz_div.c:27: error: syntax error before "while"
...
mpz_div.c:28: warning: assignment makes integer from pointer without a cast
make[2]: ***
[/var/tmp/portage/nhc98-1.16-r1/work/nhc98-1.16/targets/ix86-Linux/obj/runtime/Integer/mpz_div.o]
Error 1



sys-devel/gcc-3.3.4-r1
sys-libs/glibc-2.3.4.20040808-r1
sys-libs/readline-4.3-r5

Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.3.4, uclibc-0.9.26-r7, 2.6.9
i686)
=================================================================
System uname: 2.6.9 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Gentoo Base System version 1.4.16
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux26-headers-2.6.8.1
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=prescott -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config
/usr/lib/fax /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control /var/spool/fax/etc"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=prescott -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://gentoo.inode.at/ rsync://ftp.snt.utwente.nl/gentoo
ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo
ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo
ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ http://gentoo.oregonstate.edu
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="X aalib acpi alsa apache2 apm arts avi berkdb bitmap-fonts bonobo cdr crypt
cscope cups directfb divx4linux doc dvd encode esd f77 fam fbcon flac foomaticdb
fortran gd gdbm ggi gif gpm gtk gtk2 gtkhtml guile imagemagick imlib java jpeg
junit kde libg++ libwww mad mbox mikmod mmx motif mozilla mpeg mule mysql nas
ncurses nls nptl oggvorbis opengl oss pam pdflib perl pic png postgres python qt
quicktime readline samba sasl scanner sdl slang speex spell ssl svga tcltk tcpd
tetex tiff truetype v4l v4l2 x86 xml xml2 xmms xv zlib"
Comment 1 katerina 2004-12-04 17:09:57 UTC
Same errors here.

Portage 2.0.51-r3 (default-linux/x86/2004.0, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.9-gentoo-r4 i686)
=================================================================
System uname: 2.6.9-gentoo-r4 i686 AMD Athlon(TM) XP 2500+
Gentoo Base System version 1.4.16
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux26-headers-2.6.8.1
Libtools: sys-devel/libtool-1.5.10
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-ggdb3 -march=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config//usr/share/texmf/xdvi/ /var/freenet /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-ggdb3 -march=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig buildpkg ccache distlocks nostrip sandbox sfperms userpriv usersandbox"
GENTOO_MIRRORS="http://mirror.switch.ch/mirror/gentoo/ ftp://gd.tuwien.ac.at/opsys/linux/gentoo/ http://194.149.10.102/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/usr/data/portage-build"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://192.168.0.26/portage"
USE="X aalib acl alsa apm arts audiofile avi berkdb bidi bitmap-fonts cairo canna cdr cjk crypt cscope cups debug directfb doc dvd dvdr emacs encode f77 faad fam flac foomaticdb fortran freewnn gatos gcj gd gdbm gimpprint gphoto2 gpm gtk gtk2 guile imagemagick imlib jack java javascript jikes jpeg jpeg2k junitkde latex lcms libg++ libwww mad mikmod mmx mng mozilla mpeg mysql ncurses nls nptl objc oggvorbis openal opengl pam pcre pdflib perl php pic png postgres povray ppds python qt quicktime readline ruby scanner sdl slang socks5 softmmu spell sse ssl tcltk tcpd tetex theora tiff truetype unicode usb wmf x86 xinerama xml xml2 xmms xv zlib video_cards_radeon linguas_eo linguas_en linguas_de linguas_fr linguas_it linguas_ja linguas_ru"
Comment 2 katerina 2004-12-05 14:39:03 UTC
http://bugs.gentoo.org/show_bug.cgi?id=46943#c1

It says that nhc98 doesn't build with GCC 3.3.  
Comment 3 Stian Skjelstad 2004-12-06 04:47:57 UTC
Created attachment 45375 [details, diff]
gcc 3.3 does not allow multiline strings without escaping, and abort does NOT take a parameter.

The patch makes stuff compile, but something in there still crashes though
during make:


/var/tmp/portage/nhc98-1.16-r1/work/nhc98-1.16/script/nhc98 -cpp -c +CTS -lib 
-redefine -CTS	 +RTS -H32M -RTS -o
/var/tmp/portage/nhc98-1.16-r1/work/nhc98-1.16/targets/ix86-Linux/obj/prelude/DErrNo/DErrNo.o
DErrNo.hs
/var/tmp/portage/nhc98-1.16-r1/work/nhc98-1.16/script/nhc98: line 604: 19945
Segmentation fault	$COMP $RUNFLAGS $COMPFLAGS $HINCDIRS -I. $UNLIT
-P${NHC98INCDIR} $HSFILE $POSTGRFILE $TMPHIFILE $TMPCPPASFILE
make[1]: ***
[/var/tmp/portage/nhc98-1.16-r1/work/nhc98-1.16/targets/ix86-Linux/obj/prelude/DErrNo/DErrNo.o]
Error 1
make[1]: Leaving directory
`/var/tmp/portage/nhc98-1.16-r1/work/nhc98-1.16/src/prelude/ix86-Linux/NHC'
Comment 4 Andres Loeh (RETIRED) gentoo-dev 2004-12-10 01:01:26 UTC
I'm a bit short on time at the moment. Recently, I looked at nhc98 again.
I didn't get it to compile without problems, not even the CVS version.

I am tempted to hardmask nhc98 for now. Any comments?

ks
Comment 5 Andres Loeh (RETIRED) gentoo-dev 2005-01-19 02:36:28 UTC
This has been a long time without comments.

I still don't have time to get this fixed, and I hope for a new upstream
release soon, so I'll hardmask for now.

ks
Comment 6 Martin Guy 2005-06-27 10:55:14 UTC
nhc-1.18 resolves the gcc-3.3 source incompatibilities.

I just compiled it with gcc-3.3.4 on Pentium gentoo with ghc present.
Compiled, installed. Running "nhc98 -c s.c" gives:

/usr/local/bin/nhc98: line 547: /usr/local/lib/nhc98/ix86-Linux/nhc98comp: No
such file or directory

Hum. Different bug at least... is this progress? :)
Comment 7 Martin Guy 2005-06-28 02:07:00 UTC
Uh. s.hs.