Coder Social home page Coder Social logo

Comments (12)

liquidaty avatar liquidaty commented on May 20, 2024 1

Note that the flags include -Iexternal/utf8proc-2.6.1 so assuming the current dir is ./app, then the file app/external/utf8proc-2.6.1/utf8proc.h should be found

from zsv.

liquidaty avatar liquidaty commented on May 20, 2024 1

pls try main now. thx!

from zsv.

iamazeem avatar iamazeem commented on May 20, 2024 1

Removed REPLACEFILE_IGNORE_ACL_ERRORS and the local build compiled successfully.

from zsv.

iamazeem avatar iamazeem commented on May 20, 2024 1

CI build is also successful.
See: https://github.com/liquidaty/zsv/actions/runs/2500907868

from zsv.

iamazeem avatar iamazeem commented on May 20, 2024

@liquidaty: macosx/gcc11 build is failing with these errors:

gcc-11 -I/Users/runner/work/zsv/zsv/jq/build/include -pipe -ffunction-sections -fdata-sections -fpic -std=gnu11 -O3 -DNDEBUG -Wno-gnu-statement-expression -Wshadow -Wall -Wextra -Wno-missing-braces -pedantic -DSTDC_HEADERS -D_GNU_SOURCE -ftree-vectorize -fvisibility=hidden -I/Users/runner/work/zsv/zsv/amd64-macosx-gcc/include -mavx2 -DZSV_EXTRAS -DUSE_JQ -DHAVE__MM256_MOVEMASK_EPI8 -DHAVE_IMMINTRIN_H -DHAVE_MEMMEM -DHAVE_ARC4RANDOM_UNIFORM -DHAVE___BUILTIN_EXPECT -DHAVE___BUILTIN_EXPECT_WITH_PROBABILITY -flto -Iexternal/utf8proc-2.6.1 -DUTF8PROC -DUTF8PROC_STATIC -DVERSION=\"b14db94\" -DZSV_CLI -DMAIN=main_pretty -Iexternal/inih -Iexternal/sglib -I/Users/runner/work/zsv/zsv/include -c pretty.c -o /Users/runner/work/zsv/zsv/build/Darwin/rel/gcc-11/objs/cli_pretty.o 
pretty.c:13:10: fatal error: utf8proc.h: No such file or directory
   13 | #include <utf8proc.h>
      |          ^~~~~~~~~~~~
compilation terminated.
make[1]: *** [/Users/runner/work/zsv/zsv/build/Darwin/rel/gcc-11/objs/cli_pretty.o] Error 1
make: *** [install] Error 2

CI run: https://github.com/liquidaty/zsv/runs/6892124476?check_suite_focus=true#step:10:1107

from zsv.

iamazeem avatar iamazeem commented on May 20, 2024

The commands for clang and gcc-11 are also identical (except some paths):

clang  -I/Users/runner/work/zsv/zsv/jq/build/include -pipe -ffunction-sections -fdata-sections -fpic -std=gnu11 -O3 -DNDEBUG -Wno-gnu-statement-expression -Wshadow -Wall -Wextra -Wno-missing-braces -pedantic -DSTDC_HEADERS -D_GNU_SOURCE -ftree-vectorize -fvisibility=hidden -I/Users/runner/work/zsv/zsv/amd64-macosx-clang/include -mavx2 -DZSV_EXTRAS -DUSE_JQ -DHAVE__MM256_MOVEMASK_EPI8 -DHAVE_IMMINTRIN_H -DHAVE_MEMMEM -DHAVE_ARC4RANDOM_UNIFORM -DHAVE___BUILTIN_EXPECT -DNO___BUILTIN_EXPECT_WITH_PROBABILITY   -flto -Iexternal/utf8proc-2.6.1 -DUTF8PROC -DUTF8PROC_STATIC -DVERSION=\"64beac3\" -DZSV_CLI -DMAIN=main_pretty -Iexternal/inih -Iexternal/sglib -I/Users/runner/work/zsv/zsv/include -c pretty.c -o /Users/runner/work/zsv/zsv/build/Darwin/rel/clang/objs/cli_pretty.o
gcc-11 -I/Users/runner/work/zsv/zsv/jq/build/include -pipe -ffunction-sections -fdata-sections -fpic -std=gnu11 -O3 -DNDEBUG -Wno-gnu-statement-expression -Wshadow -Wall -Wextra -Wno-missing-braces -pedantic -DSTDC_HEADERS -D_GNU_SOURCE -ftree-vectorize -fvisibility=hidden -I/Users/runner/work/zsv/zsv/amd64-macosx-gcc/include   -mavx2 -DZSV_EXTRAS -DUSE_JQ -DHAVE__MM256_MOVEMASK_EPI8 -DHAVE_IMMINTRIN_H -DHAVE_MEMMEM -DHAVE_ARC4RANDOM_UNIFORM -DHAVE___BUILTIN_EXPECT -DHAVE___BUILTIN_EXPECT_WITH_PROBABILITY -flto -Iexternal/utf8proc-2.6.1 -DUTF8PROC -DUTF8PROC_STATIC -DVERSION=\"b14db94\" -DZSV_CLI -DMAIN=main_pretty -Iexternal/inih -Iexternal/sglib -I/Users/runner/work/zsv/zsv/include -c pretty.c -o /Users/runner/work/zsv/zsv/build/Darwin/rel/gcc-11/objs/cli_pretty.o

from zsv.

liquidaty avatar liquidaty commented on May 20, 2024

Not able to reproduce. Can you check whether the external/utf8proc-2.6.1 dir was unpacked? Perhaps somehow the bundled utf8proc.tar.gz was not unpacked (which should have happened from the dependency on utf8proc.c arising from the dependency on utf8proc.o)?

from zsv.

iamazeem avatar iamazeem commented on May 20, 2024

I just added some debug logs in the Makefile where the archive extracted.
For gcc, the logs are there but for gcc-11 there are no logs.

Any idea why that might be the case? šŸ¤”

CI run: https://github.com/liquidaty/zsv/runs/6893839706?check_suite_focus=true
Logs added with >> prefix.

from zsv.

iamazeem avatar iamazeem commented on May 20, 2024

@liquidaty: The build on the main branch is failing:

/home/runner/work/zsv/zsv/build/Linux/rel/gcc/external/utf8proc-2.6.1/utf8proc.o: file not recognized: File format not recognized
collect2: error: ld returned 1 exit status
make[1]: *** [/home/runner/work/zsv/zsv/build/Linux/rel/gcc/bin/zsv_echo] Error 1
Makefile:330: recipe for target '/home/runner/work/zsv/zsv/build/Linux/rel/gcc/bin/zsv_echo' failed
make: *** [test] Error 2
make[1]: Leaving directory '/home/runner/work/zsv/zsv/app'

CI logs: https://github.com/liquidaty/zsv/runs/6894095030?check_suite_focus=true#step:7:530

from zsv.

iamazeem avatar iamazeem commented on May 20, 2024

Local build is also failing with above error.

from zsv.

iamazeem avatar iamazeem commented on May 20, 2024

After reverting the app/Makefile changes, the local build is now successful.

from zsv.

iamazeem avatar iamazeem commented on May 20, 2024

Looks like macosx/gcc-11 is now passing but now MinGW local and CI builds are failing:

utils/os.c: In function ā€˜zsv_replace_fileā€™:
utils/os.c:58:72: error: ā€˜REPLACEFILE_IGNORE_ACL_ERRORSā€™ undeclared (first use in this function); did you mean ā€˜REPLACEFILE_IGNORE_MERGE_ERRORSā€™?
   58 |   if(ReplaceFileW(wdest, wsrc, NULL, REPLACEFILE_IGNORE_MERGE_ERRORS | REPLACEFILE_IGNORE_ACL_ERRORS, 0, 0)) // success
      |                                                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                        REPLACEFILE_IGNORE_MERGE_ERRORS

CI: https://github.com/liquidaty/zsv/runs/6895160680?check_suite_focus=true#step:9:636

from zsv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.