Send inn-workers mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.isc.org/mailman/listinfo/inn-workers
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of inn-workers digest..."


Today's Topics:

   1. Bug report: Build failure with make -j24 (Remco Rijnders)
   2. Re: Bug report: Build failure with make -j24 (Russ Allbery)
   3. Re: Bug report: Build failure with make -j24 (Remco Rijnders)


----------------------------------------------------------------------

Message: 1
Date: Sat, 29 Dec 2012 14:41:08 +0100
From: Remco Rijnders <[email protected]>
To: [email protected]
Subject: Bug report: Build failure with make -j24
Message-ID: <%*.||[email protected]>
Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"

Dear all,

Today I tried to build the inn package for the Mageia distribution, but 
the build failed on our automated build system. See below for the logfiles 
of the automated build. I think the error is related to this section of 
the build process:

gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 
-fstack-protector --param=ssp-buffer-size=4 -fstack-protector-all 
-fomit-frame-pointer -march=i586 -mtune=generic 
-fasynchronous-unwind-tables -DHAVE_ET_COM_ERR_H -fPIC -I../include    -c 
-o decode.o decode.c
mv y.tab.h config_y.h
mv y.tab.c config_y.c
mv y.tab.h config_y.h
gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 
-fstack-protector --param=ssp-buffer-size=4 -fstack-protector-all 
-fomit-frame-pointer -march=i586 -mtune=generic 
-fasynchronous-unwind-tables -DHAVE_ET_COM_ERR_H -fPIC -I../include    -c 
-o archive.o archive.c
mv: cannot stat `y.tab.h': No such file or directory

It tries to mv the same file twice, resulting in the build failure. After 
discussing this bug with some other Mageia developers, it seems to be 
caused by the %make rpm macro expanding into "make -j24" on the 
buildsystem. It built for me locally where it expands to "make -j4". 
Replacing the %make macro locally and replacing it by make -j24 also 
exhibits the same problem.

Could this be an issue in the make scripts for inn?

As I'm not sure how long the build logs are archived on the build system, 
I've also saved them locally under the same names under 
http://silvertown.webconquest.com/~remmy/mageia/

Any insights appreciated, as well as your testing with make -j24 on your 
local systems.

Thanks in advance,

Remco 'Remmy' Rijnders

----- Forwarded message from Ulri the scheduler bot <[email protected]> 
-----

Date: Sat, 29 Dec 2012 13:39:54 +0100 (CET)
From: Ulri the scheduler bot <[email protected]>
To: remmy <[email protected]>
Subject: Rebuild failed on i586 for @336068:inn-2.5.3-2.mga2.src.rpm

Build of the following packages failed:

- @336068:inn-2.5.3-2.mga2.src.rpm

Failure details available in 
http://pkgsubmit.mageia.org/uploads/failure/2/core/updates_testing/20121229123856.remmy.valstar.27000/log
Reason:
@336068:inn-2.5.3-2.mga2.src.rpm: build_failure

Log files generated:
http://pkgsubmit.mageia.org/uploads/failure/2/core/updates_testing/20121229123856.remmy.valstar.27000/log/inn-2.5.3-2.mga2/rpm_qa.0.20121229123916.log
http://pkgsubmit.mageia.org/uploads/failure/2/core/updates_testing/20121229123856.remmy.valstar.27000/log/inn-2.5.3-2.mga2/build.0.20121229123916.log
http://pkgsubmit.mageia.org/uploads/failure/2/core/updates_testing/20121229123856.remmy.valstar.27000/log/inn-2.5.3-2.mga2/install_deps-1.0.20121229123916.log


----- End forwarded message -----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: 
<https://lists.isc.org/pipermail/inn-workers/attachments/20121229/d91a8ddc/attachment-0001.bin>

------------------------------

Message: 2
Date: Sat, 29 Dec 2012 13:12:17 -0800
From: Russ Allbery <[email protected]>
To: [email protected]
Subject: Re: Bug report: Build failure with make -j24
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii

Remco Rijnders <[email protected]> writes:

> Today I tried to build the inn package for the Mageia distribution, but
> the build failed on our automated build system. See below for the
> logfiles of the automated build. I think the error is related to this
> section of the build process:

> gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 
> -fstack-protector --param=ssp-buffer-size=4 -fstack-protector-all 
> -fomit-frame-pointer -march=i586 -mtune=generic 
> -fasynchronous-unwind-tables -DHAVE_ET_COM_ERR_H -fPIC -I../include    -c 
> -o decode.o decode.c
> mv y.tab.h config_y.h
> mv y.tab.c config_y.c
> mv y.tab.h config_y.h
> gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 
> -fstack-protector --param=ssp-buffer-size=4 -fstack-protector-all 
> -fomit-frame-pointer -march=i586 -mtune=generic 
> -fasynchronous-unwind-tables -DHAVE_ET_COM_ERR_H -fPIC -I../include    -c 
> -o archive.o archive.c
> mv: cannot stat `y.tab.h': No such file or directory

> It tries to mv the same file twice, resulting in the build
> failure. After discussing this bug with some other Mageia developers, it
> seems to be caused by the %make rpm macro expanding into "make -j24" on
> the buildsystem. It built for me locally where it expands to "make -j4".
> Replacing the %make macro locally and replacing it by make -j24 also
> exhibits the same problem.

> Could this be an issue in the make scripts for inn?

Almost certainly.  Automake has a separate script (ylwrap) to handle this
sort of thing, and make rules that generate multiple files are notoriously
hard on parallelization.

There are a wide variety of complicated ways of avoiding this problem that
are detailed in the Automake manual for the general case of build rules
with multiple outputs, but the simplest fix should work in this case.
I've checked in the following patch:

--- innfeed/Makefile    (revision 9450)
+++ innfeed/Makefile    (working copy)
@@ -55,6 +55,7 @@
        $(YACC) -d $?
        mv y.tab.h config_y.h
        mv y.tab.c config_y.c
+config_y.h: config_y.c
 
 config_l.c: configfile.l
        $(LEX) $?

-- 
Russ Allbery ([email protected])             <http://www.eyrie.org/~eagle/>

    Please send questions to the list rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.


------------------------------

Message: 3
Date: Sun, 30 Dec 2012 07:37:06 +0100
From: Remco Rijnders <[email protected]>
To: [email protected]
Subject: Re: Bug report: Build failure with make -j24
Message-ID: <%[email protected]>
Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"

On Sat, Dec 29, 2012 at 01:12:17PM -0800, Russ wrote in 
<[email protected]>:
>> It tries to mv the same file twice, resulting in the build
>> failure. After discussing this bug with some other Mageia developers, it
>> seems to be caused by the %make rpm macro expanding into "make -j24" on
>> the buildsystem. It built for me locally where it expands to "make -j4".
>> Replacing the %make macro locally and replacing it by make -j24 also
>> exhibits the same problem.
>
>> Could this be an issue in the make scripts for inn?
>
>Almost certainly.  Automake has a separate script (ylwrap) to handle this
>sort of thing, and make rules that generate multiple files are notoriously
>hard on parallelization.
>
>There are a wide variety of complicated ways of avoiding this problem that
>are detailed in the Automake manual for the general case of build rules
>with multiple outputs, but the simplest fix should work in this case.

Hi Russ,

Thanks for the swift response. The patch you supplied solves the issue 
indeed! Many thanks again!

Remmy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: 
<https://lists.isc.org/pipermail/inn-workers/attachments/20121230/c96f2ecd/attachment-0001.bin>

------------------------------

_______________________________________________
inn-workers mailing list
[email protected]
https://lists.isc.org/mailman/listinfo/inn-workers

End of inn-workers Digest, Vol 46, Issue 5
******************************************

Reply via email to