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

when use env variable due to make compiler exit! #475

Closed
xicaixiaokeke opened this issue Sep 5, 2023 · 3 comments
Closed

when use env variable due to make compiler exit! #475

xicaixiaokeke opened this issue Sep 5, 2023 · 3 comments
Labels
accepted bug Something isn't working

Comments

@xicaixiaokeke
Copy link

GCC version:gcc version 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC)
dagu version: 1.11.0

[Use env variable make build occur ERROR Message]
make -C /lib/modules/3.10.0-1160.76.1.el7.x86_64/build M=/tmp/bbc-patch/071_build_bnxt_driver/centos/bnxt_build modules
make[1]: Entering directory /usr/src/kernels/3.10.0-1160.76.1.el7.x86_64' arch/x86/Makefile:96: stack-protector enabled but compiler support broken arch/x86/Makefile:166: *** CONFIG_RETPOLINE=y, but not supported by the compiler. Compiler update recommended.. Stop. make[1]: Leaving directory /usr/src/kernels/3.10.0-1160.76.1.el7.x86_64'
make: *** [default] Error 2

  • '[' 2 -ne 0 ']'
  • echo 'Build bnxt_en with kernel 3.10.0-1160.76.1.el7.x86_64 failed. Please check ...'
    Build bnxt_en with kernel 3.10.0-1160.76.1.el7.x86_64 failed. Please check ...
  • exit 1

[Does not use env variable make compiler is normal ]
make -C /lib/modules/3.10.0-1160.76.1.el7.x86_64/build M=/tmp/bbc-patch/071_build_bnxt_driver/centos/bnxt_build modules
make[1]: Entering directory /usr/src/kernels/3.10.0-1160.76.1.el7.x86_64' Building modules, stage 2. MODPOST 1 modules CC /tmp/bbc-patch/071_build_bnxt_driver/centos/bnxt_build/bnxt_en.mod.o LD [M] /tmp/bbc-patch/071_build_bnxt_driver/centos/bnxt_build/bnxt_en.ko make[1]: Leaving directory /usr/src/kernels/3.10.0-1160.76.1.el7.x86_64'

  • '[' 0 -ne 0 ']'
  • make KVER=3.10.0-1160.76.1.el7.x86_64 install
    make -C /lib/modules/3.10.0-1160.76.1.el7.x86_64/build M=/tmp/bbc-patch/071_build_bnxt_driver/centos/bnxt_build modules
    make[1]: Entering directory `/usr/src/kernels/3.10.0-1160.76.1.el7.x86_64'
    Building modules, stage 2.
    MODPOST 1 modules
@xicaixiaokeke
Copy link
Author

dag spec
env:

  • DIR: /tmp

@yohamta yohamta added help wanted Extra attention is needed bug Something isn't working labels Dec 8, 2023
@bbqi
Copy link

bbqi commented Jan 1, 2024

use env NOT Add arguments to environment variables.
it'll create NEW environment. NOT contain origin system variables.

dag spec:

#env:
#  - DIR: /tmp
steps:
  - name: step1
    command: env

then try remove comments, results are different.

@yohamta yohamta added accepted and removed help wanted Extra attention is needed labels May 11, 2024
@yohamta
Copy link
Collaborator

yohamta commented May 25, 2024

Thanks a lot for reporting the issue. This issue is fixed in v1.13.0.

@yohamta yohamta closed this as completed May 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants