Re: Can't compile bird on sparc arch
Ondrej Zajicek wrote on 2010/08/04 13:55:43: > > On Wed, Aug 04, 2010 at 12:04:21PM +0200, Joakim Tjernlund wrote: > > > fe...@majklik:~/src/git/bird$ patch -p1 > > patching file tools/Rules.in > > > > That patch breaks cross compile. Please look at > > http://hackage.haskell.org/trac/ghc/ticket/3791 > > Perhaps passing -mno-relax and/or -r will do it? > > That patch was just a quick workaround. In GIT we have now: > $(CC) -nostdlib -r -o $@ $^ Ah, OK. Thanks Jocke
Re: Can't compile bird on sparc arch
On Wed, Aug 04, 2010 at 12:04:21PM +0200, Joakim Tjernlund wrote: > > fe...@majklik:~/src/git/bird$ patch -p1 > patching file tools/Rules.in > > That patch breaks cross compile. Please look at > http://hackage.haskell.org/trac/ghc/ticket/3791 > Perhaps passing -mno-relax and/or -r will do it? That patch was just a quick workaround. In GIT we have now: $(CC) -nostdlib -r -o $@ $^ -- Elen sila lumenn' omentielvo Ondrej 'SanTiago' Zajicek (email: santi...@crfreenet.org) OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net) "To err is human -- to blame it on a computer is even more so." signature.asc Description: Digital signature
Re: Can't compile bird on sparc arch
> > On 4.8.2010 09:47, Olivier Cochard-Labbé wrote: > > Hi, > > Hi Olivier! > > > > > I'm trying to compile bird 1.2.3 under FreeBSD-sparc64. > > > > But the compilation failed with this message: > > > > cc -nostdlib -Wl,-r -o all.o cf-parse.tab.o cf-lex.o conf.o > > /usr/bin/ld: --relax and -r may not be used together > > gmake[2]: *** [all.o] Error 1 > > > > I've tried to search for a solution, and found an explanation and > > solution of the problem here: > > http://hackage.haskell.org/trac/ghc/ticket/3791 > > > > But I didn't know how to patch the bird sources files for fixing this > > problem. > > Please note, there is a new release - 1.2.4. > I attached the patch. Apply it this way: > > fe...@majklik:~/src/git/bird$ patch -p1 patching file tools/Rules.in That patch breaks cross compile. Please look at http://hackage.haskell.org/trac/ghc/ticket/3791 Perhaps passing -mno-relax and/or -r will do it? Jocke
Re: Can't compile bird on sparc arch
2010/8/4 Ondrej Filip : > I attached the patch. Apply it this way: > > fe...@majklik:~/src/git/bird$ patch -p1 patching file tools/Rules.in Thanks, your patch fix the compilation problem. Regards, Olivier
Re: Can't compile bird on sparc arch
On 4.8.2010 09:47, Olivier Cochard-Labbé wrote: Hi, Hi Olivier! I'm trying to compile bird 1.2.3 under FreeBSD-sparc64. But the compilation failed with this message: cc -nostdlib -Wl,-r -o all.o cf-parse.tab.o cf-lex.o conf.o /usr/bin/ld: --relax and -r may not be used together gmake[2]: *** [all.o] Error 1 I've tried to search for a solution, and found an explanation and solution of the problem here: http://hackage.haskell.org/trac/ghc/ticket/3791 But I didn't know how to patch the bird sources files for fixing this problem. Please note, there is a new release - 1.2.4. I attached the patch. Apply it this way: fe...@majklik:~/src/git/bird$ patch -p1 Regards, Olivier PS: full build log available here: http://pointyhat.freebsd.org/errorlogs/sparc64-errorlogs/e.8.20100704113633/bird-1.2.3.log.bz2 diff --git a/tools/Rules.in b/tools/Rules.in index e4598e2..79a15fa 100644 --- a/tools/Rules.in +++ b/tools/Rules.in @@ -66,7 +66,7 @@ else subdir: all.o all.o: $(objs) - $(CC) -nostdlib -Wl,-r -o $@ $^ + $(LD) -r -o $@ $^ endif
Can't compile bird on sparc arch
Hi, I'm trying to compile bird 1.2.3 under FreeBSD-sparc64. But the compilation failed with this message: cc -nostdlib -Wl,-r -o all.o cf-parse.tab.o cf-lex.o conf.o /usr/bin/ld: --relax and -r may not be used together gmake[2]: *** [all.o] Error 1 I've tried to search for a solution, and found an explanation and solution of the problem here: http://hackage.haskell.org/trac/ghc/ticket/3791 But I didn't know how to patch the bird sources files for fixing this problem. Regards, Olivier PS: full build log available here: http://pointyhat.freebsd.org/errorlogs/sparc64-errorlogs/e.8.20100704113633/bird-1.2.3.log.bz2