pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: gcc and libtool-fortran



On Fri, Feb 21, 2025 at 06:15:57PM -0500, Greg Troxel wrote:
> I can kick off a build of gcc14. on 13/Ventura.  We might need to have a
> os version conditional.


my old system is a 2019 intel macbook running macosx 10.14.6 (Mojave).
I just checked out and bootstrapped a fresh pkgsrc in a scratch directory
to test the gcc14 build.

it appears to have worked!   so I suspect your 13/Ventura system
should be fine too...

chuck


# cat hello.c

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>

int main(int argc, char **argv) {
printf("hello world\n");
}


# =1/gcc -v
Using built-in specs.
COLLECT_GCC=/Users/chuck/excluded/pkg/gcc14/bin/gcc
COLLECT_LTO_WRAPPER=/Users/chuck/excluded/pkg/gcc14/libexec/gcc/x86_64-apple-darwin18/14.2.0/lto-wrapper
Target: x86_64-apple-darwin18
Configured with: ../gcc-14.2.0/configure --disable-libstdcxx-pch --disable-nls --enable-__cxa_atexit --with-gxx-include-dir=/Users/chuck/excluded/pkg/gcc14/include/c++/ --disable-darwin-at-rpath --enable-long-long --with-local-prefix=/Users/chuck/excluded/pkg/gcc14 --enable-threads=posix --with-boot-ldflags='-static-libstdc++ -static-libgcc -L/Users/chuck/excluded/pkg/lib  ' --without-zstd --disable-bootstrap --with-system-zlib --enable-libssp --enable-languages='c obj-c++ objc fortran c++' --enable-shared --disable-multilib --with-sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk --prefix=/Users/chuck/excluded/pkg/gcc14 --build=x86_64-apple-darwin18 --host=x86_64-apple-darwin18 --infodir=/Users/chuck/excluded/pkg/gcc14/info --mandir=/Users/chuck/excluded/pkg/gcc14/man
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 14.2.0 (GCC)


# =1/gcc -O -o hello-c hello.c
ld: warning: directory not found for option '-L/Users/chuck/excluded/pkg/gcc14/x86_64-apple-darwin18/lib/.'

# ./hello-c
hello world

# cat hello.f90
program hello
    print *, "Hello world!!!"
end program

# =1/gfortran -o hello-f -O hello.f90               
ld: warning: directory not found for option '-L/Users/chuck/excluded/pkg/gcc14/x86_64-apple-darwin18/lib/.'

# ./hello-f
 Hello world!!!

# uname -a
Darwin xxxcdc 18.7.0 Darwin Kernel Version 18.7.0: Tue Jun 22 19:37:08 PDT 2021; root:xnu-4903.278.70~1/RELEASE_X86_64 x86_64
#               



Home | Main Index | Thread Index | Old Index