pkgsrc-Users archive

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

parallel/openmp: requires alloca fix?



When using libgomp to build wip/py-torch I get:

    ld: /usr/pkgsrc/work/wip/py-torch/work/.buildlink/lib/libgomp.so: warning: Warning: reference to the libc supplied alloca(3); this most likely will not work. Please use the compiler provided version of alloca(3), by supplying the appropriate compiler flags (e.g. not -std=c89).

Based on some other Makefiles that addressed this issue, I have done the
following in py-torch:

    BUILDLINK_TRANSFORM.NetBSD+=    opt:-std=c++14:-std=gnu++14 # alloca
    BUILDLINK_TRANSFORM.NetBSD+=    opt:-std=c99:-std=gnu99 # alloca

However the above error is reported in libgomp which is built by
parallel/openmp.

Does this mean parallel/openmp needs a fix like the above?

-- 
Mayuresh


Home | Main Index | Thread Index | Old Index