Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Sep 2018 21:35:32 +0800
From:      blubee blubeeme <gurenchan@gmail.com>
To:        Lorenzo Salvadore <phascolarctos@protonmail.ch>
Cc:        FreeBSD Ports <freebsd-ports@freebsd.org>
Subject:   Re: error: undefined symbol: main in poudriere jail
Message-ID:  <CALM2mEm9Y1VN_E2aewF1bjUvjf_M=LXCXG%2B_wTThbXibRPJLAQ@mail.gmail.com>
In-Reply-To: <CDduIhEqP4vsAGt5p9RXp80UXqbhGB5dv_xW33IcdKyLT6_t2y0NYRlI5oS3zOViJwrPM_W36TWeD2HP2zH3Ho6wLDDFl_KFcZk9Iffe6B8=@protonmail.ch>
References:  <CALM2mEnTp2aPWCcBQ-zUrSo_vdfSU0b=pXoEuAto_kytPnvUgg@mail.gmail.com> <CDduIhEqP4vsAGt5p9RXp80UXqbhGB5dv_xW33IcdKyLT6_t2y0NYRlI5oS3zOViJwrPM_W36TWeD2HP2zH3Ho6wLDDFl_KFcZk9Iffe6B8=@protonmail.ch>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Sep 24, 2018, 17:34 Lorenzo Salvadore via freebsd-ports <
freebsd-ports@freebsd.org> wrote:

>
> > This issue seemed to have come up in the past:
> >
> https://lists.freebsd.org/pipermail/freebsd-current/2018-March/068870.html
> >
> > Jail name: amd64_cur
> > Jail version: 12.0-ALPHA7 1200084
> > Jail vcs version: r338898
> > Jail arch: amd64
> > Jail method: svn
> > Jail mount: /usr/local/poudriere/jails/amd64_cur
> > Jail fs: zroot/poudriere/jails/amd64_cur
> > Jail updated: 2018-09-24 03:39:31
> > Tree name: default
> > Tree method: portsnap
> > Status:
> >
> > error
> > /usr/bin/cc -pipe -fno-strict-aliasing -fno-common -fexceptions
> -std=gnu99
> > -m64 -Qunused-arguments -O3 -march=native -finline-functions -flto
> > -fomit-frame-pointer -pedantic -pedantic-errors -Wall -Wextra -Wundef
> > -Wfloat-equal -Wshadow -Wbad-function-cast -Wdeclaration-after-statement
> > -Wc++-compat -Winline -Wno-long-long -Wno-variadic-macros -Wdocumentation
> > -m64 src/rttherm/CMakeFiles/rttherm.dir/spectrum.c.o
> > src/rttherm/CMakeFiles/rttherm.dir/viewtherm.c.o -o bin/rttherm
> > -Wl,-rpath,/wrkdirs/usr/ports/cad/brlcad/work/.build/lib:/usr/local/lib:
> > lib/libged.so.20.0.1 lib/librtuif_multispectral.a
> > lib/libmultispectral.so.20.0.1 lib/libfb.so.20.0.1 lib/libpkg.so.20.0.1
> > /usr/local/lib/libSM.so /usr/local/lib/libICE.so /usr/local/lib/libGLU.so
> > /usr/local/lib/libGL.so /usr/local/lib/libSM.so /usr/local/lib/libICE.so
> > /usr/local/lib/libGLU.so /usr/local/lib/libGL.so lib/libtk.so.8.5
> > /usr/local/lib/libX11.so /usr/local/lib/libXext.so lib/libtkstub.a
> > lib/libtclstub.a /usr/local/lib/libXrender.so lib/libwdb.so.20.0.1
> > lib/libicv.so.20.0.1 lib/libpng16.so.16.29.0 lib/libnetpbm.so
> > lib/libanalyze.so.20.0.1 lib/libtcl.so.8.5.19 lib/libclipper.so.4.6.0
> > lib/librt.so.20.0.1 lib/libnmg.so lib/libgdiam.so lib/libvds.so.1.0.1
> > lib/libbrep.so.20.0.1 lib/libbg.so.20.0.1 lib/libopenNURBS.so.2012.10.245
> > lib/libp2t.so.1.0.1 lib/libz.so.1.2.11 lib/libtinycthread.so
> lib/liblz4.so
> > lib/libbn.so.20.0.1 lib/libbu.so.20.0.1 lib/libregex.so.1.0.4 -lm
> -pthread
> > -ldl && :
> > FAILED: bin/rttherm
> > : && /usr/bin/cc -pipe -fno-strict-aliasing -fno-common -fexceptions
> > -std=gnu99 -m64 -Qunused-arguments -O3 -march=native -finline-functions
> > -flto -fomit-frame-pointer -pedantic -pedantic-errors -Wall -Wextra
> -Wundef
> > -Wfloat-equal -Wshadow -Wbad-function-cast -Wdeclaration-after-statement
> > -Wc++-compat -Winline -Wno-long-long -Wno-variadic-macros -Wdocumentation
> > -m64 src/rttherm/CMakeFiles/rttherm.dir/spectrum.c.o
> > src/rttherm/CMakeFiles/rttherm.dir/viewtherm.c.o -o bin/rttherm
> > -Wl,-rpath,/wrkdirs/usr/ports/cad/brlcad/work/.build/lib:/usr/local/lib:
> > lib/libged.so.20.0.1 lib/librtuif_multispectral.a
> > lib/libmultispectral.so.20.0.1 lib/libfb.so.20.0.1 lib/libpkg.so.20.0.1
> > /usr/local/lib/libSM.so /usr/local/lib/libICE.so /usr/local/lib/libGLU.so
> > /usr/local/lib/libGL.so /usr/local/lib/libSM.so /usr/local/lib/libICE.so
> > /usr/local/lib/libGLU.so /usr/local/lib/libGL.so lib/libtk.so.8.5
> > /usr/local/lib/libX11.so /usr/local/lib/libXext.so lib/libtkstub.a
> > lib/libtclstub.a /usr/local/lib/libXrender.so lib/libwdb.so.20.0.1
> > lib/libicv.so.20.0.1 lib/libpng16.so.16.29.0 lib/libnetpbm.so
> > lib/libanalyze.so.20.0.1 lib/libtcl.so.8.5.19 lib/libclipper.so.4.6.0
> > lib/librt.so.20.0.1 lib/libnmg.so lib/libgdiam.so lib/libvds.so.1.0.1
> > lib/libbrep.so.20.0.1 lib/libbg.so.20.0.1 lib/libopenNURBS.so.2012.10.245
> > lib/libp2t.so.1.0.1 lib/libz.so.1.2.11 lib/libtinycthread.so
> lib/liblz4.so
> > lib/libbn.so.20.0.1 lib/libbu.so.20.0.1 lib/libregex.so.1.0.4 -lm
> -pthread
> > -ldl && :
> > /usr/bin/ld: error: undefined symbol: main
> >
> > > > > referenced by crt1.c:74
> >
> > (/usr/local/poudriere/jails/amd64_cur/usr/src/lib/csu/amd64/crt1.c:74)
> >
> > > > >               /usr/lib/crt1.o:(_start)
> > > > >
> >
> > cc: error: linker command failed with exit code 1 (use -v to see
> invocation)
> > ninja: build stopped: subcommand failed.
> > *** Error code 1
>
> Can you please explain what were you trying to do and how the error can
> be reproduced?
>
> Lorenzo Salvadore.
> _______________________________________________
> freebsd-ports@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"
>
I am trying to update cad/brlcad there's an open issue on the Bugzilla that
I'd like to resolve.

I'm getting this error both in poudriere but now it's also showing up when
trying to build outside of poudriere.

Here is the build log
https://transfer.sh/bn41v/brlcad-7.26.4_8.log

this is a .shar file with the changes
https://transfer.sh/wVh1c/brlcad-7.26.4.shar

both my machine and poudriere are on r338902

Is this link error only affecting me?

Best,
Owen



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CALM2mEm9Y1VN_E2aewF1bjUvjf_M=LXCXG%2B_wTThbXibRPJLAQ>