Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error depending on $VERBOSE flag #1058

Open
realsimix opened this issue May 26, 2023 · 5 comments
Open

Build error depending on $VERBOSE flag #1058

realsimix opened this issue May 26, 2023 · 5 comments
Assignees

Comments

@realsimix
Copy link
Contributor

Hi,

I've just tried to rebuild my packages with latest code and found this strange issue. If $VERBOSE is empty or undefined, I get this build error on RHEL 7:

+ /usr/bin/make CONFIGURE=/home/pkgbuild/rpmbuild/BUILD/nx-libs-3.5.99.27/local_configure \
    LIBDIR=/usr/lib64 'CDEBUGFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions \
    -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic' \
    'LOCAL_LDFLAGS=-Wl,-z,relro ' 'SHLIBGLOBALSFLAGS=-Wl,-z,relro ' IMAKE_DEFINES=-DUseTIRPC=NO VERBOSE=
Makefile:36: xkbcomp devel package missing, using imake default values

===> build
Makefile:36: xkbcomp devel package missing, using imake default values

===> imakeconfig
make[3]: xmakefile: No such file or directory
make[3]: *** No rule to make target `xmakefile'.  Stop.
make[2]: *** [VerifyOS] Error 2
make[1]: *** [imakeconfig] Error 2
make: *** [build] Error 2

This was not a problem with 3.5.99.26 and only happens on a bit older distributions.

I didn't dig into details because adding VERBOSE=1 is an easy fix. But, does anyone have an idea where this comes from?

Thanks,
Simon

@uli42
Copy link
Member

uli42 commented May 26, 2023 via email

@realsimix
Copy link
Contributor Author

Things are getting more confusing the deeper I dig. What I found out so far is this:

On certain systems the build fails if no $VERBOSE variable is defined. But, from what I saw, all the test -n ${VERBOSE} && changes should be fine. The reason why building fails is because, without $VERBOSE defined, we are calling

imake -s -s xmakefile...

in nx-X11/Makefile. The issue was introduced with commit 72f11ee where imake is called with $MFLAGS.

Can it be that $MFLAGS is somehow set to -s automatically if a $VERBOSE variable is not set, to make make silent? -s for make means silent, while for imake, it means naming the output file. Can it be that $MFLAGS should really only be used for make then and not for imake?

My patch nx-libs-3.5.99.27-verbose.patch.txt reverts mentioned commit and also fixes some mostly cosmetic issues. It allows building successfully on all my systems, with or without $VERBOSE being defined.

Regards,
Simon

@uli42
Copy link
Member

uli42 commented May 26, 2023 via email

@realsimix
Copy link
Contributor Author

I can confirm that it also works on all tested systems with VERBOSE=. That's all on Linux with Bash as standard shell.

As I'm not a developer I'm not using Git so I kindly ask you to split the patch and create the PRs for us :)

Thanks,
Simon

@realsimix
Copy link
Contributor Author

As mentioned above, I'm not a developer and do not use Git at all. Please have a look at the patches below and apply as you like.

nx-libs-3.5.99.26-old_gcc.patch.txt
nx-libs-3.5.99.26-no_include_gcstruct.patch.txt
nx-libs-3.5.99.26-cosmetic_fixes.patch.txt
nx-libs-3.5.99.26-imake_no_mflags.patch.txt
nx-libs-3.5.99.26-separating_set_e.patch.txt

At this point let me ask again about a release which would allow more users to test latest code?

Thanks,
Simon

@uli42 uli42 self-assigned this Apr 8, 2024
uli42 added a commit to uli42/nx-libs that referenced this issue May 11, 2024
see ArcticaProject/issues/1058 for details and the original patch.

Found and fixed by realsimix

Adresses ArcticaProject#1058 (part 1)
uli42 added a commit to uli42/nx-libs that referenced this issue May 11, 2024
…. we probably want that. Likely."

This commit breaks compilation because if compiled without VERBOSE we
end up in imake -s -s xmakefile being called. See
ArcticaProject#1058 (comment)

As -s in imake defines and output file instead of the silencing the
output it is called wrong.

This reverts commit 72f11ee.

Adresses ArcticaProject#1058 (part 2)
uli42 added a commit to uli42/nx-libs that referenced this issue May 11, 2024
see ArcticaProject/issues/1058 for details and the original patch.

Found and fixed by realsimix

Adresses ArcticaProject#1058 (part 1)
uli42 added a commit to uli42/nx-libs that referenced this issue May 11, 2024
…. we probably want that. Likely."

This commit breaks compilation because if compiled without VERBOSE we
end up in imake -s -s xmakefile being called. See
ArcticaProject#1058 (comment)

As -s in imake defines and output file instead of the silencing the
output it is called wrong.

This reverts commit 72f11ee.

Adresses ArcticaProject#1058 (part 2)
uli42 added a commit to uli42/nx-libs that referenced this issue May 11, 2024
see ArcticaProject/issues/1058 for details and the original patch.

Found and fixed by realsimix

Adresses ArcticaProject#1058 (part 1)
uli42 added a commit to uli42/nx-libs that referenced this issue May 11, 2024
…. we probably want that. Likely."

This commit breaks compilation because if compiled without VERBOSE we
end up in imake -s -s xmakefile being called. See
ArcticaProject#1058 (comment)

As -s in imake defines and output file instead of the silencing the
output it is called wrong.

This reverts commit 72f11ee.

Adresses ArcticaProject#1058 (part 2)
uli42 added a commit to uli42/nx-libs that referenced this issue May 20, 2024
see ArcticaProject/issues/1058 for details and the original patch.

Found and fixed by realsimix

Adresses ArcticaProject#1058 (part 1)
uli42 added a commit to uli42/nx-libs that referenced this issue May 20, 2024
…. we probably want that. Likely."

This commit breaks compilation because if compiled without VERBOSE we
end up in imake -s -s xmakefile being called. See
ArcticaProject#1058 (comment)

As -s in imake defines and output file instead of the silencing the
output it is called wrong.

This reverts commit 72f11ee.

Adresses ArcticaProject#1058 (part 2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants