Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: Problem with GNU Mach compilation

6 views
Skip to first unread message

Almudena Garcia

unread,
Jun 27, 2018, 12:13:20 PM6/27/18
to Help Hurd, bug-...@gnu.org
Finally, I got to solve the problem, adding a few flags to Makefile.am


I attach the patch file

2018-06-25 18:13 GMT+02:00 Almudena Garcia <liberame...@gmail.com>:
HHi all:

I'm trying to compile GNU Mach from GNU Hurd, using the sources from git repository.

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

Almudena Garcia

unread,
Jun 27, 2018, 12:16:48 PM6/27/18
to Help Hurd, bug-...@gnu.org
The last patch file was wrong to generate. I attach a better patch file
makefile.patch

Samuel Thibault

unread,
Jun 27, 2018, 12:17:15 PM6/27/18
to Almudena Garcia, Help Hurd, bug-...@gnu.org
Almudena Garcia, le mer. 27 juin 2018 18:12:53 +0200, a ecrit:
> I attach the patch file

Please use diff -u, not just diff.

Samuel

Almudena Garcia

unread,
Jun 27, 2018, 12:18:25 PM6/27/18
to Almudena Garcia, Help Hurd, bug-...@gnu.org
Yes, I just send a fixed patch file, with diff -u

Almudena Garcia

unread,
Jun 27, 2018, 1:23:08 PM6/27/18
to Help Hurd, bug-...@gnu.org
Have you received my latest patch?

Samuel Thibault

unread,
Jun 27, 2018, 3:45:21 PM6/27/18
to Almudena Garcia, Help Hurd, bug-...@gnu.org
Almudena Garcia, le mer. 27 juin 2018 18:16:21 +0200, a ecrit:
> - -fno-builtin-log
> + -fno-builtin-log --no-pie --no-pic

I'm surprised by the form of the option. I would have thought rather

-no-pie -fno-pic

which are documented, while the options above are not. Could you try
them instead?

Samuel

Almudena Garcia

unread,
Jun 27, 2018, 4:06:57 PM6/27/18
to Almudena Garcia, Help Hurd, bug-...@gnu.org
I don't be sure. I asked in #hurd Freenode channel, and one person suggested me to add this flags

Samuel Thibault

unread,
Jun 27, 2018, 4:14:52 PM6/27/18
to Almudena Garcia, Help Hurd, bug-...@gnu.org
Almudena Garcia, le mer. 27 juin 2018 22:06:32 +0200, a ecrit:
> I don't be sure. I asked in #hurd Freenode channel, and one person suggested me
> to add this flags

Ok, but could you test these instead?

-no-pie -fno-pic

Samuel

Almudena Garcia

unread,
Jun 27, 2018, 4:15:37 PM6/27/18
to Almudena Garcia, Help Hurd, bug-...@gnu.org
Ok, I'll try it

Almudena Garcia

unread,
Jun 27, 2018, 4:28:14 PM6/27/18
to Help Hurd, bug-...@gnu.org
I've just to try the flags what you suggested, and this also runs correctly

Samuel Thibault

unread,
Jun 27, 2018, 5:23:04 PM6/27/18
to Almudena Garcia, Help Hurd, bug-...@gnu.org
Almudena Garcia, le mer. 27 juin 2018 22:27:48 +0200, a ecrit:
> I've just to try the flags what you suggested, and this also runs correctly

Cool, thanks for the test!

Samuel

0 new messages