Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Failing to crosscompile on Linux



On 28.03.2018 11:08, Mandacarú Cascavel wrote:
> Hi, Friends.
> 
> NetBSD-current (-m amd64) stops the crosscompilling process on a Debian amd64 unstable box in the following place:
> 
> cc  -O   -o make  ar.o arscan.o  commands.o default.o dir.o  expand.o file.o function.o  getopt.o getopt1.o implicit.o  job.o main.o misc.o  read.o remake.o remote-stub.o  rule.o signame.o strcache.o  variable.o version.o vpath.o  hash.o glob/libglob.a     
> glob/libglob.a(glob.o): In function `glob_in_dir':
> glob.c:(.text+0x2c0): undefined reference to `__alloca'
> glob.c:(.text+0x3b4): undefined reference to `__alloca'
> glob.c:(.text+0x4a0): undefined reference to `__alloca'
> glob.c:(.text+0x5a3): undefined reference to `__alloca'
> glob/libglob.a(glob.o): In function `glob':
> glob.c:(.text+0xadb): undefined reference to `__alloca'
> glob/libglob.a(glob.o):glob.c:(.text+0xbe6): more undefined references to `__alloca' follow
> collect2: error: ld returned 1 exit status
> 
> *** Failed target:  make
> *** Failed command: cc -O -o make ar.o arscan.o commands.o default.o dir.o expand.o file.o function.o getopt.o getopt1.o implicit.o job.o main.o misc.o read.o remake.o remote-stub.o rule.o signame.o strcache.o variable.o version.o vpath.o hash.o glob/libglob.a 
> *** Error code 1
> 
> Stop.
> nbmake[10]: stopped in /home/usuario/netbsd/obj/tools/gmake/build
> 
> This is repeatedly happening from some days ago.
> 

Can you test this?

Index: glob.c
===================================================================
RCS file: /cvsroot/src/external/gpl2/gmake/dist/glob/glob.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 glob.c
--- glob.c	18 Aug 2014 06:47:54 -0000	1.1.1.1
+++ glob.c	15 Apr 2018 13:28:45 -0000
@@ -207,7 +207,7 @@
 #endif /* __GNU_LIBRARY__ */


-#if !defined __alloca && !defined __GNU_LIBRARY__
+#if !defined __alloca && defined __GNU_LIBRARY__

 # ifdef	__GNUC__
 #  undef alloca



Reference:

https://lists.nongnu.org/archive/html/bug-make/2017-11/msg00020.html

Attachment: signature.asc
Description: OpenPGP digital signature



Home | Main Index | Thread Index | Old Index