Giter Site home page Giter Site logo

Comments (8)

giordano avatar giordano commented on September 13, 2024 1

Ah, yeah, I don't think cleanall is supposed to touch the cache in deps, on a git bisect run running make cleanall is useful but if it cleaned the also the deps cache you'd be downloading, unpacking and installing llvm all the time.

from julia.

giordano avatar giordano commented on September 13, 2024

Since utf8proc is compiled locally from source it sounds like a problem in your toolchain? What compiler are you using? What version? What's the output of

file /mnt/c/users/nicho/repos/julia/usr/lib/libutf8proc.a

?

from julia.

BioTurboNick avatar BioTurboNick commented on September 13, 2024

Hmm. Why just that one file though? A toolchain issue is possible, though I don't think I did anything unusual.

The output is:

/mnt/c/users/nicho/repos/julia/usr/lib/libutf8proc.a: current ar archive

Compiler version:

nicho@AuroraSurface11:~$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/aarch64-linux-gnu/11/lto-wrapper
Target: aarch64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 11.4.0-1ubuntu1~22.04' --with-bugurl=file:///usr/share/doc/gcc-11/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-11 --program-prefix=aarch64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libquadmath --disable-libquadmath-support --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --enable-fix-cortex-a53-843419 --disable-werror --enable-checking=release --build=aarch64-linux-gnu --host=aarch64-linux-gnu --target=aarch64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-serialization=2
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 11.4.0 (Ubuntu 11.4.0-1ubuntu1~22.04)

from julia.

giordano avatar giordano commented on September 13, 2024

Why just that one file though?

I don't know, but building on aarch64-linux is regularly tested and it works fine, I also build often on another aarch64-linux system and I have no problems.

The output is:

Right, file on an archive isn't particularly enlightening. Try this instead:

cd $(mktemp -d)
ar x /mnt/c/users/nicho/repos/julia/usr/lib/libutf8proc.a
file utf8proc.o
readelf -h utf8proc.o

from julia.

BioTurboNick avatar BioTurboNick commented on September 13, 2024
utf8proc.o: Intel amd64 COFF object file, no line number info, not stripped, 8 sections, symbol offset=0x53f14, 62 symbols, 1st section name ".text"
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start

Possibly relevant is that I initially started with Make.user pointing to mingw. I removed that line since, and had done make cleanall many times.

Just investigated further, and make -C deps clean-utf8proc fixed it. Should cleanall have caught this? Or should the build process have noticed something needed rebuilding? Or is this just an expected hazard of this kind of thing? If the latter I'll close this.

from julia.

giordano avatar giordano commented on September 13, 2024
 Intel amd64 COFF object file

That's the wrong format, and it explains the error message.

from julia.

giordano avatar giordano commented on September 13, 2024

Should cleanall have caught this?

I think make cleanall deletes the entire usr/ subdir, no?

Or should the build process have noticed something needed rebuilding?

Make checks timestamps, not file formats.

from julia.

BioTurboNick avatar BioTurboNick commented on September 13, 2024

Should cleanall have caught this?

I think make cleanall deletes the entire usr/ subdir, no?

Yeah, though it doesn't do anything to deps/scratch subfolders, which seems to be where the dependencies get compiled. Based on the make VERBOSE=1 output I was seeing, all it was doing was copying the libutf8proc.a file from the scratch\utf8proc-<hash> subfolder. make -C deps clean-utf8proc actually removes the libutf8proc.a file.

from julia.

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.