Re: Problem with GNU Mach compilation

Almudena Garcia <[email protected]> Wed, 27 Jun 2018 18:16:21 +0200
Newsgroups gmane.os.hurd.bugs,gmane.os.hurd.general
Message-ID <CA+vQsMh8Ykegr90MrLMdW9Q176DUfX=C8ucMuM0qWxk4e4Ym2g@mail.gmail.com>
The last patch file was wrong to generate. I attach a better patch file

2018-06-27 18:12 GMT+02:00 Almudena Garcia <[email protected]>:

> Finally, I got to solve the problem, adding a few flags to Makefile.am
>
> http://dpaste.com/2NRGESV
>
> I attach the patch file
>
> 2018-06-25 18:13 GMT+02:00 Almudena Garcia <[email protected]>:
>
>> HHi all:
>>
>> I'm trying to compile GNU Mach from GNU Hurd, using the sources from git
>> repository.
>>
>> I based on this guide: https://www.gnu.org/software/h
>> urd/microkernel/mach/gnumach/building.html
>> But, during the latest step (make gnumach.gz), It returns a linker error
>> (I attach the log file)
>>
>> My steps were these:
>>
>> -
>>
>> git clone git://git.savannah.gnu.org/hurd/gnumach.git
>> cd gnumach/
>>
>> apt-get build-dep gnumach
>>
>> autoreconf --install
>>
>> mkdir build
>> cd build/
>>
>> ./configure --prefix=
>> make DESTDIR=~/gnu install-data
>>
>> git clone git://git.savannah.gnu.org/hurd/mig.git
>> cd mig
>>
>> autoreconf --install
>>
>> mkdir build
>> cd build
>>
>> GNU=~/gnu
>>
>> TARGET_CPPFLAGS=-I"$GNU"/include ../configure --prefix="$GNU"
>>
>> PATH=~/gnu/bin:$PATH
>> export PATH
>>
>> cd ../.. #Return to gnumach/build
>>
>> mig
>> make gnumach.gz
>>
>>
>> How can I solve this?
>>
>>
>
makefile.patch (text/x-patch, 399 B)
--- ../gnumach2/Makefile.am	2018-06-19 18:30:40.000000000 +0200
+++ ./Makefile.am	2018-06-27 17:52:01.000000000 +0200
@@ -52,7 +52,7 @@
 	-I$(top_srcdir)/include
 
 AM_CFLAGS += \
-	-fno-builtin-log
+	-fno-builtin-log --no-pie --no-pic
 
 # Yes, this makes the eyes hurt.  But perhaps someone will finally take care of
 # all that scruffy Mach code...  Also see <http://savannah.gnu.org/task/?5726>.